File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
src/Nest/XPack/Info/XPackUsage Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ public class XPackUsageResponse : ResponseBase
52
52
public XPackUsage DataFrame { get ; internal set ; }
53
53
54
54
[ DataMember ( Name = "flattened" ) ]
55
- public XPackUsage Flattened { get ; internal set ; }
55
+ public FlattenedUsage Flattened { get ; internal set ; }
56
56
57
57
[ DataMember ( Name = "data_science" ) ]
58
58
public XPackUsage DataScience { get ; internal set ; }
@@ -148,6 +148,15 @@ public class XPackUsage
148
148
public bool Enabled { get ; internal set ; }
149
149
}
150
150
151
+ public class FlattenedUsage : XPackUsage
152
+ {
153
+ /// <summary>
154
+ /// Available in Elasticsearch 7.6.0+
155
+ /// </summary>
156
+ [ DataMember ( Name = "field_count" ) ]
157
+ public int ? FieldCount { get ; internal set ; }
158
+ }
159
+
151
160
public class VectorUsage : XPackUsage
152
161
{
153
162
[ DataMember ( Name = "dense_vector_fields_count" ) ]
Original file line number Diff line number Diff line change @@ -115,6 +115,9 @@ [I] public async Task XPackUsageResponse() => await Assert<XPackUsageResponse>(X
115
115
#pragma warning disable 618
116
116
r . DataFrame . Should ( ) . NotBeNull ( ) ;
117
117
#pragma warning restore 618
118
+
119
+ if ( TestConfiguration . Instance . InRange ( ">=7.6.0" ) )
120
+ r . Flattened . FieldCount . Should ( ) . HaveValue ( ) ;
118
121
}
119
122
120
123
if ( TestConfiguration . Instance . InRange ( ">=7.5.0" ) )
You can’t perform that action at this time.
0 commit comments