diff --git a/sdk/dotnet/Detector.cs b/sdk/dotnet/Detector.cs index 25ddc6e7..de260e19 100644 --- a/sdk/dotnet/Detector.cs +++ b/sdk/dotnet/Detector.cs @@ -89,6 +89,12 @@ public partial class Detector : global::Pulumi.CustomResource [Output("description")] public Output Description { get; private set; } = null!; + /// + /// Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + /// + [Output("detectorOrigin")] + public Output DetectorOrigin { get; private set; } = null!; + /// /// When `false`, the visualization may sample the output timeseries rather than displaying them all. `false` by default. /// @@ -125,6 +131,12 @@ public partial class Detector : global::Pulumi.CustomResource [Output("name")] public Output Name { get; private set; } = null!; + /// + /// ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + /// + [Output("parentDetectorId")] + public Output ParentDetectorId { get; private set; } = null!; + /// /// Signalflow program text for the detector. More info [in the Splunk Observability Cloud docs](https://dev.splunk.com/observability/docs/signalflow/). /// @@ -267,6 +279,12 @@ public InputList AuthorizedWriterUsers [Input("description")] public Input? Description { get; set; } + /// + /// Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + /// + [Input("detectorOrigin")] + public Input? DetectorOrigin { get; set; } + /// /// When `false`, the visualization may sample the output timeseries rather than displaying them all. `false` by default. /// @@ -297,6 +315,12 @@ public InputList AuthorizedWriterUsers [Input("name")] public Input? Name { get; set; } + /// + /// ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + /// + [Input("parentDetectorId")] + public Input? ParentDetectorId { get; set; } + /// /// Signalflow program text for the detector. More info [in the Splunk Observability Cloud docs](https://dev.splunk.com/observability/docs/signalflow/). /// @@ -419,6 +443,12 @@ public InputList AuthorizedWriterUsers [Input("description")] public Input? Description { get; set; } + /// + /// Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + /// + [Input("detectorOrigin")] + public Input? DetectorOrigin { get; set; } + /// /// When `false`, the visualization may sample the output timeseries rather than displaying them all. `false` by default. /// @@ -461,6 +491,12 @@ public InputMap LabelResolutions [Input("name")] public Input? Name { get; set; } + /// + /// ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + /// + [Input("parentDetectorId")] + public Input? ParentDetectorId { get; set; } + /// /// Signalflow program text for the detector. More info [in the Splunk Observability Cloud docs](https://dev.splunk.com/observability/docs/signalflow/). /// diff --git a/sdk/go/signalfx/detector.go b/sdk/go/signalfx/detector.go index 05555810..1e39cb4c 100644 --- a/sdk/go/signalfx/detector.go +++ b/sdk/go/signalfx/detector.go @@ -78,6 +78,8 @@ type Detector struct { AuthorizedWriterUsers pulumi.StringArrayOutput `pulumi:"authorizedWriterUsers"` // Description of the detector. Description pulumi.StringPtrOutput `pulumi:"description"` + // Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + DetectorOrigin pulumi.StringPtrOutput `pulumi:"detectorOrigin"` // When `false`, the visualization may sample the output timeseries rather than displaying them all. `false` by default. DisableSampling pulumi.BoolPtrOutput `pulumi:"disableSampling"` // Seconds since epoch. Used for visualization. Conflicts with `timeRange`. @@ -90,6 +92,8 @@ type Detector struct { MinDelay pulumi.IntPtrOutput `pulumi:"minDelay"` // Name of the detector. Name pulumi.StringOutput `pulumi:"name"` + // ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + ParentDetectorId pulumi.StringPtrOutput `pulumi:"parentDetectorId"` // Signalflow program text for the detector. More info [in the Splunk Observability Cloud docs](https://dev.splunk.com/observability/docs/signalflow/). ProgramText pulumi.StringOutput `pulumi:"programText"` // Set of rules used for alerting. @@ -156,6 +160,8 @@ type detectorState struct { AuthorizedWriterUsers []string `pulumi:"authorizedWriterUsers"` // Description of the detector. Description *string `pulumi:"description"` + // Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + DetectorOrigin *string `pulumi:"detectorOrigin"` // When `false`, the visualization may sample the output timeseries rather than displaying them all. `false` by default. DisableSampling *bool `pulumi:"disableSampling"` // Seconds since epoch. Used for visualization. Conflicts with `timeRange`. @@ -168,6 +174,8 @@ type detectorState struct { MinDelay *int `pulumi:"minDelay"` // Name of the detector. Name *string `pulumi:"name"` + // ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + ParentDetectorId *string `pulumi:"parentDetectorId"` // Signalflow program text for the detector. More info [in the Splunk Observability Cloud docs](https://dev.splunk.com/observability/docs/signalflow/). ProgramText *string `pulumi:"programText"` // Set of rules used for alerting. @@ -199,6 +207,8 @@ type DetectorState struct { AuthorizedWriterUsers pulumi.StringArrayInput // Description of the detector. Description pulumi.StringPtrInput + // Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + DetectorOrigin pulumi.StringPtrInput // When `false`, the visualization may sample the output timeseries rather than displaying them all. `false` by default. DisableSampling pulumi.BoolPtrInput // Seconds since epoch. Used for visualization. Conflicts with `timeRange`. @@ -211,6 +221,8 @@ type DetectorState struct { MinDelay pulumi.IntPtrInput // Name of the detector. Name pulumi.StringPtrInput + // ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + ParentDetectorId pulumi.StringPtrInput // Signalflow program text for the detector. More info [in the Splunk Observability Cloud docs](https://dev.splunk.com/observability/docs/signalflow/). ProgramText pulumi.StringPtrInput // Set of rules used for alerting. @@ -246,6 +258,8 @@ type detectorArgs struct { AuthorizedWriterUsers []string `pulumi:"authorizedWriterUsers"` // Description of the detector. Description *string `pulumi:"description"` + // Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + DetectorOrigin *string `pulumi:"detectorOrigin"` // When `false`, the visualization may sample the output timeseries rather than displaying them all. `false` by default. DisableSampling *bool `pulumi:"disableSampling"` // Seconds since epoch. Used for visualization. Conflicts with `timeRange`. @@ -256,6 +270,8 @@ type detectorArgs struct { MinDelay *int `pulumi:"minDelay"` // Name of the detector. Name *string `pulumi:"name"` + // ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + ParentDetectorId *string `pulumi:"parentDetectorId"` // Signalflow program text for the detector. More info [in the Splunk Observability Cloud docs](https://dev.splunk.com/observability/docs/signalflow/). ProgramText string `pulumi:"programText"` // Set of rules used for alerting. @@ -286,6 +302,8 @@ type DetectorArgs struct { AuthorizedWriterUsers pulumi.StringArrayInput // Description of the detector. Description pulumi.StringPtrInput + // Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + DetectorOrigin pulumi.StringPtrInput // When `false`, the visualization may sample the output timeseries rather than displaying them all. `false` by default. DisableSampling pulumi.BoolPtrInput // Seconds since epoch. Used for visualization. Conflicts with `timeRange`. @@ -296,6 +314,8 @@ type DetectorArgs struct { MinDelay pulumi.IntPtrInput // Name of the detector. Name pulumi.StringPtrInput + // ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + ParentDetectorId pulumi.StringPtrInput // Signalflow program text for the detector. More info [in the Splunk Observability Cloud docs](https://dev.splunk.com/observability/docs/signalflow/). ProgramText pulumi.StringInput // Set of rules used for alerting. @@ -420,6 +440,11 @@ func (o DetectorOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *Detector) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } +// Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. +func (o DetectorOutput) DetectorOrigin() pulumi.StringPtrOutput { + return o.ApplyT(func(v *Detector) pulumi.StringPtrOutput { return v.DetectorOrigin }).(pulumi.StringPtrOutput) +} + // When `false`, the visualization may sample the output timeseries rather than displaying them all. `false` by default. func (o DetectorOutput) DisableSampling() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Detector) pulumi.BoolPtrOutput { return v.DisableSampling }).(pulumi.BoolPtrOutput) @@ -450,6 +475,11 @@ func (o DetectorOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *Detector) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } +// ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. +func (o DetectorOutput) ParentDetectorId() pulumi.StringPtrOutput { + return o.ApplyT(func(v *Detector) pulumi.StringPtrOutput { return v.ParentDetectorId }).(pulumi.StringPtrOutput) +} + // Signalflow program text for the detector. More info [in the Splunk Observability Cloud docs](https://dev.splunk.com/observability/docs/signalflow/). func (o DetectorOutput) ProgramText() pulumi.StringOutput { return o.ApplyT(func(v *Detector) pulumi.StringOutput { return v.ProgramText }).(pulumi.StringOutput) diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/Detector.java b/sdk/java/src/main/java/com/pulumi/signalfx/Detector.java index 11a1d5be..2c8084da 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/Detector.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/Detector.java @@ -124,6 +124,20 @@ public Output>> authorizedWriterUsers() { public Output> description() { return Codegen.optional(this.description); } + /** + * Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + * + */ + @Export(name="detectorOrigin", refs={String.class}, tree="[0]") + private Output detectorOrigin; + + /** + * @return Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + * + */ + public Output> detectorOrigin() { + return Codegen.optional(this.detectorOrigin); + } /** * When `false`, the visualization may sample the output timeseries rather than displaying them all. `false` by default. * @@ -208,6 +222,20 @@ public Output> minDelay() { public Output name() { return this.name; } + /** + * ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + * + */ + @Export(name="parentDetectorId", refs={String.class}, tree="[0]") + private Output parentDetectorId; + + /** + * @return ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + * + */ + public Output> parentDetectorId() { + return Codegen.optional(this.parentDetectorId); + } /** * Signalflow program text for the detector. More info [in the Splunk Observability Cloud docs](https://dev.splunk.com/observability/docs/signalflow/). * diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/DetectorArgs.java b/sdk/java/src/main/java/com/pulumi/signalfx/DetectorArgs.java index 4a7ed927..2473c6a2 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/DetectorArgs.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/DetectorArgs.java @@ -66,6 +66,21 @@ public Optional> description() { return Optional.ofNullable(this.description); } + /** + * Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + * + */ + @Import(name="detectorOrigin") + private @Nullable Output detectorOrigin; + + /** + * @return Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + * + */ + public Optional> detectorOrigin() { + return Optional.ofNullable(this.detectorOrigin); + } + /** * When `false`, the visualization may sample the output timeseries rather than displaying them all. `false` by default. * @@ -141,6 +156,21 @@ public Optional> name() { return Optional.ofNullable(this.name); } + /** + * ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + * + */ + @Import(name="parentDetectorId") + private @Nullable Output parentDetectorId; + + /** + * @return ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + * + */ + public Optional> parentDetectorId() { + return Optional.ofNullable(this.parentDetectorId); + } + /** * Signalflow program text for the detector. More info [in the Splunk Observability Cloud docs](https://dev.splunk.com/observability/docs/signalflow/). * @@ -297,11 +327,13 @@ private DetectorArgs(DetectorArgs $) { this.authorizedWriterTeams = $.authorizedWriterTeams; this.authorizedWriterUsers = $.authorizedWriterUsers; this.description = $.description; + this.detectorOrigin = $.detectorOrigin; this.disableSampling = $.disableSampling; this.endTime = $.endTime; this.maxDelay = $.maxDelay; this.minDelay = $.minDelay; this.name = $.name; + this.parentDetectorId = $.parentDetectorId; this.programText = $.programText; this.rules = $.rules; this.showDataMarkers = $.showDataMarkers; @@ -415,6 +447,27 @@ public Builder description(String description) { return description(Output.of(description)); } + /** + * @param detectorOrigin Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + * + * @return builder + * + */ + public Builder detectorOrigin(@Nullable Output detectorOrigin) { + $.detectorOrigin = detectorOrigin; + return this; + } + + /** + * @param detectorOrigin Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + * + * @return builder + * + */ + public Builder detectorOrigin(String detectorOrigin) { + return detectorOrigin(Output.of(detectorOrigin)); + } + /** * @param disableSampling When `false`, the visualization may sample the output timeseries rather than displaying them all. `false` by default. * @@ -520,6 +573,27 @@ public Builder name(String name) { return name(Output.of(name)); } + /** + * @param parentDetectorId ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + * + * @return builder + * + */ + public Builder parentDetectorId(@Nullable Output parentDetectorId) { + $.parentDetectorId = parentDetectorId; + return this; + } + + /** + * @param parentDetectorId ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + * + * @return builder + * + */ + public Builder parentDetectorId(String parentDetectorId) { + return parentDetectorId(Output.of(parentDetectorId)); + } + /** * @param programText Signalflow program text for the detector. More info [in the Splunk Observability Cloud docs](https://dev.splunk.com/observability/docs/signalflow/). * diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/inputs/DetectorState.java b/sdk/java/src/main/java/com/pulumi/signalfx/inputs/DetectorState.java index 303ea415..833811c0 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/inputs/DetectorState.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/inputs/DetectorState.java @@ -66,6 +66,21 @@ public Optional> description() { return Optional.ofNullable(this.description); } + /** + * Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + * + */ + @Import(name="detectorOrigin") + private @Nullable Output detectorOrigin; + + /** + * @return Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + * + */ + public Optional> detectorOrigin() { + return Optional.ofNullable(this.detectorOrigin); + } + /** * When `false`, the visualization may sample the output timeseries rather than displaying them all. `false` by default. * @@ -156,6 +171,21 @@ public Optional> name() { return Optional.ofNullable(this.name); } + /** + * ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + * + */ + @Import(name="parentDetectorId") + private @Nullable Output parentDetectorId; + + /** + * @return ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + * + */ + public Optional> parentDetectorId() { + return Optional.ofNullable(this.parentDetectorId); + } + /** * Signalflow program text for the detector. More info [in the Splunk Observability Cloud docs](https://dev.splunk.com/observability/docs/signalflow/). * @@ -327,12 +357,14 @@ private DetectorState(DetectorState $) { this.authorizedWriterTeams = $.authorizedWriterTeams; this.authorizedWriterUsers = $.authorizedWriterUsers; this.description = $.description; + this.detectorOrigin = $.detectorOrigin; this.disableSampling = $.disableSampling; this.endTime = $.endTime; this.labelResolutions = $.labelResolutions; this.maxDelay = $.maxDelay; this.minDelay = $.minDelay; this.name = $.name; + this.parentDetectorId = $.parentDetectorId; this.programText = $.programText; this.rules = $.rules; this.showDataMarkers = $.showDataMarkers; @@ -447,6 +479,27 @@ public Builder description(String description) { return description(Output.of(description)); } + /** + * @param detectorOrigin Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + * + * @return builder + * + */ + public Builder detectorOrigin(@Nullable Output detectorOrigin) { + $.detectorOrigin = detectorOrigin; + return this; + } + + /** + * @param detectorOrigin Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + * + * @return builder + * + */ + public Builder detectorOrigin(String detectorOrigin) { + return detectorOrigin(Output.of(detectorOrigin)); + } + /** * @param disableSampling When `false`, the visualization may sample the output timeseries rather than displaying them all. `false` by default. * @@ -573,6 +626,27 @@ public Builder name(String name) { return name(Output.of(name)); } + /** + * @param parentDetectorId ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + * + * @return builder + * + */ + public Builder parentDetectorId(@Nullable Output parentDetectorId) { + $.parentDetectorId = parentDetectorId; + return this; + } + + /** + * @param parentDetectorId ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + * + * @return builder + * + */ + public Builder parentDetectorId(String parentDetectorId) { + return parentDetectorId(Output.of(parentDetectorId)); + } + /** * @param programText Signalflow program text for the detector. More info [in the Splunk Observability Cloud docs](https://dev.splunk.com/observability/docs/signalflow/). * diff --git a/sdk/nodejs/detector.ts b/sdk/nodejs/detector.ts index 30d3be6e..ce6fe179 100644 --- a/sdk/nodejs/detector.ts +++ b/sdk/nodejs/detector.ts @@ -105,6 +105,10 @@ export class Detector extends pulumi.CustomResource { * Description of the detector. */ public readonly description!: pulumi.Output; + /** + * Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + */ + public readonly detectorOrigin!: pulumi.Output; /** * When `false`, the visualization may sample the output timeseries rather than displaying them all. `false` by default. */ @@ -129,6 +133,10 @@ export class Detector extends pulumi.CustomResource { * Name of the detector. */ public readonly name!: pulumi.Output; + /** + * ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + */ + public readonly parentDetectorId!: pulumi.Output; /** * Signalflow program text for the detector. More info [in the Splunk Observability Cloud docs](https://dev.splunk.com/observability/docs/signalflow/). */ @@ -190,12 +198,14 @@ export class Detector extends pulumi.CustomResource { resourceInputs["authorizedWriterTeams"] = state ? state.authorizedWriterTeams : undefined; resourceInputs["authorizedWriterUsers"] = state ? state.authorizedWriterUsers : undefined; resourceInputs["description"] = state ? state.description : undefined; + resourceInputs["detectorOrigin"] = state ? state.detectorOrigin : undefined; resourceInputs["disableSampling"] = state ? state.disableSampling : undefined; resourceInputs["endTime"] = state ? state.endTime : undefined; resourceInputs["labelResolutions"] = state ? state.labelResolutions : undefined; resourceInputs["maxDelay"] = state ? state.maxDelay : undefined; resourceInputs["minDelay"] = state ? state.minDelay : undefined; resourceInputs["name"] = state ? state.name : undefined; + resourceInputs["parentDetectorId"] = state ? state.parentDetectorId : undefined; resourceInputs["programText"] = state ? state.programText : undefined; resourceInputs["rules"] = state ? state.rules : undefined; resourceInputs["showDataMarkers"] = state ? state.showDataMarkers : undefined; @@ -218,11 +228,13 @@ export class Detector extends pulumi.CustomResource { resourceInputs["authorizedWriterTeams"] = args ? args.authorizedWriterTeams : undefined; resourceInputs["authorizedWriterUsers"] = args ? args.authorizedWriterUsers : undefined; resourceInputs["description"] = args ? args.description : undefined; + resourceInputs["detectorOrigin"] = args ? args.detectorOrigin : undefined; resourceInputs["disableSampling"] = args ? args.disableSampling : undefined; resourceInputs["endTime"] = args ? args.endTime : undefined; resourceInputs["maxDelay"] = args ? args.maxDelay : undefined; resourceInputs["minDelay"] = args ? args.minDelay : undefined; resourceInputs["name"] = args ? args.name : undefined; + resourceInputs["parentDetectorId"] = args ? args.parentDetectorId : undefined; resourceInputs["programText"] = args ? args.programText : undefined; resourceInputs["rules"] = args ? args.rules : undefined; resourceInputs["showDataMarkers"] = args ? args.showDataMarkers : undefined; @@ -257,6 +269,10 @@ export interface DetectorState { * Description of the detector. */ description?: pulumi.Input; + /** + * Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + */ + detectorOrigin?: pulumi.Input; /** * When `false`, the visualization may sample the output timeseries rather than displaying them all. `false` by default. */ @@ -281,6 +297,10 @@ export interface DetectorState { * Name of the detector. */ name?: pulumi.Input; + /** + * ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + */ + parentDetectorId?: pulumi.Input; /** * Signalflow program text for the detector. More info [in the Splunk Observability Cloud docs](https://dev.splunk.com/observability/docs/signalflow/). */ @@ -343,6 +363,10 @@ export interface DetectorArgs { * Description of the detector. */ description?: pulumi.Input; + /** + * Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + */ + detectorOrigin?: pulumi.Input; /** * When `false`, the visualization may sample the output timeseries rather than displaying them all. `false` by default. */ @@ -363,6 +387,10 @@ export interface DetectorArgs { * Name of the detector. */ name?: pulumi.Input; + /** + * ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + */ + parentDetectorId?: pulumi.Input; /** * Signalflow program text for the detector. More info [in the Splunk Observability Cloud docs](https://dev.splunk.com/observability/docs/signalflow/). */ diff --git a/sdk/python/pulumi_signalfx/detector.py b/sdk/python/pulumi_signalfx/detector.py index 443321ac..b78b2a74 100644 --- a/sdk/python/pulumi_signalfx/detector.py +++ b/sdk/python/pulumi_signalfx/detector.py @@ -21,11 +21,13 @@ def __init__(__self__, *, authorized_writer_teams: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, authorized_writer_users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, description: Optional[pulumi.Input[str]] = None, + detector_origin: Optional[pulumi.Input[str]] = None, disable_sampling: Optional[pulumi.Input[bool]] = None, end_time: Optional[pulumi.Input[int]] = None, max_delay: Optional[pulumi.Input[int]] = None, min_delay: Optional[pulumi.Input[int]] = None, name: Optional[pulumi.Input[str]] = None, + parent_detector_id: Optional[pulumi.Input[str]] = None, show_data_markers: Optional[pulumi.Input[bool]] = None, show_event_lines: Optional[pulumi.Input[bool]] = None, start_time: Optional[pulumi.Input[int]] = None, @@ -41,11 +43,13 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] authorized_writer_teams: Team IDs that have write access to this detector. Remember to use an admin's token if using this feature and to include that admin's team id (or user id in `authorized_writer_users`). :param pulumi.Input[Sequence[pulumi.Input[str]]] authorized_writer_users: User IDs that have write access to this detector. Remember to use an admin's token if using this feature and to include that admin's user id (or team id in `authorized_writer_teams`). :param pulumi.Input[str] description: Description of the detector. + :param pulumi.Input[str] detector_origin: Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. :param pulumi.Input[bool] disable_sampling: When `false`, the visualization may sample the output timeseries rather than displaying them all. `false` by default. :param pulumi.Input[int] end_time: Seconds since epoch. Used for visualization. Conflicts with `time_range`. :param pulumi.Input[int] max_delay: allows Splunk Observability Cloud to continue with computation if there is a lag in receiving data points. :param pulumi.Input[int] min_delay: How long (in seconds) to wait even if the datapoints are arriving in a timely fashion. Max value is 900 (15m). :param pulumi.Input[str] name: Name of the detector. + :param pulumi.Input[str] parent_detector_id: ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. :param pulumi.Input[bool] show_data_markers: When `true`, markers will be drawn for each datapoint within the visualization. `true` by default. :param pulumi.Input[bool] show_event_lines: When `true`, the visualization will display a vertical line for each event trigger. `false` by default. :param pulumi.Input[int] start_time: Seconds since epoch. Used for visualization. Conflicts with `time_range`. @@ -63,6 +67,8 @@ def __init__(__self__, *, pulumi.set(__self__, "authorized_writer_users", authorized_writer_users) if description is not None: pulumi.set(__self__, "description", description) + if detector_origin is not None: + pulumi.set(__self__, "detector_origin", detector_origin) if disable_sampling is not None: pulumi.set(__self__, "disable_sampling", disable_sampling) if end_time is not None: @@ -73,6 +79,8 @@ def __init__(__self__, *, pulumi.set(__self__, "min_delay", min_delay) if name is not None: pulumi.set(__self__, "name", name) + if parent_detector_id is not None: + pulumi.set(__self__, "parent_detector_id", parent_detector_id) if show_data_markers is not None: pulumi.set(__self__, "show_data_markers", show_data_markers) if show_event_lines is not None: @@ -150,6 +158,18 @@ def description(self) -> Optional[pulumi.Input[str]]: def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) + @property + @pulumi.getter(name="detectorOrigin") + def detector_origin(self) -> Optional[pulumi.Input[str]]: + """ + Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + """ + return pulumi.get(self, "detector_origin") + + @detector_origin.setter + def detector_origin(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "detector_origin", value) + @property @pulumi.getter(name="disableSampling") def disable_sampling(self) -> Optional[pulumi.Input[bool]]: @@ -210,6 +230,18 @@ def name(self) -> Optional[pulumi.Input[str]]: def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) + @property + @pulumi.getter(name="parentDetectorId") + def parent_detector_id(self) -> Optional[pulumi.Input[str]]: + """ + ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + """ + return pulumi.get(self, "parent_detector_id") + + @parent_detector_id.setter + def parent_detector_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "parent_detector_id", value) + @property @pulumi.getter(name="showDataMarkers") def show_data_markers(self) -> Optional[pulumi.Input[bool]]: @@ -313,12 +345,14 @@ def __init__(__self__, *, authorized_writer_teams: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, authorized_writer_users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, description: Optional[pulumi.Input[str]] = None, + detector_origin: Optional[pulumi.Input[str]] = None, disable_sampling: Optional[pulumi.Input[bool]] = None, end_time: Optional[pulumi.Input[int]] = None, label_resolutions: Optional[pulumi.Input[Mapping[str, pulumi.Input[int]]]] = None, max_delay: Optional[pulumi.Input[int]] = None, min_delay: Optional[pulumi.Input[int]] = None, name: Optional[pulumi.Input[str]] = None, + parent_detector_id: Optional[pulumi.Input[str]] = None, program_text: Optional[pulumi.Input[str]] = None, rules: Optional[pulumi.Input[Sequence[pulumi.Input['DetectorRuleArgs']]]] = None, show_data_markers: Optional[pulumi.Input[bool]] = None, @@ -335,12 +369,14 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] authorized_writer_teams: Team IDs that have write access to this detector. Remember to use an admin's token if using this feature and to include that admin's team id (or user id in `authorized_writer_users`). :param pulumi.Input[Sequence[pulumi.Input[str]]] authorized_writer_users: User IDs that have write access to this detector. Remember to use an admin's token if using this feature and to include that admin's user id (or team id in `authorized_writer_teams`). :param pulumi.Input[str] description: Description of the detector. + :param pulumi.Input[str] detector_origin: Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. :param pulumi.Input[bool] disable_sampling: When `false`, the visualization may sample the output timeseries rather than displaying them all. `false` by default. :param pulumi.Input[int] end_time: Seconds since epoch. Used for visualization. Conflicts with `time_range`. :param pulumi.Input[Mapping[str, pulumi.Input[int]]] label_resolutions: The resolutions of the detector alerts in milliseconds that indicate how often data is analyzed to determine if an alert should be triggered. :param pulumi.Input[int] max_delay: allows Splunk Observability Cloud to continue with computation if there is a lag in receiving data points. :param pulumi.Input[int] min_delay: How long (in seconds) to wait even if the datapoints are arriving in a timely fashion. Max value is 900 (15m). :param pulumi.Input[str] name: Name of the detector. + :param pulumi.Input[str] parent_detector_id: ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. :param pulumi.Input[str] program_text: Signalflow program text for the detector. More info [in the Splunk Observability Cloud docs](https://dev.splunk.com/observability/docs/signalflow/). :param pulumi.Input[Sequence[pulumi.Input['DetectorRuleArgs']]] rules: Set of rules used for alerting. :param pulumi.Input[bool] show_data_markers: When `true`, markers will be drawn for each datapoint within the visualization. `true` by default. @@ -359,6 +395,8 @@ def __init__(__self__, *, pulumi.set(__self__, "authorized_writer_users", authorized_writer_users) if description is not None: pulumi.set(__self__, "description", description) + if detector_origin is not None: + pulumi.set(__self__, "detector_origin", detector_origin) if disable_sampling is not None: pulumi.set(__self__, "disable_sampling", disable_sampling) if end_time is not None: @@ -371,6 +409,8 @@ def __init__(__self__, *, pulumi.set(__self__, "min_delay", min_delay) if name is not None: pulumi.set(__self__, "name", name) + if parent_detector_id is not None: + pulumi.set(__self__, "parent_detector_id", parent_detector_id) if program_text is not None: pulumi.set(__self__, "program_text", program_text) if rules is not None: @@ -430,6 +470,18 @@ def description(self) -> Optional[pulumi.Input[str]]: def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) + @property + @pulumi.getter(name="detectorOrigin") + def detector_origin(self) -> Optional[pulumi.Input[str]]: + """ + Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + """ + return pulumi.get(self, "detector_origin") + + @detector_origin.setter + def detector_origin(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "detector_origin", value) + @property @pulumi.getter(name="disableSampling") def disable_sampling(self) -> Optional[pulumi.Input[bool]]: @@ -502,6 +554,18 @@ def name(self) -> Optional[pulumi.Input[str]]: def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) + @property + @pulumi.getter(name="parentDetectorId") + def parent_detector_id(self) -> Optional[pulumi.Input[str]]: + """ + ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + """ + return pulumi.get(self, "parent_detector_id") + + @parent_detector_id.setter + def parent_detector_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "parent_detector_id", value) + @property @pulumi.getter(name="programText") def program_text(self) -> Optional[pulumi.Input[str]]: @@ -643,11 +707,13 @@ def __init__(__self__, authorized_writer_teams: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, authorized_writer_users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, description: Optional[pulumi.Input[str]] = None, + detector_origin: Optional[pulumi.Input[str]] = None, disable_sampling: Optional[pulumi.Input[bool]] = None, end_time: Optional[pulumi.Input[int]] = None, max_delay: Optional[pulumi.Input[int]] = None, min_delay: Optional[pulumi.Input[int]] = None, name: Optional[pulumi.Input[str]] = None, + parent_detector_id: Optional[pulumi.Input[str]] = None, program_text: Optional[pulumi.Input[str]] = None, rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DetectorRuleArgs']]]]] = None, show_data_markers: Optional[pulumi.Input[bool]] = None, @@ -723,11 +789,13 @@ def __init__(__self__, :param pulumi.Input[Sequence[pulumi.Input[str]]] authorized_writer_teams: Team IDs that have write access to this detector. Remember to use an admin's token if using this feature and to include that admin's team id (or user id in `authorized_writer_users`). :param pulumi.Input[Sequence[pulumi.Input[str]]] authorized_writer_users: User IDs that have write access to this detector. Remember to use an admin's token if using this feature and to include that admin's user id (or team id in `authorized_writer_teams`). :param pulumi.Input[str] description: Description of the detector. + :param pulumi.Input[str] detector_origin: Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. :param pulumi.Input[bool] disable_sampling: When `false`, the visualization may sample the output timeseries rather than displaying them all. `false` by default. :param pulumi.Input[int] end_time: Seconds since epoch. Used for visualization. Conflicts with `time_range`. :param pulumi.Input[int] max_delay: allows Splunk Observability Cloud to continue with computation if there is a lag in receiving data points. :param pulumi.Input[int] min_delay: How long (in seconds) to wait even if the datapoints are arriving in a timely fashion. Max value is 900 (15m). :param pulumi.Input[str] name: Name of the detector. + :param pulumi.Input[str] parent_detector_id: ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. :param pulumi.Input[str] program_text: Signalflow program text for the detector. More info [in the Splunk Observability Cloud docs](https://dev.splunk.com/observability/docs/signalflow/). :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DetectorRuleArgs']]]] rules: Set of rules used for alerting. :param pulumi.Input[bool] show_data_markers: When `true`, markers will be drawn for each datapoint within the visualization. `true` by default. @@ -822,11 +890,13 @@ def _internal_init(__self__, authorized_writer_teams: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, authorized_writer_users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, description: Optional[pulumi.Input[str]] = None, + detector_origin: Optional[pulumi.Input[str]] = None, disable_sampling: Optional[pulumi.Input[bool]] = None, end_time: Optional[pulumi.Input[int]] = None, max_delay: Optional[pulumi.Input[int]] = None, min_delay: Optional[pulumi.Input[int]] = None, name: Optional[pulumi.Input[str]] = None, + parent_detector_id: Optional[pulumi.Input[str]] = None, program_text: Optional[pulumi.Input[str]] = None, rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DetectorRuleArgs']]]]] = None, show_data_markers: Optional[pulumi.Input[bool]] = None, @@ -849,11 +919,13 @@ def _internal_init(__self__, __props__.__dict__["authorized_writer_teams"] = authorized_writer_teams __props__.__dict__["authorized_writer_users"] = authorized_writer_users __props__.__dict__["description"] = description + __props__.__dict__["detector_origin"] = detector_origin __props__.__dict__["disable_sampling"] = disable_sampling __props__.__dict__["end_time"] = end_time __props__.__dict__["max_delay"] = max_delay __props__.__dict__["min_delay"] = min_delay __props__.__dict__["name"] = name + __props__.__dict__["parent_detector_id"] = parent_detector_id if program_text is None and not opts.urn: raise TypeError("Missing required property 'program_text'") __props__.__dict__["program_text"] = program_text @@ -883,12 +955,14 @@ def get(resource_name: str, authorized_writer_teams: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, authorized_writer_users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, description: Optional[pulumi.Input[str]] = None, + detector_origin: Optional[pulumi.Input[str]] = None, disable_sampling: Optional[pulumi.Input[bool]] = None, end_time: Optional[pulumi.Input[int]] = None, label_resolutions: Optional[pulumi.Input[Mapping[str, pulumi.Input[int]]]] = None, max_delay: Optional[pulumi.Input[int]] = None, min_delay: Optional[pulumi.Input[int]] = None, name: Optional[pulumi.Input[str]] = None, + parent_detector_id: Optional[pulumi.Input[str]] = None, program_text: Optional[pulumi.Input[str]] = None, rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DetectorRuleArgs']]]]] = None, show_data_markers: Optional[pulumi.Input[bool]] = None, @@ -910,12 +984,14 @@ def get(resource_name: str, :param pulumi.Input[Sequence[pulumi.Input[str]]] authorized_writer_teams: Team IDs that have write access to this detector. Remember to use an admin's token if using this feature and to include that admin's team id (or user id in `authorized_writer_users`). :param pulumi.Input[Sequence[pulumi.Input[str]]] authorized_writer_users: User IDs that have write access to this detector. Remember to use an admin's token if using this feature and to include that admin's user id (or team id in `authorized_writer_teams`). :param pulumi.Input[str] description: Description of the detector. + :param pulumi.Input[str] detector_origin: Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. :param pulumi.Input[bool] disable_sampling: When `false`, the visualization may sample the output timeseries rather than displaying them all. `false` by default. :param pulumi.Input[int] end_time: Seconds since epoch. Used for visualization. Conflicts with `time_range`. :param pulumi.Input[Mapping[str, pulumi.Input[int]]] label_resolutions: The resolutions of the detector alerts in milliseconds that indicate how often data is analyzed to determine if an alert should be triggered. :param pulumi.Input[int] max_delay: allows Splunk Observability Cloud to continue with computation if there is a lag in receiving data points. :param pulumi.Input[int] min_delay: How long (in seconds) to wait even if the datapoints are arriving in a timely fashion. Max value is 900 (15m). :param pulumi.Input[str] name: Name of the detector. + :param pulumi.Input[str] parent_detector_id: ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. :param pulumi.Input[str] program_text: Signalflow program text for the detector. More info [in the Splunk Observability Cloud docs](https://dev.splunk.com/observability/docs/signalflow/). :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DetectorRuleArgs']]]] rules: Set of rules used for alerting. :param pulumi.Input[bool] show_data_markers: When `true`, markers will be drawn for each datapoint within the visualization. `true` by default. @@ -935,12 +1011,14 @@ def get(resource_name: str, __props__.__dict__["authorized_writer_teams"] = authorized_writer_teams __props__.__dict__["authorized_writer_users"] = authorized_writer_users __props__.__dict__["description"] = description + __props__.__dict__["detector_origin"] = detector_origin __props__.__dict__["disable_sampling"] = disable_sampling __props__.__dict__["end_time"] = end_time __props__.__dict__["label_resolutions"] = label_resolutions __props__.__dict__["max_delay"] = max_delay __props__.__dict__["min_delay"] = min_delay __props__.__dict__["name"] = name + __props__.__dict__["parent_detector_id"] = parent_detector_id __props__.__dict__["program_text"] = program_text __props__.__dict__["rules"] = rules __props__.__dict__["show_data_markers"] = show_data_markers @@ -978,6 +1056,14 @@ def description(self) -> pulumi.Output[Optional[str]]: """ return pulumi.get(self, "description") + @property + @pulumi.getter(name="detectorOrigin") + def detector_origin(self) -> pulumi.Output[Optional[str]]: + """ + Indicates how a detector was created. The possible values are: Standard and AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + """ + return pulumi.get(self, "detector_origin") + @property @pulumi.getter(name="disableSampling") def disable_sampling(self) -> pulumi.Output[Optional[bool]]: @@ -1026,6 +1112,14 @@ def name(self) -> pulumi.Output[str]: """ return pulumi.get(self, "name") + @property + @pulumi.getter(name="parentDetectorId") + def parent_detector_id(self) -> pulumi.Output[Optional[str]]: + """ + ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. + """ + return pulumi.get(self, "parent_detector_id") + @property @pulumi.getter(name="programText") def program_text(self) -> pulumi.Output[str]: