1. Packages
  2. Packages
  3. Grafana Cloud
  4. API Docs
  5. alerting
  6. AlertRuleV0Alpha1
Viewing docs for Grafana v2.29.0
published on Friday, May 1, 2026 by pulumiverse
grafana logo
Viewing docs for Grafana v2.29.0
published on Friday, May 1, 2026 by pulumiverse
    Deprecated: grafana.alerting/alertrulev0alpha1.AlertRuleV0Alpha1 has been deprecated in favor of grafana.alerting/v0alpha1/alertrule.AlertRule

    Manages Grafana Alert Rules.

    This resource is currently in alpha and is subject to change. Grafana 12.4+ users must enable the kubernetesAlertingRules feature toggle.

    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.v0alpha1.AlertRule("example", {
        metadata: {
            uid: "example-alert-rule",
            folderUid: alertruleFolder.uid,
        },
        spec: {
            title: "Example Alert Rule",
            trigger: {
                interval: "1m",
            },
            paused: true,
            expressions: {
                A: JSON.stringify({
                    model: {
                        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: JSON.stringify({
                    model: {
                        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__",
                    query_type: "",
                    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: {
                dashboard_uid: "dashboard123",
                panel_id: "5",
            },
        },
    });
    
    import pulumi
    import json
    import pulumiverse_grafana as grafana
    
    alertrule_folder = grafana.oss.Folder("alertrule_folder", title="Alert Rule Folder")
    example = grafana.alerting.v0alpha1.AlertRule("example",
        metadata={
            "uid": "example-alert-rule",
            "folder_uid": alertrule_folder.uid,
        },
        spec={
            "title": "Example Alert Rule",
            "trigger": {
                "interval": "1m",
            },
            "paused": True,
            "expressions": {
                "A": json.dumps({
                    "model": {
                        "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": json.dumps({
                    "model": {
                        "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__",
                    "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"
    	alertingv0alpha1 "github.com/pulumiverse/pulumi-grafana/sdk/v2/go/grafana/alerting/v0alpha1"
    	"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{}{
    			"model": 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",
    			},
    			"datasource_uid": "ds_uid",
    			"relative_time_range": map[string]interface{}{
    				"from": "600s",
    				"to":   "0s",
    			},
    			"query_type": "",
    			"source":     true,
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		tmpJSON1, err := json.Marshal(map[string]interface{}{
    			"model": 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",
    			},
    			"datasource_uid": "__expr__",
    			"query_type":     "",
    			"source":         false,
    		})
    		if err != nil {
    			return err
    		}
    		json1 := string(tmpJSON1)
    		_, err = alerting.NewAlertRule(ctx, "example", &alerting.AlertRuleArgs{
    			Metadata: &alertingv0alpha1.AlertRuleMetadataArgs{
    				Uid:       pulumi.String("example-alert-rule"),
    				FolderUid: alertruleFolder.Uid,
    			},
    			Spec: &alertingv0alpha1.AlertRuleSpecArgs{
    				Title: pulumi.String("Example Alert Rule"),
    				Trigger: &alertingv0alpha1.AlertRuleSpecTriggerArgs{
    					Interval: pulumi.String("1m"),
    				},
    				Paused: pulumi.Bool(true),
    				Expressions: pulumi.StringMap{
    					"A": pulumi.String(pulumi.String(json0)),
    					"B": pulumi.String(pulumi.String(json1)),
    				},
    				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: &alertingv0alpha1.AlertRuleSpecNotificationSettingsArgs{
    					SimplifiedRouting: &alertingv0alpha1.AlertRuleSpecNotificationSettingsSimplifiedRoutingArgs{
    						ContactPoint: pulumi.String("grafana-default-email"),
    					},
    				},
    				PanelRef: pulumi.StringMap{
    					"dashboard_uid": pulumi.String("dashboard123"),
    					"panel_id":      pulumi.String("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.V0Alpha1.AlertRule("example", new()
        {
            Metadata = new Grafana.Alerting.V0Alpha1.Inputs.AlertRuleMetadataArgs
            {
                Uid = "example-alert-rule",
                FolderUid = alertruleFolder.Uid,
            },
            Spec = new Grafana.Alerting.V0Alpha1.Inputs.AlertRuleSpecArgs
            {
                Title = "Example Alert Rule",
                Trigger = new Grafana.Alerting.V0Alpha1.Inputs.AlertRuleSpecTriggerArgs
                {
                    Interval = "1m",
                },
                Paused = true,
                Expressions = 
                {
                    { "A", JsonSerializer.Serialize(new Dictionary<string, object?>
                    {
                        ["model"] = 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",
                        },
                        ["datasource_uid"] = "ds_uid",
                        ["relative_time_range"] = new Dictionary<string, object?>
                        {
                            ["from"] = "600s",
                            ["to"] = "0s",
                        },
                        ["query_type"] = "",
                        ["source"] = true,
                    }) },
                    { "B", JsonSerializer.Serialize(new Dictionary<string, object?>
                    {
                        ["model"] = 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",
                        },
                        ["datasource_uid"] = "__expr__",
                        ["query_type"] = "",
                        ["source"] = false,
                    }) },
                },
                For = "5m",
                Labels = 
                {
                    { "severity", "critical" },
                },
                Annotations = 
                {
                    { "runbook_url", "https://example.com" },
                },
                NoDataState = "KeepLast",
                ExecErrState = "KeepLast",
                MissingSeriesEvalsToResolve = 5,
                NotificationSettings = new Grafana.Alerting.V0Alpha1.Inputs.AlertRuleSpecNotificationSettingsArgs
                {
                    SimplifiedRouting = new Grafana.Alerting.V0Alpha1.Inputs.AlertRuleSpecNotificationSettingsSimplifiedRoutingArgs
                    {
                        ContactPoint = "grafana-default-email",
                    },
                },
                PanelRef = 
                {
                    { "dashboard_uid", "dashboard123" },
                    { "panel_id", "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_v0alpha1.AlertRule;
    import com.pulumi.grafana.alerting_v0alpha1.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 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", serializeJson(
                            jsonObject(
                                jsonProperty("model", 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")
                                )),
                                jsonProperty("datasource_uid", "ds_uid"),
                                jsonProperty("relative_time_range", jsonObject(
                                    jsonProperty("from", "600s"),
                                    jsonProperty("to", "0s")
                                )),
                                jsonProperty("query_type", ""),
                                jsonProperty("source", true)
                            ))),
                        Map.entry("B", serializeJson(
                            jsonObject(
                                jsonProperty("model", 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")
                                )),
                                jsonProperty("datasource_uid", "__expr__"),
                                jsonProperty("query_type", ""),
                                jsonProperty("source", false)
                            )))
                    ))
                    .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(Map.ofEntries(
                        Map.entry("dashboard_uid", "dashboard123"),
                        Map.entry("panel_id", "5")
                    ))
                    .build())
                .build());
    
        }
    }
    
    resources:
      alertruleFolder:
        type: grafana:oss:Folder
        name: alertrule_folder
        properties:
          title: Alert Rule Folder
      example:
        type: grafana:alerting/v0alpha1:AlertRule
        properties:
          metadata:
            uid: example-alert-rule
            folderUid: ${alertruleFolder.uid}
          spec:
            title: Example Alert Rule
            trigger:
              interval: 1m
            paused: true
            expressions:
              A:
                fn::toJSON:
                  model:
                    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:
                fn::toJSON:
                  model:
                    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__
                  query_type: ""
                  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:
              dashboard_uid: dashboard123
              panel_id: '5'
    

    Create AlertRuleV0Alpha1 Resource

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

    Constructor syntax

    new AlertRuleV0Alpha1(name: string, args?: AlertRuleV0Alpha1Args, opts?: CustomResourceOptions);
    @overload
    def AlertRuleV0Alpha1(resource_name: str,
                          args: Optional[AlertRuleV0Alpha1Args] = None,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def AlertRuleV0Alpha1(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          metadata: Optional[AlertRuleV0Alpha1MetadataArgs] = None,
                          options: Optional[AlertRuleV0Alpha1OptionsArgs] = None,
                          spec: Optional[AlertRuleV0Alpha1SpecArgs] = None)
    func NewAlertRuleV0Alpha1(ctx *Context, name string, args *AlertRuleV0Alpha1Args, opts ...ResourceOption) (*AlertRuleV0Alpha1, error)
    public AlertRuleV0Alpha1(string name, AlertRuleV0Alpha1Args? args = null, CustomResourceOptions? opts = null)
    public AlertRuleV0Alpha1(String name, AlertRuleV0Alpha1Args args)
    public AlertRuleV0Alpha1(String name, AlertRuleV0Alpha1Args args, CustomResourceOptions options)
    
    type: grafana:alerting:AlertRuleV0Alpha1
    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 AlertRuleV0Alpha1Args
    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 AlertRuleV0Alpha1Args
    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 AlertRuleV0Alpha1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AlertRuleV0Alpha1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AlertRuleV0Alpha1Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Metadata AlertRuleV0Alpha1MetadataArgs
    The metadata of the resource.
    Options AlertRuleV0Alpha1OptionsArgs
    Options for applying the resource.
    Spec AlertRuleV0Alpha1SpecArgs
    The spec of the resource.
    metadata AlertRuleV0Alpha1Metadata
    The metadata of the resource.
    options AlertRuleV0Alpha1Options
    Options for applying the resource.
    spec AlertRuleV0Alpha1Spec
    The spec of the resource.
    metadata AlertRuleV0Alpha1Metadata
    The metadata of the resource.
    options AlertRuleV0Alpha1Options
    Options for applying the resource.
    spec AlertRuleV0Alpha1Spec
    The spec of the resource.
    metadata AlertRuleV0Alpha1MetadataArgs
    The metadata of the resource.
    options AlertRuleV0Alpha1OptionsArgs
    Options for applying the resource.
    spec AlertRuleV0Alpha1SpecArgs
    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 AlertRuleV0Alpha1 resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AlertRuleV0Alpha1 Resource

    Get an existing AlertRuleV0Alpha1 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?: AlertRuleV0Alpha1State, opts?: CustomResourceOptions): AlertRuleV0Alpha1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            metadata: Optional[AlertRuleV0Alpha1MetadataArgs] = None,
            options: Optional[AlertRuleV0Alpha1OptionsArgs] = None,
            spec: Optional[AlertRuleV0Alpha1SpecArgs] = None) -> AlertRuleV0Alpha1
    func GetAlertRuleV0Alpha1(ctx *Context, name string, id IDInput, state *AlertRuleV0Alpha1State, opts ...ResourceOption) (*AlertRuleV0Alpha1, error)
    public static AlertRuleV0Alpha1 Get(string name, Input<string> id, AlertRuleV0Alpha1State? state, CustomResourceOptions? opts = null)
    public static AlertRuleV0Alpha1 get(String name, Output<String> id, AlertRuleV0Alpha1State state, CustomResourceOptions options)
    resources:  _:    type: grafana:alerting:AlertRuleV0Alpha1    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Metadata AlertRuleV0Alpha1MetadataArgs
    The metadata of the resource.
    Options AlertRuleV0Alpha1OptionsArgs
    Options for applying the resource.
    Spec AlertRuleV0Alpha1SpecArgs
    The spec of the resource.
    metadata AlertRuleV0Alpha1Metadata
    The metadata of the resource.
    options AlertRuleV0Alpha1Options
    Options for applying the resource.
    spec AlertRuleV0Alpha1Spec
    The spec of the resource.
    metadata AlertRuleV0Alpha1Metadata
    The metadata of the resource.
    options AlertRuleV0Alpha1Options
    Options for applying the resource.
    spec AlertRuleV0Alpha1Spec
    The spec of the resource.
    metadata AlertRuleV0Alpha1MetadataArgs
    The metadata of the resource.
    options AlertRuleV0Alpha1OptionsArgs
    Options for applying the resource.
    spec AlertRuleV0Alpha1SpecArgs
    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

    AlertRuleV0Alpha1Metadata, AlertRuleV0Alpha1MetadataArgs

    Uid string
    The unique identifier of the resource.
    Annotations Dictionary<string, string>
    Annotations of the resource.
    FolderUid 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.
    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.
    FolderUid 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.
    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.
    folderUid 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.
    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.
    folderUid 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.
    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.
    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.
    folderUid 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.
    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.

    AlertRuleV0Alpha1Options, AlertRuleV0Alpha1OptionsArgs

    ManagerIdentity 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.
    ManagerIdentity 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.
    managerIdentity 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.
    managerIdentity 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.
    managerIdentity 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.

    AlertRuleV0Alpha1Spec, AlertRuleV0Alpha1SpecArgs

    ExecErrState string
    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, string>
    A sequence of stages that describe the contents of the rule. Each value is a JSON string representing an expression object.
    NoDataState string
    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 summary or runbookUrl, 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.
    KeepFiringFor string
    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.
    MissingSeriesEvalsToResolve int
    The number of missing series evaluations that must occur before the rule is considered to be resolved.
    NotificationSettings Pulumiverse.Grafana.Alerting.Inputs.AlertRuleV0Alpha1SpecNotificationSettings
    Notification settings for the rule. If specified, it overrides the notification policies. The flat configuration is deprecated, please specify one of namedroutingtree or simplified*routing
    PanelRef Dictionary<string, string>
    Reference to a panel that this alert rule is associated with. Should be an object with 'dashboarduid' (string) and 'panelid' (number) fields.
    Paused bool
    Sets whether the rule should be paused or not.
    Trigger Pulumiverse.Grafana.Alerting.Inputs.AlertRuleV0Alpha1SpecTrigger
    The trigger configuration for the alert rule.
    ExecErrState string
    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]string
    A sequence of stages that describe the contents of the rule. Each value is a JSON string representing an expression object.
    NoDataState string
    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 summary or runbookUrl, 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.
    KeepFiringFor string
    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.
    MissingSeriesEvalsToResolve int
    The number of missing series evaluations that must occur before the rule is considered to be resolved.
    NotificationSettings AlertRuleV0Alpha1SpecNotificationSettings
    Notification settings for the rule. If specified, it overrides the notification policies. The flat configuration is deprecated, please specify one of namedroutingtree or simplified*routing
    PanelRef map[string]string
    Reference to a panel that this alert rule is associated with. Should be an object with 'dashboarduid' (string) and 'panelid' (number) fields.
    Paused bool
    Sets whether the rule should be paused or not.
    Trigger AlertRuleV0Alpha1SpecTrigger
    The trigger configuration for the alert rule.
    execErrState String
    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,String>
    A sequence of stages that describe the contents of the rule. Each value is a JSON string representing an expression object.
    noDataState String
    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 summary or runbookUrl, 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.
    keepFiringFor String
    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.
    missingSeriesEvalsToResolve Integer
    The number of missing series evaluations that must occur before the rule is considered to be resolved.
    notificationSettings AlertRuleV0Alpha1SpecNotificationSettings
    Notification settings for the rule. If specified, it overrides the notification policies. The flat configuration is deprecated, please specify one of namedroutingtree or simplified*routing
    panelRef Map<String,String>
    Reference to a panel that this alert rule is associated with. Should be an object with 'dashboarduid' (string) and 'panelid' (number) fields.
    paused Boolean
    Sets whether the rule should be paused or not.
    trigger AlertRuleV0Alpha1SpecTrigger
    The trigger configuration for the alert rule.
    execErrState string
    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]: string}
    A sequence of stages that describe the contents of the rule. Each value is a JSON string representing an expression object.
    noDataState string
    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 summary or runbookUrl, 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.
    keepFiringFor string
    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.
    missingSeriesEvalsToResolve number
    The number of missing series evaluations that must occur before the rule is considered to be resolved.
    notificationSettings AlertRuleV0Alpha1SpecNotificationSettings
    Notification settings for the rule. If specified, it overrides the notification policies. The flat configuration is deprecated, please specify one of namedroutingtree or simplified*routing
    panelRef {[key: string]: string}
    Reference to a panel that this alert rule is associated with. Should be an object with 'dashboarduid' (string) and 'panelid' (number) fields.
    paused boolean
    Sets whether the rule should be paused or not.
    trigger AlertRuleV0Alpha1SpecTrigger
    The trigger configuration for the alert rule.
    exec_err_state str
    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, str]
    A sequence of stages that describe the contents of the rule. Each value is a JSON string representing an expression object.
    no_data_state str
    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 summary or runbookUrl, 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_for str
    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_evals_to_resolve int
    The number of missing series evaluations that must occur before the rule is considered to be resolved.
    notification_settings AlertRuleV0Alpha1SpecNotificationSettings
    Notification settings for the rule. If specified, it overrides the notification policies. The flat configuration is deprecated, please specify one of namedroutingtree or simplified*routing
    panel_ref Mapping[str, str]
    Reference to a panel that this alert rule is associated with. Should be an object with 'dashboarduid' (string) and 'panelid' (number) fields.
    paused bool
    Sets whether the rule should be paused or not.
    trigger AlertRuleV0Alpha1SpecTrigger
    The trigger configuration for the alert rule.
    execErrState String
    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>
    A sequence of stages that describe the contents of the rule. Each value is a JSON string representing an expression object.
    noDataState String
    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 summary or runbookUrl, 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.
    keepFiringFor String
    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.
    missingSeriesEvalsToResolve Number
    The number of missing series evaluations that must occur before the rule is considered to be resolved.
    notificationSettings Property Map
    Notification settings for the rule. If specified, it overrides the notification policies. The flat configuration is deprecated, please specify one of namedroutingtree or simplified*routing
    panelRef Map<String>
    Reference to a panel that this alert rule is associated with. Should be an object with 'dashboarduid' (string) and 'panelid' (number) fields.
    paused Boolean
    Sets whether the rule should be paused or not.
    trigger Property Map
    The trigger configuration for the alert rule.

    AlertRuleV0Alpha1SpecNotificationSettings, AlertRuleV0Alpha1SpecNotificationSettingsArgs

    ActiveTimings List<string>
    Deprecated. A list of time interval names to apply to alerts that match this policy.

    Deprecated: Use simplified_routing.active_timings instead.

    ContactPoint string
    Deprecated. The contact point to route notifications that match this rule to.

    Deprecated: Use simplified_routing.contact_point instead.

    GroupBies List<string>
    Deprecated. A list of alert labels to group alerts into notifications by.

    Deprecated: Use simplified_routing.group_by instead.

    GroupInterval string
    Deprecated. Minimum time interval between two notifications for the same group.

    Deprecated: Use simplified_routing.group_interval instead.

    GroupWait string
    Deprecated. Time to wait to buffer alerts of the same group before sending a notification.

    Deprecated: Use simplified_routing.group_wait instead.

    MuteTimings List<string>
    Deprecated. A list of mute timing names to apply to alerts that match this policy.

    Deprecated: Use simplified_routing.mute_timings instead.

    NamedRoutingTree Pulumiverse.Grafana.Alerting.Inputs.AlertRuleV0Alpha1SpecNotificationSettingsNamedRoutingTree
    Route notifications to a specific routing tree.
    RepeatInterval string
    Deprecated. Minimum time interval for re-sending a notification if an alert is still firing.

    Deprecated: Use simplified_routing.repeat_interval instead.

    SimplifiedRouting Pulumiverse.Grafana.Alerting.Inputs.AlertRuleV0Alpha1SpecNotificationSettingsSimplifiedRouting
    Simplified routing to a contact point with optional grouping and timing overrides.
    ActiveTimings []string
    Deprecated. A list of time interval names to apply to alerts that match this policy.

    Deprecated: Use simplified_routing.active_timings instead.

    ContactPoint string
    Deprecated. The contact point to route notifications that match this rule to.

    Deprecated: Use simplified_routing.contact_point instead.

    GroupBies []string
    Deprecated. A list of alert labels to group alerts into notifications by.

    Deprecated: Use simplified_routing.group_by instead.

    GroupInterval string
    Deprecated. Minimum time interval between two notifications for the same group.

    Deprecated: Use simplified_routing.group_interval instead.

    GroupWait string
    Deprecated. Time to wait to buffer alerts of the same group before sending a notification.

    Deprecated: Use simplified_routing.group_wait instead.

    MuteTimings []string
    Deprecated. A list of mute timing names to apply to alerts that match this policy.

    Deprecated: Use simplified_routing.mute_timings instead.

    NamedRoutingTree AlertRuleV0Alpha1SpecNotificationSettingsNamedRoutingTree
    Route notifications to a specific routing tree.
    RepeatInterval string
    Deprecated. Minimum time interval for re-sending a notification if an alert is still firing.

    Deprecated: Use simplified_routing.repeat_interval instead.

    SimplifiedRouting AlertRuleV0Alpha1SpecNotificationSettingsSimplifiedRouting
    Simplified routing to a contact point with optional grouping and timing overrides.
    activeTimings List<String>
    Deprecated. A list of time interval names to apply to alerts that match this policy.

    Deprecated: Use simplified_routing.active_timings instead.

    contactPoint String
    Deprecated. The contact point to route notifications that match this rule to.

    Deprecated: Use simplified_routing.contact_point instead.

    groupBies List<String>
    Deprecated. A list of alert labels to group alerts into notifications by.

    Deprecated: Use simplified_routing.group_by instead.

    groupInterval String
    Deprecated. Minimum time interval between two notifications for the same group.

    Deprecated: Use simplified_routing.group_interval instead.

    groupWait String
    Deprecated. Time to wait to buffer alerts of the same group before sending a notification.

    Deprecated: Use simplified_routing.group_wait instead.

    muteTimings List<String>
    Deprecated. A list of mute timing names to apply to alerts that match this policy.

    Deprecated: Use simplified_routing.mute_timings instead.

    namedRoutingTree AlertRuleV0Alpha1SpecNotificationSettingsNamedRoutingTree
    Route notifications to a specific routing tree.
    repeatInterval String
    Deprecated. Minimum time interval for re-sending a notification if an alert is still firing.

    Deprecated: Use simplified_routing.repeat_interval instead.

    simplifiedRouting AlertRuleV0Alpha1SpecNotificationSettingsSimplifiedRouting
    Simplified routing to a contact point with optional grouping and timing overrides.
    activeTimings string[]
    Deprecated. A list of time interval names to apply to alerts that match this policy.

    Deprecated: Use simplified_routing.active_timings instead.

    contactPoint string
    Deprecated. The contact point to route notifications that match this rule to.

    Deprecated: Use simplified_routing.contact_point instead.

    groupBies string[]
    Deprecated. A list of alert labels to group alerts into notifications by.

    Deprecated: Use simplified_routing.group_by instead.

    groupInterval string
    Deprecated. Minimum time interval between two notifications for the same group.

    Deprecated: Use simplified_routing.group_interval instead.

    groupWait string
    Deprecated. Time to wait to buffer alerts of the same group before sending a notification.

    Deprecated: Use simplified_routing.group_wait instead.

    muteTimings string[]
    Deprecated. A list of mute timing names to apply to alerts that match this policy.

    Deprecated: Use simplified_routing.mute_timings instead.

    namedRoutingTree AlertRuleV0Alpha1SpecNotificationSettingsNamedRoutingTree
    Route notifications to a specific routing tree.
    repeatInterval string
    Deprecated. Minimum time interval for re-sending a notification if an alert is still firing.

    Deprecated: Use simplified_routing.repeat_interval instead.

    simplifiedRouting AlertRuleV0Alpha1SpecNotificationSettingsSimplifiedRouting
    Simplified routing to a contact point with optional grouping and timing overrides.
    active_timings Sequence[str]
    Deprecated. A list of time interval names to apply to alerts that match this policy.

    Deprecated: Use simplified_routing.active_timings instead.

    contact_point str
    Deprecated. The contact point to route notifications that match this rule to.

    Deprecated: Use simplified_routing.contact_point instead.

    group_bies Sequence[str]
    Deprecated. A list of alert labels to group alerts into notifications by.

    Deprecated: Use simplified_routing.group_by instead.

    group_interval str
    Deprecated. Minimum time interval between two notifications for the same group.

    Deprecated: Use simplified_routing.group_interval instead.

    group_wait str
    Deprecated. Time to wait to buffer alerts of the same group before sending a notification.

    Deprecated: Use simplified_routing.group_wait instead.

    mute_timings Sequence[str]
    Deprecated. A list of mute timing names to apply to alerts that match this policy.

    Deprecated: Use simplified_routing.mute_timings instead.

    named_routing_tree AlertRuleV0Alpha1SpecNotificationSettingsNamedRoutingTree
    Route notifications to a specific routing tree.
    repeat_interval str
    Deprecated. Minimum time interval for re-sending a notification if an alert is still firing.

    Deprecated: Use simplified_routing.repeat_interval instead.

    simplified_routing AlertRuleV0Alpha1SpecNotificationSettingsSimplifiedRouting
    Simplified routing to a contact point with optional grouping and timing overrides.
    activeTimings List<String>
    Deprecated. A list of time interval names to apply to alerts that match this policy.

    Deprecated: Use simplified_routing.active_timings instead.

    contactPoint String
    Deprecated. The contact point to route notifications that match this rule to.

    Deprecated: Use simplified_routing.contact_point instead.

    groupBies List<String>
    Deprecated. A list of alert labels to group alerts into notifications by.

    Deprecated: Use simplified_routing.group_by instead.

    groupInterval String
    Deprecated. Minimum time interval between two notifications for the same group.

    Deprecated: Use simplified_routing.group_interval instead.

    groupWait String
    Deprecated. Time to wait to buffer alerts of the same group before sending a notification.

    Deprecated: Use simplified_routing.group_wait instead.

    muteTimings List<String>
    Deprecated. A list of mute timing names to apply to alerts that match this policy.

    Deprecated: Use simplified_routing.mute_timings instead.

    namedRoutingTree Property Map
    Route notifications to a specific routing tree.
    repeatInterval String
    Deprecated. Minimum time interval for re-sending a notification if an alert is still firing.

    Deprecated: Use simplified_routing.repeat_interval instead.

    simplifiedRouting Property Map
    Simplified routing to a contact point with optional grouping and timing overrides.

    AlertRuleV0Alpha1SpecNotificationSettingsNamedRoutingTree, AlertRuleV0Alpha1SpecNotificationSettingsNamedRoutingTreeArgs

    RoutingTree string
    The name of the routing tree to use.
    RoutingTree string
    The name of the routing tree to use.
    routingTree String
    The name of the routing tree to use.
    routingTree string
    The name of the routing tree to use.
    routing_tree str
    The name of the routing tree to use.
    routingTree String
    The name of the routing tree to use.

    AlertRuleV0Alpha1SpecNotificationSettingsSimplifiedRouting, AlertRuleV0Alpha1SpecNotificationSettingsSimplifiedRoutingArgs

    ActiveTimings 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.
    ContactPoint string
    The contact point to route notifications that match this rule to.
    GroupBies List<string>
    A list of alert labels to group alerts into notifications by.
    GroupInterval string
    Minimum time interval between two notifications for the same group.
    GroupWait string
    Time to wait to buffer alerts of the same group before sending a notification.
    MuteTimings List<string>
    A list of mute timing names to apply to alerts that match this policy.
    RepeatInterval string
    Minimum time interval for re-sending a notification if an alert is still firing.
    ActiveTimings []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.
    ContactPoint string
    The contact point to route notifications that match this rule to.
    GroupBies []string
    A list of alert labels to group alerts into notifications by.
    GroupInterval string
    Minimum time interval between two notifications for the same group.
    GroupWait string
    Time to wait to buffer alerts of the same group before sending a notification.
    MuteTimings []string
    A list of mute timing names to apply to alerts that match this policy.
    RepeatInterval string
    Minimum time interval for re-sending a notification if an alert is still firing.
    activeTimings 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.
    contactPoint String
    The contact point to route notifications that match this rule to.
    groupBies List<String>
    A list of alert labels to group alerts into notifications by.
    groupInterval String
    Minimum time interval between two notifications for the same group.
    groupWait String
    Time to wait to buffer alerts of the same group before sending a notification.
    muteTimings List<String>
    A list of mute timing names to apply to alerts that match this policy.
    repeatInterval String
    Minimum time interval for re-sending a notification if an alert is still firing.
    activeTimings 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.
    contactPoint string
    The contact point to route notifications that match this rule to.
    groupBies string[]
    A list of alert labels to group alerts into notifications by.
    groupInterval string
    Minimum time interval between two notifications for the same group.
    groupWait string
    Time to wait to buffer alerts of the same group before sending a notification.
    muteTimings string[]
    A list of mute timing names to apply to alerts that match this policy.
    repeatInterval 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.
    activeTimings 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.
    contactPoint String
    The contact point to route notifications that match this rule to.
    groupBies List<String>
    A list of alert labels to group alerts into notifications by.
    groupInterval String
    Minimum time interval between two notifications for the same group.
    groupWait String
    Time to wait to buffer alerts of the same group before sending a notification.
    muteTimings List<String>
    A list of mute timing names to apply to alerts that match this policy.
    repeatInterval String
    Minimum time interval for re-sending a notification if an alert is still firing.

    AlertRuleV0Alpha1SpecTrigger, AlertRuleV0Alpha1SpecTriggerArgs

    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 grafana Terraform Provider.
    grafana logo
    Viewing docs for Grafana v2.29.0
    published on Friday, May 1, 2026 by pulumiverse
      Try Pulumi Cloud free. Your team will thank you.