AlertMutingRule
Provides a SignalFx resource for managing alert muting rules. See Mute Notifications for more information.
WARNING SignalFx does not allow the start time of a currently active muting rule to be modified. As such, attempting to modify a currently active rule will destroy the existing rule and create a new rule. This may result in the emission of notifications.
Example Usage
using Pulumi;
using SignalFx = Pulumi.SignalFx;
class MyStack : Stack
{
public MyStack()
{
var roolMooterOne = new SignalFx.AlertMutingRule("roolMooterOne", new SignalFx.AlertMutingRuleArgs
{
Description = "mooted it NEW",
StartTime = 1573063243,
StopTime = 0,
Detectors =
{
signalfx_detector.Some_detector_id,
},
Filters =
{
new SignalFx.Inputs.AlertMutingRuleFilterArgs
{
Property = "foo",
PropertyValue = "bar",
},
},
});
}
}
Coming soon!
import pulumi
import pulumi_signalfx as signalfx
rool_mooter_one = signalfx.AlertMutingRule("roolMooterOne",
description="mooted it NEW",
start_time=1573063243,
stop_time=0,
detectors=[signalfx_detector["some_detector_id"]],
filters=[signalfx.AlertMutingRuleFilterArgs(
property="foo",
property_value="bar",
)])
import * as pulumi from "@pulumi/pulumi";
import * as signalfx from "@pulumi/signalfx";
const roolMooterOne = new signalfx.AlertMutingRule("roolMooterOne", {
description: "mooted it NEW",
startTime: 1573063243,
stopTime: 0,
detectors: [signalfx_detector.some_detector_id],
filters: [{
property: "foo",
propertyValue: "bar",
}],
});
Create a AlertMutingRule Resource
new AlertMutingRule(name: string, args: AlertMutingRuleArgs, opts?: CustomResourceOptions);
def AlertMutingRule(resource_name: str, opts: Optional[ResourceOptions] = None, description: Optional[str] = None, detectors: Optional[Sequence[str]] = None, filters: Optional[Sequence[AlertMutingRuleFilterArgs]] = None, start_time: Optional[int] = None, stop_time: Optional[int] = None)
func NewAlertMutingRule(ctx *Context, name string, args AlertMutingRuleArgs, opts ...ResourceOption) (*AlertMutingRule, error)
public AlertMutingRule(string name, AlertMutingRuleArgs args, CustomResourceOptions? opts = null)
- name string
- The unique name of the resource.
- args AlertMutingRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AlertMutingRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlertMutingRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
AlertMutingRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The AlertMutingRule resource accepts the following input properties:
- Description string
The description for this muting rule
- Filters
List<Pulumi.
Signal Fx. Inputs. Alert Muting Rule Filter Args> Filters for this rule. See Creating muting rules from scratch for more information.
- Start
Time int Starting time of an alert muting rule as a Unit time stamp in seconds.
- Detectors List<string>
A convenience attribute that associated this muting rule with specific detector ids.
- Stop
Time int Starting time of an alert muting rule as a Unix time stamp in seconds.
- Description string
The description for this muting rule
- Filters
[]Alert
Muting Rule Filter Filters for this rule. See Creating muting rules from scratch for more information.
- Start
Time int Starting time of an alert muting rule as a Unit time stamp in seconds.
- Detectors []string
A convenience attribute that associated this muting rule with specific detector ids.
- Stop
Time int Starting time of an alert muting rule as a Unix time stamp in seconds.
- description string
The description for this muting rule
- filters
Alert
Muting Rule Filter[] Filters for this rule. See Creating muting rules from scratch for more information.
- start
Time number Starting time of an alert muting rule as a Unit time stamp in seconds.
- detectors string[]
A convenience attribute that associated this muting rule with specific detector ids.
- stop
Time number Starting time of an alert muting rule as a Unix time stamp in seconds.
- description str
The description for this muting rule
- filters
Sequence[Alert
Muting Rule Filter Args] Filters for this rule. See Creating muting rules from scratch for more information.
- start_
time int Starting time of an alert muting rule as a Unit time stamp in seconds.
- detectors Sequence[str]
A convenience attribute that associated this muting rule with specific detector ids.
- stop_
time int Starting time of an alert muting rule as a Unix time stamp in seconds.
Outputs
All input properties are implicitly available as output properties. Additionally, the AlertMutingRule resource produces the following output properties:
- Effective
Start intTime - Id string
- The provider-assigned unique ID for this managed resource.
- Effective
Start intTime - Id string
- The provider-assigned unique ID for this managed resource.
- effective
Start numberTime - id string
- The provider-assigned unique ID for this managed resource.
- effective_
start_ inttime - id str
- The provider-assigned unique ID for this managed resource.
Look up an Existing AlertMutingRule Resource
Get an existing AlertMutingRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AlertMutingRuleState, opts?: CustomResourceOptions): AlertMutingRule
@staticmethod
def get(resource_name: str, id: str, opts: Optional[ResourceOptions] = None, description: Optional[str] = None, detectors: Optional[Sequence[str]] = None, effective_start_time: Optional[int] = None, filters: Optional[Sequence[AlertMutingRuleFilterArgs]] = None, start_time: Optional[int] = None, stop_time: Optional[int] = None) -> AlertMutingRule
func GetAlertMutingRule(ctx *Context, name string, id IDInput, state *AlertMutingRuleState, opts ...ResourceOption) (*AlertMutingRule, error)
public static AlertMutingRule Get(string name, Input<string> id, AlertMutingRuleState? state, CustomResourceOptions? opts = null)
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Description string
The description for this muting rule
- Detectors List<string>
A convenience attribute that associated this muting rule with specific detector ids.
- Effective
Start intTime - Filters
List<Pulumi.
Signal Fx. Inputs. Alert Muting Rule Filter Args> Filters for this rule. See Creating muting rules from scratch for more information.
- Start
Time int Starting time of an alert muting rule as a Unit time stamp in seconds.
- Stop
Time int Starting time of an alert muting rule as a Unix time stamp in seconds.
- Description string
The description for this muting rule
- Detectors []string
A convenience attribute that associated this muting rule with specific detector ids.
- Effective
Start intTime - Filters
[]Alert
Muting Rule Filter Filters for this rule. See Creating muting rules from scratch for more information.
- Start
Time int Starting time of an alert muting rule as a Unit time stamp in seconds.
- Stop
Time int Starting time of an alert muting rule as a Unix time stamp in seconds.
- description string
The description for this muting rule
- detectors string[]
A convenience attribute that associated this muting rule with specific detector ids.
- effective
Start numberTime - filters
Alert
Muting Rule Filter[] Filters for this rule. See Creating muting rules from scratch for more information.
- start
Time number Starting time of an alert muting rule as a Unit time stamp in seconds.
- stop
Time number Starting time of an alert muting rule as a Unix time stamp in seconds.
- description str
The description for this muting rule
- detectors Sequence[str]
A convenience attribute that associated this muting rule with specific detector ids.
- effective_
start_ inttime - filters
Sequence[Alert
Muting Rule Filter Args] Filters for this rule. See Creating muting rules from scratch for more information.
- start_
time int Starting time of an alert muting rule as a Unit time stamp in seconds.
- stop_
time int Starting time of an alert muting rule as a Unix time stamp in seconds.
Supporting Types
AlertMutingRuleFilter
- Property string
The property to filter.
- Property
Value string The property value to filter.
- Negated bool
Determines if this is a “not” filter. Defaults to
false
.
- Property string
The property to filter.
- Property
Value string The property value to filter.
- Negated bool
Determines if this is a “not” filter. Defaults to
false
.
- property string
The property to filter.
- property
Value string The property value to filter.
- negated boolean
Determines if this is a “not” filter. Defaults to
false
.
- property str
The property to filter.
- property_
value str The property value to filter.
- negated bool
Determines if this is a “not” filter. Defaults to
false
.
Package Details
- Repository
- https://github.com/pulumi/pulumi-signalfx
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
signalfx
Terraform Provider.