-
Notifications
You must be signed in to change notification settings - Fork 390
/
analytics_database.sandesh
38 lines (32 loc) · 1.13 KB
/
analytics_database.sandesh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
*/
//
// analytics_database.sandesh
//
enum PurgeStatus {
SUCCESS,
FAILURE,
}
const map<PurgeStatus, string> PurgeStatusString = {
PurgeStatus.SUCCESS : "success",
PurgeStatus.FAILURE : "failure",
}
struct DatabasePurgeStats {
1: string purge_id
2: optional u64 request_time
3: optional u64 rows_deleted
4: optional u64 duration
5: string purge_status
6: list<string> purge_status_details
}
struct DatabasePurgeInfo {
1: string name (key="ObjectDatabaseInfo")
2: optional bool deleted
3: optional u64 number_of_purge_requests (aggtype="counter")
4: optional list<DatabasePurgeStats> stats (tags=".purge_id, .purge_status, .request_time, .rows_deleted, .duration")
}
//DatabasePurge uve will be sent by Analytics-api
uve sandesh DatabasePurge {
1: DatabasePurgeInfo data
}