@@ -5,30 +5,87 @@ namespace Nest
5
5
{
6
6
public interface IXPackUsageResponse : IResponse
7
7
{
8
- [ JsonProperty ( "watcher " ) ]
9
- AlertingUsage Alerting { get ; }
8
+ [ JsonProperty ( "ccr " ) ]
9
+ CcrUsage Ccr { get ; }
10
10
11
11
[ JsonProperty ( "graph" ) ]
12
12
XPackUsage Graph { get ; }
13
13
14
+ [ JsonProperty ( "logstash" ) ]
15
+ XPackUsage Logstash { get ; }
16
+
14
17
[ JsonProperty ( "ml" ) ]
15
18
MachineLearningUsage MachineLearning { get ; }
16
19
17
20
[ JsonProperty ( "monitoring" ) ]
18
21
MonitoringUsage Monitoring { get ; }
19
22
23
+ [ JsonProperty ( "rollup" ) ]
24
+ XPackUsage Rollup { get ; }
25
+
20
26
[ JsonProperty ( "security" ) ]
21
27
SecurityUsage Security { get ; }
28
+
29
+ [ JsonProperty ( "sql" ) ]
30
+ SqlUsage Sql { get ; }
31
+
32
+ [ JsonProperty ( "watcher" ) ]
33
+ AlertingUsage Alerting { get ; }
34
+ }
35
+
36
+ public class SqlUsage : XPackUsage
37
+ {
38
+ [ JsonProperty ( "features" ) ]
39
+ public IReadOnlyDictionary < string , int > Features { get ; set ; } = EmptyReadOnly < string , int > . Dictionary ;
40
+
41
+ [ JsonProperty ( "queries" ) ]
42
+ public IReadOnlyDictionary < string , QueryUsage > Queries { get ; set ; } = EmptyReadOnly < string , QueryUsage > . Dictionary ;
43
+ }
44
+
45
+ public class QueryUsage
46
+ {
47
+ [ JsonProperty ( "total" ) ]
48
+ public int Total { get ; internal set ; }
49
+
50
+ [ JsonProperty ( "paging" ) ]
51
+ public int Paging { get ; internal set ; }
52
+
53
+ [ JsonProperty ( "failed" ) ]
54
+ public int Failed { get ; internal set ; }
55
+
56
+ [ JsonProperty ( "count" ) ]
57
+ public int ? Count { get ; internal set ; }
58
+ }
59
+
60
+ public class CcrUsage : XPackUsage
61
+ {
62
+ [ JsonProperty ( "auto_follow_patterns_count" ) ]
63
+ public int AutoFollowPatternsCount { get ; internal set ; }
64
+
65
+ [ JsonProperty ( "follower_indices_count" ) ]
66
+ public int FollowerIndicesCount { get ; internal set ; }
22
67
}
23
68
24
69
public class XPackUsageResponse : ResponseBase , IXPackUsageResponse
25
70
{
71
+ [ JsonProperty ( "sql" ) ]
72
+ public SqlUsage Sql { get ; internal set ; }
73
+
74
+ [ JsonProperty ( "rollup" ) ]
75
+ public XPackUsage Rollup { get ; internal set ; }
76
+
77
+ [ JsonProperty ( "ccr" ) ]
78
+ public CcrUsage Ccr { get ; internal set ; }
79
+
26
80
[ JsonProperty ( "watcher" ) ]
27
81
public AlertingUsage Alerting { get ; internal set ; }
28
82
29
83
[ JsonProperty ( "graph" ) ]
30
84
public XPackUsage Graph { get ; internal set ; }
31
85
86
+ [ JsonProperty ( "logstash" ) ]
87
+ public XPackUsage Logstash { get ; internal set ; }
88
+
32
89
[ JsonProperty ( "ml" ) ]
33
90
public MachineLearningUsage MachineLearning { get ; internal set ; }
34
91
@@ -41,7 +98,10 @@ public class XPackUsageResponse : ResponseBase, IXPackUsageResponse
41
98
42
99
public class XPackUsage
43
100
{
101
+ [ JsonProperty ( "available" ) ]
44
102
public bool Available { get ; internal set ; }
103
+
104
+ [ JsonProperty ( "enabled" ) ]
45
105
public bool Enabled { get ; internal set ; }
46
106
}
47
107
@@ -59,6 +119,9 @@ public class SecurityUsage : XPackUsage
59
119
[ JsonProperty ( "realms" ) ]
60
120
public IReadOnlyDictionary < string , RealmUsage > Realms { get ; internal set ; } = EmptyReadOnly < string , RealmUsage > . Dictionary ;
61
121
122
+ [ JsonProperty ( "role_mapping" ) ]
123
+ public IReadOnlyDictionary < string , RoleMappingUsage > RoleMapping { get ; internal set ; } = EmptyReadOnly < string , RoleMappingUsage > . Dictionary ;
124
+
62
125
[ JsonProperty ( "roles" ) ]
63
126
public IReadOnlyDictionary < string , RoleUsage > Roles { get ; internal set ; } = EmptyReadOnly < string , RoleUsage > . Dictionary ;
64
127
@@ -68,6 +131,15 @@ public class SecurityUsage : XPackUsage
68
131
[ JsonProperty ( "system_key" ) ]
69
132
public SecurityFeatureToggle SystemKey { get ; internal set ; }
70
133
134
+ public class RoleMappingUsage
135
+ {
136
+ [ JsonProperty ( "enabled" ) ]
137
+ public int Enabled { get ; internal set ; }
138
+
139
+ [ JsonProperty ( "size" ) ]
140
+ public int Size { get ; internal set ; }
141
+ }
142
+
71
143
public class AuditUsage : SecurityFeatureToggle
72
144
{
73
145
[ JsonProperty ( "outputs" ) ]
@@ -131,12 +203,24 @@ public class AlertingUsage : XPackUsage
131
203
[ JsonProperty ( "execution" ) ]
132
204
public AlertingExecution Execution { get ; internal set ; }
133
205
206
+ [ JsonProperty ( "watch" ) ]
207
+ public AlertingInput Watch { get ; internal set ; }
208
+
134
209
public class AlertingExecution
135
210
{
136
211
[ JsonProperty ( "actions" ) ]
137
212
public IReadOnlyDictionary < string , ExecutionAction > Actions { get ; internal set ; } = EmptyReadOnly < string , ExecutionAction > . Dictionary ;
138
213
}
139
214
215
+ public class AlertingInput
216
+ {
217
+ [ JsonProperty ( "input" ) ]
218
+ public IReadOnlyDictionary < string , AlertingCount > Input { get ; internal set ; } = EmptyReadOnly < string , AlertingCount > . Dictionary ;
219
+
220
+ [ JsonProperty ( "trigger" ) ]
221
+ public IReadOnlyDictionary < string , AlertingCount > Trigger { get ; internal set ; } = EmptyReadOnly < string , AlertingCount > . Dictionary ;
222
+ }
223
+
140
224
public class ExecutionAction
141
225
{
142
226
[ JsonProperty ( "total" ) ]
@@ -158,6 +242,9 @@ public class AlertingCount
158
242
159
243
public class MonitoringUsage : XPackUsage
160
244
{
245
+ [ JsonProperty ( "collection_enabled" ) ]
246
+ public bool CollectionEnabled { get ; internal set ; }
247
+
161
248
[ JsonProperty ( "enabled_exporters" ) ]
162
249
public IReadOnlyDictionary < string , long > EnabledExporters { get ; set ; } = EmptyReadOnly < string , long > . Dictionary ;
163
250
}
0 commit comments