1. Packages
  2. Grafana Cloud
  3. API Docs
  4. onCall
  5. Integration
Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse

grafana.onCall.Integration

Explore with Pulumi AI

grafana logo
Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as grafana from "@pulumiverse/grafana";
    
    const test_acc_integration = new grafana.oncall.Integration("test-acc-integration", {
        name: "my integration",
        type: "grafana",
        defaultRoute: {},
    });
    // Also it's possible to manage integration templates.
    // Check docs to see all available templates.
    const integrationWithTemplates = new grafana.oncall.Integration("integration_with_templates", {
        name: "integration_with_templates",
        type: "webhook",
        defaultRoute: {},
        templates: {
            groupingKey: "{{ payload.group_id }}",
            slack: {
                title: "Slack title",
                message: `This is example of multiline template
    {{ payload.message }}
    `,
                imageUrl: "{{ payload.image_url }}",
            },
        },
    });
    
    import pulumi
    import pulumiverse_grafana as grafana
    
    test_acc_integration = grafana.on_call.Integration("test-acc-integration",
        name="my integration",
        type="grafana",
        default_route={})
    # Also it's possible to manage integration templates.
    # Check docs to see all available templates.
    integration_with_templates = grafana.on_call.Integration("integration_with_templates",
        name="integration_with_templates",
        type="webhook",
        default_route={},
        templates={
            "grouping_key": "{{ payload.group_id }}",
            "slack": {
                "title": "Slack title",
                "message": """This is example of multiline template
    {{ payload.message }}
    """,
                "image_url": "{{ payload.image_url }}",
            },
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-grafana/sdk/go/grafana/onCall"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := onCall.NewIntegration(ctx, "test-acc-integration", &onCall.IntegrationArgs{
    			Name:         pulumi.String("my integration"),
    			Type:         pulumi.String("grafana"),
    			DefaultRoute: &oncall.IntegrationDefaultRouteArgs{},
    		})
    		if err != nil {
    			return err
    		}
    		// Also it's possible to manage integration templates.
    		// Check docs to see all available templates.
    		_, err = onCall.NewIntegration(ctx, "integration_with_templates", &onCall.IntegrationArgs{
    			Name:         pulumi.String("integration_with_templates"),
    			Type:         pulumi.String("webhook"),
    			DefaultRoute: &oncall.IntegrationDefaultRouteArgs{},
    			Templates: &oncall.IntegrationTemplatesArgs{
    				GroupingKey: pulumi.String("{{ payload.group_id }}"),
    				Slack: &oncall.IntegrationTemplatesSlackArgs{
    					Title:    pulumi.String("Slack title"),
    					Message:  pulumi.String("This is example of multiline template\n{{ payload.message }}\n"),
    					ImageUrl: pulumi.String("{{ payload.image_url }}"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Grafana = Pulumiverse.Grafana;
    
    return await Deployment.RunAsync(() => 
    {
        var test_acc_integration = new Grafana.OnCall.Integration("test-acc-integration", new()
        {
            Name = "my integration",
            Type = "grafana",
            DefaultRoute = null,
        });
    
        // Also it's possible to manage integration templates.
        // Check docs to see all available templates.
        var integrationWithTemplates = new Grafana.OnCall.Integration("integration_with_templates", new()
        {
            Name = "integration_with_templates",
            Type = "webhook",
            DefaultRoute = null,
            Templates = new Grafana.OnCall.Inputs.IntegrationTemplatesArgs
            {
                GroupingKey = "{{ payload.group_id }}",
                Slack = new Grafana.OnCall.Inputs.IntegrationTemplatesSlackArgs
                {
                    Title = "Slack title",
                    Message = @"This is example of multiline template
    {{ payload.message }}
    ",
                    ImageUrl = "{{ payload.image_url }}",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.grafana.onCall.Integration;
    import com.pulumi.grafana.onCall.IntegrationArgs;
    import com.pulumi.grafana.onCall.inputs.IntegrationDefaultRouteArgs;
    import com.pulumi.grafana.onCall.inputs.IntegrationTemplatesArgs;
    import com.pulumi.grafana.onCall.inputs.IntegrationTemplatesSlackArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var test_acc_integration = new Integration("test-acc-integration", IntegrationArgs.builder()
                .name("my integration")
                .type("grafana")
                .defaultRoute()
                .build());
    
            // Also it's possible to manage integration templates.
            // Check docs to see all available templates.
            var integrationWithTemplates = new Integration("integrationWithTemplates", IntegrationArgs.builder()
                .name("integration_with_templates")
                .type("webhook")
                .defaultRoute()
                .templates(IntegrationTemplatesArgs.builder()
                    .groupingKey("{{ payload.group_id }}")
                    .slack(IntegrationTemplatesSlackArgs.builder()
                        .title("Slack title")
                        .message("""
    This is example of multiline template
    {{ payload.message }}
                        """)
                        .imageUrl("{{ payload.image_url }}")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      test-acc-integration:
        type: grafana:onCall:Integration
        properties:
          name: my integration
          type: grafana
          defaultRoute: {}
      # Also it's possible to manage integration templates.
      # Check docs to see all available templates.
      integrationWithTemplates:
        type: grafana:onCall:Integration
        name: integration_with_templates
        properties:
          name: integration_with_templates
          type: webhook
          defaultRoute: {}
          templates:
            groupingKey: '{{ payload.group_id }}'
            slack:
              title: Slack title
              message: |
                This is example of multiline template
                {{ payload.message }}            
              imageUrl: '{{ payload.image_url }}'
    

    Create Integration Resource

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

    Constructor syntax

    new Integration(name: string, args: IntegrationArgs, opts?: CustomResourceOptions);
    @overload
    def Integration(resource_name: str,
                    args: IntegrationArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def Integration(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    default_route: Optional[_oncall.IntegrationDefaultRouteArgs] = None,
                    type: Optional[str] = None,
                    name: Optional[str] = None,
                    team_id: Optional[str] = None,
                    templates: Optional[_oncall.IntegrationTemplatesArgs] = None)
    func NewIntegration(ctx *Context, name string, args IntegrationArgs, opts ...ResourceOption) (*Integration, error)
    public Integration(string name, IntegrationArgs args, CustomResourceOptions? opts = null)
    public Integration(String name, IntegrationArgs args)
    public Integration(String name, IntegrationArgs args, CustomResourceOptions options)
    
    type: grafana:onCall:Integration
    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 IntegrationArgs
    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 IntegrationArgs
    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 IntegrationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IntegrationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IntegrationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

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

    var integrationResource = new Grafana.OnCall.Integration("integrationResource", new()
    {
        DefaultRoute = new Grafana.OnCall.Inputs.IntegrationDefaultRouteArgs
        {
            EscalationChainId = "string",
            Id = "string",
            Msteams = new Grafana.OnCall.Inputs.IntegrationDefaultRouteMsteamsArgs
            {
                Enabled = false,
                Id = "string",
            },
            Slack = new Grafana.OnCall.Inputs.IntegrationDefaultRouteSlackArgs
            {
                ChannelId = "string",
                Enabled = false,
            },
            Telegram = new Grafana.OnCall.Inputs.IntegrationDefaultRouteTelegramArgs
            {
                Enabled = false,
                Id = "string",
            },
        },
        Type = "string",
        Name = "string",
        TeamId = "string",
        Templates = new Grafana.OnCall.Inputs.IntegrationTemplatesArgs
        {
            AcknowledgeSignal = "string",
            Email = new Grafana.OnCall.Inputs.IntegrationTemplatesEmailArgs
            {
                Message = "string",
                Title = "string",
            },
            GroupingKey = "string",
            MicrosoftTeams = new Grafana.OnCall.Inputs.IntegrationTemplatesMicrosoftTeamsArgs
            {
                ImageUrl = "string",
                Message = "string",
                Title = "string",
            },
            PhoneCall = new Grafana.OnCall.Inputs.IntegrationTemplatesPhoneCallArgs
            {
                Title = "string",
            },
            ResolveSignal = "string",
            Slack = new Grafana.OnCall.Inputs.IntegrationTemplatesSlackArgs
            {
                ImageUrl = "string",
                Message = "string",
                Title = "string",
            },
            Sms = new Grafana.OnCall.Inputs.IntegrationTemplatesSmsArgs
            {
                Title = "string",
            },
            SourceLink = "string",
            Telegram = new Grafana.OnCall.Inputs.IntegrationTemplatesTelegramArgs
            {
                ImageUrl = "string",
                Message = "string",
                Title = "string",
            },
            Web = new Grafana.OnCall.Inputs.IntegrationTemplatesWebArgs
            {
                ImageUrl = "string",
                Message = "string",
                Title = "string",
            },
        },
    });
    
    example, err := onCall.NewIntegration(ctx, "integrationResource", &onCall.IntegrationArgs{
    	DefaultRoute: &oncall.IntegrationDefaultRouteArgs{
    		EscalationChainId: pulumi.String("string"),
    		Id:                pulumi.String("string"),
    		Msteams: &oncall.IntegrationDefaultRouteMsteamsArgs{
    			Enabled: pulumi.Bool(false),
    			Id:      pulumi.String("string"),
    		},
    		Slack: &oncall.IntegrationDefaultRouteSlackArgs{
    			ChannelId: pulumi.String("string"),
    			Enabled:   pulumi.Bool(false),
    		},
    		Telegram: &oncall.IntegrationDefaultRouteTelegramArgs{
    			Enabled: pulumi.Bool(false),
    			Id:      pulumi.String("string"),
    		},
    	},
    	Type:   pulumi.String("string"),
    	Name:   pulumi.String("string"),
    	TeamId: pulumi.String("string"),
    	Templates: &oncall.IntegrationTemplatesArgs{
    		AcknowledgeSignal: pulumi.String("string"),
    		Email: &oncall.IntegrationTemplatesEmailArgs{
    			Message: pulumi.String("string"),
    			Title:   pulumi.String("string"),
    		},
    		GroupingKey: pulumi.String("string"),
    		MicrosoftTeams: &oncall.IntegrationTemplatesMicrosoftTeamsArgs{
    			ImageUrl: pulumi.String("string"),
    			Message:  pulumi.String("string"),
    			Title:    pulumi.String("string"),
    		},
    		PhoneCall: &oncall.IntegrationTemplatesPhoneCallArgs{
    			Title: pulumi.String("string"),
    		},
    		ResolveSignal: pulumi.String("string"),
    		Slack: &oncall.IntegrationTemplatesSlackArgs{
    			ImageUrl: pulumi.String("string"),
    			Message:  pulumi.String("string"),
    			Title:    pulumi.String("string"),
    		},
    		Sms: &oncall.IntegrationTemplatesSmsArgs{
    			Title: pulumi.String("string"),
    		},
    		SourceLink: pulumi.String("string"),
    		Telegram: &oncall.IntegrationTemplatesTelegramArgs{
    			ImageUrl: pulumi.String("string"),
    			Message:  pulumi.String("string"),
    			Title:    pulumi.String("string"),
    		},
    		Web: &oncall.IntegrationTemplatesWebArgs{
    			ImageUrl: pulumi.String("string"),
    			Message:  pulumi.String("string"),
    			Title:    pulumi.String("string"),
    		},
    	},
    })
    
    var integrationResource = new Integration("integrationResource", IntegrationArgs.builder()
        .defaultRoute(IntegrationDefaultRouteArgs.builder()
            .escalationChainId("string")
            .id("string")
            .msteams(IntegrationDefaultRouteMsteamsArgs.builder()
                .enabled(false)
                .id("string")
                .build())
            .slack(IntegrationDefaultRouteSlackArgs.builder()
                .channelId("string")
                .enabled(false)
                .build())
            .telegram(IntegrationDefaultRouteTelegramArgs.builder()
                .enabled(false)
                .id("string")
                .build())
            .build())
        .type("string")
        .name("string")
        .teamId("string")
        .templates(IntegrationTemplatesArgs.builder()
            .acknowledgeSignal("string")
            .email(IntegrationTemplatesEmailArgs.builder()
                .message("string")
                .title("string")
                .build())
            .groupingKey("string")
            .microsoftTeams(IntegrationTemplatesMicrosoftTeamsArgs.builder()
                .imageUrl("string")
                .message("string")
                .title("string")
                .build())
            .phoneCall(IntegrationTemplatesPhoneCallArgs.builder()
                .title("string")
                .build())
            .resolveSignal("string")
            .slack(IntegrationTemplatesSlackArgs.builder()
                .imageUrl("string")
                .message("string")
                .title("string")
                .build())
            .sms(IntegrationTemplatesSmsArgs.builder()
                .title("string")
                .build())
            .sourceLink("string")
            .telegram(IntegrationTemplatesTelegramArgs.builder()
                .imageUrl("string")
                .message("string")
                .title("string")
                .build())
            .web(IntegrationTemplatesWebArgs.builder()
                .imageUrl("string")
                .message("string")
                .title("string")
                .build())
            .build())
        .build());
    
    integration_resource = grafana.on_call.Integration("integrationResource",
        default_route={
            "escalation_chain_id": "string",
            "id": "string",
            "msteams": {
                "enabled": False,
                "id": "string",
            },
            "slack": {
                "channel_id": "string",
                "enabled": False,
            },
            "telegram": {
                "enabled": False,
                "id": "string",
            },
        },
        type="string",
        name="string",
        team_id="string",
        templates={
            "acknowledge_signal": "string",
            "email": {
                "message": "string",
                "title": "string",
            },
            "grouping_key": "string",
            "microsoft_teams": {
                "image_url": "string",
                "message": "string",
                "title": "string",
            },
            "phone_call": {
                "title": "string",
            },
            "resolve_signal": "string",
            "slack": {
                "image_url": "string",
                "message": "string",
                "title": "string",
            },
            "sms": {
                "title": "string",
            },
            "source_link": "string",
            "telegram": {
                "image_url": "string",
                "message": "string",
                "title": "string",
            },
            "web": {
                "image_url": "string",
                "message": "string",
                "title": "string",
            },
        })
    
    const integrationResource = new grafana.oncall.Integration("integrationResource", {
        defaultRoute: {
            escalationChainId: "string",
            id: "string",
            msteams: {
                enabled: false,
                id: "string",
            },
            slack: {
                channelId: "string",
                enabled: false,
            },
            telegram: {
                enabled: false,
                id: "string",
            },
        },
        type: "string",
        name: "string",
        teamId: "string",
        templates: {
            acknowledgeSignal: "string",
            email: {
                message: "string",
                title: "string",
            },
            groupingKey: "string",
            microsoftTeams: {
                imageUrl: "string",
                message: "string",
                title: "string",
            },
            phoneCall: {
                title: "string",
            },
            resolveSignal: "string",
            slack: {
                imageUrl: "string",
                message: "string",
                title: "string",
            },
            sms: {
                title: "string",
            },
            sourceLink: "string",
            telegram: {
                imageUrl: "string",
                message: "string",
                title: "string",
            },
            web: {
                imageUrl: "string",
                message: "string",
                title: "string",
            },
        },
    });
    
    type: grafana:onCall:Integration
    properties:
        defaultRoute:
            escalationChainId: string
            id: string
            msteams:
                enabled: false
                id: string
            slack:
                channelId: string
                enabled: false
            telegram:
                enabled: false
                id: string
        name: string
        teamId: string
        templates:
            acknowledgeSignal: string
            email:
                message: string
                title: string
            groupingKey: string
            microsoftTeams:
                imageUrl: string
                message: string
                title: string
            phoneCall:
                title: string
            resolveSignal: string
            slack:
                imageUrl: string
                message: string
                title: string
            sms:
                title: string
            sourceLink: string
            telegram:
                imageUrl: string
                message: string
                title: string
            web:
                imageUrl: string
                message: string
                title: string
        type: string
    

    Integration Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Integration resource accepts the following input properties:

    DefaultRoute Pulumiverse.Grafana.OnCall.Inputs.IntegrationDefaultRoute
    The Default route for all alerts from the given integration
    Type string
    The type of integration. Can be grafana, grafanaalerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog, pagerduty, pingdom, elastalert, amazonsns, curler, sentry, formattedwebhook, heartbeat, demo, manual, stackdriver, uptimerobot, sentryplatform, zabbix, prtg, slackchannel, inboundemail, direct_paging, jira.
    Name string
    The name of the service integration.
    TeamId string
    The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.onCall.getTeam datasource.
    Templates Pulumiverse.Grafana.OnCall.Inputs.IntegrationTemplates
    Jinja2 templates for Alert payload. An empty templates block will be ignored.
    DefaultRoute IntegrationDefaultRouteArgs
    The Default route for all alerts from the given integration
    Type string
    The type of integration. Can be grafana, grafanaalerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog, pagerduty, pingdom, elastalert, amazonsns, curler, sentry, formattedwebhook, heartbeat, demo, manual, stackdriver, uptimerobot, sentryplatform, zabbix, prtg, slackchannel, inboundemail, direct_paging, jira.
    Name string
    The name of the service integration.
    TeamId string
    The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.onCall.getTeam datasource.
    Templates IntegrationTemplatesArgs
    Jinja2 templates for Alert payload. An empty templates block will be ignored.
    defaultRoute IntegrationDefaultRoute
    The Default route for all alerts from the given integration
    type String
    The type of integration. Can be grafana, grafanaalerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog, pagerduty, pingdom, elastalert, amazonsns, curler, sentry, formattedwebhook, heartbeat, demo, manual, stackdriver, uptimerobot, sentryplatform, zabbix, prtg, slackchannel, inboundemail, direct_paging, jira.
    name String
    The name of the service integration.
    teamId String
    The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.onCall.getTeam datasource.
    templates IntegrationTemplates
    Jinja2 templates for Alert payload. An empty templates block will be ignored.
    defaultRoute IntegrationDefaultRoute
    The Default route for all alerts from the given integration
    type string
    The type of integration. Can be grafana, grafanaalerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog, pagerduty, pingdom, elastalert, amazonsns, curler, sentry, formattedwebhook, heartbeat, demo, manual, stackdriver, uptimerobot, sentryplatform, zabbix, prtg, slackchannel, inboundemail, direct_paging, jira.
    name string
    The name of the service integration.
    teamId string
    The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.onCall.getTeam datasource.
    templates IntegrationTemplates
    Jinja2 templates for Alert payload. An empty templates block will be ignored.
    default_route oncall.IntegrationDefaultRouteArgs
    The Default route for all alerts from the given integration
    type str
    The type of integration. Can be grafana, grafanaalerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog, pagerduty, pingdom, elastalert, amazonsns, curler, sentry, formattedwebhook, heartbeat, demo, manual, stackdriver, uptimerobot, sentryplatform, zabbix, prtg, slackchannel, inboundemail, direct_paging, jira.
    name str
    The name of the service integration.
    team_id str
    The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.onCall.getTeam datasource.
    templates oncall.IntegrationTemplatesArgs
    Jinja2 templates for Alert payload. An empty templates block will be ignored.
    defaultRoute Property Map
    The Default route for all alerts from the given integration
    type String
    The type of integration. Can be grafana, grafanaalerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog, pagerduty, pingdom, elastalert, amazonsns, curler, sentry, formattedwebhook, heartbeat, demo, manual, stackdriver, uptimerobot, sentryplatform, zabbix, prtg, slackchannel, inboundemail, direct_paging, jira.
    name String
    The name of the service integration.
    teamId String
    The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.onCall.getTeam datasource.
    templates Property Map
    Jinja2 templates for Alert payload. An empty templates block will be ignored.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Integration resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Link string
    The link for using in an integrated tool.
    Id string
    The provider-assigned unique ID for this managed resource.
    Link string
    The link for using in an integrated tool.
    id String
    The provider-assigned unique ID for this managed resource.
    link String
    The link for using in an integrated tool.
    id string
    The provider-assigned unique ID for this managed resource.
    link string
    The link for using in an integrated tool.
    id str
    The provider-assigned unique ID for this managed resource.
    link str
    The link for using in an integrated tool.
    id String
    The provider-assigned unique ID for this managed resource.
    link String
    The link for using in an integrated tool.

    Look up Existing Integration Resource

    Get an existing Integration 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?: IntegrationState, opts?: CustomResourceOptions): Integration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            default_route: Optional[_oncall.IntegrationDefaultRouteArgs] = None,
            link: Optional[str] = None,
            name: Optional[str] = None,
            team_id: Optional[str] = None,
            templates: Optional[_oncall.IntegrationTemplatesArgs] = None,
            type: Optional[str] = None) -> Integration
    func GetIntegration(ctx *Context, name string, id IDInput, state *IntegrationState, opts ...ResourceOption) (*Integration, error)
    public static Integration Get(string name, Input<string> id, IntegrationState? state, CustomResourceOptions? opts = null)
    public static Integration get(String name, Output<String> id, IntegrationState 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:
    DefaultRoute Pulumiverse.Grafana.OnCall.Inputs.IntegrationDefaultRoute
    The Default route for all alerts from the given integration
    Link string
    The link for using in an integrated tool.
    Name string
    The name of the service integration.
    TeamId string
    The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.onCall.getTeam datasource.
    Templates Pulumiverse.Grafana.OnCall.Inputs.IntegrationTemplates
    Jinja2 templates for Alert payload. An empty templates block will be ignored.
    Type string
    The type of integration. Can be grafana, grafanaalerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog, pagerduty, pingdom, elastalert, amazonsns, curler, sentry, formattedwebhook, heartbeat, demo, manual, stackdriver, uptimerobot, sentryplatform, zabbix, prtg, slackchannel, inboundemail, direct_paging, jira.
    DefaultRoute IntegrationDefaultRouteArgs
    The Default route for all alerts from the given integration
    Link string
    The link for using in an integrated tool.
    Name string
    The name of the service integration.
    TeamId string
    The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.onCall.getTeam datasource.
    Templates IntegrationTemplatesArgs
    Jinja2 templates for Alert payload. An empty templates block will be ignored.
    Type string
    The type of integration. Can be grafana, grafanaalerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog, pagerduty, pingdom, elastalert, amazonsns, curler, sentry, formattedwebhook, heartbeat, demo, manual, stackdriver, uptimerobot, sentryplatform, zabbix, prtg, slackchannel, inboundemail, direct_paging, jira.
    defaultRoute IntegrationDefaultRoute
    The Default route for all alerts from the given integration
    link String
    The link for using in an integrated tool.
    name String
    The name of the service integration.
    teamId String
    The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.onCall.getTeam datasource.
    templates IntegrationTemplates
    Jinja2 templates for Alert payload. An empty templates block will be ignored.
    type String
    The type of integration. Can be grafana, grafanaalerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog, pagerduty, pingdom, elastalert, amazonsns, curler, sentry, formattedwebhook, heartbeat, demo, manual, stackdriver, uptimerobot, sentryplatform, zabbix, prtg, slackchannel, inboundemail, direct_paging, jira.
    defaultRoute IntegrationDefaultRoute
    The Default route for all alerts from the given integration
    link string
    The link for using in an integrated tool.
    name string
    The name of the service integration.
    teamId string
    The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.onCall.getTeam datasource.
    templates IntegrationTemplates
    Jinja2 templates for Alert payload. An empty templates block will be ignored.
    type string
    The type of integration. Can be grafana, grafanaalerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog, pagerduty, pingdom, elastalert, amazonsns, curler, sentry, formattedwebhook, heartbeat, demo, manual, stackdriver, uptimerobot, sentryplatform, zabbix, prtg, slackchannel, inboundemail, direct_paging, jira.
    default_route oncall.IntegrationDefaultRouteArgs
    The Default route for all alerts from the given integration
    link str
    The link for using in an integrated tool.
    name str
    The name of the service integration.
    team_id str
    The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.onCall.getTeam datasource.
    templates oncall.IntegrationTemplatesArgs
    Jinja2 templates for Alert payload. An empty templates block will be ignored.
    type str
    The type of integration. Can be grafana, grafanaalerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog, pagerduty, pingdom, elastalert, amazonsns, curler, sentry, formattedwebhook, heartbeat, demo, manual, stackdriver, uptimerobot, sentryplatform, zabbix, prtg, slackchannel, inboundemail, direct_paging, jira.
    defaultRoute Property Map
    The Default route for all alerts from the given integration
    link String
    The link for using in an integrated tool.
    name String
    The name of the service integration.
    teamId String
    The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.onCall.getTeam datasource.
    templates Property Map
    Jinja2 templates for Alert payload. An empty templates block will be ignored.
    type String
    The type of integration. Can be grafana, grafanaalerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog, pagerduty, pingdom, elastalert, amazonsns, curler, sentry, formattedwebhook, heartbeat, demo, manual, stackdriver, uptimerobot, sentryplatform, zabbix, prtg, slackchannel, inboundemail, direct_paging, jira.

    Supporting Types

    IntegrationDefaultRoute, IntegrationDefaultRouteArgs

    EscalationChainId string
    The ID of the escalation chain.
    Id string
    Msteams Pulumiverse.Grafana.OnCall.Inputs.IntegrationDefaultRouteMsteams
    MS teams-specific settings for a route.
    Slack Pulumiverse.Grafana.OnCall.Inputs.IntegrationDefaultRouteSlack
    Slack-specific settings for a route.
    Telegram Pulumiverse.Grafana.OnCall.Inputs.IntegrationDefaultRouteTelegram
    Telegram-specific settings for a route.
    EscalationChainId string
    The ID of the escalation chain.
    Id string
    Msteams IntegrationDefaultRouteMsteams
    MS teams-specific settings for a route.
    Slack IntegrationDefaultRouteSlack
    Slack-specific settings for a route.
    Telegram IntegrationDefaultRouteTelegram
    Telegram-specific settings for a route.
    escalationChainId String
    The ID of the escalation chain.
    id String
    msteams IntegrationDefaultRouteMsteams
    MS teams-specific settings for a route.
    slack IntegrationDefaultRouteSlack
    Slack-specific settings for a route.
    telegram IntegrationDefaultRouteTelegram
    Telegram-specific settings for a route.
    escalationChainId string
    The ID of the escalation chain.
    id string
    msteams IntegrationDefaultRouteMsteams
    MS teams-specific settings for a route.
    slack IntegrationDefaultRouteSlack
    Slack-specific settings for a route.
    telegram IntegrationDefaultRouteTelegram
    Telegram-specific settings for a route.
    escalation_chain_id str
    The ID of the escalation chain.
    id str
    msteams oncall.IntegrationDefaultRouteMsteams
    MS teams-specific settings for a route.
    slack oncall.IntegrationDefaultRouteSlack
    Slack-specific settings for a route.
    telegram oncall.IntegrationDefaultRouteTelegram
    Telegram-specific settings for a route.
    escalationChainId String
    The ID of the escalation chain.
    id String
    msteams Property Map
    MS teams-specific settings for a route.
    slack Property Map
    Slack-specific settings for a route.
    telegram Property Map
    Telegram-specific settings for a route.

    IntegrationDefaultRouteMsteams, IntegrationDefaultRouteMsteamsArgs

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

    IntegrationDefaultRouteSlack, IntegrationDefaultRouteSlackArgs

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

    IntegrationDefaultRouteTelegram, IntegrationDefaultRouteTelegramArgs

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

    IntegrationTemplates, IntegrationTemplatesArgs

    AcknowledgeSignal string
    Template for sending a signal to acknowledge the Incident.
    Email Pulumiverse.Grafana.OnCall.Inputs.IntegrationTemplatesEmail
    Templates for Email.
    GroupingKey string
    Template for the key by which alerts are grouped.
    MicrosoftTeams Pulumiverse.Grafana.OnCall.Inputs.IntegrationTemplatesMicrosoftTeams
    Templates for Microsoft Teams.
    PhoneCall Pulumiverse.Grafana.OnCall.Inputs.IntegrationTemplatesPhoneCall
    Templates for Phone Call.
    ResolveSignal string
    Template for sending a signal to resolve the Incident.
    Slack Pulumiverse.Grafana.OnCall.Inputs.IntegrationTemplatesSlack
    Templates for Slack.
    Sms Pulumiverse.Grafana.OnCall.Inputs.IntegrationTemplatesSms
    Templates for SMS.
    SourceLink string
    Template for a source link.
    Telegram Pulumiverse.Grafana.OnCall.Inputs.IntegrationTemplatesTelegram
    Templates for Telegram.
    Web Pulumiverse.Grafana.OnCall.Inputs.IntegrationTemplatesWeb
    Templates for Web.
    AcknowledgeSignal string
    Template for sending a signal to acknowledge the Incident.
    Email IntegrationTemplatesEmail
    Templates for Email.
    GroupingKey string
    Template for the key by which alerts are grouped.
    MicrosoftTeams IntegrationTemplatesMicrosoftTeams
    Templates for Microsoft Teams.
    PhoneCall IntegrationTemplatesPhoneCall
    Templates for Phone Call.
    ResolveSignal string
    Template for sending a signal to resolve the Incident.
    Slack IntegrationTemplatesSlack
    Templates for Slack.
    Sms IntegrationTemplatesSms
    Templates for SMS.
    SourceLink string
    Template for a source link.
    Telegram IntegrationTemplatesTelegram
    Templates for Telegram.
    Web IntegrationTemplatesWeb
    Templates for Web.
    acknowledgeSignal String
    Template for sending a signal to acknowledge the Incident.
    email IntegrationTemplatesEmail
    Templates for Email.
    groupingKey String
    Template for the key by which alerts are grouped.
    microsoftTeams IntegrationTemplatesMicrosoftTeams
    Templates for Microsoft Teams.
    phoneCall IntegrationTemplatesPhoneCall
    Templates for Phone Call.
    resolveSignal String
    Template for sending a signal to resolve the Incident.
    slack IntegrationTemplatesSlack
    Templates for Slack.
    sms IntegrationTemplatesSms
    Templates for SMS.
    sourceLink String
    Template for a source link.
    telegram IntegrationTemplatesTelegram
    Templates for Telegram.
    web IntegrationTemplatesWeb
    Templates for Web.
    acknowledgeSignal string
    Template for sending a signal to acknowledge the Incident.
    email IntegrationTemplatesEmail
    Templates for Email.
    groupingKey string
    Template for the key by which alerts are grouped.
    microsoftTeams IntegrationTemplatesMicrosoftTeams
    Templates for Microsoft Teams.
    phoneCall IntegrationTemplatesPhoneCall
    Templates for Phone Call.
    resolveSignal string
    Template for sending a signal to resolve the Incident.
    slack IntegrationTemplatesSlack
    Templates for Slack.
    sms IntegrationTemplatesSms
    Templates for SMS.
    sourceLink string
    Template for a source link.
    telegram IntegrationTemplatesTelegram
    Templates for Telegram.
    web IntegrationTemplatesWeb
    Templates for Web.
    acknowledge_signal str
    Template for sending a signal to acknowledge the Incident.
    email oncall.IntegrationTemplatesEmail
    Templates for Email.
    grouping_key str
    Template for the key by which alerts are grouped.
    microsoft_teams oncall.IntegrationTemplatesMicrosoftTeams
    Templates for Microsoft Teams.
    phone_call oncall.IntegrationTemplatesPhoneCall
    Templates for Phone Call.
    resolve_signal str
    Template for sending a signal to resolve the Incident.
    slack oncall.IntegrationTemplatesSlack
    Templates for Slack.
    sms oncall.IntegrationTemplatesSms
    Templates for SMS.
    source_link str
    Template for a source link.
    telegram oncall.IntegrationTemplatesTelegram
    Templates for Telegram.
    web oncall.IntegrationTemplatesWeb
    Templates for Web.
    acknowledgeSignal String
    Template for sending a signal to acknowledge the Incident.
    email Property Map
    Templates for Email.
    groupingKey String
    Template for the key by which alerts are grouped.
    microsoftTeams Property Map
    Templates for Microsoft Teams.
    phoneCall Property Map
    Templates for Phone Call.
    resolveSignal String
    Template for sending a signal to resolve the Incident.
    slack Property Map
    Templates for Slack.
    sms Property Map
    Templates for SMS.
    sourceLink String
    Template for a source link.
    telegram Property Map
    Templates for Telegram.
    web Property Map
    Templates for Web.

    IntegrationTemplatesEmail, IntegrationTemplatesEmailArgs

    Message string
    Template for Alert message.
    Title string
    Template for Alert title.
    Message string
    Template for Alert message.
    Title string
    Template for Alert title.
    message String
    Template for Alert message.
    title String
    Template for Alert title.
    message string
    Template for Alert message.
    title string
    Template for Alert title.
    message str
    Template for Alert message.
    title str
    Template for Alert title.
    message String
    Template for Alert message.
    title String
    Template for Alert title.

    IntegrationTemplatesMicrosoftTeams, IntegrationTemplatesMicrosoftTeamsArgs

    ImageUrl string
    Template for Alert image url.
    Message string
    Template for Alert message.
    Title string
    Template for Alert title.
    ImageUrl string
    Template for Alert image url.
    Message string
    Template for Alert message.
    Title string
    Template for Alert title.
    imageUrl String
    Template for Alert image url.
    message String
    Template for Alert message.
    title String
    Template for Alert title.
    imageUrl string
    Template for Alert image url.
    message string
    Template for Alert message.
    title string
    Template for Alert title.
    image_url str
    Template for Alert image url.
    message str
    Template for Alert message.
    title str
    Template for Alert title.
    imageUrl String
    Template for Alert image url.
    message String
    Template for Alert message.
    title String
    Template for Alert title.

    IntegrationTemplatesPhoneCall, IntegrationTemplatesPhoneCallArgs

    Title string
    Template for Alert title.
    Title string
    Template for Alert title.
    title String
    Template for Alert title.
    title string
    Template for Alert title.
    title str
    Template for Alert title.
    title String
    Template for Alert title.

    IntegrationTemplatesSlack, IntegrationTemplatesSlackArgs

    ImageUrl string
    Template for Alert image url.
    Message string
    Template for Alert message.
    Title string
    Template for Alert title.
    ImageUrl string
    Template for Alert image url.
    Message string
    Template for Alert message.
    Title string
    Template for Alert title.
    imageUrl String
    Template for Alert image url.
    message String
    Template for Alert message.
    title String
    Template for Alert title.
    imageUrl string
    Template for Alert image url.
    message string
    Template for Alert message.
    title string
    Template for Alert title.
    image_url str
    Template for Alert image url.
    message str
    Template for Alert message.
    title str
    Template for Alert title.
    imageUrl String
    Template for Alert image url.
    message String
    Template for Alert message.
    title String
    Template for Alert title.

    IntegrationTemplatesSms, IntegrationTemplatesSmsArgs

    Title string
    Template for Alert title.
    Title string
    Template for Alert title.
    title String
    Template for Alert title.
    title string
    Template for Alert title.
    title str
    Template for Alert title.
    title String
    Template for Alert title.

    IntegrationTemplatesTelegram, IntegrationTemplatesTelegramArgs

    ImageUrl string
    Template for Alert image url.
    Message string
    Template for Alert message.
    Title string
    Template for Alert title.
    ImageUrl string
    Template for Alert image url.
    Message string
    Template for Alert message.
    Title string
    Template for Alert title.
    imageUrl String
    Template for Alert image url.
    message String
    Template for Alert message.
    title String
    Template for Alert title.
    imageUrl string
    Template for Alert image url.
    message string
    Template for Alert message.
    title string
    Template for Alert title.
    image_url str
    Template for Alert image url.
    message str
    Template for Alert message.
    title str
    Template for Alert title.
    imageUrl String
    Template for Alert image url.
    message String
    Template for Alert message.
    title String
    Template for Alert title.

    IntegrationTemplatesWeb, IntegrationTemplatesWebArgs

    ImageUrl string
    Template for Alert image url.
    Message string
    Template for Alert message.
    Title string
    Template for Alert title.
    ImageUrl string
    Template for Alert image url.
    Message string
    Template for Alert message.
    Title string
    Template for Alert title.
    imageUrl String
    Template for Alert image url.
    message String
    Template for Alert message.
    title String
    Template for Alert title.
    imageUrl string
    Template for Alert image url.
    message string
    Template for Alert message.
    title string
    Template for Alert title.
    image_url str
    Template for Alert image url.
    message str
    Template for Alert message.
    title str
    Template for Alert title.
    imageUrl String
    Template for Alert image url.
    message String
    Template for Alert message.
    title String
    Template for Alert title.

    Import

    $ pulumi import grafana:onCall/integration:Integration name "{{ id }}"
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse