1. Packages
  2. Grafana Cloud
  3. API Docs
  4. OncallRoute
Grafana v0.4.2 published on Monday, Apr 15, 2024 by pulumiverse

grafana.OncallRoute

Explore with Pulumi AI

grafana logo
Grafana v0.4.2 published on Monday, Apr 15, 2024 by pulumiverse

    Create OncallRoute Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new OncallRoute(name: string, args: OncallRouteArgs, opts?: CustomResourceOptions);
    @overload
    def OncallRoute(resource_name: str,
                    args: OncallRouteArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def OncallRoute(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    escalation_chain_id: Optional[str] = None,
                    integration_id: Optional[str] = None,
                    position: Optional[int] = None,
                    routing_regex: Optional[str] = None,
                    msteams: Optional[OncallRouteMsteamsArgs] = None,
                    routing_type: Optional[str] = None,
                    slack: Optional[OncallRouteSlackArgs] = None,
                    telegram: Optional[OncallRouteTelegramArgs] = None)
    func NewOncallRoute(ctx *Context, name string, args OncallRouteArgs, opts ...ResourceOption) (*OncallRoute, error)
    public OncallRoute(string name, OncallRouteArgs args, CustomResourceOptions? opts = null)
    public OncallRoute(String name, OncallRouteArgs args)
    public OncallRoute(String name, OncallRouteArgs args, CustomResourceOptions options)
    
    type: grafana:OncallRoute
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args OncallRouteArgs
    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 OncallRouteArgs
    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 OncallRouteArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OncallRouteArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OncallRouteArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var oncallRouteResource = new Grafana.OncallRoute("oncallRouteResource", new()
    {
        EscalationChainId = "string",
        IntegrationId = "string",
        Position = 0,
        RoutingRegex = "string",
        Msteams = new Grafana.Inputs.OncallRouteMsteamsArgs
        {
            Enabled = false,
            Id = "string",
        },
        RoutingType = "string",
        Slack = new Grafana.Inputs.OncallRouteSlackArgs
        {
            ChannelId = "string",
            Enabled = false,
        },
        Telegram = new Grafana.Inputs.OncallRouteTelegramArgs
        {
            Enabled = false,
            Id = "string",
        },
    });
    
    example, err := grafana.NewOncallRoute(ctx, "oncallRouteResource", &grafana.OncallRouteArgs{
    	EscalationChainId: pulumi.String("string"),
    	IntegrationId:     pulumi.String("string"),
    	Position:          pulumi.Int(0),
    	RoutingRegex:      pulumi.String("string"),
    	Msteams: &grafana.OncallRouteMsteamsArgs{
    		Enabled: pulumi.Bool(false),
    		Id:      pulumi.String("string"),
    	},
    	RoutingType: pulumi.String("string"),
    	Slack: &grafana.OncallRouteSlackArgs{
    		ChannelId: pulumi.String("string"),
    		Enabled:   pulumi.Bool(false),
    	},
    	Telegram: &grafana.OncallRouteTelegramArgs{
    		Enabled: pulumi.Bool(false),
    		Id:      pulumi.String("string"),
    	},
    })
    
    var oncallRouteResource = new OncallRoute("oncallRouteResource", OncallRouteArgs.builder()        
        .escalationChainId("string")
        .integrationId("string")
        .position(0)
        .routingRegex("string")
        .msteams(OncallRouteMsteamsArgs.builder()
            .enabled(false)
            .id("string")
            .build())
        .routingType("string")
        .slack(OncallRouteSlackArgs.builder()
            .channelId("string")
            .enabled(false)
            .build())
        .telegram(OncallRouteTelegramArgs.builder()
            .enabled(false)
            .id("string")
            .build())
        .build());
    
    oncall_route_resource = grafana.OncallRoute("oncallRouteResource",
        escalation_chain_id="string",
        integration_id="string",
        position=0,
        routing_regex="string",
        msteams=grafana.OncallRouteMsteamsArgs(
            enabled=False,
            id="string",
        ),
        routing_type="string",
        slack=grafana.OncallRouteSlackArgs(
            channel_id="string",
            enabled=False,
        ),
        telegram=grafana.OncallRouteTelegramArgs(
            enabled=False,
            id="string",
        ))
    
    const oncallRouteResource = new grafana.OncallRoute("oncallRouteResource", {
        escalationChainId: "string",
        integrationId: "string",
        position: 0,
        routingRegex: "string",
        msteams: {
            enabled: false,
            id: "string",
        },
        routingType: "string",
        slack: {
            channelId: "string",
            enabled: false,
        },
        telegram: {
            enabled: false,
            id: "string",
        },
    });
    
    type: grafana:OncallRoute
    properties:
        escalationChainId: string
        integrationId: string
        msteams:
            enabled: false
            id: string
        position: 0
        routingRegex: string
        routingType: string
        slack:
            channelId: string
            enabled: false
        telegram:
            enabled: false
            id: string
    

    OncallRoute 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 OncallRoute resource accepts the following input properties:

    EscalationChainId string
    The ID of the escalation chain.
    IntegrationId string
    The ID of the integration.
    Position int
    The position of the route (starts from 0).
    RoutingRegex string
    Python Regex query. Route is chosen for an alert if there is a match inside the alert payload.
    Msteams Pulumiverse.Grafana.Inputs.OncallRouteMsteams
    MS teams-specific settings for a route.
    RoutingType string
    The type of route. Can be jinja2, regex
    Slack Pulumiverse.Grafana.Inputs.OncallRouteSlack
    Slack-specific settings for a route.
    Telegram Pulumiverse.Grafana.Inputs.OncallRouteTelegram
    Telegram-specific settings for a route.
    EscalationChainId string
    The ID of the escalation chain.
    IntegrationId string
    The ID of the integration.
    Position int
    The position of the route (starts from 0).
    RoutingRegex string
    Python Regex query. Route is chosen for an alert if there is a match inside the alert payload.
    Msteams OncallRouteMsteamsArgs
    MS teams-specific settings for a route.
    RoutingType string
    The type of route. Can be jinja2, regex
    Slack OncallRouteSlackArgs
    Slack-specific settings for a route.
    Telegram OncallRouteTelegramArgs
    Telegram-specific settings for a route.
    escalationChainId String
    The ID of the escalation chain.
    integrationId String
    The ID of the integration.
    position Integer
    The position of the route (starts from 0).
    routingRegex String
    Python Regex query. Route is chosen for an alert if there is a match inside the alert payload.
    msteams OncallRouteMsteams
    MS teams-specific settings for a route.
    routingType String
    The type of route. Can be jinja2, regex
    slack OncallRouteSlack
    Slack-specific settings for a route.
    telegram OncallRouteTelegram
    Telegram-specific settings for a route.
    escalationChainId string
    The ID of the escalation chain.
    integrationId string
    The ID of the integration.
    position number
    The position of the route (starts from 0).
    routingRegex string
    Python Regex query. Route is chosen for an alert if there is a match inside the alert payload.
    msteams OncallRouteMsteams
    MS teams-specific settings for a route.
    routingType string
    The type of route. Can be jinja2, regex
    slack OncallRouteSlack
    Slack-specific settings for a route.
    telegram OncallRouteTelegram
    Telegram-specific settings for a route.
    escalation_chain_id str
    The ID of the escalation chain.
    integration_id str
    The ID of the integration.
    position int
    The position of the route (starts from 0).
    routing_regex str
    Python Regex query. Route is chosen for an alert if there is a match inside the alert payload.
    msteams OncallRouteMsteamsArgs
    MS teams-specific settings for a route.
    routing_type str
    The type of route. Can be jinja2, regex
    slack OncallRouteSlackArgs
    Slack-specific settings for a route.
    telegram OncallRouteTelegramArgs
    Telegram-specific settings for a route.
    escalationChainId String
    The ID of the escalation chain.
    integrationId String
    The ID of the integration.
    position Number
    The position of the route (starts from 0).
    routingRegex String
    Python Regex query. Route is chosen for an alert if there is a match inside the alert payload.
    msteams Property Map
    MS teams-specific settings for a route.
    routingType String
    The type of route. Can be jinja2, regex
    slack Property Map
    Slack-specific settings for a route.
    telegram Property Map
    Telegram-specific settings for a route.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the OncallRoute 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 OncallRoute Resource

    Get an existing OncallRoute 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?: OncallRouteState, opts?: CustomResourceOptions): OncallRoute
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            escalation_chain_id: Optional[str] = None,
            integration_id: Optional[str] = None,
            msteams: Optional[OncallRouteMsteamsArgs] = None,
            position: Optional[int] = None,
            routing_regex: Optional[str] = None,
            routing_type: Optional[str] = None,
            slack: Optional[OncallRouteSlackArgs] = None,
            telegram: Optional[OncallRouteTelegramArgs] = None) -> OncallRoute
    func GetOncallRoute(ctx *Context, name string, id IDInput, state *OncallRouteState, opts ...ResourceOption) (*OncallRoute, error)
    public static OncallRoute Get(string name, Input<string> id, OncallRouteState? state, CustomResourceOptions? opts = null)
    public static OncallRoute get(String name, Output<String> id, OncallRouteState 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.
    The following state arguments are supported:
    EscalationChainId string
    The ID of the escalation chain.
    IntegrationId string
    The ID of the integration.
    Msteams Pulumiverse.Grafana.Inputs.OncallRouteMsteams
    MS teams-specific settings for a route.
    Position int
    The position of the route (starts from 0).
    RoutingRegex string
    Python Regex query. Route is chosen for an alert if there is a match inside the alert payload.
    RoutingType string
    The type of route. Can be jinja2, regex
    Slack Pulumiverse.Grafana.Inputs.OncallRouteSlack
    Slack-specific settings for a route.
    Telegram Pulumiverse.Grafana.Inputs.OncallRouteTelegram
    Telegram-specific settings for a route.
    EscalationChainId string
    The ID of the escalation chain.
    IntegrationId string
    The ID of the integration.
    Msteams OncallRouteMsteamsArgs
    MS teams-specific settings for a route.
    Position int
    The position of the route (starts from 0).
    RoutingRegex string
    Python Regex query. Route is chosen for an alert if there is a match inside the alert payload.
    RoutingType string
    The type of route. Can be jinja2, regex
    Slack OncallRouteSlackArgs
    Slack-specific settings for a route.
    Telegram OncallRouteTelegramArgs
    Telegram-specific settings for a route.
    escalationChainId String
    The ID of the escalation chain.
    integrationId String
    The ID of the integration.
    msteams OncallRouteMsteams
    MS teams-specific settings for a route.
    position Integer
    The position of the route (starts from 0).
    routingRegex String
    Python Regex query. Route is chosen for an alert if there is a match inside the alert payload.
    routingType String
    The type of route. Can be jinja2, regex
    slack OncallRouteSlack
    Slack-specific settings for a route.
    telegram OncallRouteTelegram
    Telegram-specific settings for a route.
    escalationChainId string
    The ID of the escalation chain.
    integrationId string
    The ID of the integration.
    msteams OncallRouteMsteams
    MS teams-specific settings for a route.
    position number
    The position of the route (starts from 0).
    routingRegex string
    Python Regex query. Route is chosen for an alert if there is a match inside the alert payload.
    routingType string
    The type of route. Can be jinja2, regex
    slack OncallRouteSlack
    Slack-specific settings for a route.
    telegram OncallRouteTelegram
    Telegram-specific settings for a route.
    escalation_chain_id str
    The ID of the escalation chain.
    integration_id str
    The ID of the integration.
    msteams OncallRouteMsteamsArgs
    MS teams-specific settings for a route.
    position int
    The position of the route (starts from 0).
    routing_regex str
    Python Regex query. Route is chosen for an alert if there is a match inside the alert payload.
    routing_type str
    The type of route. Can be jinja2, regex
    slack OncallRouteSlackArgs
    Slack-specific settings for a route.
    telegram OncallRouteTelegramArgs
    Telegram-specific settings for a route.
    escalationChainId String
    The ID of the escalation chain.
    integrationId String
    The ID of the integration.
    msteams Property Map
    MS teams-specific settings for a route.
    position Number
    The position of the route (starts from 0).
    routingRegex String
    Python Regex query. Route is chosen for an alert if there is a match inside the alert payload.
    routingType String
    The type of route. Can be jinja2, regex
    slack Property Map
    Slack-specific settings for a route.
    telegram Property Map
    Telegram-specific settings for a route.

    Supporting Types

    OncallRouteMsteams, OncallRouteMsteamsArgs

    Enabled bool
    Enable notification in MS teams.
    Id string
    MS teams channel id. Alerts will be directed to this channel in Microsoft teams.
    Enabled bool
    Enable notification in MS teams.
    Id string
    MS teams channel id. Alerts will be directed to this channel in Microsoft teams.
    enabled Boolean
    Enable notification in MS teams.
    id String
    MS teams channel id. Alerts will be directed to this channel in Microsoft teams.
    enabled boolean
    Enable notification in MS teams.
    id string
    MS teams channel id. Alerts will be directed to this channel in Microsoft teams.
    enabled bool
    Enable notification in MS teams.
    id str
    MS teams channel id. Alerts will be directed to this channel in Microsoft teams.
    enabled Boolean
    Enable notification in MS teams.
    id String
    MS teams channel id. Alerts will be directed to this channel in Microsoft teams.

    OncallRouteSlack, OncallRouteSlackArgs

    ChannelId string
    Slack channel id. Alerts will be directed to this channel in Slack.
    Enabled bool
    Enable notification in Slack.
    ChannelId string
    Slack channel id. Alerts will be directed to this channel in Slack.
    Enabled bool
    Enable notification in Slack.
    channelId String
    Slack channel id. Alerts will be directed to this channel in Slack.
    enabled Boolean
    Enable notification in Slack.
    channelId string
    Slack channel id. Alerts will be directed to this channel in Slack.
    enabled boolean
    Enable notification in Slack.
    channel_id str
    Slack channel id. Alerts will be directed to this channel in Slack.
    enabled bool
    Enable notification in Slack.
    channelId String
    Slack channel id. Alerts will be directed to this channel in Slack.
    enabled Boolean
    Enable notification in Slack.

    OncallRouteTelegram, OncallRouteTelegramArgs

    Enabled bool
    Enable notification in Telegram.
    Id string
    Telegram channel id. Alerts will be directed to this channel in Telegram.
    Enabled bool
    Enable notification in Telegram.
    Id string
    Telegram channel id. Alerts will be directed to this channel in Telegram.
    enabled Boolean
    Enable notification in Telegram.
    id String
    Telegram channel id. Alerts will be directed to this channel in Telegram.
    enabled boolean
    Enable notification in Telegram.
    id string
    Telegram channel id. Alerts will be directed to this channel in Telegram.
    enabled bool
    Enable notification in Telegram.
    id str
    Telegram channel id. Alerts will be directed to this channel in Telegram.
    enabled Boolean
    Enable notification in Telegram.
    id String
    Telegram channel id. Alerts will be directed to this channel in Telegram.

    Package Details

    Repository
    grafana pulumiverse/pulumi-grafana
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the grafana Terraform Provider.
    grafana logo
    Grafana v0.4.2 published on Monday, Apr 15, 2024 by pulumiverse