File tree 2 files changed +13
-1
lines changed
src/Nest/XPack/Info/XPackUsage
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 @@ -117,6 +117,9 @@ [I] public async Task XPackUsageResponse() => await Assert<XPackUsageResponse>(X
117
117
#pragma warning disable 618
118
118
r . DataFrame . Should ( ) . NotBeNull ( ) ;
119
119
#pragma warning restore 618
120
+
121
+ if ( TestConfiguration . Instance . InRange ( ">=7.6.0" ) )
122
+ r . Flattened . FieldCount . Should ( ) . HaveValue ( ) ;
120
123
}
121
124
122
125
if ( TestConfiguration . Instance . InRange ( ">=7.5.0" ) )
You can’t perform that action at this time.
0 commit comments