grafana.onCall.Integration
Explore with Pulumi AI
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:
- Default
Route Pulumiverse.Grafana. On Call. Inputs. Integration Default Route - 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.
- Team
Id 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. On Call. Inputs. Integration Templates - Jinja2 templates for Alert payload. An empty templates block will be ignored.
- Default
Route IntegrationDefault Route Args - 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.
- Team
Id 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
Integration
Templates Args - Jinja2 templates for Alert payload. An empty templates block will be ignored.
- default
Route IntegrationDefault Route - 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.
- team
Id 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
Integration
Templates - Jinja2 templates for Alert payload. An empty templates block will be ignored.
- default
Route IntegrationDefault Route - 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.
- team
Id 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
Integration
Templates - Jinja2 templates for Alert payload. An empty templates block will be ignored.
- default_
route oncall.Integration Default Route Args - 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.
Integration Templates Args - Jinja2 templates for Alert payload. An empty templates block will be ignored.
- default
Route 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.
- team
Id 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:
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.
- Default
Route Pulumiverse.Grafana. On Call. Inputs. Integration Default Route - 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.
- Team
Id 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. On Call. Inputs. Integration Templates - 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 IntegrationDefault Route Args - 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.
- Team
Id 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
Integration
Templates Args - 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 IntegrationDefault Route - 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.
- team
Id 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
Integration
Templates - 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 IntegrationDefault Route - 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.
- team
Id 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
Integration
Templates - 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.Integration Default Route Args - 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.
Integration Templates Args - 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.
- default
Route 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.
- team
Id 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
- Escalation
Chain stringId - The ID of the escalation chain.
- Id string
- Msteams
Pulumiverse.
Grafana. On Call. Inputs. Integration Default Route Msteams - MS teams-specific settings for a route.
- Slack
Pulumiverse.
Grafana. On Call. Inputs. Integration Default Route Slack - Slack-specific settings for a route.
- Telegram
Pulumiverse.
Grafana. On Call. Inputs. Integration Default Route Telegram - Telegram-specific settings for a route.
- Escalation
Chain stringId - The ID of the escalation chain.
- Id string
- Msteams
Integration
Default Route Msteams - MS teams-specific settings for a route.
- Slack
Integration
Default Route Slack - Slack-specific settings for a route.
- Telegram
Integration
Default Route Telegram - Telegram-specific settings for a route.
- escalation
Chain StringId - The ID of the escalation chain.
- id String
- msteams
Integration
Default Route Msteams - MS teams-specific settings for a route.
- slack
Integration
Default Route Slack - Slack-specific settings for a route.
- telegram
Integration
Default Route Telegram - Telegram-specific settings for a route.
- escalation
Chain stringId - The ID of the escalation chain.
- id string
- msteams
Integration
Default Route Msteams - MS teams-specific settings for a route.
- slack
Integration
Default Route Slack - Slack-specific settings for a route.
- telegram
Integration
Default Route Telegram - Telegram-specific settings for a route.
- escalation_
chain_ strid - The ID of the escalation chain.
- id str
- msteams
oncall.
Integration Default Route Msteams - MS teams-specific settings for a route.
- slack
oncall.
Integration Default Route Slack - Slack-specific settings for a route.
- telegram
oncall.
Integration Default Route Telegram - Telegram-specific settings for a route.
- escalation
Chain StringId - 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
IntegrationDefaultRouteSlack, IntegrationDefaultRouteSlackArgs
- channel_
id str - Slack channel id. Alerts will be directed to this channel in Slack.
- enabled bool
- Enable notification in Slack. Defaults to
true
.
IntegrationDefaultRouteTelegram, IntegrationDefaultRouteTelegramArgs
IntegrationTemplates, IntegrationTemplatesArgs
- Acknowledge
Signal string - Template for sending a signal to acknowledge the Incident.
- Email
Pulumiverse.
Grafana. On Call. Inputs. Integration Templates Email - Templates for Email.
- Grouping
Key string - Template for the key by which alerts are grouped.
- Microsoft
Teams Pulumiverse.Grafana. On Call. Inputs. Integration Templates Microsoft Teams - Templates for Microsoft Teams.
- Phone
Call Pulumiverse.Grafana. On Call. Inputs. Integration Templates Phone Call - Templates for Phone Call.
- Resolve
Signal string - Template for sending a signal to resolve the Incident.
- Slack
Pulumiverse.
Grafana. On Call. Inputs. Integration Templates Slack - Templates for Slack.
- Sms
Pulumiverse.
Grafana. On Call. Inputs. Integration Templates Sms - Templates for SMS.
- Source
Link string - Template for a source link.
- Telegram
Pulumiverse.
Grafana. On Call. Inputs. Integration Templates Telegram - Templates for Telegram.
- Web
Pulumiverse.
Grafana. On Call. Inputs. Integration Templates Web - Templates for Web.
- Acknowledge
Signal string - Template for sending a signal to acknowledge the Incident.
- Email
Integration
Templates Email - Templates for Email.
- Grouping
Key string - Template for the key by which alerts are grouped.
- Microsoft
Teams IntegrationTemplates Microsoft Teams - Templates for Microsoft Teams.
- Phone
Call IntegrationTemplates Phone Call - Templates for Phone Call.
- Resolve
Signal string - Template for sending a signal to resolve the Incident.
- Slack
Integration
Templates Slack - Templates for Slack.
- Sms
Integration
Templates Sms - Templates for SMS.
- Source
Link string - Template for a source link.
- Telegram
Integration
Templates Telegram - Templates for Telegram.
- Web
Integration
Templates Web - Templates for Web.
- acknowledge
Signal String - Template for sending a signal to acknowledge the Incident.
- email
Integration
Templates Email - Templates for Email.
- grouping
Key String - Template for the key by which alerts are grouped.
- microsoft
Teams IntegrationTemplates Microsoft Teams - Templates for Microsoft Teams.
- phone
Call IntegrationTemplates Phone Call - Templates for Phone Call.
- resolve
Signal String - Template for sending a signal to resolve the Incident.
- slack
Integration
Templates Slack - Templates for Slack.
- sms
Integration
Templates Sms - Templates for SMS.
- source
Link String - Template for a source link.
- telegram
Integration
Templates Telegram - Templates for Telegram.
- web
Integration
Templates Web - Templates for Web.
- acknowledge
Signal string - Template for sending a signal to acknowledge the Incident.
- email
Integration
Templates Email - Templates for Email.
- grouping
Key string - Template for the key by which alerts are grouped.
- microsoft
Teams IntegrationTemplates Microsoft Teams - Templates for Microsoft Teams.
- phone
Call IntegrationTemplates Phone Call - Templates for Phone Call.
- resolve
Signal string - Template for sending a signal to resolve the Incident.
- slack
Integration
Templates Slack - Templates for Slack.
- sms
Integration
Templates Sms - Templates for SMS.
- source
Link string - Template for a source link.
- telegram
Integration
Templates Telegram - Templates for Telegram.
- web
Integration
Templates Web - Templates for Web.
- acknowledge_
signal str - Template for sending a signal to acknowledge the Incident.
- email
oncall.
Integration Templates Email - Templates for Email.
- grouping_
key str - Template for the key by which alerts are grouped.
- microsoft_
teams oncall.Integration Templates Microsoft Teams - Templates for Microsoft Teams.
- phone_
call oncall.Integration Templates Phone Call - Templates for Phone Call.
- resolve_
signal str - Template for sending a signal to resolve the Incident.
- slack
oncall.
Integration Templates Slack - Templates for Slack.
- sms
oncall.
Integration Templates Sms - Templates for SMS.
- source_
link str - Template for a source link.
- telegram
oncall.
Integration Templates Telegram - Templates for Telegram.
- web
oncall.
Integration Templates Web - Templates for Web.
- acknowledge
Signal String - Template for sending a signal to acknowledge the Incident.
- email Property Map
- Templates for Email.
- grouping
Key String - Template for the key by which alerts are grouped.
- microsoft
Teams Property Map - Templates for Microsoft Teams.
- phone
Call Property Map - Templates for Phone Call.
- resolve
Signal String - Template for sending a signal to resolve the Incident.
- slack Property Map
- Templates for Slack.
- sms Property Map
- Templates for SMS.
- source
Link String - Template for a source link.
- telegram Property Map
- Templates for Telegram.
- web Property Map
- Templates for Web.
IntegrationTemplatesEmail, IntegrationTemplatesEmailArgs
IntegrationTemplatesMicrosoftTeams, IntegrationTemplatesMicrosoftTeamsArgs
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
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
IntegrationTemplatesWeb, IntegrationTemplatesWebArgs
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.