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

tencentcloud.getMonitorAlarmBasicMetric

Explore with Pulumi AI

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

    Use this data source to query detailed information of monitor basic_metric

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const alarmMetric = tencentcloud.getMonitorAlarmBasicMetric({
        dimensions: ["uuid"],
        metricName: "WanOuttraffic",
        namespace: "qce/cvm",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    alarm_metric = tencentcloud.get_monitor_alarm_basic_metric(dimensions=["uuid"],
        metric_name="WanOuttraffic",
        namespace="qce/cvm")
    
    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.GetMonitorAlarmBasicMetric(ctx, &tencentcloud.GetMonitorAlarmBasicMetricArgs{
    			Dimensions: []string{
    				"uuid",
    			},
    			MetricName: pulumi.StringRef("WanOuttraffic"),
    			Namespace:  "qce/cvm",
    		}, 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 alarmMetric = Tencentcloud.GetMonitorAlarmBasicMetric.Invoke(new()
        {
            Dimensions = new[]
            {
                "uuid",
            },
            MetricName = "WanOuttraffic",
            Namespace = "qce/cvm",
        });
    
    });
    
    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.GetMonitorAlarmBasicMetricArgs;
    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 alarmMetric = TencentcloudFunctions.getMonitorAlarmBasicMetric(GetMonitorAlarmBasicMetricArgs.builder()
                .dimensions("uuid")
                .metricName("WanOuttraffic")
                .namespace("qce/cvm")
                .build());
    
        }
    }
    
    variables:
      alarmMetric:
        fn::invoke:
          function: tencentcloud:getMonitorAlarmBasicMetric
          arguments:
            dimensions:
              - uuid
            metricName: WanOuttraffic
            namespace: qce/cvm
    

    Using getMonitorAlarmBasicMetric

    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 getMonitorAlarmBasicMetric(args: GetMonitorAlarmBasicMetricArgs, opts?: InvokeOptions): Promise<GetMonitorAlarmBasicMetricResult>
    function getMonitorAlarmBasicMetricOutput(args: GetMonitorAlarmBasicMetricOutputArgs, opts?: InvokeOptions): Output<GetMonitorAlarmBasicMetricResult>
    def get_monitor_alarm_basic_metric(dimensions: Optional[Sequence[str]] = None,
                                       id: Optional[str] = None,
                                       metric_name: Optional[str] = None,
                                       namespace: Optional[str] = None,
                                       result_output_file: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetMonitorAlarmBasicMetricResult
    def get_monitor_alarm_basic_metric_output(dimensions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                       id: Optional[pulumi.Input[str]] = None,
                                       metric_name: Optional[pulumi.Input[str]] = None,
                                       namespace: Optional[pulumi.Input[str]] = None,
                                       result_output_file: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetMonitorAlarmBasicMetricResult]
    func GetMonitorAlarmBasicMetric(ctx *Context, args *GetMonitorAlarmBasicMetricArgs, opts ...InvokeOption) (*GetMonitorAlarmBasicMetricResult, error)
    func GetMonitorAlarmBasicMetricOutput(ctx *Context, args *GetMonitorAlarmBasicMetricOutputArgs, opts ...InvokeOption) GetMonitorAlarmBasicMetricResultOutput

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

    public static class GetMonitorAlarmBasicMetric 
    {
        public static Task<GetMonitorAlarmBasicMetricResult> InvokeAsync(GetMonitorAlarmBasicMetricArgs args, InvokeOptions? opts = null)
        public static Output<GetMonitorAlarmBasicMetricResult> Invoke(GetMonitorAlarmBasicMetricInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMonitorAlarmBasicMetricResult> getMonitorAlarmBasicMetric(GetMonitorAlarmBasicMetricArgs args, InvokeOptions options)
    public static Output<GetMonitorAlarmBasicMetricResult> getMonitorAlarmBasicMetric(GetMonitorAlarmBasicMetricArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getMonitorAlarmBasicMetric:getMonitorAlarmBasicMetric
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Namespace string
    The business namespace is different for each cloud product. To obtain the business namespace, please go to the product monitoring indicator documents, such as the namespace of the cloud server, which can be found in Cloud Server Monitoring Indicators.
    Dimensions List<string>
    Optional parameters, filtered by dimension.
    Id string
    MetricName string
    Indicator names are different for each cloud product. To obtain indicator names, please go to the monitoring indicator documents of each product, such as the indicator names of cloud servers, which can be found in Cloud Server Monitoring Indicators.
    ResultOutputFile string
    Used to save results.
    Namespace string
    The business namespace is different for each cloud product. To obtain the business namespace, please go to the product monitoring indicator documents, such as the namespace of the cloud server, which can be found in Cloud Server Monitoring Indicators.
    Dimensions []string
    Optional parameters, filtered by dimension.
    Id string
    MetricName string
    Indicator names are different for each cloud product. To obtain indicator names, please go to the monitoring indicator documents of each product, such as the indicator names of cloud servers, which can be found in Cloud Server Monitoring Indicators.
    ResultOutputFile string
    Used to save results.
    namespace String
    The business namespace is different for each cloud product. To obtain the business namespace, please go to the product monitoring indicator documents, such as the namespace of the cloud server, which can be found in Cloud Server Monitoring Indicators.
    dimensions List<String>
    Optional parameters, filtered by dimension.
    id String
    metricName String
    Indicator names are different for each cloud product. To obtain indicator names, please go to the monitoring indicator documents of each product, such as the indicator names of cloud servers, which can be found in Cloud Server Monitoring Indicators.
    resultOutputFile String
    Used to save results.
    namespace string
    The business namespace is different for each cloud product. To obtain the business namespace, please go to the product monitoring indicator documents, such as the namespace of the cloud server, which can be found in Cloud Server Monitoring Indicators.
    dimensions string[]
    Optional parameters, filtered by dimension.
    id string
    metricName string
    Indicator names are different for each cloud product. To obtain indicator names, please go to the monitoring indicator documents of each product, such as the indicator names of cloud servers, which can be found in Cloud Server Monitoring Indicators.
    resultOutputFile string
    Used to save results.
    namespace str
    The business namespace is different for each cloud product. To obtain the business namespace, please go to the product monitoring indicator documents, such as the namespace of the cloud server, which can be found in Cloud Server Monitoring Indicators.
    dimensions Sequence[str]
    Optional parameters, filtered by dimension.
    id str
    metric_name str
    Indicator names are different for each cloud product. To obtain indicator names, please go to the monitoring indicator documents of each product, such as the indicator names of cloud servers, which can be found in Cloud Server Monitoring Indicators.
    result_output_file str
    Used to save results.
    namespace String
    The business namespace is different for each cloud product. To obtain the business namespace, please go to the product monitoring indicator documents, such as the namespace of the cloud server, which can be found in Cloud Server Monitoring Indicators.
    dimensions List<String>
    Optional parameters, filtered by dimension.
    id String
    metricName String
    Indicator names are different for each cloud product. To obtain indicator names, please go to the monitoring indicator documents of each product, such as the indicator names of cloud servers, which can be found in Cloud Server Monitoring Indicators.
    resultOutputFile String
    Used to save results.

    getMonitorAlarmBasicMetric Result

    The following output properties are available:

    Id string
    MetricSets List<GetMonitorAlarmBasicMetricMetricSet>
    List of indicator descriptions obtained from query.
    Namespace string
    Namespaces, each cloud product will have a namespace.
    Dimensions List<string>
    Dimension name array.
    MetricName string
    Indicator Name.
    ResultOutputFile string
    Id string
    MetricSets []GetMonitorAlarmBasicMetricMetricSet
    List of indicator descriptions obtained from query.
    Namespace string
    Namespaces, each cloud product will have a namespace.
    Dimensions []string
    Dimension name array.
    MetricName string
    Indicator Name.
    ResultOutputFile string
    id String
    metricSets List<GetMonitorAlarmBasicMetricMetricSet>
    List of indicator descriptions obtained from query.
    namespace String
    Namespaces, each cloud product will have a namespace.
    dimensions List<String>
    Dimension name array.
    metricName String
    Indicator Name.
    resultOutputFile String
    id string
    metricSets GetMonitorAlarmBasicMetricMetricSet[]
    List of indicator descriptions obtained from query.
    namespace string
    Namespaces, each cloud product will have a namespace.
    dimensions string[]
    Dimension name array.
    metricName string
    Indicator Name.
    resultOutputFile string
    id str
    metric_sets Sequence[GetMonitorAlarmBasicMetricMetricSet]
    List of indicator descriptions obtained from query.
    namespace str
    Namespaces, each cloud product will have a namespace.
    dimensions Sequence[str]
    Dimension name array.
    metric_name str
    Indicator Name.
    result_output_file str
    id String
    metricSets List<Property Map>
    List of indicator descriptions obtained from query.
    namespace String
    Namespaces, each cloud product will have a namespace.
    dimensions List<String>
    Dimension name array.
    metricName String
    Indicator Name.
    resultOutputFile String

    Supporting Types

    GetMonitorAlarmBasicMetricMetricSet

    Dimensions List<GetMonitorAlarmBasicMetricMetricSetDimension>
    Optional parameters, filtered by dimension.
    Meanings List<GetMonitorAlarmBasicMetricMetricSetMeaning>
    Explanation of the meaning of statistical indicators.
    MetricCName string
    Indicator Chinese Name.
    MetricEName string
    Indicator English name.
    MetricName string
    Indicator names are different for each cloud product. To obtain indicator names, please go to the monitoring indicator documents of each product, such as the indicator names of cloud servers, which can be found in Cloud Server Monitoring Indicators.
    Namespace string
    The business namespace is different for each cloud product. To obtain the business namespace, please go to the product monitoring indicator documents, such as the namespace of the cloud server, which can be found in Cloud Server Monitoring Indicators.
    Period List<double>
    Cycle.
    Periods List<GetMonitorAlarmBasicMetricMetricSetPeriod>
    Indicator method within the statistical cycle.
    Unit string
    Units used for indicators.
    UnitCname string
    Units used for indicators.
    Dimensions []GetMonitorAlarmBasicMetricMetricSetDimension
    Optional parameters, filtered by dimension.
    Meanings []GetMonitorAlarmBasicMetricMetricSetMeaning
    Explanation of the meaning of statistical indicators.
    MetricCName string
    Indicator Chinese Name.
    MetricEName string
    Indicator English name.
    MetricName string
    Indicator names are different for each cloud product. To obtain indicator names, please go to the monitoring indicator documents of each product, such as the indicator names of cloud servers, which can be found in Cloud Server Monitoring Indicators.
    Namespace string
    The business namespace is different for each cloud product. To obtain the business namespace, please go to the product monitoring indicator documents, such as the namespace of the cloud server, which can be found in Cloud Server Monitoring Indicators.
    Period []float64
    Cycle.
    Periods []GetMonitorAlarmBasicMetricMetricSetPeriod
    Indicator method within the statistical cycle.
    Unit string
    Units used for indicators.
    UnitCname string
    Units used for indicators.
    dimensions List<GetMonitorAlarmBasicMetricMetricSetDimension>
    Optional parameters, filtered by dimension.
    meanings List<GetMonitorAlarmBasicMetricMetricSetMeaning>
    Explanation of the meaning of statistical indicators.
    metricCName String
    Indicator Chinese Name.
    metricEName String
    Indicator English name.
    metricName String
    Indicator names are different for each cloud product. To obtain indicator names, please go to the monitoring indicator documents of each product, such as the indicator names of cloud servers, which can be found in Cloud Server Monitoring Indicators.
    namespace String
    The business namespace is different for each cloud product. To obtain the business namespace, please go to the product monitoring indicator documents, such as the namespace of the cloud server, which can be found in Cloud Server Monitoring Indicators.
    period List<Double>
    Cycle.
    periods List<GetMonitorAlarmBasicMetricMetricSetPeriod>
    Indicator method within the statistical cycle.
    unit String
    Units used for indicators.
    unitCname String
    Units used for indicators.
    dimensions GetMonitorAlarmBasicMetricMetricSetDimension[]
    Optional parameters, filtered by dimension.
    meanings GetMonitorAlarmBasicMetricMetricSetMeaning[]
    Explanation of the meaning of statistical indicators.
    metricCName string
    Indicator Chinese Name.
    metricEName string
    Indicator English name.
    metricName string
    Indicator names are different for each cloud product. To obtain indicator names, please go to the monitoring indicator documents of each product, such as the indicator names of cloud servers, which can be found in Cloud Server Monitoring Indicators.
    namespace string
    The business namespace is different for each cloud product. To obtain the business namespace, please go to the product monitoring indicator documents, such as the namespace of the cloud server, which can be found in Cloud Server Monitoring Indicators.
    period number[]
    Cycle.
    periods GetMonitorAlarmBasicMetricMetricSetPeriod[]
    Indicator method within the statistical cycle.
    unit string
    Units used for indicators.
    unitCname string
    Units used for indicators.
    dimensions Sequence[GetMonitorAlarmBasicMetricMetricSetDimension]
    Optional parameters, filtered by dimension.
    meanings Sequence[GetMonitorAlarmBasicMetricMetricSetMeaning]
    Explanation of the meaning of statistical indicators.
    metric_c_name str
    Indicator Chinese Name.
    metric_e_name str
    Indicator English name.
    metric_name str
    Indicator names are different for each cloud product. To obtain indicator names, please go to the monitoring indicator documents of each product, such as the indicator names of cloud servers, which can be found in Cloud Server Monitoring Indicators.
    namespace str
    The business namespace is different for each cloud product. To obtain the business namespace, please go to the product monitoring indicator documents, such as the namespace of the cloud server, which can be found in Cloud Server Monitoring Indicators.
    period Sequence[float]
    Cycle.
    periods Sequence[GetMonitorAlarmBasicMetricMetricSetPeriod]
    Indicator method within the statistical cycle.
    unit str
    Units used for indicators.
    unit_cname str
    Units used for indicators.
    dimensions List<Property Map>
    Optional parameters, filtered by dimension.
    meanings List<Property Map>
    Explanation of the meaning of statistical indicators.
    metricCName String
    Indicator Chinese Name.
    metricEName String
    Indicator English name.
    metricName String
    Indicator names are different for each cloud product. To obtain indicator names, please go to the monitoring indicator documents of each product, such as the indicator names of cloud servers, which can be found in Cloud Server Monitoring Indicators.
    namespace String
    The business namespace is different for each cloud product. To obtain the business namespace, please go to the product monitoring indicator documents, such as the namespace of the cloud server, which can be found in Cloud Server Monitoring Indicators.
    period List<Number>
    Cycle.
    periods List<Property Map>
    Indicator method within the statistical cycle.
    unit String
    Units used for indicators.
    unitCname String
    Units used for indicators.

    GetMonitorAlarmBasicMetricMetricSetDimension

    Dimensions List<string>
    Optional parameters, filtered by dimension.
    Dimensions []string
    Optional parameters, filtered by dimension.
    dimensions List<String>
    Optional parameters, filtered by dimension.
    dimensions string[]
    Optional parameters, filtered by dimension.
    dimensions Sequence[str]
    Optional parameters, filtered by dimension.
    dimensions List<String>
    Optional parameters, filtered by dimension.

    GetMonitorAlarmBasicMetricMetricSetMeaning

    En string
    Explanation of indicators in English.
    Zh string
    Chinese interpretation of indicators.
    En string
    Explanation of indicators in English.
    Zh string
    Chinese interpretation of indicators.
    en String
    Explanation of indicators in English.
    zh String
    Chinese interpretation of indicators.
    en string
    Explanation of indicators in English.
    zh string
    Chinese interpretation of indicators.
    en str
    Explanation of indicators in English.
    zh str
    Chinese interpretation of indicators.
    en String
    Explanation of indicators in English.
    zh String
    Chinese interpretation of indicators.

    GetMonitorAlarmBasicMetricMetricSetPeriod

    Period string
    Cycle.
    StatTypes List<string>
    Statistical methods.
    Period string
    Cycle.
    StatTypes []string
    Statistical methods.
    period String
    Cycle.
    statTypes List<String>
    Statistical methods.
    period string
    Cycle.
    statTypes string[]
    Statistical methods.
    period str
    Cycle.
    stat_types Sequence[str]
    Statistical methods.
    period String
    Cycle.
    statTypes List<String>
    Statistical methods.

    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