Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

detector: extend detector create model with detectorOrigin and parentDetectorId #219

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"`
}
Loading