published on Tuesday, Nov 24, 2026 by pulumiverse
Grafanapublished on Tuesday, Nov 24, 2026 by pulumiverse
Manages Grafana Alert Rules.
This resource uses the rules.alerting.grafana.app/v1beta1 API, which requires Grafana 13.3 or later.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumiverse/grafana";
const alertruleFolder = new grafana.oss.Folder("alertrule_folder", {title: "Alert Rule Folder"});
const example = new grafana.alerting.v1beta1.AlertRule("example", {
metadata: {
uid: "example-alert-rule",
folderUid: alertruleFolder.uid,
},
spec: {
title: "Example Alert Rule",
trigger: {
interval: "1m",
},
paused: true,
expressions: {
A: {
model: JSON.stringify({
datasource: {
type: "prometheus",
uid: "ds_uid",
},
editorMode: "code",
expr: "count(up{})",
instant: true,
intervalMs: 1000,
legendFormat: "__auto",
maxDataPoints: 43200,
range: false,
refId: "A",
}),
datasourceUid: "ds_uid",
relativeTimeRange: {
from: "600s",
to: "0s",
},
queryType: "",
source: true,
},
B: {
model: JSON.stringify({
conditions: [{
evaluator: {
params: [1],
type: "gt",
},
operator: {
type: "and",
},
query: {
params: ["C"],
},
reducer: {
params: [],
type: "last",
},
type: "query",
}],
datasource: {
type: "__expr__",
uid: "__expr__",
},
expression: "A",
intervalMs: 1000,
maxDataPoints: 43200,
refId: "C",
type: "threshold",
}),
datasourceUid: "__expr__",
relativeTimeRange: null,
queryType: "",
source: false,
},
},
"for": "5m",
labels: {
severity: "critical",
},
annotations: {
runbook_url: "https://example.com",
},
noDataState: "KeepLast",
execErrState: "KeepLast",
missingSeriesEvalsToResolve: 5,
notificationSettings: {
simplifiedRouting: {
contactPoint: "grafana-default-email",
},
},
panelRef: {
dashboardUid: "dashboard123",
panelId: 5,
},
},
});
import pulumi
import json
import pulumiverse_grafana as grafana
alertrule_folder = grafana.oss.Folder("alertrule_folder", title="Alert Rule Folder")
example = grafana.alerting.v1beta1.AlertRule("example",
metadata={
"uid": "example-alert-rule",
"folder_uid": alertrule_folder.uid,
},
spec={
"title": "Example Alert Rule",
"trigger": {
"interval": "1m",
},
"paused": True,
"expressions": {
"A": {
"model": json.dumps({
"datasource": {
"type": "prometheus",
"uid": "ds_uid",
},
"editorMode": "code",
"expr": "count(up{})",
"instant": True,
"intervalMs": 1000,
"legendFormat": "__auto",
"maxDataPoints": 43200,
"range": False,
"refId": "A",
}),
"datasource_uid": "ds_uid",
"relative_time_range": {
"from_": "600s",
"to": "0s",
},
"query_type": "",
"source": True,
},
"B": {
"model": json.dumps({
"conditions": [{
"evaluator": {
"params": [1],
"type": "gt",
},
"operator": {
"type": "and",
},
"query": {
"params": ["C"],
},
"reducer": {
"params": [],
"type": "last",
},
"type": "query",
}],
"datasource": {
"type": "__expr__",
"uid": "__expr__",
},
"expression": "A",
"intervalMs": 1000,
"maxDataPoints": 43200,
"refId": "C",
"type": "threshold",
}),
"datasource_uid": "__expr__",
"relative_time_range": None,
"query_type": "",
"source": False,
},
},
"for_": "5m",
"labels": {
"severity": "critical",
},
"annotations": {
"runbook_url": "https://example.com",
},
"no_data_state": "KeepLast",
"exec_err_state": "KeepLast",
"missing_series_evals_to_resolve": 5,
"notification_settings": {
"simplified_routing": {
"contact_point": "grafana-default-email",
},
},
"panel_ref": {
"dashboard_uid": "dashboard123",
"panel_id": 5,
},
})
package main
import (
"encoding/json"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-grafana/sdk/v2/go/grafana/alerting"
alertingv1beta1 "github.com/pulumiverse/pulumi-grafana/sdk/v2/go/grafana/alerting/v1beta1"
"github.com/pulumiverse/pulumi-grafana/sdk/v2/go/grafana/oss"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
alertruleFolder, err := oss.NewFolder(ctx, "alertrule_folder", &oss.FolderArgs{
Title: pulumi.String("Alert Rule Folder"),
})
if err != nil {
return err
}
tmpJSON0, err := json.Marshal(map[string]interface{}{
"datasource": map[string]interface{}{
"type": "prometheus",
"uid": "ds_uid",
},
"editorMode": "code",
"expr": "count(up{})",
"instant": true,
"intervalMs": 1000,
"legendFormat": "__auto",
"maxDataPoints": 43200,
"range": false,
"refId": "A",
})
if err != nil {
return err
}
json0 := string(tmpJSON0)
tmpJSON1, err := json.Marshal(map[string]interface{}{
"conditions": []map[string]interface{}{
map[string]interface{}{
"evaluator": map[string]interface{}{
"params": []float64{
1,
},
"type": "gt",
},
"operator": map[string]interface{}{
"type": "and",
},
"query": map[string]interface{}{
"params": []string{
"C",
},
},
"reducer": map[string]interface{}{
"params": []interface{}{},
"type": "last",
},
"type": "query",
},
},
"datasource": map[string]interface{}{
"type": "__expr__",
"uid": "__expr__",
},
"expression": "A",
"intervalMs": 1000,
"maxDataPoints": 43200,
"refId": "C",
"type": "threshold",
})
if err != nil {
return err
}
json1 := string(tmpJSON1)
_, err = alerting.NewAlertRule(ctx, "example", &alerting.AlertRuleArgs{
Metadata: &alertingv1beta1.AlertRuleMetadataArgs{
Uid: pulumi.String("example-alert-rule"),
FolderUid: alertruleFolder.Uid,
},
Spec: &alertingv1beta1.AlertRuleSpecArgs{
Title: pulumi.String("Example Alert Rule"),
Trigger: &alertingv1beta1.AlertRuleSpecTriggerArgs{
Interval: pulumi.String("1m"),
},
Paused: pulumi.Bool(true),
Expressions: alertingv1beta1.AlertRuleSpecExpressionsMap{
"A": &alertingv1beta1.AlertRuleSpecExpressionsArgs{
Model: pulumi.String(pulumi.String(json0)),
DatasourceUid: pulumi.String("ds_uid"),
RelativeTimeRange: &alertingv1beta1.AlertRuleSpecExpressionsRelativeTimeRangeArgs{
From: pulumi.String("600s"),
To: pulumi.String("0s"),
},
QueryType: pulumi.String(""),
Source: pulumi.Bool(true),
},
"B": &alertingv1beta1.AlertRuleSpecExpressionsArgs{
Model: pulumi.String(pulumi.String(json1)),
DatasourceUid: pulumi.String("__expr__"),
RelativeTimeRange: nil,
QueryType: pulumi.String(""),
Source: pulumi.Bool(false),
},
},
For: pulumi.String("5m"),
Labels: pulumi.StringMap{
"severity": pulumi.String("critical"),
},
Annotations: pulumi.StringMap{
"runbook_url": pulumi.String("https://example.com"),
},
NoDataState: pulumi.String("KeepLast"),
ExecErrState: pulumi.String("KeepLast"),
MissingSeriesEvalsToResolve: pulumi.Int(5),
NotificationSettings: &alertingv1beta1.AlertRuleSpecNotificationSettingsArgs{
SimplifiedRouting: &alertingv1beta1.AlertRuleSpecNotificationSettingsSimplifiedRoutingArgs{
ContactPoint: pulumi.String("grafana-default-email"),
},
},
PanelRef: &alertingv1beta1.AlertRuleSpecPanelRefArgs{
DashboardUid: pulumi.String("dashboard123"),
PanelId: pulumi.Int(5),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using Grafana = Pulumiverse.Grafana;
return await Deployment.RunAsync(() =>
{
var alertruleFolder = new Grafana.Oss.Folder("alertrule_folder", new()
{
Title = "Alert Rule Folder",
});
var example = new Grafana.Alerting.V1Beta1.AlertRule("example", new()
{
Metadata = new Grafana.Alerting.V1Beta1.Inputs.AlertRuleMetadataArgs
{
Uid = "example-alert-rule",
FolderUid = alertruleFolder.Uid,
},
Spec = new Grafana.Alerting.V1Beta1.Inputs.AlertRuleSpecArgs
{
Title = "Example Alert Rule",
Trigger = new Grafana.Alerting.V1Beta1.Inputs.AlertRuleSpecTriggerArgs
{
Interval = "1m",
},
Paused = true,
Expressions =
{
{ "A", new Grafana.Alerting.V1Beta1.Inputs.AlertRuleSpecExpressionsArgs
{
Model = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["datasource"] = new Dictionary<string, object?>
{
["type"] = "prometheus",
["uid"] = "ds_uid",
},
["editorMode"] = "code",
["expr"] = "count(up{})",
["instant"] = true,
["intervalMs"] = 1000,
["legendFormat"] = "__auto",
["maxDataPoints"] = 43200,
["range"] = false,
["refId"] = "A",
}),
DatasourceUid = "ds_uid",
RelativeTimeRange = new Grafana.Alerting.V1Beta1.Inputs.AlertRuleSpecExpressionsRelativeTimeRangeArgs
{
From = "600s",
To = "0s",
},
QueryType = "",
Source = true,
} },
{ "B", new Grafana.Alerting.V1Beta1.Inputs.AlertRuleSpecExpressionsArgs
{
Model = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["conditions"] = new[]
{
new Dictionary<string, object?>
{
["evaluator"] = new Dictionary<string, object?>
{
["params"] = new[]
{
1,
},
["type"] = "gt",
},
["operator"] = new Dictionary<string, object?>
{
["type"] = "and",
},
["query"] = new Dictionary<string, object?>
{
["params"] = new[]
{
"C",
},
},
["reducer"] = new Dictionary<string, object?>
{
["params"] = new[]
{
},
["type"] = "last",
},
["type"] = "query",
},
},
["datasource"] = new Dictionary<string, object?>
{
["type"] = "__expr__",
["uid"] = "__expr__",
},
["expression"] = "A",
["intervalMs"] = 1000,
["maxDataPoints"] = 43200,
["refId"] = "C",
["type"] = "threshold",
}),
DatasourceUid = "__expr__",
RelativeTimeRange = null,
QueryType = "",
Source = false,
} },
},
For = "5m",
Labels =
{
{ "severity", "critical" },
},
Annotations =
{
{ "runbook_url", "https://example.com" },
},
NoDataState = "KeepLast",
ExecErrState = "KeepLast",
MissingSeriesEvalsToResolve = 5,
NotificationSettings = new Grafana.Alerting.V1Beta1.Inputs.AlertRuleSpecNotificationSettingsArgs
{
SimplifiedRouting = new Grafana.Alerting.V1Beta1.Inputs.AlertRuleSpecNotificationSettingsSimplifiedRoutingArgs
{
ContactPoint = "grafana-default-email",
},
},
PanelRef = new Grafana.Alerting.V1Beta1.Inputs.AlertRuleSpecPanelRefArgs
{
DashboardUid = "dashboard123",
PanelId = 5,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.oss.Folder;
import com.pulumi.grafana.oss.FolderArgs;
import com.pulumi.grafana.alerting_v1beta1.AlertRule;
import com.pulumi.grafana.alerting_v1beta1.AlertRuleArgs;
import com.pulumi.grafana.alerting.inputs.AlertRuleMetadataArgs;
import com.pulumi.grafana.alerting.inputs.AlertRuleSpecArgs;
import com.pulumi.grafana.alerting.inputs.AlertRuleSpecTriggerArgs;
import com.pulumi.grafana.alerting.inputs.AlertRuleSpecNotificationSettingsArgs;
import com.pulumi.grafana.alerting.inputs.AlertRuleSpecNotificationSettingsSimplifiedRoutingArgs;
import com.pulumi.grafana.alerting.inputs.AlertRuleSpecPanelRefArgs;
import static com.pulumi.codegen.internal.Serialization.*;
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 alertruleFolder = new Folder("alertruleFolder", FolderArgs.builder()
.title("Alert Rule Folder")
.build());
var example = new AlertRule("example", AlertRuleArgs.builder()
.metadata(AlertRuleMetadataArgs.builder()
.uid("example-alert-rule")
.folderUid(alertruleFolder.uid())
.build())
.spec(AlertRuleSpecArgs.builder()
.title("Example Alert Rule")
.trigger(AlertRuleSpecTriggerArgs.builder()
.interval("1m")
.build())
.paused(true)
.expressions(Map.ofEntries(
Map.entry("A", AlertRuleSpecExpressionsArgs.builder()
.model(serializeJson(
jsonObject(
jsonProperty("datasource", jsonObject(
jsonProperty("type", "prometheus"),
jsonProperty("uid", "ds_uid")
)),
jsonProperty("editorMode", "code"),
jsonProperty("expr", "count(up{})"),
jsonProperty("instant", true),
jsonProperty("intervalMs", 1000),
jsonProperty("legendFormat", "__auto"),
jsonProperty("maxDataPoints", 43200),
jsonProperty("range", false),
jsonProperty("refId", "A")
)))
.datasourceUid("ds_uid")
.relativeTimeRange(AlertRuleSpecExpressionsRelativeTimeRangeArgs.builder()
.from("600s")
.to("0s")
.build())
.queryType("")
.source(true)
.build()),
Map.entry("B", AlertRuleSpecExpressionsArgs.builder()
.model(serializeJson(
jsonObject(
jsonProperty("conditions", jsonArray(jsonObject(
jsonProperty("evaluator", jsonObject(
jsonProperty("params", jsonArray(1)),
jsonProperty("type", "gt")
)),
jsonProperty("operator", jsonObject(
jsonProperty("type", "and")
)),
jsonProperty("query", jsonObject(
jsonProperty("params", jsonArray("C"))
)),
jsonProperty("reducer", jsonObject(
jsonProperty("params", jsonArray(
)),
jsonProperty("type", "last")
)),
jsonProperty("type", "query")
))),
jsonProperty("datasource", jsonObject(
jsonProperty("type", "__expr__"),
jsonProperty("uid", "__expr__")
)),
jsonProperty("expression", "A"),
jsonProperty("intervalMs", 1000),
jsonProperty("maxDataPoints", 43200),
jsonProperty("refId", "C"),
jsonProperty("type", "threshold")
)))
.datasourceUid("__expr__")
.relativeTimeRange(null)
.queryType("")
.source(false)
.build())
))
.for_("5m")
.labels(Map.of("severity", "critical"))
.annotations(Map.of("runbook_url", "https://example.com"))
.noDataState("KeepLast")
.execErrState("KeepLast")
.missingSeriesEvalsToResolve(5)
.notificationSettings(AlertRuleSpecNotificationSettingsArgs.builder()
.simplifiedRouting(AlertRuleSpecNotificationSettingsSimplifiedRoutingArgs.builder()
.contactPoint("grafana-default-email")
.build())
.build())
.panelRef(AlertRuleSpecPanelRefArgs.builder()
.dashboardUid("dashboard123")
.panelId(5)
.build())
.build())
.build());
}
}
resources:
alertruleFolder:
type: grafana:oss:Folder
name: alertrule_folder
properties:
title: Alert Rule Folder
example:
type: grafana:alerting/v1beta1:AlertRule
properties:
metadata:
uid: example-alert-rule
folderUid: ${alertruleFolder.uid}
spec:
title: Example Alert Rule
trigger:
interval: 1m
paused: true
expressions:
A:
model:
fn::toJSON:
datasource:
type: prometheus
uid: ds_uid
editorMode: code
expr: count(up{})
instant: true
intervalMs: 1000
legendFormat: __auto
maxDataPoints: 43200
range: false
refId: A
datasourceUid: ds_uid
relativeTimeRange:
from: 600s
to: 0s
queryType: ""
source: true
B:
model:
fn::toJSON:
conditions:
- evaluator:
params:
- 1
type: gt
operator:
type: and
query:
params:
- C
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: A
intervalMs: 1000
maxDataPoints: 43200
refId: C
type: threshold
datasourceUid: __expr__
relativeTimeRange: null
queryType: ""
source: false
for: 5m
labels:
severity: critical
annotations:
runbook_url: https://example.com
noDataState: KeepLast
execErrState: KeepLast
missingSeriesEvalsToResolve: 5
notificationSettings:
simplifiedRouting:
contactPoint: grafana-default-email
panelRef:
dashboardUid: dashboard123
panelId: 5
Example coming soon!
Create AlertRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AlertRule(name: string, args?: AlertRuleArgs, opts?: CustomResourceOptions);@overload
def AlertRule(resource_name: str,
args: Optional[AlertRuleArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def AlertRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
metadata: Optional[AlertRuleMetadataArgs] = None,
options: Optional[AlertRuleOptionsArgs] = None,
spec: Optional[AlertRuleSpecArgs] = None)func NewAlertRule(ctx *Context, name string, args *AlertRuleArgs, opts ...ResourceOption) (*AlertRule, error)public AlertRule(string name, AlertRuleArgs? args = null, CustomResourceOptions? opts = null)
public AlertRule(String name, AlertRuleArgs args)
public AlertRule(String name, AlertRuleArgs args, CustomResourceOptions options)
type: grafana:alerting/v1beta1/alertRule:AlertRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "grafana_alerting_v1beta1_alert_rule" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AlertRuleArgs
- 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 AlertRuleArgs
- 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 AlertRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlertRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AlertRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AlertRule 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 AlertRule resource accepts the following input properties:
- Metadata
Pulumiverse.
Grafana. Alerting. V1Beta1. Inputs. Alert Rule Metadata - The metadata of the resource.
- Options
Pulumiverse.
Grafana. Alerting. V1Beta1. Inputs. Alert Rule Options - Options for applying the resource.
- Spec
Pulumiverse.
Grafana. Alerting. V1Beta1. Inputs. Alert Rule Spec - The spec of the resource.
- Metadata
Alert
Rule Metadata Args - The metadata of the resource.
- Options
Alert
Rule Options Args - Options for applying the resource.
- Spec
Alert
Rule Spec Args - The spec of the resource.
- metadata
Alert
Rule Metadata - The metadata of the resource.
- options
Alert
Rule Options - Options for applying the resource.
- spec
Alert
Rule Spec - The spec of the resource.
- metadata
Alert
Rule Metadata - The metadata of the resource.
- options
Alert
Rule Options - Options for applying the resource.
- spec
Alert
Rule Spec - The spec of the resource.
- metadata
Alert
Rule Metadata Args - The metadata of the resource.
- options
Alert
Rule Options Args - Options for applying the resource.
- spec
Alert
Rule Spec Args - The spec of the resource.
- metadata Property Map
- The metadata of the resource.
- options Property Map
- Options for applying the resource.
- spec Property Map
- The spec of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the AlertRule resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AlertRule Resource
Get an existing AlertRule 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?: AlertRuleState, opts?: CustomResourceOptions): AlertRule@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
metadata: Optional[AlertRuleMetadataArgs] = None,
options: Optional[AlertRuleOptionsArgs] = None,
spec: Optional[AlertRuleSpecArgs] = None) -> AlertRulefunc GetAlertRule(ctx *Context, name string, id IDInput, state *AlertRuleState, opts ...ResourceOption) (*AlertRule, error)public static AlertRule Get(string name, Input<string> id, AlertRuleState? state, CustomResourceOptions? opts = null)public static AlertRule get(String name, Output<String> id, AlertRuleState state, CustomResourceOptions options)resources: existingAlertRule: type: grafana:alerting/v1beta1/alertRule:AlertRule get: id: ${id}import {
to = grafana_alerting_v1beta1_alert_rule.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state AlertRuleState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state AlertRuleState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state AlertRuleState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state AlertRuleState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Metadata
Pulumiverse.
Grafana. Alerting. V1Beta1. Inputs. Alert Rule Metadata - The metadata of the resource.
- Options
Pulumiverse.
Grafana. Alerting. V1Beta1. Inputs. Alert Rule Options - Options for applying the resource.
- Spec
Pulumiverse.
Grafana. Alerting. V1Beta1. Inputs. Alert Rule Spec - The spec of the resource.
- Metadata
Alert
Rule Metadata Args - The metadata of the resource.
- Options
Alert
Rule Options Args - Options for applying the resource.
- Spec
Alert
Rule Spec Args - The spec of the resource.
- metadata
Alert
Rule Metadata - The metadata of the resource.
- options
Alert
Rule Options - Options for applying the resource.
- spec
Alert
Rule Spec - The spec of the resource.
- metadata
Alert
Rule Metadata - The metadata of the resource.
- options
Alert
Rule Options - Options for applying the resource.
- spec
Alert
Rule Spec - The spec of the resource.
- metadata
Alert
Rule Metadata Args - The metadata of the resource.
- options
Alert
Rule Options Args - Options for applying the resource.
- spec
Alert
Rule Spec Args - The spec of the resource.
- metadata Property Map
- The metadata of the resource.
- options Property Map
- Options for applying the resource.
- spec Property Map
- The spec of the resource.
Supporting Types
AlertRuleMetadata, AlertRuleMetadataArgs
- Uid string
- The unique identifier of the resource.
- Annotations Dictionary<string, string>
- Annotations of the resource.
- Folder
Uid string - The UID of the folder to save the resource in. For example, it's supported for dashboards and folders. To know if it's supported for the specific resource you're using check the documentation.
- Org
Id int - The Grafana organization ID this resource belongs to, for self-hosted OSS or Enterprise Grafana. When set, it overrides the provider's
orgIdfor this resource only, so a single provider configuration can manage App Platform resources across multiple organizations. Not supported on Grafana Cloud (configure a stack withstackIdinstead). Changing this value forces the resource to be recreated in the new organization. - Url string
- The full URL of the resource.
- Uuid string
- The globally unique identifier of a resource, used by the API for tracking.
- Version string
- The version of the resource.
- Uid string
- The unique identifier of the resource.
- Annotations map[string]string
- Annotations of the resource.
- Folder
Uid string - The UID of the folder to save the resource in. For example, it's supported for dashboards and folders. To know if it's supported for the specific resource you're using check the documentation.
- Org
Id int - The Grafana organization ID this resource belongs to, for self-hosted OSS or Enterprise Grafana. When set, it overrides the provider's
orgIdfor this resource only, so a single provider configuration can manage App Platform resources across multiple organizations. Not supported on Grafana Cloud (configure a stack withstackIdinstead). Changing this value forces the resource to be recreated in the new organization. - Url string
- The full URL of the resource.
- Uuid string
- The globally unique identifier of a resource, used by the API for tracking.
- Version string
- The version of the resource.
- uid string
- The unique identifier of the resource.
- annotations map(string)
- Annotations of the resource.
- folder_
uid string - The UID of the folder to save the resource in. For example, it's supported for dashboards and folders. To know if it's supported for the specific resource you're using check the documentation.
- org_
id number - The Grafana organization ID this resource belongs to, for self-hosted OSS or Enterprise Grafana. When set, it overrides the provider's
orgIdfor this resource only, so a single provider configuration can manage App Platform resources across multiple organizations. Not supported on Grafana Cloud (configure a stack withstackIdinstead). Changing this value forces the resource to be recreated in the new organization. - url string
- The full URL of the resource.
- uuid string
- The globally unique identifier of a resource, used by the API for tracking.
- version string
- The version of the resource.
- uid String
- The unique identifier of the resource.
- annotations Map<String,String>
- Annotations of the resource.
- folder
Uid String - The UID of the folder to save the resource in. For example, it's supported for dashboards and folders. To know if it's supported for the specific resource you're using check the documentation.
- org
Id Integer - The Grafana organization ID this resource belongs to, for self-hosted OSS or Enterprise Grafana. When set, it overrides the provider's
orgIdfor this resource only, so a single provider configuration can manage App Platform resources across multiple organizations. Not supported on Grafana Cloud (configure a stack withstackIdinstead). Changing this value forces the resource to be recreated in the new organization. - url String
- The full URL of the resource.
- uuid String
- The globally unique identifier of a resource, used by the API for tracking.
- version String
- The version of the resource.
- uid string
- The unique identifier of the resource.
- annotations {[key: string]: string}
- Annotations of the resource.
- folder
Uid string - The UID of the folder to save the resource in. For example, it's supported for dashboards and folders. To know if it's supported for the specific resource you're using check the documentation.
- org
Id number - The Grafana organization ID this resource belongs to, for self-hosted OSS or Enterprise Grafana. When set, it overrides the provider's
orgIdfor this resource only, so a single provider configuration can manage App Platform resources across multiple organizations. Not supported on Grafana Cloud (configure a stack withstackIdinstead). Changing this value forces the resource to be recreated in the new organization. - url string
- The full URL of the resource.
- uuid string
- The globally unique identifier of a resource, used by the API for tracking.
- version string
- The version of the resource.
- uid str
- The unique identifier of the resource.
- annotations Mapping[str, str]
- Annotations of the resource.
- folder_
uid str - The UID of the folder to save the resource in. For example, it's supported for dashboards and folders. To know if it's supported for the specific resource you're using check the documentation.
- org_
id int - The Grafana organization ID this resource belongs to, for self-hosted OSS or Enterprise Grafana. When set, it overrides the provider's
orgIdfor this resource only, so a single provider configuration can manage App Platform resources across multiple organizations. Not supported on Grafana Cloud (configure a stack withstackIdinstead). Changing this value forces the resource to be recreated in the new organization. - url str
- The full URL of the resource.
- uuid str
- The globally unique identifier of a resource, used by the API for tracking.
- version str
- The version of the resource.
- uid String
- The unique identifier of the resource.
- annotations Map<String>
- Annotations of the resource.
- folder
Uid String - The UID of the folder to save the resource in. For example, it's supported for dashboards and folders. To know if it's supported for the specific resource you're using check the documentation.
- org
Id Number - The Grafana organization ID this resource belongs to, for self-hosted OSS or Enterprise Grafana. When set, it overrides the provider's
orgIdfor this resource only, so a single provider configuration can manage App Platform resources across multiple organizations. Not supported on Grafana Cloud (configure a stack withstackIdinstead). Changing this value forces the resource to be recreated in the new organization. - url String
- The full URL of the resource.
- uuid String
- The globally unique identifier of a resource, used by the API for tracking.
- version String
- The version of the resource.
AlertRuleOptions, AlertRuleOptionsArgs
- Manager
Identity string - Override the identity stamped on this resource's manager metadata. Defaults to "grafana-terraform-provider". Use this to distinguish resources managed by different Pulumi Stacks targeting the same Grafana instance.
- Overwrite bool
- Set to true if you want to overwrite existing resource with newer version, same resource title in folder or same resource uid.
- Manager
Identity string - Override the identity stamped on this resource's manager metadata. Defaults to "grafana-terraform-provider". Use this to distinguish resources managed by different Pulumi Stacks targeting the same Grafana instance.
- Overwrite bool
- Set to true if you want to overwrite existing resource with newer version, same resource title in folder or same resource uid.
- manager_
identity string - Override the identity stamped on this resource's manager metadata. Defaults to "grafana-terraform-provider". Use this to distinguish resources managed by different Pulumi Stacks targeting the same Grafana instance.
- overwrite bool
- Set to true if you want to overwrite existing resource with newer version, same resource title in folder or same resource uid.
- manager
Identity String - Override the identity stamped on this resource's manager metadata. Defaults to "grafana-terraform-provider". Use this to distinguish resources managed by different Pulumi Stacks targeting the same Grafana instance.
- overwrite Boolean
- Set to true if you want to overwrite existing resource with newer version, same resource title in folder or same resource uid.
- manager
Identity string - Override the identity stamped on this resource's manager metadata. Defaults to "grafana-terraform-provider". Use this to distinguish resources managed by different Pulumi Stacks targeting the same Grafana instance.
- overwrite boolean
- Set to true if you want to overwrite existing resource with newer version, same resource title in folder or same resource uid.
- manager_
identity str - Override the identity stamped on this resource's manager metadata. Defaults to "grafana-terraform-provider". Use this to distinguish resources managed by different Pulumi Stacks targeting the same Grafana instance.
- overwrite bool
- Set to true if you want to overwrite existing resource with newer version, same resource title in folder or same resource uid.
- manager
Identity String - Override the identity stamped on this resource's manager metadata. Defaults to "grafana-terraform-provider". Use this to distinguish resources managed by different Pulumi Stacks targeting the same Grafana instance.
- overwrite Boolean
- Set to true if you want to overwrite existing resource with newer version, same resource title in folder or same resource uid.
AlertRuleSpec, AlertRuleSpecArgs
- Exec
Err stringState - Describes what state to enter when the rule's query is invalid and the rule cannot be executed. Options are OK, Error, KeepLast, and Alerting.
- Expressions
Dictionary<string, Pulumiverse.
Grafana. Alerting. V1Beta1. Inputs. Alert Rule Spec Expressions> - The stages of the rule, keyed by reference ID. Each expression is an object with
model(the query or expression model as a JSON string, for example fromjsonencode),datasourceUid(the datasource to run against;__expr__for server-side expressions),queryType,relativeTimeRange(an object withfromandtodurations) andsource. Exactly one expression must setsource = true. Every field must be set; usenullfor unused fields. - No
Data stringState - Describes what state to enter when the rule's query returns No Data. Options are OK, NoData, KeepLast, and Alerting.
- Title string
- The title of the alert rule.
- Annotations Dictionary<string, string>
- Key-value pairs of metadata to attach to the alert rule. They add additional information, such as a
summaryorrunbookUrl, to help identify and investigate alerts. - For string
- The amount of time for which the rule must be breached for the rule to be considered to be Firing. Before this time has elapsed, the rule is only considered to be Pending.
- Keep
Firing stringFor - The amount of time for which the rule will considered to be Recovering after initially Firing. Before this time has elapsed, the rule will continue to fire once it's been triggered.
- Labels Dictionary<string, string>
- Key-value pairs to attach to the alert rule that can be used in matching, grouping, and routing.
- Missing
Series intEvals To Resolve - The number of missing series evaluations that must occur before the rule is considered to be resolved.
- Notification
Settings Pulumiverse.Grafana. Alerting. V1Beta1. Inputs. Alert Rule Spec Notification Settings - Notification settings for the rule. If specified, it overrides the notification policies. Specify exactly one of simplifiedrouting or namedrouting*tree.
- Panel
Ref Pulumiverse.Grafana. Alerting. V1Beta1. Inputs. Alert Rule Spec Panel Ref - Reference to the dashboard panel this alert rule is associated with, as an object with
dashboardUid(string) andpanelId(number). - Paused bool
- Sets whether the rule should be paused or not.
- Trigger
Pulumiverse.
Grafana. Alerting. V1Beta1. Inputs. Alert Rule Spec Trigger - The trigger configuration for the alert rule.
- Exec
Err stringState - Describes what state to enter when the rule's query is invalid and the rule cannot be executed. Options are OK, Error, KeepLast, and Alerting.
- Expressions
map[string]Alert
Rule Spec Expressions - The stages of the rule, keyed by reference ID. Each expression is an object with
model(the query or expression model as a JSON string, for example fromjsonencode),datasourceUid(the datasource to run against;__expr__for server-side expressions),queryType,relativeTimeRange(an object withfromandtodurations) andsource. Exactly one expression must setsource = true. Every field must be set; usenullfor unused fields. - No
Data stringState - Describes what state to enter when the rule's query returns No Data. Options are OK, NoData, KeepLast, and Alerting.
- Title string
- The title of the alert rule.
- Annotations map[string]string
- Key-value pairs of metadata to attach to the alert rule. They add additional information, such as a
summaryorrunbookUrl, to help identify and investigate alerts. - For string
- The amount of time for which the rule must be breached for the rule to be considered to be Firing. Before this time has elapsed, the rule is only considered to be Pending.
- Keep
Firing stringFor - The amount of time for which the rule will considered to be Recovering after initially Firing. Before this time has elapsed, the rule will continue to fire once it's been triggered.
- Labels map[string]string
- Key-value pairs to attach to the alert rule that can be used in matching, grouping, and routing.
- Missing
Series intEvals To Resolve - The number of missing series evaluations that must occur before the rule is considered to be resolved.
- Notification
Settings AlertRule Spec Notification Settings - Notification settings for the rule. If specified, it overrides the notification policies. Specify exactly one of simplifiedrouting or namedrouting*tree.
- Panel
Ref AlertRule Spec Panel Ref - Reference to the dashboard panel this alert rule is associated with, as an object with
dashboardUid(string) andpanelId(number). - Paused bool
- Sets whether the rule should be paused or not.
- Trigger
Alert
Rule Spec Trigger - The trigger configuration for the alert rule.
- exec_
err_ stringstate - Describes what state to enter when the rule's query is invalid and the rule cannot be executed. Options are OK, Error, KeepLast, and Alerting.
- expressions map(object)
- The stages of the rule, keyed by reference ID. Each expression is an object with
model(the query or expression model as a JSON string, for example fromjsonencode),datasourceUid(the datasource to run against;__expr__for server-side expressions),queryType,relativeTimeRange(an object withfromandtodurations) andsource. Exactly one expression must setsource = true. Every field must be set; usenullfor unused fields. - no_
data_ stringstate - Describes what state to enter when the rule's query returns No Data. Options are OK, NoData, KeepLast, and Alerting.
- title string
- The title of the alert rule.
- annotations map(string)
- Key-value pairs of metadata to attach to the alert rule. They add additional information, such as a
summaryorrunbookUrl, to help identify and investigate alerts. - for string
- The amount of time for which the rule must be breached for the rule to be considered to be Firing. Before this time has elapsed, the rule is only considered to be Pending.
- keep_
firing_ stringfor - The amount of time for which the rule will considered to be Recovering after initially Firing. Before this time has elapsed, the rule will continue to fire once it's been triggered.
- labels map(string)
- Key-value pairs to attach to the alert rule that can be used in matching, grouping, and routing.
- missing_
series_ numberevals_ to_ resolve - The number of missing series evaluations that must occur before the rule is considered to be resolved.
- notification_
settings object - Notification settings for the rule. If specified, it overrides the notification policies. Specify exactly one of simplifiedrouting or namedrouting*tree.
- panel_
ref object - Reference to the dashboard panel this alert rule is associated with, as an object with
dashboardUid(string) andpanelId(number). - paused bool
- Sets whether the rule should be paused or not.
- trigger object
- The trigger configuration for the alert rule.
- exec
Err StringState - Describes what state to enter when the rule's query is invalid and the rule cannot be executed. Options are OK, Error, KeepLast, and Alerting.
- expressions
Map<String,Alert
Rule Spec Expressions> - The stages of the rule, keyed by reference ID. Each expression is an object with
model(the query or expression model as a JSON string, for example fromjsonencode),datasourceUid(the datasource to run against;__expr__for server-side expressions),queryType,relativeTimeRange(an object withfromandtodurations) andsource. Exactly one expression must setsource = true. Every field must be set; usenullfor unused fields. - no
Data StringState - Describes what state to enter when the rule's query returns No Data. Options are OK, NoData, KeepLast, and Alerting.
- title String
- The title of the alert rule.
- annotations Map<String,String>
- Key-value pairs of metadata to attach to the alert rule. They add additional information, such as a
summaryorrunbookUrl, to help identify and investigate alerts. - for_ String
- The amount of time for which the rule must be breached for the rule to be considered to be Firing. Before this time has elapsed, the rule is only considered to be Pending.
- keep
Firing StringFor - The amount of time for which the rule will considered to be Recovering after initially Firing. Before this time has elapsed, the rule will continue to fire once it's been triggered.
- labels Map<String,String>
- Key-value pairs to attach to the alert rule that can be used in matching, grouping, and routing.
- missing
Series IntegerEvals To Resolve - The number of missing series evaluations that must occur before the rule is considered to be resolved.
- notification
Settings AlertRule Spec Notification Settings - Notification settings for the rule. If specified, it overrides the notification policies. Specify exactly one of simplifiedrouting or namedrouting*tree.
- panel
Ref AlertRule Spec Panel Ref - Reference to the dashboard panel this alert rule is associated with, as an object with
dashboardUid(string) andpanelId(number). - paused Boolean
- Sets whether the rule should be paused or not.
- trigger
Alert
Rule Spec Trigger - The trigger configuration for the alert rule.
- exec
Err stringState - Describes what state to enter when the rule's query is invalid and the rule cannot be executed. Options are OK, Error, KeepLast, and Alerting.
- expressions
{[key: string]: Alert
Rule Spec Expressions} - The stages of the rule, keyed by reference ID. Each expression is an object with
model(the query or expression model as a JSON string, for example fromjsonencode),datasourceUid(the datasource to run against;__expr__for server-side expressions),queryType,relativeTimeRange(an object withfromandtodurations) andsource. Exactly one expression must setsource = true. Every field must be set; usenullfor unused fields. - no
Data stringState - Describes what state to enter when the rule's query returns No Data. Options are OK, NoData, KeepLast, and Alerting.
- title string
- The title of the alert rule.
- annotations {[key: string]: string}
- Key-value pairs of metadata to attach to the alert rule. They add additional information, such as a
summaryorrunbookUrl, to help identify and investigate alerts. - for string
- The amount of time for which the rule must be breached for the rule to be considered to be Firing. Before this time has elapsed, the rule is only considered to be Pending.
- keep
Firing stringFor - The amount of time for which the rule will considered to be Recovering after initially Firing. Before this time has elapsed, the rule will continue to fire once it's been triggered.
- labels {[key: string]: string}
- Key-value pairs to attach to the alert rule that can be used in matching, grouping, and routing.
- missing
Series numberEvals To Resolve - The number of missing series evaluations that must occur before the rule is considered to be resolved.
- notification
Settings AlertRule Spec Notification Settings - Notification settings for the rule. If specified, it overrides the notification policies. Specify exactly one of simplifiedrouting or namedrouting*tree.
- panel
Ref AlertRule Spec Panel Ref - Reference to the dashboard panel this alert rule is associated with, as an object with
dashboardUid(string) andpanelId(number). - paused boolean
- Sets whether the rule should be paused or not.
- trigger
Alert
Rule Spec Trigger - The trigger configuration for the alert rule.
- exec_
err_ strstate - Describes what state to enter when the rule's query is invalid and the rule cannot be executed. Options are OK, Error, KeepLast, and Alerting.
- expressions
Mapping[str, Alert
Rule Spec Expressions] - The stages of the rule, keyed by reference ID. Each expression is an object with
model(the query or expression model as a JSON string, for example fromjsonencode),datasourceUid(the datasource to run against;__expr__for server-side expressions),queryType,relativeTimeRange(an object withfromandtodurations) andsource. Exactly one expression must setsource = true. Every field must be set; usenullfor unused fields. - no_
data_ strstate - Describes what state to enter when the rule's query returns No Data. Options are OK, NoData, KeepLast, and Alerting.
- title str
- The title of the alert rule.
- annotations Mapping[str, str]
- Key-value pairs of metadata to attach to the alert rule. They add additional information, such as a
summaryorrunbookUrl, to help identify and investigate alerts. - for_ str
- The amount of time for which the rule must be breached for the rule to be considered to be Firing. Before this time has elapsed, the rule is only considered to be Pending.
- keep_
firing_ strfor - The amount of time for which the rule will considered to be Recovering after initially Firing. Before this time has elapsed, the rule will continue to fire once it's been triggered.
- labels Mapping[str, str]
- Key-value pairs to attach to the alert rule that can be used in matching, grouping, and routing.
- missing_
series_ intevals_ to_ resolve - The number of missing series evaluations that must occur before the rule is considered to be resolved.
- notification_
settings AlertRule Spec Notification Settings - Notification settings for the rule. If specified, it overrides the notification policies. Specify exactly one of simplifiedrouting or namedrouting*tree.
- panel_
ref AlertRule Spec Panel Ref - Reference to the dashboard panel this alert rule is associated with, as an object with
dashboardUid(string) andpanelId(number). - paused bool
- Sets whether the rule should be paused or not.
- trigger
Alert
Rule Spec Trigger - The trigger configuration for the alert rule.
- exec
Err StringState - Describes what state to enter when the rule's query is invalid and the rule cannot be executed. Options are OK, Error, KeepLast, and Alerting.
- expressions Map<Property Map>
- The stages of the rule, keyed by reference ID. Each expression is an object with
model(the query or expression model as a JSON string, for example fromjsonencode),datasourceUid(the datasource to run against;__expr__for server-side expressions),queryType,relativeTimeRange(an object withfromandtodurations) andsource. Exactly one expression must setsource = true. Every field must be set; usenullfor unused fields. - no
Data StringState - Describes what state to enter when the rule's query returns No Data. Options are OK, NoData, KeepLast, and Alerting.
- title String
- The title of the alert rule.
- annotations Map<String>
- Key-value pairs of metadata to attach to the alert rule. They add additional information, such as a
summaryorrunbookUrl, to help identify and investigate alerts. - for String
- The amount of time for which the rule must be breached for the rule to be considered to be Firing. Before this time has elapsed, the rule is only considered to be Pending.
- keep
Firing StringFor - The amount of time for which the rule will considered to be Recovering after initially Firing. Before this time has elapsed, the rule will continue to fire once it's been triggered.
- labels Map<String>
- Key-value pairs to attach to the alert rule that can be used in matching, grouping, and routing.
- missing
Series NumberEvals To Resolve - The number of missing series evaluations that must occur before the rule is considered to be resolved.
- notification
Settings Property Map - Notification settings for the rule. If specified, it overrides the notification policies. Specify exactly one of simplifiedrouting or namedrouting*tree.
- panel
Ref Property Map - Reference to the dashboard panel this alert rule is associated with, as an object with
dashboardUid(string) andpanelId(number). - paused Boolean
- Sets whether the rule should be paused or not.
- trigger Property Map
- The trigger configuration for the alert rule.
AlertRuleSpecExpressions, AlertRuleSpecExpressionsArgs
- Datasource
Uid string - Model string
- Query
Type string - Relative
Time AlertRange Rule Spec Expressions Relative Time Range - Source bool
- datasource_
uid string - model string
- query_
type string - relative_
time_ objectrange - source bool
- datasource
Uid String - model String
- query
Type String - relative
Time AlertRange Rule Spec Expressions Relative Time Range - source Boolean
- datasource
Uid string - model string
- query
Type string - relative
Time AlertRange Rule Spec Expressions Relative Time Range - source boolean
- datasource
Uid String - model String
- query
Type String - relative
Time Property MapRange - source Boolean
AlertRuleSpecExpressionsRelativeTimeRange, AlertRuleSpecExpressionsRelativeTimeRangeArgs
AlertRuleSpecNotificationSettings, AlertRuleSpecNotificationSettingsArgs
- Named
Routing Pulumiverse.Tree Grafana. Alerting. V1Beta1. Inputs. Alert Rule Spec Notification Settings Named Routing Tree - Route notifications to a specific routing tree.
- Simplified
Routing Pulumiverse.Grafana. Alerting. V1Beta1. Inputs. Alert Rule Spec Notification Settings Simplified Routing - Simplified routing to a contact point with optional grouping and timing overrides.
- Named
Routing AlertTree Rule Spec Notification Settings Named Routing Tree - Route notifications to a specific routing tree.
- Simplified
Routing AlertRule Spec Notification Settings Simplified Routing - Simplified routing to a contact point with optional grouping and timing overrides.
- named_
routing_ objecttree - Route notifications to a specific routing tree.
- simplified_
routing object - Simplified routing to a contact point with optional grouping and timing overrides.
- named
Routing AlertTree Rule Spec Notification Settings Named Routing Tree - Route notifications to a specific routing tree.
- simplified
Routing AlertRule Spec Notification Settings Simplified Routing - Simplified routing to a contact point with optional grouping and timing overrides.
- named
Routing AlertTree Rule Spec Notification Settings Named Routing Tree - Route notifications to a specific routing tree.
- simplified
Routing AlertRule Spec Notification Settings Simplified Routing - Simplified routing to a contact point with optional grouping and timing overrides.
- named_
routing_ Alerttree Rule Spec Notification Settings Named Routing Tree - Route notifications to a specific routing tree.
- simplified_
routing AlertRule Spec Notification Settings Simplified Routing - Simplified routing to a contact point with optional grouping and timing overrides.
- named
Routing Property MapTree - Route notifications to a specific routing tree.
- simplified
Routing Property Map - Simplified routing to a contact point with optional grouping and timing overrides.
AlertRuleSpecNotificationSettingsNamedRoutingTree, AlertRuleSpecNotificationSettingsNamedRoutingTreeArgs
- Routing
Tree string - The name of the routing tree to use.
- Routing
Tree string - The name of the routing tree to use.
- routing_
tree string - The name of the routing tree to use.
- routing
Tree String - The name of the routing tree to use.
- routing
Tree string - The name of the routing tree to use.
- routing_
tree str - The name of the routing tree to use.
- routing
Tree String - The name of the routing tree to use.
AlertRuleSpecNotificationSettingsSimplifiedRouting, AlertRuleSpecNotificationSettingsSimplifiedRoutingArgs
- Active
Timings List<string> - A list of time interval names to apply to alerts that match this policy to suppress them unless they are sent at the specified time.
- Contact
Point string - The contact point to route notifications that match this rule to.
- Group
Bies List<string> - A list of alert labels to group alerts into notifications by.
- Group
Interval string - Minimum time interval between two notifications for the same group.
- Group
Wait string - Time to wait to buffer alerts of the same group before sending a notification.
- Mute
Timings List<string> - A list of mute timing names to apply to alerts that match this policy.
- Repeat
Interval string - Minimum time interval for re-sending a notification if an alert is still firing.
- Active
Timings []string - A list of time interval names to apply to alerts that match this policy to suppress them unless they are sent at the specified time.
- Contact
Point string - The contact point to route notifications that match this rule to.
- Group
Bies []string - A list of alert labels to group alerts into notifications by.
- Group
Interval string - Minimum time interval between two notifications for the same group.
- Group
Wait string - Time to wait to buffer alerts of the same group before sending a notification.
- Mute
Timings []string - A list of mute timing names to apply to alerts that match this policy.
- Repeat
Interval string - Minimum time interval for re-sending a notification if an alert is still firing.
- active_
timings list(string) - A list of time interval names to apply to alerts that match this policy to suppress them unless they are sent at the specified time.
- contact_
point string - The contact point to route notifications that match this rule to.
- group_
bies list(string) - A list of alert labels to group alerts into notifications by.
- group_
interval string - Minimum time interval between two notifications for the same group.
- group_
wait string - Time to wait to buffer alerts of the same group before sending a notification.
- mute_
timings list(string) - A list of mute timing names to apply to alerts that match this policy.
- repeat_
interval string - Minimum time interval for re-sending a notification if an alert is still firing.
- active
Timings List<String> - A list of time interval names to apply to alerts that match this policy to suppress them unless they are sent at the specified time.
- contact
Point String - The contact point to route notifications that match this rule to.
- group
Bies List<String> - A list of alert labels to group alerts into notifications by.
- group
Interval String - Minimum time interval between two notifications for the same group.
- group
Wait String - Time to wait to buffer alerts of the same group before sending a notification.
- mute
Timings List<String> - A list of mute timing names to apply to alerts that match this policy.
- repeat
Interval String - Minimum time interval for re-sending a notification if an alert is still firing.
- active
Timings string[] - A list of time interval names to apply to alerts that match this policy to suppress them unless they are sent at the specified time.
- contact
Point string - The contact point to route notifications that match this rule to.
- group
Bies string[] - A list of alert labels to group alerts into notifications by.
- group
Interval string - Minimum time interval between two notifications for the same group.
- group
Wait string - Time to wait to buffer alerts of the same group before sending a notification.
- mute
Timings string[] - A list of mute timing names to apply to alerts that match this policy.
- repeat
Interval string - Minimum time interval for re-sending a notification if an alert is still firing.
- active_
timings Sequence[str] - A list of time interval names to apply to alerts that match this policy to suppress them unless they are sent at the specified time.
- contact_
point str - The contact point to route notifications that match this rule to.
- group_
bies Sequence[str] - A list of alert labels to group alerts into notifications by.
- group_
interval str - Minimum time interval between two notifications for the same group.
- group_
wait str - Time to wait to buffer alerts of the same group before sending a notification.
- mute_
timings Sequence[str] - A list of mute timing names to apply to alerts that match this policy.
- repeat_
interval str - Minimum time interval for re-sending a notification if an alert is still firing.
- active
Timings List<String> - A list of time interval names to apply to alerts that match this policy to suppress them unless they are sent at the specified time.
- contact
Point String - The contact point to route notifications that match this rule to.
- group
Bies List<String> - A list of alert labels to group alerts into notifications by.
- group
Interval String - Minimum time interval between two notifications for the same group.
- group
Wait String - Time to wait to buffer alerts of the same group before sending a notification.
- mute
Timings List<String> - A list of mute timing names to apply to alerts that match this policy.
- repeat
Interval String - Minimum time interval for re-sending a notification if an alert is still firing.
AlertRuleSpecPanelRef, AlertRuleSpecPanelRefArgs
- Dashboard
Uid string - Panel
Id int
- Dashboard
Uid string - Panel
Id int
- dashboard_
uid string - panel_
id number
- dashboard
Uid String - panel
Id Integer
- dashboard
Uid string - panel
Id number
- dashboard_
uid str - panel_
id int
- dashboard
Uid String - panel
Id Number
AlertRuleSpecTrigger, AlertRuleSpecTriggerArgs
- Interval string
- The interval at which the alert rule should be evaluated.
- Interval string
- The interval at which the alert rule should be evaluated.
- interval string
- The interval at which the alert rule should be evaluated.
- interval String
- The interval at which the alert rule should be evaluated.
- interval string
- The interval at which the alert rule should be evaluated.
- interval str
- The interval at which the alert rule should be evaluated.
- interval String
- The interval at which the alert rule should be evaluated.
Package Details
- Repository
- grafana pulumiverse/pulumi-grafana
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
grafanaTerraform Provider.
Grafanapublished on Tuesday, Nov 24, 2026 by pulumiverse