rootly.WorkflowAlert
Explore with Pulumi AI
Example Usage
using Pulumi;
using Rootly = Pulumi.Rootly;
class MyStack : Stack
{
public MyStack()
{
var my_workflow = new Rootly.WorkflowAlert("my-workflow", new Rootly.WorkflowAlertArgs
{
Description = "This workflow will trigger when an alert is created",
Enabled = true,
TriggerParams = new Rootly.Inputs.WorkflowAlertTriggerParamsArgs
{
Triggers =
{
"alert_created",
},
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-rootly/sdk/go/rootly"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rootly.NewWorkflowAlert(ctx, "my-workflow", &rootly.WorkflowAlertArgs{
Description: pulumi.String("This workflow will trigger when an alert is created"),
Enabled: pulumi.Bool(true),
TriggerParams: &WorkflowAlertTriggerParamsArgs{
Triggers: pulumi.StringArray{
pulumi.String("alert_created"),
},
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_rootly as rootly
my_workflow = rootly.WorkflowAlert("my-workflow",
description="This workflow will trigger when an alert is created",
enabled=True,
trigger_params=rootly.WorkflowAlertTriggerParamsArgs(
triggers=["alert_created"],
))
import * as pulumi from "@pulumi/pulumi";
import * as rootly from "@pulumi/rootly";
const my_workflow = new rootly.WorkflowAlert("my-workflow", {
description: "This workflow will trigger when an alert is created",
enabled: true,
triggerParams: {
triggers: ["alert_created"],
},
});
Coming soon!
Create WorkflowAlert Resource
new WorkflowAlert(name: string, args?: WorkflowAlertArgs, opts?: CustomResourceOptions);
@overload
def WorkflowAlert(resource_name: str,
opts: Optional[ResourceOptions] = None,
command: Optional[str] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
environment_ids: Optional[Sequence[str]] = None,
group_ids: Optional[Sequence[str]] = None,
incident_role_ids: Optional[Sequence[str]] = None,
incident_type_ids: Optional[Sequence[str]] = None,
name: Optional[str] = None,
position: Optional[int] = None,
repeat_every_duration: Optional[str] = None,
repeat_ons: Optional[Sequence[str]] = None,
service_ids: Optional[Sequence[str]] = None,
severity_ids: Optional[Sequence[str]] = None,
slug: Optional[str] = None,
trigger_params: Optional[WorkflowAlertTriggerParamsArgs] = None,
wait: Optional[str] = None,
workflow_group_id: Optional[str] = None)
@overload
def WorkflowAlert(resource_name: str,
args: Optional[WorkflowAlertArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewWorkflowAlert(ctx *Context, name string, args *WorkflowAlertArgs, opts ...ResourceOption) (*WorkflowAlert, error)
public WorkflowAlert(string name, WorkflowAlertArgs? args = null, CustomResourceOptions? opts = null)
public WorkflowAlert(String name, WorkflowAlertArgs args)
public WorkflowAlert(String name, WorkflowAlertArgs args, CustomResourceOptions options)
type: rootly:WorkflowAlert
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkflowAlertArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args WorkflowAlertArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args WorkflowAlertArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkflowAlertArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WorkflowAlertArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
WorkflowAlert Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The WorkflowAlert resource accepts the following input properties:
- Command string
Workflow command.
- Description string
The description of the workflow
- Enabled bool
- Environment
Ids List<string> - Group
Ids List<string> - Incident
Role List<string>Ids - Incident
Type List<string>Ids - Name string
The title of the workflow
- Position int
The order which the workflow should run with other workflows.
- Repeat
Every stringDuration Repeat workflow every duration.
- Repeat
Ons List<string> Value must be one of
S
,M
,T
,W
,R
,F
,U
.- Service
Ids List<string> - Severity
Ids List<string> - Slug string
The slug of the workflow
- Trigger
Params WorkflowAlert Trigger Params - Wait string
Wait this duration before executing.
- Workflow
Group stringId The group this workflow belongs to.
- Command string
Workflow command.
- Description string
The description of the workflow
- Enabled bool
- Environment
Ids []string - Group
Ids []string - Incident
Role []stringIds - Incident
Type []stringIds - Name string
The title of the workflow
- Position int
The order which the workflow should run with other workflows.
- Repeat
Every stringDuration Repeat workflow every duration.
- Repeat
Ons []string Value must be one of
S
,M
,T
,W
,R
,F
,U
.- Service
Ids []string - Severity
Ids []string - Slug string
The slug of the workflow
- Trigger
Params WorkflowAlert Trigger Params Args - Wait string
Wait this duration before executing.
- Workflow
Group stringId The group this workflow belongs to.
- command String
Workflow command.
- description String
The description of the workflow
- enabled Boolean
- environment
Ids List<String> - group
Ids List<String> - incident
Role List<String>Ids - incident
Type List<String>Ids - name String
The title of the workflow
- position Integer
The order which the workflow should run with other workflows.
- repeat
Every StringDuration Repeat workflow every duration.
- repeat
Ons List<String> Value must be one of
S
,M
,T
,W
,R
,F
,U
.- service
Ids List<String> - severity
Ids List<String> - slug String
The slug of the workflow
- trigger
Params WorkflowAlert Trigger Params - wait_ String
Wait this duration before executing.
- workflow
Group StringId The group this workflow belongs to.
- command string
Workflow command.
- description string
The description of the workflow
- enabled boolean
- environment
Ids string[] - group
Ids string[] - incident
Role string[]Ids - incident
Type string[]Ids - name string
The title of the workflow
- position number
The order which the workflow should run with other workflows.
- repeat
Every stringDuration Repeat workflow every duration.
- repeat
Ons string[] Value must be one of
S
,M
,T
,W
,R
,F
,U
.- service
Ids string[] - severity
Ids string[] - slug string
The slug of the workflow
- trigger
Params WorkflowAlert Trigger Params - wait string
Wait this duration before executing.
- workflow
Group stringId The group this workflow belongs to.
- command str
Workflow command.
- description str
The description of the workflow
- enabled bool
- environment_
ids Sequence[str] - group_
ids Sequence[str] - incident_
role_ Sequence[str]ids - incident_
type_ Sequence[str]ids - name str
The title of the workflow
- position int
The order which the workflow should run with other workflows.
- repeat_
every_ strduration Repeat workflow every duration.
- repeat_
ons Sequence[str] Value must be one of
S
,M
,T
,W
,R
,F
,U
.- service_
ids Sequence[str] - severity_
ids Sequence[str] - slug str
The slug of the workflow
- trigger_
params WorkflowAlert Trigger Params Args - wait str
Wait this duration before executing.
- workflow_
group_ strid The group this workflow belongs to.
- command String
Workflow command.
- description String
The description of the workflow
- enabled Boolean
- environment
Ids List<String> - group
Ids List<String> - incident
Role List<String>Ids - incident
Type List<String>Ids - name String
The title of the workflow
- position Number
The order which the workflow should run with other workflows.
- repeat
Every StringDuration Repeat workflow every duration.
- repeat
Ons List<String> Value must be one of
S
,M
,T
,W
,R
,F
,U
.- service
Ids List<String> - severity
Ids List<String> - slug String
The slug of the workflow
- trigger
Params Property Map - wait String
Wait this duration before executing.
- workflow
Group StringId The group this workflow belongs to.
Outputs
All input properties are implicitly available as output properties. Additionally, the WorkflowAlert resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing WorkflowAlert Resource
Get an existing WorkflowAlert 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?: WorkflowAlertState, opts?: CustomResourceOptions): WorkflowAlert
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
command: Optional[str] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
environment_ids: Optional[Sequence[str]] = None,
group_ids: Optional[Sequence[str]] = None,
incident_role_ids: Optional[Sequence[str]] = None,
incident_type_ids: Optional[Sequence[str]] = None,
name: Optional[str] = None,
position: Optional[int] = None,
repeat_every_duration: Optional[str] = None,
repeat_ons: Optional[Sequence[str]] = None,
service_ids: Optional[Sequence[str]] = None,
severity_ids: Optional[Sequence[str]] = None,
slug: Optional[str] = None,
trigger_params: Optional[WorkflowAlertTriggerParamsArgs] = None,
wait: Optional[str] = None,
workflow_group_id: Optional[str] = None) -> WorkflowAlert
func GetWorkflowAlert(ctx *Context, name string, id IDInput, state *WorkflowAlertState, opts ...ResourceOption) (*WorkflowAlert, error)
public static WorkflowAlert Get(string name, Input<string> id, WorkflowAlertState? state, CustomResourceOptions? opts = null)
public static WorkflowAlert get(String name, Output<String> id, WorkflowAlertState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Command string
Workflow command.
- Description string
The description of the workflow
- Enabled bool
- Environment
Ids List<string> - Group
Ids List<string> - Incident
Role List<string>Ids - Incident
Type List<string>Ids - Name string
The title of the workflow
- Position int
The order which the workflow should run with other workflows.
- Repeat
Every stringDuration Repeat workflow every duration.
- Repeat
Ons List<string> Value must be one of
S
,M
,T
,W
,R
,F
,U
.- Service
Ids List<string> - Severity
Ids List<string> - Slug string
The slug of the workflow
- Trigger
Params WorkflowAlert Trigger Params - Wait string
Wait this duration before executing.
- Workflow
Group stringId The group this workflow belongs to.
- Command string
Workflow command.
- Description string
The description of the workflow
- Enabled bool
- Environment
Ids []string - Group
Ids []string - Incident
Role []stringIds - Incident
Type []stringIds - Name string
The title of the workflow
- Position int
The order which the workflow should run with other workflows.
- Repeat
Every stringDuration Repeat workflow every duration.
- Repeat
Ons []string Value must be one of
S
,M
,T
,W
,R
,F
,U
.- Service
Ids []string - Severity
Ids []string - Slug string
The slug of the workflow
- Trigger
Params WorkflowAlert Trigger Params Args - Wait string
Wait this duration before executing.
- Workflow
Group stringId The group this workflow belongs to.
- command String
Workflow command.
- description String
The description of the workflow
- enabled Boolean
- environment
Ids List<String> - group
Ids List<String> - incident
Role List<String>Ids - incident
Type List<String>Ids - name String
The title of the workflow
- position Integer
The order which the workflow should run with other workflows.
- repeat
Every StringDuration Repeat workflow every duration.
- repeat
Ons List<String> Value must be one of
S
,M
,T
,W
,R
,F
,U
.- service
Ids List<String> - severity
Ids List<String> - slug String
The slug of the workflow
- trigger
Params WorkflowAlert Trigger Params - wait_ String
Wait this duration before executing.
- workflow
Group StringId The group this workflow belongs to.
- command string
Workflow command.
- description string
The description of the workflow
- enabled boolean
- environment
Ids string[] - group
Ids string[] - incident
Role string[]Ids - incident
Type string[]Ids - name string
The title of the workflow
- position number
The order which the workflow should run with other workflows.
- repeat
Every stringDuration Repeat workflow every duration.
- repeat
Ons string[] Value must be one of
S
,M
,T
,W
,R
,F
,U
.- service
Ids string[] - severity
Ids string[] - slug string
The slug of the workflow
- trigger
Params WorkflowAlert Trigger Params - wait string
Wait this duration before executing.
- workflow
Group stringId The group this workflow belongs to.
- command str
Workflow command.
- description str
The description of the workflow
- enabled bool
- environment_
ids Sequence[str] - group_
ids Sequence[str] - incident_
role_ Sequence[str]ids - incident_
type_ Sequence[str]ids - name str
The title of the workflow
- position int
The order which the workflow should run with other workflows.
- repeat_
every_ strduration Repeat workflow every duration.
- repeat_
ons Sequence[str] Value must be one of
S
,M
,T
,W
,R
,F
,U
.- service_
ids Sequence[str] - severity_
ids Sequence[str] - slug str
The slug of the workflow
- trigger_
params WorkflowAlert Trigger Params Args - wait str
Wait this duration before executing.
- workflow_
group_ strid The group this workflow belongs to.
- command String
Workflow command.
- description String
The description of the workflow
- enabled Boolean
- environment
Ids List<String> - group
Ids List<String> - incident
Role List<String>Ids - incident
Type List<String>Ids - name String
The title of the workflow
- position Number
The order which the workflow should run with other workflows.
- repeat
Every StringDuration Repeat workflow every duration.
- repeat
Ons List<String> Value must be one of
S
,M
,T
,W
,R
,F
,U
.- service
Ids List<String> - severity
Ids List<String> - slug String
The slug of the workflow
- trigger
Params Property Map - wait String
Wait this duration before executing.
- workflow
Group StringId The group this workflow belongs to.
Supporting Types
WorkflowAlertTriggerParams, WorkflowAlertTriggerParamsArgs
- Alert
Condition string - Alert
Condition stringLabel - Alert
Condition boolLabel Use Regexp - Alert
Condition stringPayload - Alert
Condition boolPayload Use Regexp - Alert
Condition stringSource - Alert
Condition boolSource Use Regexp - Alert
Labels List<string> - Alert
Payloads List<string> - Alert
Query stringPayload - Alert
Sources List<string> - Trigger
Type string - Triggers List<string>
- Alert
Condition string - Alert
Condition stringLabel - Alert
Condition boolLabel Use Regexp - Alert
Condition stringPayload - Alert
Condition boolPayload Use Regexp - Alert
Condition stringSource - Alert
Condition boolSource Use Regexp - Alert
Labels []string - Alert
Payloads []string - Alert
Query stringPayload - Alert
Sources []string - Trigger
Type string - Triggers []string
- alert
Condition String - alert
Condition StringLabel - alert
Condition BooleanLabel Use Regexp - alert
Condition StringPayload - alert
Condition BooleanPayload Use Regexp - alert
Condition StringSource - alert
Condition BooleanSource Use Regexp - alert
Labels List<String> - alert
Payloads List<String> - alert
Query StringPayload - alert
Sources List<String> - trigger
Type String - triggers List<String>
- alert
Condition string - alert
Condition stringLabel - alert
Condition booleanLabel Use Regexp - alert
Condition stringPayload - alert
Condition booleanPayload Use Regexp - alert
Condition stringSource - alert
Condition booleanSource Use Regexp - alert
Labels string[] - alert
Payloads string[] - alert
Query stringPayload - alert
Sources string[] - trigger
Type string - triggers string[]
- alert_
condition str - alert_
condition_ strlabel - alert_
condition_ boollabel_ use_ regexp - alert_
condition_ strpayload - alert_
condition_ boolpayload_ use_ regexp - alert_
condition_ strsource - alert_
condition_ boolsource_ use_ regexp - alert_
labels Sequence[str] - alert_
payloads Sequence[str] - alert_
query_ strpayload - alert_
sources Sequence[str] - trigger_
type str - triggers Sequence[str]
- alert
Condition String - alert
Condition StringLabel - alert
Condition BooleanLabel Use Regexp - alert
Condition StringPayload - alert
Condition BooleanPayload Use Regexp - alert
Condition StringSource - alert
Condition BooleanSource Use Regexp - alert
Labels List<String> - alert
Payloads List<String> - alert
Query StringPayload - alert
Sources List<String> - trigger
Type String - triggers List<String>
Package Details
- Repository
- rootly rootlyhq/pulumi-rootly
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
rootly
Terraform Provider.