@@ -284,8 +284,10 @@ func (r CommitTestResultListResponseItemsGoalSubtype) IsKnown() bool {
284
284
285
285
type CommitTestResultListResponseItemsGoalThreshold struct {
286
286
// The insight name to be evaluated.
287
- InsightName string `json:"insightName"`
288
- // The insight parameters. Required only for some test subtypes.
287
+ InsightName CommitTestResultListResponseItemsGoalThresholdsInsightName `json:"insightName"`
288
+ // The insight parameters. Required only for some test subtypes. For example, for
289
+ // tests that require a column name, the insight parameters will be [{'name':
290
+ // 'column_name', 'value': 'Age'}]
289
291
InsightParameters []CommitTestResultListResponseItemsGoalThresholdsInsightParameter `json:"insightParameters,nullable"`
290
292
// The measurement to be evaluated.
291
293
Measurement string `json:"measurement"`
@@ -319,6 +321,54 @@ func (r commitTestResultListResponseItemsGoalThresholdJSON) RawJSON() string {
319
321
return r .raw
320
322
}
321
323
324
+ // The insight name to be evaluated.
325
+ type CommitTestResultListResponseItemsGoalThresholdsInsightName string
326
+
327
+ const (
328
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameCharacterLength CommitTestResultListResponseItemsGoalThresholdsInsightName = "characterLength"
329
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameClassImbalance CommitTestResultListResponseItemsGoalThresholdsInsightName = "classImbalance"
330
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameExpectColumnAToBeInColumnB CommitTestResultListResponseItemsGoalThresholdsInsightName = "expectColumnAToBeInColumnB"
331
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameColumnAverage CommitTestResultListResponseItemsGoalThresholdsInsightName = "columnAverage"
332
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameColumnDrift CommitTestResultListResponseItemsGoalThresholdsInsightName = "columnDrift"
333
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameColumnValuesMatch CommitTestResultListResponseItemsGoalThresholdsInsightName = "columnValuesMatch"
334
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameConfidenceDistribution CommitTestResultListResponseItemsGoalThresholdsInsightName = "confidenceDistribution"
335
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameConflictingLabelRowCount CommitTestResultListResponseItemsGoalThresholdsInsightName = "conflictingLabelRowCount"
336
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameContainsPii CommitTestResultListResponseItemsGoalThresholdsInsightName = "containsPii"
337
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameContainsValidURL CommitTestResultListResponseItemsGoalThresholdsInsightName = "containsValidUrl"
338
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameCorrelatedFeatures CommitTestResultListResponseItemsGoalThresholdsInsightName = "correlatedFeatures"
339
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameCustomMetric CommitTestResultListResponseItemsGoalThresholdsInsightName = "customMetric"
340
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameDuplicateRowCount CommitTestResultListResponseItemsGoalThresholdsInsightName = "duplicateRowCount"
341
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameEmptyFeatures CommitTestResultListResponseItemsGoalThresholdsInsightName = "emptyFeatures"
342
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameFeatureDrift CommitTestResultListResponseItemsGoalThresholdsInsightName = "featureDrift"
343
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameFeatureProfile CommitTestResultListResponseItemsGoalThresholdsInsightName = "featureProfile"
344
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameGreatExpectations CommitTestResultListResponseItemsGoalThresholdsInsightName = "greatExpectations"
345
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameGroupByColumnStatsCheck CommitTestResultListResponseItemsGoalThresholdsInsightName = "groupByColumnStatsCheck"
346
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameIllFormedRowCount CommitTestResultListResponseItemsGoalThresholdsInsightName = "illFormedRowCount"
347
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameIsCode CommitTestResultListResponseItemsGoalThresholdsInsightName = "isCode"
348
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameIsJson CommitTestResultListResponseItemsGoalThresholdsInsightName = "isJson"
349
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameLlmRubricV2 CommitTestResultListResponseItemsGoalThresholdsInsightName = "llmRubricV2"
350
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameLabelDrift CommitTestResultListResponseItemsGoalThresholdsInsightName = "labelDrift"
351
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameMetrics CommitTestResultListResponseItemsGoalThresholdsInsightName = "metrics"
352
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameNewCategories CommitTestResultListResponseItemsGoalThresholdsInsightName = "newCategories"
353
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameNewLabels CommitTestResultListResponseItemsGoalThresholdsInsightName = "newLabels"
354
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameNullRowCount CommitTestResultListResponseItemsGoalThresholdsInsightName = "nullRowCount"
355
+ CommitTestResultListResponseItemsGoalThresholdsInsightNamePpScore CommitTestResultListResponseItemsGoalThresholdsInsightName = "ppScore"
356
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameQuasiConstantFeatures CommitTestResultListResponseItemsGoalThresholdsInsightName = "quasiConstantFeatures"
357
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameSentenceLength CommitTestResultListResponseItemsGoalThresholdsInsightName = "sentenceLength"
358
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameSizeRatio CommitTestResultListResponseItemsGoalThresholdsInsightName = "sizeRatio"
359
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameSpecialCharacters CommitTestResultListResponseItemsGoalThresholdsInsightName = "specialCharacters"
360
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameStringValidation CommitTestResultListResponseItemsGoalThresholdsInsightName = "stringValidation"
361
+ CommitTestResultListResponseItemsGoalThresholdsInsightNameTrainValLeakageRowCount CommitTestResultListResponseItemsGoalThresholdsInsightName = "trainValLeakageRowCount"
362
+ )
363
+
364
+ func (r CommitTestResultListResponseItemsGoalThresholdsInsightName ) IsKnown () bool {
365
+ switch r {
366
+ case CommitTestResultListResponseItemsGoalThresholdsInsightNameCharacterLength , CommitTestResultListResponseItemsGoalThresholdsInsightNameClassImbalance , CommitTestResultListResponseItemsGoalThresholdsInsightNameExpectColumnAToBeInColumnB , CommitTestResultListResponseItemsGoalThresholdsInsightNameColumnAverage , CommitTestResultListResponseItemsGoalThresholdsInsightNameColumnDrift , CommitTestResultListResponseItemsGoalThresholdsInsightNameColumnValuesMatch , CommitTestResultListResponseItemsGoalThresholdsInsightNameConfidenceDistribution , CommitTestResultListResponseItemsGoalThresholdsInsightNameConflictingLabelRowCount , CommitTestResultListResponseItemsGoalThresholdsInsightNameContainsPii , CommitTestResultListResponseItemsGoalThresholdsInsightNameContainsValidURL , CommitTestResultListResponseItemsGoalThresholdsInsightNameCorrelatedFeatures , CommitTestResultListResponseItemsGoalThresholdsInsightNameCustomMetric , CommitTestResultListResponseItemsGoalThresholdsInsightNameDuplicateRowCount , CommitTestResultListResponseItemsGoalThresholdsInsightNameEmptyFeatures , CommitTestResultListResponseItemsGoalThresholdsInsightNameFeatureDrift , CommitTestResultListResponseItemsGoalThresholdsInsightNameFeatureProfile , CommitTestResultListResponseItemsGoalThresholdsInsightNameGreatExpectations , CommitTestResultListResponseItemsGoalThresholdsInsightNameGroupByColumnStatsCheck , CommitTestResultListResponseItemsGoalThresholdsInsightNameIllFormedRowCount , CommitTestResultListResponseItemsGoalThresholdsInsightNameIsCode , CommitTestResultListResponseItemsGoalThresholdsInsightNameIsJson , CommitTestResultListResponseItemsGoalThresholdsInsightNameLlmRubricV2 , CommitTestResultListResponseItemsGoalThresholdsInsightNameLabelDrift , CommitTestResultListResponseItemsGoalThresholdsInsightNameMetrics , CommitTestResultListResponseItemsGoalThresholdsInsightNameNewCategories , CommitTestResultListResponseItemsGoalThresholdsInsightNameNewLabels , CommitTestResultListResponseItemsGoalThresholdsInsightNameNullRowCount , CommitTestResultListResponseItemsGoalThresholdsInsightNamePpScore , CommitTestResultListResponseItemsGoalThresholdsInsightNameQuasiConstantFeatures , CommitTestResultListResponseItemsGoalThresholdsInsightNameSentenceLength , CommitTestResultListResponseItemsGoalThresholdsInsightNameSizeRatio , CommitTestResultListResponseItemsGoalThresholdsInsightNameSpecialCharacters , CommitTestResultListResponseItemsGoalThresholdsInsightNameStringValidation , CommitTestResultListResponseItemsGoalThresholdsInsightNameTrainValLeakageRowCount :
367
+ return true
368
+ }
369
+ return false
370
+ }
371
+
322
372
type CommitTestResultListResponseItemsGoalThresholdsInsightParameter struct {
323
373
// The name of the insight filter.
324
374
Name string `json:"name,required"`
0 commit comments