@pulumiverse/grafana
Version:
A Pulumi package for creating and managing grafana.
156 lines (155 loc) • 7.2 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* * [Official documentation](https://grafana.com/docs/oncall/latest/configure/integrations/)
* * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/)
*
* ## Import
*
* ```sh
* $ pulumi import grafana:index/oncallIntegration:OncallIntegration name "{{ id }}"
* ```
*
* @deprecated grafana.index/oncallintegration.OncallIntegration has been deprecated in favor of grafana.oncall/integration.Integration
*/
export declare class OncallIntegration extends pulumi.CustomResource {
/**
* Get an existing OncallIntegration resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: OncallIntegrationState, opts?: pulumi.CustomResourceOptions): OncallIntegration;
/**
* Returns true if the given object is an instance of OncallIntegration. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is OncallIntegration;
/**
* The Default route for all alerts from the given integration
*/
readonly defaultRoute: pulumi.Output<outputs.OncallIntegrationDefaultRoute>;
/**
* A list of string-to-string mappings for dynamic labels. Each map must include one key named "key" and one key named "value" (using the `grafana.onCall.getLabel` datasource).
*/
readonly dynamicLabels: pulumi.Output<{
[key: string]: string;
}[] | undefined>;
/**
* A list of string-to-string mappings for static labels. Each map must include one key named "key" and one key named "value" (using the `grafana.onCall.getLabel` datasource).
*/
readonly labels: pulumi.Output<{
[key: string]: string;
}[] | undefined>;
/**
* The link for using in an integrated tool.
*/
readonly link: pulumi.Output<string>;
/**
* The name of the service integration.
*/
readonly name: pulumi.Output<string>;
/**
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
*/
readonly teamId: pulumi.Output<string | undefined>;
/**
* Jinja2 templates for Alert payload. An empty templates block will be ignored.
*/
readonly templates: pulumi.Output<outputs.OncallIntegrationTemplates | undefined>;
/**
* The type of integration. Can be grafana, grafana*alerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog, pagerduty, pingdom, elastalert, amazon*sns, curler, sentry, formatted*webhook, heartbeat, demo, manual, stackdriver, uptimerobot, sentry*platform, zabbix, prtg, slack*channel, inbound*email, direct_paging, jira, zendesk.
*/
readonly type: pulumi.Output<string>;
/**
* Create a OncallIntegration resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
/** @deprecated grafana.index/oncallintegration.OncallIntegration has been deprecated in favor of grafana.oncall/integration.Integration */
constructor(name: string, args: OncallIntegrationArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering OncallIntegration resources.
*/
export interface OncallIntegrationState {
/**
* The Default route for all alerts from the given integration
*/
defaultRoute?: pulumi.Input<inputs.OncallIntegrationDefaultRoute>;
/**
* A list of string-to-string mappings for dynamic labels. Each map must include one key named "key" and one key named "value" (using the `grafana.onCall.getLabel` datasource).
*/
dynamicLabels?: pulumi.Input<pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>[]>;
/**
* A list of string-to-string mappings for static labels. Each map must include one key named "key" and one key named "value" (using the `grafana.onCall.getLabel` datasource).
*/
labels?: pulumi.Input<pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>[]>;
/**
* The link for using in an integrated tool.
*/
link?: pulumi.Input<string>;
/**
* The name of the service integration.
*/
name?: pulumi.Input<string>;
/**
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
*/
teamId?: pulumi.Input<string>;
/**
* Jinja2 templates for Alert payload. An empty templates block will be ignored.
*/
templates?: pulumi.Input<inputs.OncallIntegrationTemplates>;
/**
* The type of integration. Can be grafana, grafana*alerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog, pagerduty, pingdom, elastalert, amazon*sns, curler, sentry, formatted*webhook, heartbeat, demo, manual, stackdriver, uptimerobot, sentry*platform, zabbix, prtg, slack*channel, inbound*email, direct_paging, jira, zendesk.
*/
type?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a OncallIntegration resource.
*/
export interface OncallIntegrationArgs {
/**
* The Default route for all alerts from the given integration
*/
defaultRoute: pulumi.Input<inputs.OncallIntegrationDefaultRoute>;
/**
* A list of string-to-string mappings for dynamic labels. Each map must include one key named "key" and one key named "value" (using the `grafana.onCall.getLabel` datasource).
*/
dynamicLabels?: pulumi.Input<pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>[]>;
/**
* A list of string-to-string mappings for static labels. Each map must include one key named "key" and one key named "value" (using the `grafana.onCall.getLabel` datasource).
*/
labels?: pulumi.Input<pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>[]>;
/**
* The name of the service integration.
*/
name?: pulumi.Input<string>;
/**
* The ID of the OnCall team (using the `grafana.onCall.getTeam` datasource).
*/
teamId?: pulumi.Input<string>;
/**
* Jinja2 templates for Alert payload. An empty templates block will be ignored.
*/
templates?: pulumi.Input<inputs.OncallIntegrationTemplates>;
/**
* The type of integration. Can be grafana, grafana*alerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog, pagerduty, pingdom, elastalert, amazon*sns, curler, sentry, formatted*webhook, heartbeat, demo, manual, stackdriver, uptimerobot, sentry*platform, zabbix, prtg, slack*channel, inbound*email, direct_paging, jira, zendesk.
*/
type: pulumi.Input<string>;
}