@pulumiverse/grafana
Version:
A Pulumi package for creating and managing grafana.
109 lines (108 loc) • 3.89 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages Knowledge Graph Disabled Alert Configurations through Grafana API.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as grafana from "@pulumiverse/grafana";
*
* // Basic suppressed alert configuration for maintenance
* const maintenanceWindow = new grafana.assert.SuppressedAssertionsConfig("maintenance_window", {
* name: "MaintenanceWindow",
* matchLabels: {
* service: "api-service",
* maintenance: "true",
* },
* });
* // Suppress specific alertname during deployment
* const deploymentSuppression = new grafana.assert.SuppressedAssertionsConfig("deployment_suppression", {
* name: "DeploymentSuppression",
* matchLabels: {
* alertname: "HighLatency",
* job: "web-service",
* env: "staging",
* },
* });
* // Suppress alerts for specific test environment
* const testEnvironmentSuppression = new grafana.assert.SuppressedAssertionsConfig("test_environment_suppression", {
* name: "TestEnvironmentSuppression",
* matchLabels: {
* alertgroup: "test.alerts",
* environment: "test",
* },
* });
* ```
*
* ## Import
*
* ```sh
* terraform import grafana_asserts_suppressed_assertions_config.name "{{ name }}"
* ```
*/
export declare class SuppressedAssertionsConfig extends pulumi.CustomResource {
/**
* Get an existing SuppressedAssertionsConfig 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?: SuppressedAssertionsConfigState, opts?: pulumi.CustomResourceOptions): SuppressedAssertionsConfig;
/**
* Returns true if the given object is an instance of SuppressedAssertionsConfig. 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 SuppressedAssertionsConfig;
/**
* Labels to match for this disabled alert configuration.
*/
readonly matchLabels: pulumi.Output<{
[key: string]: string;
} | undefined>;
/**
* The name of the disabled alert configuration.
*/
readonly name: pulumi.Output<string>;
/**
* Create a SuppressedAssertionsConfig 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.
*/
constructor(name: string, args?: SuppressedAssertionsConfigArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering SuppressedAssertionsConfig resources.
*/
export interface SuppressedAssertionsConfigState {
/**
* Labels to match for this disabled alert configuration.
*/
matchLabels?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* The name of the disabled alert configuration.
*/
name?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a SuppressedAssertionsConfig resource.
*/
export interface SuppressedAssertionsConfigArgs {
/**
* Labels to match for this disabled alert configuration.
*/
matchLabels?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* The name of the disabled alert configuration.
*/
name?: pulumi.Input<string>;
}