1. Packages
  2. Volcengine
  3. API Docs
  4. cloud_monitor
  5. Rules
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

volcengine.cloud_monitor.Rules

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

    Use this data source to query detailed information of cloud monitor rules

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Volcengine.Cloud_monitor.Rules.Invoke(new()
        {
            Ids = new[]
            {
                "174402785374661****",
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cloud_monitor"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloud_monitor.Rules(ctx, &cloud_monitor.RulesArgs{
    			Ids: []string{
    				"174402785374661****",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.cloud_monitor.Cloud_monitorFunctions;
    import com.pulumi.volcengine.cloud_monitor.inputs.RulesArgs;
    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) {
            final var foo = Cloud_monitorFunctions.Rules(RulesArgs.builder()
                .ids("174402785374661****")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.cloud_monitor.rules(ids=["174402785374661****"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const foo = volcengine.cloud_monitor.Rules({
        ids: ["174402785374661****"],
    });
    
    variables:
      foo:
        fn::invoke:
          Function: volcengine:cloud_monitor:Rules
          Arguments:
            ids:
              - 174402785374661****
    

    Using Rules

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function rules(args: RulesArgs, opts?: InvokeOptions): Promise<RulesResult>
    function rulesOutput(args: RulesOutputArgs, opts?: InvokeOptions): Output<RulesResult>
    def rules(alert_states: Optional[Sequence[str]] = None,
              enable_states: Optional[Sequence[str]] = None,
              ids: Optional[Sequence[str]] = None,
              levels: Optional[Sequence[str]] = None,
              name_regex: Optional[str] = None,
              namespaces: Optional[Sequence[str]] = None,
              output_file: Optional[str] = None,
              rule_name: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> RulesResult
    def rules_output(alert_states: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
              enable_states: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
              ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
              levels: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
              name_regex: Optional[pulumi.Input[str]] = None,
              namespaces: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
              output_file: Optional[pulumi.Input[str]] = None,
              rule_name: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[RulesResult]
    func Rules(ctx *Context, args *RulesArgs, opts ...InvokeOption) (*RulesResult, error)
    func RulesOutput(ctx *Context, args *RulesOutputArgs, opts ...InvokeOption) RulesResultOutput
    public static class Rules 
    {
        public static Task<RulesResult> InvokeAsync(RulesArgs args, InvokeOptions? opts = null)
        public static Output<RulesResult> Invoke(RulesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<RulesResult> rules(RulesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:cloud_monitor:Rules
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AlertStates List<string>
    The alert state of the cloud monitor rule. Valid values: altering, normal.
    EnableStates List<string>
    The enable state of the cloud monitor rule. Valid values: enable, disable.
    Ids List<string>
    A list of cloud monitor ids.
    Levels List<string>
    The level of the cloud monitor rule. Valid values: critical, warning, notice.
    NameRegex string
    A Name Regex of Resource.
    Namespaces List<string>
    The namespace of the cloud monitor rule.
    OutputFile string
    File name where to save data source results.
    RuleName string
    The name of the cloud monitor rule. This field support fuzzy query.
    AlertStates []string
    The alert state of the cloud monitor rule. Valid values: altering, normal.
    EnableStates []string
    The enable state of the cloud monitor rule. Valid values: enable, disable.
    Ids []string
    A list of cloud monitor ids.
    Levels []string
    The level of the cloud monitor rule. Valid values: critical, warning, notice.
    NameRegex string
    A Name Regex of Resource.
    Namespaces []string
    The namespace of the cloud monitor rule.
    OutputFile string
    File name where to save data source results.
    RuleName string
    The name of the cloud monitor rule. This field support fuzzy query.
    alertStates List<String>
    The alert state of the cloud monitor rule. Valid values: altering, normal.
    enableStates List<String>
    The enable state of the cloud monitor rule. Valid values: enable, disable.
    ids List<String>
    A list of cloud monitor ids.
    levels List<String>
    The level of the cloud monitor rule. Valid values: critical, warning, notice.
    nameRegex String
    A Name Regex of Resource.
    namespaces List<String>
    The namespace of the cloud monitor rule.
    outputFile String
    File name where to save data source results.
    ruleName String
    The name of the cloud monitor rule. This field support fuzzy query.
    alertStates string[]
    The alert state of the cloud monitor rule. Valid values: altering, normal.
    enableStates string[]
    The enable state of the cloud monitor rule. Valid values: enable, disable.
    ids string[]
    A list of cloud monitor ids.
    levels string[]
    The level of the cloud monitor rule. Valid values: critical, warning, notice.
    nameRegex string
    A Name Regex of Resource.
    namespaces string[]
    The namespace of the cloud monitor rule.
    outputFile string
    File name where to save data source results.
    ruleName string
    The name of the cloud monitor rule. This field support fuzzy query.
    alert_states Sequence[str]
    The alert state of the cloud monitor rule. Valid values: altering, normal.
    enable_states Sequence[str]
    The enable state of the cloud monitor rule. Valid values: enable, disable.
    ids Sequence[str]
    A list of cloud monitor ids.
    levels Sequence[str]
    The level of the cloud monitor rule. Valid values: critical, warning, notice.
    name_regex str
    A Name Regex of Resource.
    namespaces Sequence[str]
    The namespace of the cloud monitor rule.
    output_file str
    File name where to save data source results.
    rule_name str
    The name of the cloud monitor rule. This field support fuzzy query.
    alertStates List<String>
    The alert state of the cloud monitor rule. Valid values: altering, normal.
    enableStates List<String>
    The enable state of the cloud monitor rule. Valid values: enable, disable.
    ids List<String>
    A list of cloud monitor ids.
    levels List<String>
    The level of the cloud monitor rule. Valid values: critical, warning, notice.
    nameRegex String
    A Name Regex of Resource.
    namespaces List<String>
    The namespace of the cloud monitor rule.
    outputFile String
    File name where to save data source results.
    ruleName String
    The name of the cloud monitor rule. This field support fuzzy query.

    Rules Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Rules List<RulesRule>
    The collection of query.
    TotalCount int
    The total count of query.
    AlertStates List<string>
    The alert state of the cloud monitor rule.
    EnableStates List<string>
    The enable state of the cloud monitor rule.
    Ids List<string>
    Levels List<string>
    The level of the cloud monitor rule.
    NameRegex string
    Namespaces List<string>
    The namespace of the cloud monitor rule.
    OutputFile string
    RuleName string
    The name of the cloud monitor rule.
    Id string
    The provider-assigned unique ID for this managed resource.
    Rules []RulesRule
    The collection of query.
    TotalCount int
    The total count of query.
    AlertStates []string
    The alert state of the cloud monitor rule.
    EnableStates []string
    The enable state of the cloud monitor rule.
    Ids []string
    Levels []string
    The level of the cloud monitor rule.
    NameRegex string
    Namespaces []string
    The namespace of the cloud monitor rule.
    OutputFile string
    RuleName string
    The name of the cloud monitor rule.
    id String
    The provider-assigned unique ID for this managed resource.
    rules List<RulesRule>
    The collection of query.
    totalCount Integer
    The total count of query.
    alertStates List<String>
    The alert state of the cloud monitor rule.
    enableStates List<String>
    The enable state of the cloud monitor rule.
    ids List<String>
    levels List<String>
    The level of the cloud monitor rule.
    nameRegex String
    namespaces List<String>
    The namespace of the cloud monitor rule.
    outputFile String
    ruleName String
    The name of the cloud monitor rule.
    id string
    The provider-assigned unique ID for this managed resource.
    rules RulesRule[]
    The collection of query.
    totalCount number
    The total count of query.
    alertStates string[]
    The alert state of the cloud monitor rule.
    enableStates string[]
    The enable state of the cloud monitor rule.
    ids string[]
    levels string[]
    The level of the cloud monitor rule.
    nameRegex string
    namespaces string[]
    The namespace of the cloud monitor rule.
    outputFile string
    ruleName string
    The name of the cloud monitor rule.
    id str
    The provider-assigned unique ID for this managed resource.
    rules Sequence[RulesRule]
    The collection of query.
    total_count int
    The total count of query.
    alert_states Sequence[str]
    The alert state of the cloud monitor rule.
    enable_states Sequence[str]
    The enable state of the cloud monitor rule.
    ids Sequence[str]
    levels Sequence[str]
    The level of the cloud monitor rule.
    name_regex str
    namespaces Sequence[str]
    The namespace of the cloud monitor rule.
    output_file str
    rule_name str
    The name of the cloud monitor rule.
    id String
    The provider-assigned unique ID for this managed resource.
    rules List<Property Map>
    The collection of query.
    totalCount Number
    The total count of query.
    alertStates List<String>
    The alert state of the cloud monitor rule.
    enableStates List<String>
    The enable state of the cloud monitor rule.
    ids List<String>
    levels List<String>
    The level of the cloud monitor rule.
    nameRegex String
    namespaces List<String>
    The namespace of the cloud monitor rule.
    outputFile String
    ruleName String
    The name of the cloud monitor rule.

    Supporting Types

    RulesRule

    AlertMethods List<string>
    The alert methods of the cloud monitor rule.
    AlertState string
    The alert state of the cloud monitor rule. Valid values: altering, normal.
    ConditionOperator string
    The condition operator of the cloud monitor rule. Valid values: &&, ||.
    Conditions List<RulesRuleCondition>
    The conditions of the cloud monitor rule.
    ContactGroupIds List<string>
    The contact group ids of the cloud monitor rule.
    CreatedAt string
    The created time of the cloud monitor rule.
    Description string
    The description of the cloud monitor rule.
    EffectEndAt string
    The effect end time of the cloud monitor rule.
    EffectStartAt string
    The effect start time of the cloud monitor rule.
    EnableState string
    The enable state of the cloud monitor rule. Valid values: enable, disable.
    EvaluationCount int
    The evaluation count of the cloud monitor rule.
    Id string
    The id of the cloud monitor rule.
    Level string
    The level of the cloud monitor rule. Valid values: critical, warning, notice.
    MultipleConditions bool
    Whether to enable the multiple conditions function of the cloud monitor rule.
    Namespace string
    The namespace of the cloud monitor rule.
    OriginalDimensions List<RulesRuleOriginalDimension>
    The original dimensions of the cloud monitor rule.
    Regions List<string>
    The region id of the cloud monitor rule.
    RuleName string
    The name of the cloud monitor rule. This field support fuzzy query.
    SilenceTime int
    The silence time of the cloud monitor rule. Unit in minutes.
    SubNamespace string
    The sub namespace of the cloud monitor rule.
    UpdatedAt string
    The updated time of the cloud monitor rule.
    WebHook string
    The web hook of the cloud monitor rule.
    AlertMethods []string
    The alert methods of the cloud monitor rule.
    AlertState string
    The alert state of the cloud monitor rule. Valid values: altering, normal.
    ConditionOperator string
    The condition operator of the cloud monitor rule. Valid values: &&, ||.
    Conditions []RulesRuleCondition
    The conditions of the cloud monitor rule.
    ContactGroupIds []string
    The contact group ids of the cloud monitor rule.
    CreatedAt string
    The created time of the cloud monitor rule.
    Description string
    The description of the cloud monitor rule.
    EffectEndAt string
    The effect end time of the cloud monitor rule.
    EffectStartAt string
    The effect start time of the cloud monitor rule.
    EnableState string
    The enable state of the cloud monitor rule. Valid values: enable, disable.
    EvaluationCount int
    The evaluation count of the cloud monitor rule.
    Id string
    The id of the cloud monitor rule.
    Level string
    The level of the cloud monitor rule. Valid values: critical, warning, notice.
    MultipleConditions bool
    Whether to enable the multiple conditions function of the cloud monitor rule.
    Namespace string
    The namespace of the cloud monitor rule.
    OriginalDimensions []RulesRuleOriginalDimension
    The original dimensions of the cloud monitor rule.
    Regions []string
    The region id of the cloud monitor rule.
    RuleName string
    The name of the cloud monitor rule. This field support fuzzy query.
    SilenceTime int
    The silence time of the cloud monitor rule. Unit in minutes.
    SubNamespace string
    The sub namespace of the cloud monitor rule.
    UpdatedAt string
    The updated time of the cloud monitor rule.
    WebHook string
    The web hook of the cloud monitor rule.
    alertMethods List<String>
    The alert methods of the cloud monitor rule.
    alertState String
    The alert state of the cloud monitor rule. Valid values: altering, normal.
    conditionOperator String
    The condition operator of the cloud monitor rule. Valid values: &&, ||.
    conditions List<RulesRuleCondition>
    The conditions of the cloud monitor rule.
    contactGroupIds List<String>
    The contact group ids of the cloud monitor rule.
    createdAt String
    The created time of the cloud monitor rule.
    description String
    The description of the cloud monitor rule.
    effectEndAt String
    The effect end time of the cloud monitor rule.
    effectStartAt String
    The effect start time of the cloud monitor rule.
    enableState String
    The enable state of the cloud monitor rule. Valid values: enable, disable.
    evaluationCount Integer
    The evaluation count of the cloud monitor rule.
    id String
    The id of the cloud monitor rule.
    level String
    The level of the cloud monitor rule. Valid values: critical, warning, notice.
    multipleConditions Boolean
    Whether to enable the multiple conditions function of the cloud monitor rule.
    namespace String
    The namespace of the cloud monitor rule.
    originalDimensions List<RulesRuleOriginalDimension>
    The original dimensions of the cloud monitor rule.
    regions List<String>
    The region id of the cloud monitor rule.
    ruleName String
    The name of the cloud monitor rule. This field support fuzzy query.
    silenceTime Integer
    The silence time of the cloud monitor rule. Unit in minutes.
    subNamespace String
    The sub namespace of the cloud monitor rule.
    updatedAt String
    The updated time of the cloud monitor rule.
    webHook String
    The web hook of the cloud monitor rule.
    alertMethods string[]
    The alert methods of the cloud monitor rule.
    alertState string
    The alert state of the cloud monitor rule. Valid values: altering, normal.
    conditionOperator string
    The condition operator of the cloud monitor rule. Valid values: &&, ||.
    conditions RulesRuleCondition[]
    The conditions of the cloud monitor rule.
    contactGroupIds string[]
    The contact group ids of the cloud monitor rule.
    createdAt string
    The created time of the cloud monitor rule.
    description string
    The description of the cloud monitor rule.
    effectEndAt string
    The effect end time of the cloud monitor rule.
    effectStartAt string
    The effect start time of the cloud monitor rule.
    enableState string
    The enable state of the cloud monitor rule. Valid values: enable, disable.
    evaluationCount number
    The evaluation count of the cloud monitor rule.
    id string
    The id of the cloud monitor rule.
    level string
    The level of the cloud monitor rule. Valid values: critical, warning, notice.
    multipleConditions boolean
    Whether to enable the multiple conditions function of the cloud monitor rule.
    namespace string
    The namespace of the cloud monitor rule.
    originalDimensions RulesRuleOriginalDimension[]
    The original dimensions of the cloud monitor rule.
    regions string[]
    The region id of the cloud monitor rule.
    ruleName string
    The name of the cloud monitor rule. This field support fuzzy query.
    silenceTime number
    The silence time of the cloud monitor rule. Unit in minutes.
    subNamespace string
    The sub namespace of the cloud monitor rule.
    updatedAt string
    The updated time of the cloud monitor rule.
    webHook string
    The web hook of the cloud monitor rule.
    alert_methods Sequence[str]
    The alert methods of the cloud monitor rule.
    alert_state str
    The alert state of the cloud monitor rule. Valid values: altering, normal.
    condition_operator str
    The condition operator of the cloud monitor rule. Valid values: &&, ||.
    conditions Sequence[RulesRuleCondition]
    The conditions of the cloud monitor rule.
    contact_group_ids Sequence[str]
    The contact group ids of the cloud monitor rule.
    created_at str
    The created time of the cloud monitor rule.
    description str
    The description of the cloud monitor rule.
    effect_end_at str
    The effect end time of the cloud monitor rule.
    effect_start_at str
    The effect start time of the cloud monitor rule.
    enable_state str
    The enable state of the cloud monitor rule. Valid values: enable, disable.
    evaluation_count int
    The evaluation count of the cloud monitor rule.
    id str
    The id of the cloud monitor rule.
    level str
    The level of the cloud monitor rule. Valid values: critical, warning, notice.
    multiple_conditions bool
    Whether to enable the multiple conditions function of the cloud monitor rule.
    namespace str
    The namespace of the cloud monitor rule.
    original_dimensions Sequence[RulesRuleOriginalDimension]
    The original dimensions of the cloud monitor rule.
    regions Sequence[str]
    The region id of the cloud monitor rule.
    rule_name str
    The name of the cloud monitor rule. This field support fuzzy query.
    silence_time int
    The silence time of the cloud monitor rule. Unit in minutes.
    sub_namespace str
    The sub namespace of the cloud monitor rule.
    updated_at str
    The updated time of the cloud monitor rule.
    web_hook str
    The web hook of the cloud monitor rule.
    alertMethods List<String>
    The alert methods of the cloud monitor rule.
    alertState String
    The alert state of the cloud monitor rule. Valid values: altering, normal.
    conditionOperator String
    The condition operator of the cloud monitor rule. Valid values: &&, ||.
    conditions List<Property Map>
    The conditions of the cloud monitor rule.
    contactGroupIds List<String>
    The contact group ids of the cloud monitor rule.
    createdAt String
    The created time of the cloud monitor rule.
    description String
    The description of the cloud monitor rule.
    effectEndAt String
    The effect end time of the cloud monitor rule.
    effectStartAt String
    The effect start time of the cloud monitor rule.
    enableState String
    The enable state of the cloud monitor rule. Valid values: enable, disable.
    evaluationCount Number
    The evaluation count of the cloud monitor rule.
    id String
    The id of the cloud monitor rule.
    level String
    The level of the cloud monitor rule. Valid values: critical, warning, notice.
    multipleConditions Boolean
    Whether to enable the multiple conditions function of the cloud monitor rule.
    namespace String
    The namespace of the cloud monitor rule.
    originalDimensions List<Property Map>
    The original dimensions of the cloud monitor rule.
    regions List<String>
    The region id of the cloud monitor rule.
    ruleName String
    The name of the cloud monitor rule. This field support fuzzy query.
    silenceTime Number
    The silence time of the cloud monitor rule. Unit in minutes.
    subNamespace String
    The sub namespace of the cloud monitor rule.
    updatedAt String
    The updated time of the cloud monitor rule.
    webHook String
    The web hook of the cloud monitor rule.

    RulesRuleCondition

    ComparisonOperator string
    The comparison operation of the cloud monitor rule.
    MetricName string
    The metric name of the cloud monitor rule.
    MetricUnit string
    The metric unit of the cloud monitor rule.
    Period string
    The period of the cloud monitor rule.
    Statistics string
    The statistics of the cloud monitor rule.
    Threshold string
    The threshold of the cloud monitor rule.
    ComparisonOperator string
    The comparison operation of the cloud monitor rule.
    MetricName string
    The metric name of the cloud monitor rule.
    MetricUnit string
    The metric unit of the cloud monitor rule.
    Period string
    The period of the cloud monitor rule.
    Statistics string
    The statistics of the cloud monitor rule.
    Threshold string
    The threshold of the cloud monitor rule.
    comparisonOperator String
    The comparison operation of the cloud monitor rule.
    metricName String
    The metric name of the cloud monitor rule.
    metricUnit String
    The metric unit of the cloud monitor rule.
    period String
    The period of the cloud monitor rule.
    statistics String
    The statistics of the cloud monitor rule.
    threshold String
    The threshold of the cloud monitor rule.
    comparisonOperator string
    The comparison operation of the cloud monitor rule.
    metricName string
    The metric name of the cloud monitor rule.
    metricUnit string
    The metric unit of the cloud monitor rule.
    period string
    The period of the cloud monitor rule.
    statistics string
    The statistics of the cloud monitor rule.
    threshold string
    The threshold of the cloud monitor rule.
    comparison_operator str
    The comparison operation of the cloud monitor rule.
    metric_name str
    The metric name of the cloud monitor rule.
    metric_unit str
    The metric unit of the cloud monitor rule.
    period str
    The period of the cloud monitor rule.
    statistics str
    The statistics of the cloud monitor rule.
    threshold str
    The threshold of the cloud monitor rule.
    comparisonOperator String
    The comparison operation of the cloud monitor rule.
    metricName String
    The metric name of the cloud monitor rule.
    metricUnit String
    The metric unit of the cloud monitor rule.
    period String
    The period of the cloud monitor rule.
    statistics String
    The statistics of the cloud monitor rule.
    threshold String
    The threshold of the cloud monitor rule.

    RulesRuleOriginalDimension

    Key string
    The key of the dimension.
    Values List<string>
    The value of the dimension.
    Key string
    The key of the dimension.
    Values []string
    The value of the dimension.
    key String
    The key of the dimension.
    values List<String>
    The value of the dimension.
    key string
    The key of the dimension.
    values string[]
    The value of the dimension.
    key str
    The key of the dimension.
    values Sequence[str]
    The value of the dimension.
    key String
    The key of the dimension.
    values List<String>
    The value of the dimension.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine