@pulumiverse/grafana
Version:
A Pulumi package for creating and managing grafana.
114 lines (113 loc) • 4.05 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Manages Knowledge Graph Thresholds configuration (request, resource, health) via bulk endpoints.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as grafana from "@pulumiverse/grafana";
*
* const basic = new grafana.assert.Thresholds("basic", {
* requestThresholds: [{
* entityName: "payment-service",
* assertionName: "ErrorRatioBreach",
* requestType: "inbound",
* requestContext: "/charge",
* value: 0.01,
* }],
* resourceThresholds: [{
* assertionName: "Saturation",
* resourceType: "container",
* containerName: "worker",
* source: "metrics",
* severity: "warning",
* value: 75,
* }],
* healthThresholds: [{
* assertionName: "ServiceDown",
* expression: "up < 1",
* entityType: "Service",
* }],
* });
* ```
*
* ## Import
*
* ```sh
* terraform import grafana_asserts_thresholds.name "{{ id }}"
* ```
*/
export declare class Thresholds extends pulumi.CustomResource {
/**
* Get an existing Thresholds 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?: ThresholdsState, opts?: pulumi.CustomResourceOptions): Thresholds;
/**
* Returns true if the given object is an instance of Thresholds. 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 Thresholds;
/**
* List of health thresholds.
*/
readonly healthThresholds: pulumi.Output<outputs.assert.ThresholdsHealthThreshold[] | undefined>;
/**
* List of request thresholds.
*/
readonly requestThresholds: pulumi.Output<outputs.assert.ThresholdsRequestThreshold[] | undefined>;
/**
* List of resource thresholds.
*/
readonly resourceThresholds: pulumi.Output<outputs.assert.ThresholdsResourceThreshold[] | undefined>;
/**
* Create a Thresholds 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?: ThresholdsArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Thresholds resources.
*/
export interface ThresholdsState {
/**
* List of health thresholds.
*/
healthThresholds?: pulumi.Input<pulumi.Input<inputs.assert.ThresholdsHealthThreshold>[]>;
/**
* List of request thresholds.
*/
requestThresholds?: pulumi.Input<pulumi.Input<inputs.assert.ThresholdsRequestThreshold>[]>;
/**
* List of resource thresholds.
*/
resourceThresholds?: pulumi.Input<pulumi.Input<inputs.assert.ThresholdsResourceThreshold>[]>;
}
/**
* The set of arguments for constructing a Thresholds resource.
*/
export interface ThresholdsArgs {
/**
* List of health thresholds.
*/
healthThresholds?: pulumi.Input<pulumi.Input<inputs.assert.ThresholdsHealthThreshold>[]>;
/**
* List of request thresholds.
*/
requestThresholds?: pulumi.Input<pulumi.Input<inputs.assert.ThresholdsRequestThreshold>[]>;
/**
* List of resource thresholds.
*/
resourceThresholds?: pulumi.Input<pulumi.Input<inputs.assert.ThresholdsResourceThreshold>[]>;
}