@@ -229,12 +229,15 @@ func (r inferencePipelineTestResultListResponseItemsGoalJSON) RawJSON() string {
229
229
230
230
type InferencePipelineTestResultListResponseItemsGoalThreshold struct {
231
231
// The insight name to be evaluated.
232
- InsightName string `json:"insightName"`
233
- InsightParameters []interface {} `json:"insightParameters"`
232
+ InsightName string `json:"insightName"`
233
+ // The insight parameters. Required only for some test subtypes.
234
+ InsightParameters []InferencePipelineTestResultListResponseItemsGoalThresholdsInsightParameter `json:"insightParameters,nullable"`
234
235
// The measurement to be evaluated.
235
236
Measurement string `json:"measurement"`
236
237
// The operator to be used for the evaluation.
237
- Operator string `json:"operator"`
238
+ Operator InferencePipelineTestResultListResponseItemsGoalThresholdsOperator `json:"operator"`
239
+ // Whether to use automatic anomaly detection or manual thresholds
240
+ ThresholdMode InferencePipelineTestResultListResponseItemsGoalThresholdsThresholdMode `json:"thresholdMode"`
238
241
// The value to be compared.
239
242
Value InferencePipelineTestResultListResponseItemsGoalThresholdsValueUnion `json:"value"`
240
243
JSON inferencePipelineTestResultListResponseItemsGoalThresholdJSON `json:"-"`
@@ -248,6 +251,7 @@ type inferencePipelineTestResultListResponseItemsGoalThresholdJSON struct {
248
251
InsightParameters apijson.Field
249
252
Measurement apijson.Field
250
253
Operator apijson.Field
254
+ ThresholdMode apijson.Field
251
255
Value apijson.Field
252
256
raw string
253
257
ExtraFields map [string ]apijson.Field
@@ -261,6 +265,67 @@ func (r inferencePipelineTestResultListResponseItemsGoalThresholdJSON) RawJSON()
261
265
return r .raw
262
266
}
263
267
268
+ type InferencePipelineTestResultListResponseItemsGoalThresholdsInsightParameter struct {
269
+ // The name of the insight filter.
270
+ Name string `json:"name,required"`
271
+ Value interface {} `json:"value,required"`
272
+ JSON inferencePipelineTestResultListResponseItemsGoalThresholdsInsightParameterJSON `json:"-"`
273
+ }
274
+
275
+ // inferencePipelineTestResultListResponseItemsGoalThresholdsInsightParameterJSON
276
+ // contains the JSON metadata for the struct
277
+ // [InferencePipelineTestResultListResponseItemsGoalThresholdsInsightParameter]
278
+ type inferencePipelineTestResultListResponseItemsGoalThresholdsInsightParameterJSON struct {
279
+ Name apijson.Field
280
+ Value apijson.Field
281
+ raw string
282
+ ExtraFields map [string ]apijson.Field
283
+ }
284
+
285
+ func (r * InferencePipelineTestResultListResponseItemsGoalThresholdsInsightParameter ) UnmarshalJSON (data []byte ) (err error ) {
286
+ return apijson .UnmarshalRoot (data , r )
287
+ }
288
+
289
+ func (r inferencePipelineTestResultListResponseItemsGoalThresholdsInsightParameterJSON ) RawJSON () string {
290
+ return r .raw
291
+ }
292
+
293
+ // The operator to be used for the evaluation.
294
+ type InferencePipelineTestResultListResponseItemsGoalThresholdsOperator string
295
+
296
+ const (
297
+ InferencePipelineTestResultListResponseItemsGoalThresholdsOperatorIs InferencePipelineTestResultListResponseItemsGoalThresholdsOperator = "is"
298
+ InferencePipelineTestResultListResponseItemsGoalThresholdsOperatorGreater InferencePipelineTestResultListResponseItemsGoalThresholdsOperator = ">"
299
+ InferencePipelineTestResultListResponseItemsGoalThresholdsOperatorGreaterOrEquals InferencePipelineTestResultListResponseItemsGoalThresholdsOperator = ">="
300
+ InferencePipelineTestResultListResponseItemsGoalThresholdsOperatorLess InferencePipelineTestResultListResponseItemsGoalThresholdsOperator = "<"
301
+ InferencePipelineTestResultListResponseItemsGoalThresholdsOperatorLessOrEquals InferencePipelineTestResultListResponseItemsGoalThresholdsOperator = "<="
302
+ InferencePipelineTestResultListResponseItemsGoalThresholdsOperatorNotEquals InferencePipelineTestResultListResponseItemsGoalThresholdsOperator = "!="
303
+ )
304
+
305
+ func (r InferencePipelineTestResultListResponseItemsGoalThresholdsOperator ) IsKnown () bool {
306
+ switch r {
307
+ case InferencePipelineTestResultListResponseItemsGoalThresholdsOperatorIs , InferencePipelineTestResultListResponseItemsGoalThresholdsOperatorGreater , InferencePipelineTestResultListResponseItemsGoalThresholdsOperatorGreaterOrEquals , InferencePipelineTestResultListResponseItemsGoalThresholdsOperatorLess , InferencePipelineTestResultListResponseItemsGoalThresholdsOperatorLessOrEquals , InferencePipelineTestResultListResponseItemsGoalThresholdsOperatorNotEquals :
308
+ return true
309
+ }
310
+ return false
311
+ }
312
+
313
+ // Whether to use automatic anomaly detection or manual thresholds
314
+ type InferencePipelineTestResultListResponseItemsGoalThresholdsThresholdMode string
315
+
316
+ const (
317
+ InferencePipelineTestResultListResponseItemsGoalThresholdsThresholdModeAutomatic InferencePipelineTestResultListResponseItemsGoalThresholdsThresholdMode = "automatic"
318
+ InferencePipelineTestResultListResponseItemsGoalThresholdsThresholdModeManual InferencePipelineTestResultListResponseItemsGoalThresholdsThresholdMode = "manual"
319
+ )
320
+
321
+ func (r InferencePipelineTestResultListResponseItemsGoalThresholdsThresholdMode ) IsKnown () bool {
322
+ switch r {
323
+ case InferencePipelineTestResultListResponseItemsGoalThresholdsThresholdModeAutomatic , InferencePipelineTestResultListResponseItemsGoalThresholdsThresholdModeManual :
324
+ return true
325
+ }
326
+ return false
327
+ }
328
+
264
329
// The value to be compared.
265
330
//
266
331
// Union satisfied by [shared.UnionFloat], [shared.UnionBool], [shared.UnionString]
0 commit comments