UNPKG

@pulumiverse/grafana

Version:

A Pulumi package for creating and managing grafana.

133 lines (132 loc) 4.62 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Manages Grafana Alerting mute timings. * * * Official documentation * * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/#mute-timings) * * This resource requires Grafana 9.1.0 or later. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as grafana from "@pulumiverse/grafana"; * * const myMuteTiming = new grafana.alerting.MuteTiming("my_mute_timing", { * name: "My Mute Timing", * intervals: [{ * times: [{ * start: "04:56", * end: "14:17", * }], * weekdays: [ * "monday", * "tuesday:thursday", * ], * daysOfMonths: [ * "1:7", * "-1", * ], * months: [ * "1:3", * "december", * ], * years: [ * "2030", * "2025:2026", * ], * location: "America/New_York", * }], * }); * ``` * * ## Import * * ```sh * $ pulumi import grafana:index/muteTiming:MuteTiming name "{{ name }}" * ``` * * ```sh * $ pulumi import grafana:index/muteTiming:MuteTiming name "{{ orgID }}:{{ name }}" * ``` * * @deprecated grafana.index/mutetiming.MuteTiming has been deprecated in favor of grafana.alerting/mutetiming.MuteTiming */ export declare class MuteTiming extends pulumi.CustomResource { /** * Get an existing MuteTiming resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: MuteTimingState, opts?: pulumi.CustomResourceOptions): MuteTiming; /** * Returns true if the given object is an instance of MuteTiming. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is MuteTiming; readonly disableProvenance: pulumi.Output<boolean | undefined>; /** * The time intervals at which to mute notifications. Use an empty block to mute all the time. */ readonly intervals: pulumi.Output<outputs.MuteTimingInterval[] | undefined>; /** * The name of the mute timing. */ readonly name: pulumi.Output<string>; /** * The Organization ID. If not set, the Org ID defined in the provider block will be used. */ readonly orgId: pulumi.Output<string | undefined>; /** * Create a MuteTiming resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ /** @deprecated grafana.index/mutetiming.MuteTiming has been deprecated in favor of grafana.alerting/mutetiming.MuteTiming */ constructor(name: string, args?: MuteTimingArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering MuteTiming resources. */ export interface MuteTimingState { disableProvenance?: pulumi.Input<boolean>; /** * The time intervals at which to mute notifications. Use an empty block to mute all the time. */ intervals?: pulumi.Input<pulumi.Input<inputs.MuteTimingInterval>[]>; /** * The name of the mute timing. */ name?: pulumi.Input<string>; /** * The Organization ID. If not set, the Org ID defined in the provider block will be used. */ orgId?: pulumi.Input<string>; } /** * The set of arguments for constructing a MuteTiming resource. */ export interface MuteTimingArgs { disableProvenance?: pulumi.Input<boolean>; /** * The time intervals at which to mute notifications. Use an empty block to mute all the time. */ intervals?: pulumi.Input<pulumi.Input<inputs.MuteTimingInterval>[]>; /** * The name of the mute timing. */ name?: pulumi.Input<string>; /** * The Organization ID. If not set, the Org ID defined in the provider block will be used. */ orgId?: pulumi.Input<string>; }