tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getMonitorAlarmBasicMetric
Explore with Pulumi AI
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
- Metric
Name 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.
- Result
Output stringFile - 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
- Metric
Name 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.
- Result
Output stringFile - 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
- metric
Name 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.
- result
Output StringFile - 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
- metric
Name 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.
- result
Output stringFile - 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_ strfile - 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
- metric
Name 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.
- result
Output StringFile - Used to save results.
getMonitorAlarmBasicMetric Result
The following output properties are available:
- Id string
- Metric
Sets List<GetMonitor Alarm Basic Metric Metric Set> - List of indicator descriptions obtained from query.
- Namespace string
- Namespaces, each cloud product will have a namespace.
- Dimensions List<string>
- Dimension name array.
- Metric
Name string - Indicator Name.
- Result
Output stringFile
- Id string
- Metric
Sets []GetMonitor Alarm Basic Metric Metric Set - List of indicator descriptions obtained from query.
- Namespace string
- Namespaces, each cloud product will have a namespace.
- Dimensions []string
- Dimension name array.
- Metric
Name string - Indicator Name.
- Result
Output stringFile
- id String
- metric
Sets List<GetMonitor Alarm Basic Metric Metric Set> - List of indicator descriptions obtained from query.
- namespace String
- Namespaces, each cloud product will have a namespace.
- dimensions List<String>
- Dimension name array.
- metric
Name String - Indicator Name.
- result
Output StringFile
- id string
- metric
Sets GetMonitor Alarm Basic Metric Metric Set[] - List of indicator descriptions obtained from query.
- namespace string
- Namespaces, each cloud product will have a namespace.
- dimensions string[]
- Dimension name array.
- metric
Name string - Indicator Name.
- result
Output stringFile
- id str
- metric_
sets Sequence[GetMonitor Alarm Basic Metric Metric Set] - 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_ strfile
- id String
- metric
Sets 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.
- metric
Name String - Indicator Name.
- result
Output StringFile
Supporting Types
GetMonitorAlarmBasicMetricMetricSet
- Dimensions
List<Get
Monitor Alarm Basic Metric Metric Set Dimension> - Optional parameters, filtered by dimension.
- Meanings
List<Get
Monitor Alarm Basic Metric Metric Set Meaning> - Explanation of the meaning of statistical indicators.
- Metric
CName string - Indicator Chinese Name.
- Metric
EName string - Indicator English name.
- Metric
Name 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<Get
Monitor Alarm Basic Metric Metric Set Period> - Indicator method within the statistical cycle.
- Unit string
- Units used for indicators.
- Unit
Cname string - Units used for indicators.
- Dimensions
[]Get
Monitor Alarm Basic Metric Metric Set Dimension - Optional parameters, filtered by dimension.
- Meanings
[]Get
Monitor Alarm Basic Metric Metric Set Meaning - Explanation of the meaning of statistical indicators.
- Metric
CName string - Indicator Chinese Name.
- Metric
EName string - Indicator English name.
- Metric
Name 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
[]Get
Monitor Alarm Basic Metric Metric Set Period - Indicator method within the statistical cycle.
- Unit string
- Units used for indicators.
- Unit
Cname string - Units used for indicators.
- dimensions
List<Get
Monitor Alarm Basic Metric Metric Set Dimension> - Optional parameters, filtered by dimension.
- meanings
List<Get
Monitor Alarm Basic Metric Metric Set Meaning> - Explanation of the meaning of statistical indicators.
- metric
CName String - Indicator Chinese Name.
- metric
EName String - Indicator English name.
- metric
Name 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<Get
Monitor Alarm Basic Metric Metric Set Period> - Indicator method within the statistical cycle.
- unit String
- Units used for indicators.
- unit
Cname String - Units used for indicators.
- dimensions
Get
Monitor Alarm Basic Metric Metric Set Dimension[] - Optional parameters, filtered by dimension.
- meanings
Get
Monitor Alarm Basic Metric Metric Set Meaning[] - Explanation of the meaning of statistical indicators.
- metric
CName string - Indicator Chinese Name.
- metric
EName string - Indicator English name.
- metric
Name 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
Get
Monitor Alarm Basic Metric Metric Set Period[] - Indicator method within the statistical cycle.
- unit string
- Units used for indicators.
- unit
Cname string - Units used for indicators.
- dimensions
Sequence[Get
Monitor Alarm Basic Metric Metric Set Dimension] - Optional parameters, filtered by dimension.
- meanings
Sequence[Get
Monitor Alarm Basic Metric Metric Set Meaning] - Explanation of the meaning of statistical indicators.
- metric_
c_ strname - Indicator Chinese Name.
- metric_
e_ strname - 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[Get
Monitor Alarm Basic Metric Metric Set Period] - 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.
- metric
CName String - Indicator Chinese Name.
- metric
EName String - Indicator English name.
- metric
Name 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.
- unit
Cname 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
GetMonitorAlarmBasicMetricMetricSetPeriod
- period str
- Cycle.
- stat_
types Sequence[str] - Statistical methods.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack