tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getMonitorAlarmMetric
Start a Neo task
Explain and create a tencentcloud.getMonitorAlarmMetric resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
Use this data source to query detailed information of monitor alarm_metric
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const alarmMetric = tencentcloud.getMonitorAlarmMetric({
module: "monitor",
monitorType: "Monitoring",
namespace: "cvm_device",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
alarm_metric = tencentcloud.get_monitor_alarm_metric(module="monitor",
monitor_type="Monitoring",
namespace="cvm_device")
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.GetMonitorAlarmMetric(ctx, &tencentcloud.GetMonitorAlarmMetricArgs{
Module: "monitor",
MonitorType: "Monitoring",
Namespace: "cvm_device",
}, 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.GetMonitorAlarmMetric.Invoke(new()
{
Module = "monitor",
MonitorType = "Monitoring",
Namespace = "cvm_device",
});
});
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.GetMonitorAlarmMetricArgs;
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.getMonitorAlarmMetric(GetMonitorAlarmMetricArgs.builder()
.module("monitor")
.monitorType("Monitoring")
.namespace("cvm_device")
.build());
}
}
variables:
alarmMetric:
fn::invoke:
function: tencentcloud:getMonitorAlarmMetric
arguments:
module: monitor
monitorType: Monitoring
namespace: cvm_device
Using getMonitorAlarmMetric
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 getMonitorAlarmMetric(args: GetMonitorAlarmMetricArgs, opts?: InvokeOptions): Promise<GetMonitorAlarmMetricResult>
function getMonitorAlarmMetricOutput(args: GetMonitorAlarmMetricOutputArgs, opts?: InvokeOptions): Output<GetMonitorAlarmMetricResult>def get_monitor_alarm_metric(id: Optional[str] = None,
module: Optional[str] = None,
monitor_type: Optional[str] = None,
namespace: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMonitorAlarmMetricResult
def get_monitor_alarm_metric_output(id: Optional[pulumi.Input[str]] = None,
module: Optional[pulumi.Input[str]] = None,
monitor_type: Optional[pulumi.Input[str]] = None,
namespace: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMonitorAlarmMetricResult]func GetMonitorAlarmMetric(ctx *Context, args *GetMonitorAlarmMetricArgs, opts ...InvokeOption) (*GetMonitorAlarmMetricResult, error)
func GetMonitorAlarmMetricOutput(ctx *Context, args *GetMonitorAlarmMetricOutputArgs, opts ...InvokeOption) GetMonitorAlarmMetricResultOutput> Note: This function is named GetMonitorAlarmMetric in the Go SDK.
public static class GetMonitorAlarmMetric
{
public static Task<GetMonitorAlarmMetricResult> InvokeAsync(GetMonitorAlarmMetricArgs args, InvokeOptions? opts = null)
public static Output<GetMonitorAlarmMetricResult> Invoke(GetMonitorAlarmMetricInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMonitorAlarmMetricResult> getMonitorAlarmMetric(GetMonitorAlarmMetricArgs args, InvokeOptions options)
public static Output<GetMonitorAlarmMetricResult> getMonitorAlarmMetric(GetMonitorAlarmMetricArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getMonitorAlarmMetric:getMonitorAlarmMetric
arguments:
# arguments dictionaryThe following arguments are supported:
- Module string
- Fixed value, as
monitor. - Monitor
Type string - Monitoring Type Filter MT_QCE=Cloud Product Monitoring.
- Namespace string
- Alarm policy type, obtained from DescribeAllNamespaces, such as cvm_device.
- Id string
- Operator identification.
- Result
Output stringFile - Used to save results.
- Module string
- Fixed value, as
monitor. - Monitor
Type string - Monitoring Type Filter MT_QCE=Cloud Product Monitoring.
- Namespace string
- Alarm policy type, obtained from DescribeAllNamespaces, such as cvm_device.
- Id string
- Operator identification.
- Result
Output stringFile - Used to save results.
- module String
- Fixed value, as
monitor. - monitor
Type String - Monitoring Type Filter MT_QCE=Cloud Product Monitoring.
- namespace String
- Alarm policy type, obtained from DescribeAllNamespaces, such as cvm_device.
- id String
- Operator identification.
- result
Output StringFile - Used to save results.
- module string
- Fixed value, as
monitor. - monitor
Type string - Monitoring Type Filter MT_QCE=Cloud Product Monitoring.
- namespace string
- Alarm policy type, obtained from DescribeAllNamespaces, such as cvm_device.
- id string
- Operator identification.
- result
Output stringFile - Used to save results.
- module str
- Fixed value, as
monitor. - monitor_
type str - Monitoring Type Filter MT_QCE=Cloud Product Monitoring.
- namespace str
- Alarm policy type, obtained from DescribeAllNamespaces, such as cvm_device.
- id str
- Operator identification.
- result_
output_ strfile - Used to save results.
- module String
- Fixed value, as
monitor. - monitor
Type String - Monitoring Type Filter MT_QCE=Cloud Product Monitoring.
- namespace String
- Alarm policy type, obtained from DescribeAllNamespaces, such as cvm_device.
- id String
- Operator identification.
- result
Output StringFile - Used to save results.
getMonitorAlarmMetric Result
The following output properties are available:
- Id string
- Operator identification.
- Metrics
List<Get
Monitor Alarm Metric Metric> - Alarm indicator list.
- Module string
- Monitor
Type string - Namespace string
- Alarm strategy type.
- Result
Output stringFile
- Id string
- Operator identification.
- Metrics
[]Get
Monitor Alarm Metric Metric - Alarm indicator list.
- Module string
- Monitor
Type string - Namespace string
- Alarm strategy type.
- Result
Output stringFile
- id String
- Operator identification.
- metrics
List<Get
Monitor Alarm Metric Metric> - Alarm indicator list.
- module String
- monitor
Type String - namespace String
- Alarm strategy type.
- result
Output StringFile
- id string
- Operator identification.
- metrics
Get
Monitor Alarm Metric Metric[] - Alarm indicator list.
- module string
- monitor
Type string - namespace string
- Alarm strategy type.
- result
Output stringFile
- id str
- Operator identification.
- metrics
Sequence[Get
Monitor Alarm Metric Metric] - Alarm indicator list.
- module str
- monitor_
type str - namespace str
- Alarm strategy type.
- result_
output_ strfile
- id String
- Operator identification.
- metrics List<Property Map>
- Alarm indicator list.
- module String
- monitor
Type String - namespace String
- Alarm strategy type.
- result
Output StringFile
Supporting Types
GetMonitorAlarmMetricMetric
- Description string
- Indicator display name.
- Dimensions List<string>
- Dimension List.
- Is
Advanced double - Is it a high-level indicator. 1 Yes 0 No.
- Is
Open double - Is the advanced indicator activated. 1 Yes 0 No.
- Max double
- Maximum value.
- Metric
Configs List<GetMonitor Alarm Metric Metric Metric Config> - Indicator configuration.
- Metric
Name string - Indicator Name.
- Min double
- Minimum value.
- Namespace string
- Alarm policy type, obtained from DescribeAllNamespaces, such as cvm_device.
- Operators
List<Get
Monitor Alarm Metric Metric Operator> - Matching operator.
- Periods List<double>
- Indicator trigger.
- Product
Id double - Integration Center Product ID.
- Unit string
- Unit.
- Description string
- Indicator display name.
- Dimensions []string
- Dimension List.
- Is
Advanced float64 - Is it a high-level indicator. 1 Yes 0 No.
- Is
Open float64 - Is the advanced indicator activated. 1 Yes 0 No.
- Max float64
- Maximum value.
- Metric
Configs []GetMonitor Alarm Metric Metric Metric Config - Indicator configuration.
- Metric
Name string - Indicator Name.
- Min float64
- Minimum value.
- Namespace string
- Alarm policy type, obtained from DescribeAllNamespaces, such as cvm_device.
- Operators
[]Get
Monitor Alarm Metric Metric Operator - Matching operator.
- Periods []float64
- Indicator trigger.
- Product
Id float64 - Integration Center Product ID.
- Unit string
- Unit.
- description String
- Indicator display name.
- dimensions List<String>
- Dimension List.
- is
Advanced Double - Is it a high-level indicator. 1 Yes 0 No.
- is
Open Double - Is the advanced indicator activated. 1 Yes 0 No.
- max Double
- Maximum value.
- metric
Configs List<GetMonitor Alarm Metric Metric Metric Config> - Indicator configuration.
- metric
Name String - Indicator Name.
- min Double
- Minimum value.
- namespace String
- Alarm policy type, obtained from DescribeAllNamespaces, such as cvm_device.
- operators
List<Get
Monitor Alarm Metric Metric Operator> - Matching operator.
- periods List<Double>
- Indicator trigger.
- product
Id Double - Integration Center Product ID.
- unit String
- Unit.
- description string
- Indicator display name.
- dimensions string[]
- Dimension List.
- is
Advanced number - Is it a high-level indicator. 1 Yes 0 No.
- is
Open number - Is the advanced indicator activated. 1 Yes 0 No.
- max number
- Maximum value.
- metric
Configs GetMonitor Alarm Metric Metric Metric Config[] - Indicator configuration.
- metric
Name string - Indicator Name.
- min number
- Minimum value.
- namespace string
- Alarm policy type, obtained from DescribeAllNamespaces, such as cvm_device.
- operators
Get
Monitor Alarm Metric Metric Operator[] - Matching operator.
- periods number[]
- Indicator trigger.
- product
Id number - Integration Center Product ID.
- unit string
- Unit.
- description str
- Indicator display name.
- dimensions Sequence[str]
- Dimension List.
- is_
advanced float - Is it a high-level indicator. 1 Yes 0 No.
- is_
open float - Is the advanced indicator activated. 1 Yes 0 No.
- max float
- Maximum value.
- metric_
configs Sequence[GetMonitor Alarm Metric Metric Metric Config] - Indicator configuration.
- metric_
name str - Indicator Name.
- min float
- Minimum value.
- namespace str
- Alarm policy type, obtained from DescribeAllNamespaces, such as cvm_device.
- operators
Sequence[Get
Monitor Alarm Metric Metric Operator] - Matching operator.
- periods Sequence[float]
- Indicator trigger.
- product_
id float - Integration Center Product ID.
- unit str
- Unit.
- description String
- Indicator display name.
- dimensions List<String>
- Dimension List.
- is
Advanced Number - Is it a high-level indicator. 1 Yes 0 No.
- is
Open Number - Is the advanced indicator activated. 1 Yes 0 No.
- max Number
- Maximum value.
- metric
Configs List<Property Map> - Indicator configuration.
- metric
Name String - Indicator Name.
- min Number
- Minimum value.
- namespace String
- Alarm policy type, obtained from DescribeAllNamespaces, such as cvm_device.
- operators List<Property Map>
- Matching operator.
- periods List<Number>
- Indicator trigger.
- product
Id Number - Integration Center Product ID.
- unit String
- Unit.
GetMonitorAlarmMetricMetricMetricConfig
- Continue
Periods List<double> - Number of allowed duration cycles for configuration.
- Operators List<string>
- Allowed Operators.
- Periods List<double>
- The data period allowed for configuration, in seconds.
- Continue
Periods []float64 - Number of allowed duration cycles for configuration.
- Operators []string
- Allowed Operators.
- Periods []float64
- The data period allowed for configuration, in seconds.
- continue
Periods List<Double> - Number of allowed duration cycles for configuration.
- operators List<String>
- Allowed Operators.
- periods List<Double>
- The data period allowed for configuration, in seconds.
- continue
Periods number[] - Number of allowed duration cycles for configuration.
- operators string[]
- Allowed Operators.
- periods number[]
- The data period allowed for configuration, in seconds.
- continue_
periods Sequence[float] - Number of allowed duration cycles for configuration.
- operators Sequence[str]
- Allowed Operators.
- periods Sequence[float]
- The data period allowed for configuration, in seconds.
- continue
Periods List<Number> - Number of allowed duration cycles for configuration.
- operators List<String>
- Allowed Operators.
- periods List<Number>
- The data period allowed for configuration, in seconds.
GetMonitorAlarmMetricMetricOperator
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
