From d62a9f355ab7ffe5b0d72c76003cd0c87c22dee6 Mon Sep 17 00:00:00 2001 From: Dawid Walasek Date: Tue, 2 Jul 2024 10:26:17 +0200 Subject: [PATCH] detector: extend detector model with detectorOrigin and parentDetectorId fields --- detector/model_detector.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/detector/model_detector.go b/detector/model_detector.go index 5ae2c86..183af89 100644 --- a/detector/model_detector.go +++ b/detector/model_detector.go @@ -50,4 +50,8 @@ type Detector struct { Teams []string `json:"teams"` // Options that control the appearance of a detector in the SignalFx web UI. VisualizationOptions *Visualization `json:"visualizationOptions,omitempty"` + // ID of the parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. + ParentDetectorId string `json:"parentDetectorId,omitempty"` + // Indicates how a detector was created. The possible values are: Standard, AutoDetect, AutoDetectCustomization.You can only use Standard or AutoDetectCustomization to create custom detectors. + DetectorOrigin string `json:"detectorOrigin,omitempty"` }