@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
147 lines (146 loc) • 4.19 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to query detailed information of cloud monitor rules
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const foo = volcengine.cloud_monitor.getRules({
* ids: ["174402785374661****"],
* });
* ```
*/
/** @deprecated volcengine.cloud_monitor.Rules has been deprecated in favor of volcengine.cloud_monitor.getRules */
export declare function rules(args?: RulesArgs, opts?: pulumi.InvokeOptions): Promise<RulesResult>;
/**
* A collection of arguments for invoking Rules.
*/
export interface RulesArgs {
/**
* The alert state of the cloud monitor rule. Valid values: `altering`, `normal`.
*/
alertStates?: string[];
/**
* The enable state of the cloud monitor rule. Valid values: `enable`, `disable`.
*/
enableStates?: string[];
/**
* A list of cloud monitor ids.
*/
ids?: string[];
/**
* The level of the cloud monitor rule. Valid values: `critical`, `warning`, `notice`.
*/
levels?: string[];
/**
* A Name Regex of Resource.
*/
nameRegex?: string;
/**
* The namespace of the cloud monitor rule.
*/
namespaces?: string[];
/**
* File name where to save data source results.
*/
outputFile?: string;
/**
* The name of the cloud monitor rule. This field support fuzzy query.
*/
ruleName?: string;
}
/**
* A collection of values returned by Rules.
*/
export interface RulesResult {
/**
* The alert state of the cloud monitor rule.
*/
readonly alertStates?: string[];
/**
* The enable state of the cloud monitor rule.
*/
readonly enableStates?: string[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly ids?: string[];
/**
* The level of the cloud monitor rule.
*/
readonly levels?: string[];
readonly nameRegex?: string;
/**
* The namespace of the cloud monitor rule.
*/
readonly namespaces?: string[];
readonly outputFile?: string;
/**
* The name of the cloud monitor rule.
*/
readonly ruleName?: string;
/**
* The collection of query.
*/
readonly rules: outputs.cloud_monitor.RulesRule[];
/**
* The total count of query.
*/
readonly totalCount: number;
}
/**
* Use this data source to query detailed information of cloud monitor rules
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const foo = volcengine.cloud_monitor.getRules({
* ids: ["174402785374661****"],
* });
* ```
*/
/** @deprecated volcengine.cloud_monitor.Rules has been deprecated in favor of volcengine.cloud_monitor.getRules */
export declare function rulesOutput(args?: RulesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<RulesResult>;
/**
* A collection of arguments for invoking Rules.
*/
export interface RulesOutputArgs {
/**
* The alert state of the cloud monitor rule. Valid values: `altering`, `normal`.
*/
alertStates?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The enable state of the cloud monitor rule. Valid values: `enable`, `disable`.
*/
enableStates?: pulumi.Input<pulumi.Input<string>[]>;
/**
* A list of cloud monitor ids.
*/
ids?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The level of the cloud monitor rule. Valid values: `critical`, `warning`, `notice`.
*/
levels?: pulumi.Input<pulumi.Input<string>[]>;
/**
* A Name Regex of Resource.
*/
nameRegex?: pulumi.Input<string>;
/**
* The namespace of the cloud monitor rule.
*/
namespaces?: pulumi.Input<pulumi.Input<string>[]>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
/**
* The name of the cloud monitor rule. This field support fuzzy query.
*/
ruleName?: pulumi.Input<string>;
}