1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getMonitorPolicyConditions
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getMonitorPolicyConditions

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query monitor policy conditions(There is a lot of data and it is recommended to output to a file)

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const monitorPolicyConditions = tencentcloud.getMonitorPolicyConditions({
        name: "Cloud Virtual Machine",
        resultOutputFile: "./tencentcloud_monitor_policy_conditions.txt",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    monitor_policy_conditions = tencentcloud.get_monitor_policy_conditions(name="Cloud Virtual Machine",
        result_output_file="./tencentcloud_monitor_policy_conditions.txt")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.GetMonitorPolicyConditions(ctx, &tencentcloud.GetMonitorPolicyConditionsArgs{
    			Name:             pulumi.StringRef("Cloud Virtual Machine"),
    			ResultOutputFile: pulumi.StringRef("./tencentcloud_monitor_policy_conditions.txt"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var monitorPolicyConditions = Tencentcloud.GetMonitorPolicyConditions.Invoke(new()
        {
            Name = "Cloud Virtual Machine",
            ResultOutputFile = "./tencentcloud_monitor_policy_conditions.txt",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetMonitorPolicyConditionsArgs;
    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 monitorPolicyConditions = TencentcloudFunctions.getMonitorPolicyConditions(GetMonitorPolicyConditionsArgs.builder()
                .name("Cloud Virtual Machine")
                .resultOutputFile("./tencentcloud_monitor_policy_conditions.txt")
                .build());
    
        }
    }
    
    variables:
      monitorPolicyConditions:
        fn::invoke:
          function: tencentcloud:getMonitorPolicyConditions
          arguments:
            name: Cloud Virtual Machine
            resultOutputFile: ./tencentcloud_monitor_policy_conditions.txt
    

    Using getMonitorPolicyConditions

    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 getMonitorPolicyConditions(args: GetMonitorPolicyConditionsArgs, opts?: InvokeOptions): Promise<GetMonitorPolicyConditionsResult>
    function getMonitorPolicyConditionsOutput(args: GetMonitorPolicyConditionsOutputArgs, opts?: InvokeOptions): Output<GetMonitorPolicyConditionsResult>
    def get_monitor_policy_conditions(id: Optional[str] = None,
                                      name: Optional[str] = None,
                                      result_output_file: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetMonitorPolicyConditionsResult
    def get_monitor_policy_conditions_output(id: Optional[pulumi.Input[str]] = None,
                                      name: Optional[pulumi.Input[str]] = None,
                                      result_output_file: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetMonitorPolicyConditionsResult]
    func GetMonitorPolicyConditions(ctx *Context, args *GetMonitorPolicyConditionsArgs, opts ...InvokeOption) (*GetMonitorPolicyConditionsResult, error)
    func GetMonitorPolicyConditionsOutput(ctx *Context, args *GetMonitorPolicyConditionsOutputArgs, opts ...InvokeOption) GetMonitorPolicyConditionsResultOutput

    > Note: This function is named GetMonitorPolicyConditions in the Go SDK.

    public static class GetMonitorPolicyConditions 
    {
        public static Task<GetMonitorPolicyConditionsResult> InvokeAsync(GetMonitorPolicyConditionsArgs args, InvokeOptions? opts = null)
        public static Output<GetMonitorPolicyConditionsResult> Invoke(GetMonitorPolicyConditionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMonitorPolicyConditionsResult> getMonitorPolicyConditions(GetMonitorPolicyConditionsArgs args, InvokeOptions options)
    public static Output<GetMonitorPolicyConditionsResult> getMonitorPolicyConditions(GetMonitorPolicyConditionsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getMonitorPolicyConditions:getMonitorPolicyConditions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Name string
    Name of the policy name, support partial matching, eg:Cloud Virtual Machine,Virtual,Cloud Load Banlancer-Private CLB Listener.
    ResultOutputFile string
    Used to store results.
    Id string
    Name string
    Name of the policy name, support partial matching, eg:Cloud Virtual Machine,Virtual,Cloud Load Banlancer-Private CLB Listener.
    ResultOutputFile string
    Used to store results.
    id String
    name String
    Name of the policy name, support partial matching, eg:Cloud Virtual Machine,Virtual,Cloud Load Banlancer-Private CLB Listener.
    resultOutputFile String
    Used to store results.
    id string
    name string
    Name of the policy name, support partial matching, eg:Cloud Virtual Machine,Virtual,Cloud Load Banlancer-Private CLB Listener.
    resultOutputFile string
    Used to store results.
    id str
    name str
    Name of the policy name, support partial matching, eg:Cloud Virtual Machine,Virtual,Cloud Load Banlancer-Private CLB Listener.
    result_output_file str
    Used to store results.
    id String
    name String
    Name of the policy name, support partial matching, eg:Cloud Virtual Machine,Virtual,Cloud Load Banlancer-Private CLB Listener.
    resultOutputFile String
    Used to store results.

    getMonitorPolicyConditions Result

    The following output properties are available:

    Id string
    Lists List<GetMonitorPolicyConditionsList>
    A list policy condition. Each element contains the following attributes:
    Name string
    Name of this policy name.
    ResultOutputFile string
    Id string
    Lists []GetMonitorPolicyConditionsList
    A list policy condition. Each element contains the following attributes:
    Name string
    Name of this policy name.
    ResultOutputFile string
    id String
    lists List<GetMonitorPolicyConditionsList>
    A list policy condition. Each element contains the following attributes:
    name String
    Name of this policy name.
    resultOutputFile String
    id string
    lists GetMonitorPolicyConditionsList[]
    A list policy condition. Each element contains the following attributes:
    name string
    Name of this policy name.
    resultOutputFile string
    id str
    lists Sequence[GetMonitorPolicyConditionsList]
    A list policy condition. Each element contains the following attributes:
    name str
    Name of this policy name.
    result_output_file str
    id String
    lists List<Property Map>
    A list policy condition. Each element contains the following attributes:
    name String
    Name of this policy name.
    resultOutputFile String

    Supporting Types

    GetMonitorPolicyConditionsList

    EventMetrics List<GetMonitorPolicyConditionsListEventMetric>
    A list of event condition metrics. Each element contains the following attributes:
    IsSupportMultiRegion bool
    Whether to support multi region.
    Metrics List<GetMonitorPolicyConditionsListMetric>
    A list of event condition metrics. Each element contains the following attributes:
    Name string
    Name of the policy name, support partial matching, eg:Cloud Virtual Machine,Virtual,Cloud Load Banlancer-Private CLB Listener.
    PolicyViewName string
    Policy view name, eg:cvm_device,BANDWIDTHPACKAGE, refer to data.tencentcloud_monitor_policy_conditions(policy_view_name).
    SupportRegions List<string>
    Support regions of this policy view.
    EventMetrics []GetMonitorPolicyConditionsListEventMetric
    A list of event condition metrics. Each element contains the following attributes:
    IsSupportMultiRegion bool
    Whether to support multi region.
    Metrics []GetMonitorPolicyConditionsListMetric
    A list of event condition metrics. Each element contains the following attributes:
    Name string
    Name of the policy name, support partial matching, eg:Cloud Virtual Machine,Virtual,Cloud Load Banlancer-Private CLB Listener.
    PolicyViewName string
    Policy view name, eg:cvm_device,BANDWIDTHPACKAGE, refer to data.tencentcloud_monitor_policy_conditions(policy_view_name).
    SupportRegions []string
    Support regions of this policy view.
    eventMetrics List<GetMonitorPolicyConditionsListEventMetric>
    A list of event condition metrics. Each element contains the following attributes:
    isSupportMultiRegion Boolean
    Whether to support multi region.
    metrics List<GetMonitorPolicyConditionsListMetric>
    A list of event condition metrics. Each element contains the following attributes:
    name String
    Name of the policy name, support partial matching, eg:Cloud Virtual Machine,Virtual,Cloud Load Banlancer-Private CLB Listener.
    policyViewName String
    Policy view name, eg:cvm_device,BANDWIDTHPACKAGE, refer to data.tencentcloud_monitor_policy_conditions(policy_view_name).
    supportRegions List<String>
    Support regions of this policy view.
    eventMetrics GetMonitorPolicyConditionsListEventMetric[]
    A list of event condition metrics. Each element contains the following attributes:
    isSupportMultiRegion boolean
    Whether to support multi region.
    metrics GetMonitorPolicyConditionsListMetric[]
    A list of event condition metrics. Each element contains the following attributes:
    name string
    Name of the policy name, support partial matching, eg:Cloud Virtual Machine,Virtual,Cloud Load Banlancer-Private CLB Listener.
    policyViewName string
    Policy view name, eg:cvm_device,BANDWIDTHPACKAGE, refer to data.tencentcloud_monitor_policy_conditions(policy_view_name).
    supportRegions string[]
    Support regions of this policy view.
    event_metrics Sequence[GetMonitorPolicyConditionsListEventMetric]
    A list of event condition metrics. Each element contains the following attributes:
    is_support_multi_region bool
    Whether to support multi region.
    metrics Sequence[GetMonitorPolicyConditionsListMetric]
    A list of event condition metrics. Each element contains the following attributes:
    name str
    Name of the policy name, support partial matching, eg:Cloud Virtual Machine,Virtual,Cloud Load Banlancer-Private CLB Listener.
    policy_view_name str
    Policy view name, eg:cvm_device,BANDWIDTHPACKAGE, refer to data.tencentcloud_monitor_policy_conditions(policy_view_name).
    support_regions Sequence[str]
    Support regions of this policy view.
    eventMetrics List<Property Map>
    A list of event condition metrics. Each element contains the following attributes:
    isSupportMultiRegion Boolean
    Whether to support multi region.
    metrics List<Property Map>
    A list of event condition metrics. Each element contains the following attributes:
    name String
    Name of the policy name, support partial matching, eg:Cloud Virtual Machine,Virtual,Cloud Load Banlancer-Private CLB Listener.
    policyViewName String
    Policy view name, eg:cvm_device,BANDWIDTHPACKAGE, refer to data.tencentcloud_monitor_policy_conditions(policy_view_name).
    supportRegions List<String>
    Support regions of this policy view.

    GetMonitorPolicyConditionsListEventMetric

    EventId double
    The ID of this event metric.
    EventShowName string
    The name of this event metric.
    NeedRecovered bool
    Whether to recover.
    EventId float64
    The ID of this event metric.
    EventShowName string
    The name of this event metric.
    NeedRecovered bool
    Whether to recover.
    eventId Double
    The ID of this event metric.
    eventShowName String
    The name of this event metric.
    needRecovered Boolean
    Whether to recover.
    eventId number
    The ID of this event metric.
    eventShowName string
    The name of this event metric.
    needRecovered boolean
    Whether to recover.
    event_id float
    The ID of this event metric.
    event_show_name str
    The name of this event metric.
    need_recovered bool
    Whether to recover.
    eventId Number
    The ID of this event metric.
    eventShowName String
    The name of this event metric.
    needRecovered Boolean
    Whether to recover.

    GetMonitorPolicyConditionsListMetric

    CalcTypeKeys List<double>
    Calculate type of this metric.
    CalcTypeNeed bool
    Whether calc_type required in the configuration.
    CalcValueDefault string
    The default calculate value of this metric.
    CalcValueFixed string
    The fixed calculate value of this metric.
    CalcValueMax string
    The max calculate value of this metric.
    CalcValueMin string
    The min calculate value of this metric.
    CalcValueNeed bool
    Whether calc_value required in the configuration.
    ContinueTimeDefault double
    The default continue time(seconds) config for this metric.
    ContinueTimeKeys List<double>
    The continue time(seconds) keys for this metric.
    ContinueTimeNeed bool
    Whether continue_time required in the configuration.
    MetricId double
    The ID of this metric.
    MetricShowName string
    The name of this metric.
    MetricUnit string
    The unit of this metric.
    PeriodDefault double
    The default data time(seconds) config for this metric.
    PeriodKeys List<double>
    The data time(seconds) keys for this metric.
    PeriodNeed bool
    Whether period required in the configuration.
    PeriodNumDefault double
    The default period number config for this metric.
    PeriodNumKeys List<double>
    The period number keys for this metric.
    PeriodNumNeed bool
    Whether period_num required in the configuration.
    StatTypeP10 string
    Data aggregation mode, cycle of 10 seconds.
    StatTypeP1800 string
    Data aggregation mode, cycle of 1800 seconds.
    StatTypeP300 string
    Data aggregation mode, cycle of 300 seconds.
    StatTypeP3600 string
    Data aggregation mode, cycle of 3600 seconds.
    StatTypeP5 string
    Data aggregation mode, cycle of 5 seconds.
    StatTypeP60 string
    Data aggregation mode, cycle of 60 seconds.
    StatTypeP600 string
    Data aggregation mode, cycle of 600 seconds.
    StatTypeP86400 string
    Data aggregation mode, cycle of 86400 seconds.
    CalcTypeKeys []float64
    Calculate type of this metric.
    CalcTypeNeed bool
    Whether calc_type required in the configuration.
    CalcValueDefault string
    The default calculate value of this metric.
    CalcValueFixed string
    The fixed calculate value of this metric.
    CalcValueMax string
    The max calculate value of this metric.
    CalcValueMin string
    The min calculate value of this metric.
    CalcValueNeed bool
    Whether calc_value required in the configuration.
    ContinueTimeDefault float64
    The default continue time(seconds) config for this metric.
    ContinueTimeKeys []float64
    The continue time(seconds) keys for this metric.
    ContinueTimeNeed bool
    Whether continue_time required in the configuration.
    MetricId float64
    The ID of this metric.
    MetricShowName string
    The name of this metric.
    MetricUnit string
    The unit of this metric.
    PeriodDefault float64
    The default data time(seconds) config for this metric.
    PeriodKeys []float64
    The data time(seconds) keys for this metric.
    PeriodNeed bool
    Whether period required in the configuration.
    PeriodNumDefault float64
    The default period number config for this metric.
    PeriodNumKeys []float64
    The period number keys for this metric.
    PeriodNumNeed bool
    Whether period_num required in the configuration.
    StatTypeP10 string
    Data aggregation mode, cycle of 10 seconds.
    StatTypeP1800 string
    Data aggregation mode, cycle of 1800 seconds.
    StatTypeP300 string
    Data aggregation mode, cycle of 300 seconds.
    StatTypeP3600 string
    Data aggregation mode, cycle of 3600 seconds.
    StatTypeP5 string
    Data aggregation mode, cycle of 5 seconds.
    StatTypeP60 string
    Data aggregation mode, cycle of 60 seconds.
    StatTypeP600 string
    Data aggregation mode, cycle of 600 seconds.
    StatTypeP86400 string
    Data aggregation mode, cycle of 86400 seconds.
    calcTypeKeys List<Double>
    Calculate type of this metric.
    calcTypeNeed Boolean
    Whether calc_type required in the configuration.
    calcValueDefault String
    The default calculate value of this metric.
    calcValueFixed String
    The fixed calculate value of this metric.
    calcValueMax String
    The max calculate value of this metric.
    calcValueMin String
    The min calculate value of this metric.
    calcValueNeed Boolean
    Whether calc_value required in the configuration.
    continueTimeDefault Double
    The default continue time(seconds) config for this metric.
    continueTimeKeys List<Double>
    The continue time(seconds) keys for this metric.
    continueTimeNeed Boolean
    Whether continue_time required in the configuration.
    metricId Double
    The ID of this metric.
    metricShowName String
    The name of this metric.
    metricUnit String
    The unit of this metric.
    periodDefault Double
    The default data time(seconds) config for this metric.
    periodKeys List<Double>
    The data time(seconds) keys for this metric.
    periodNeed Boolean
    Whether period required in the configuration.
    periodNumDefault Double
    The default period number config for this metric.
    periodNumKeys List<Double>
    The period number keys for this metric.
    periodNumNeed Boolean
    Whether period_num required in the configuration.
    statTypeP10 String
    Data aggregation mode, cycle of 10 seconds.
    statTypeP1800 String
    Data aggregation mode, cycle of 1800 seconds.
    statTypeP300 String
    Data aggregation mode, cycle of 300 seconds.
    statTypeP3600 String
    Data aggregation mode, cycle of 3600 seconds.
    statTypeP5 String
    Data aggregation mode, cycle of 5 seconds.
    statTypeP60 String
    Data aggregation mode, cycle of 60 seconds.
    statTypeP600 String
    Data aggregation mode, cycle of 600 seconds.
    statTypeP86400 String
    Data aggregation mode, cycle of 86400 seconds.
    calcTypeKeys number[]
    Calculate type of this metric.
    calcTypeNeed boolean
    Whether calc_type required in the configuration.
    calcValueDefault string
    The default calculate value of this metric.
    calcValueFixed string
    The fixed calculate value of this metric.
    calcValueMax string
    The max calculate value of this metric.
    calcValueMin string
    The min calculate value of this metric.
    calcValueNeed boolean
    Whether calc_value required in the configuration.
    continueTimeDefault number
    The default continue time(seconds) config for this metric.
    continueTimeKeys number[]
    The continue time(seconds) keys for this metric.
    continueTimeNeed boolean
    Whether continue_time required in the configuration.
    metricId number
    The ID of this metric.
    metricShowName string
    The name of this metric.
    metricUnit string
    The unit of this metric.
    periodDefault number
    The default data time(seconds) config for this metric.
    periodKeys number[]
    The data time(seconds) keys for this metric.
    periodNeed boolean
    Whether period required in the configuration.
    periodNumDefault number
    The default period number config for this metric.
    periodNumKeys number[]
    The period number keys for this metric.
    periodNumNeed boolean
    Whether period_num required in the configuration.
    statTypeP10 string
    Data aggregation mode, cycle of 10 seconds.
    statTypeP1800 string
    Data aggregation mode, cycle of 1800 seconds.
    statTypeP300 string
    Data aggregation mode, cycle of 300 seconds.
    statTypeP3600 string
    Data aggregation mode, cycle of 3600 seconds.
    statTypeP5 string
    Data aggregation mode, cycle of 5 seconds.
    statTypeP60 string
    Data aggregation mode, cycle of 60 seconds.
    statTypeP600 string
    Data aggregation mode, cycle of 600 seconds.
    statTypeP86400 string
    Data aggregation mode, cycle of 86400 seconds.
    calc_type_keys Sequence[float]
    Calculate type of this metric.
    calc_type_need bool
    Whether calc_type required in the configuration.
    calc_value_default str
    The default calculate value of this metric.
    calc_value_fixed str
    The fixed calculate value of this metric.
    calc_value_max str
    The max calculate value of this metric.
    calc_value_min str
    The min calculate value of this metric.
    calc_value_need bool
    Whether calc_value required in the configuration.
    continue_time_default float
    The default continue time(seconds) config for this metric.
    continue_time_keys Sequence[float]
    The continue time(seconds) keys for this metric.
    continue_time_need bool
    Whether continue_time required in the configuration.
    metric_id float
    The ID of this metric.
    metric_show_name str
    The name of this metric.
    metric_unit str
    The unit of this metric.
    period_default float
    The default data time(seconds) config for this metric.
    period_keys Sequence[float]
    The data time(seconds) keys for this metric.
    period_need bool
    Whether period required in the configuration.
    period_num_default float
    The default period number config for this metric.
    period_num_keys Sequence[float]
    The period number keys for this metric.
    period_num_need bool
    Whether period_num required in the configuration.
    stat_type_p10 str
    Data aggregation mode, cycle of 10 seconds.
    stat_type_p1800 str
    Data aggregation mode, cycle of 1800 seconds.
    stat_type_p300 str
    Data aggregation mode, cycle of 300 seconds.
    stat_type_p3600 str
    Data aggregation mode, cycle of 3600 seconds.
    stat_type_p5 str
    Data aggregation mode, cycle of 5 seconds.
    stat_type_p60 str
    Data aggregation mode, cycle of 60 seconds.
    stat_type_p600 str
    Data aggregation mode, cycle of 600 seconds.
    stat_type_p86400 str
    Data aggregation mode, cycle of 86400 seconds.
    calcTypeKeys List<Number>
    Calculate type of this metric.
    calcTypeNeed Boolean
    Whether calc_type required in the configuration.
    calcValueDefault String
    The default calculate value of this metric.
    calcValueFixed String
    The fixed calculate value of this metric.
    calcValueMax String
    The max calculate value of this metric.
    calcValueMin String
    The min calculate value of this metric.
    calcValueNeed Boolean
    Whether calc_value required in the configuration.
    continueTimeDefault Number
    The default continue time(seconds) config for this metric.
    continueTimeKeys List<Number>
    The continue time(seconds) keys for this metric.
    continueTimeNeed Boolean
    Whether continue_time required in the configuration.
    metricId Number
    The ID of this metric.
    metricShowName String
    The name of this metric.
    metricUnit String
    The unit of this metric.
    periodDefault Number
    The default data time(seconds) config for this metric.
    periodKeys List<Number>
    The data time(seconds) keys for this metric.
    periodNeed Boolean
    Whether period required in the configuration.
    periodNumDefault Number
    The default period number config for this metric.
    periodNumKeys List<Number>
    The period number keys for this metric.
    periodNumNeed Boolean
    Whether period_num required in the configuration.
    statTypeP10 String
    Data aggregation mode, cycle of 10 seconds.
    statTypeP1800 String
    Data aggregation mode, cycle of 1800 seconds.
    statTypeP300 String
    Data aggregation mode, cycle of 300 seconds.
    statTypeP3600 String
    Data aggregation mode, cycle of 3600 seconds.
    statTypeP5 String
    Data aggregation mode, cycle of 5 seconds.
    statTypeP60 String
    Data aggregation mode, cycle of 60 seconds.
    statTypeP600 String
    Data aggregation mode, cycle of 600 seconds.
    statTypeP86400 String
    Data aggregation mode, cycle of 86400 seconds.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack