Skip to content

Commit

Permalink
detector: extend detector create model with detectorOrigin and parent…
Browse files Browse the repository at this point in the history
…DetectorId fields (#219)
  • Loading branch information
dwalasek authored Jul 10, 2024
1 parent cbbf4ec commit 19ba8d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions detector/model_create_detector_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,8 @@ type CreateUpdateDetectorRequest 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"`
}
4 changes: 4 additions & 0 deletions detector/model_validate_detector_request_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,8 @@ type ValidateDetectorRequestModel struct {
Teams []string `json:"teams,omitempty"`
// Options that control the appearance of a detector in the SignalFx web UI. Each element in the array is a 'Visualization'.
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"`
}

0 comments on commit 19ba8d1

Please sign in to comment.