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

tencentcloud.getMonitorAlarmHistory

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 alarm_history

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const alarmHistory = tencentcloud.getMonitorAlarmHistory({
        content: "CPU利用率 > 3%",
        endTime: 1697212799,
        module: "monitor",
        monitorTypes: ["MT_QCE"],
        namespaces: [{
            monitorType: "CpuUsage",
            namespace: "cvm_device",
        }],
        order: "DESC",
        policyIds: ["policy-iejtp4ue"],
        policyName: "terraform_test",
        projectIds: [0],
        startTime: 1696608000,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    alarm_history = tencentcloud.get_monitor_alarm_history(content="CPU利用率 > 3%",
        end_time=1697212799,
        module="monitor",
        monitor_types=["MT_QCE"],
        namespaces=[{
            "monitor_type": "CpuUsage",
            "namespace": "cvm_device",
        }],
        order="DESC",
        policy_ids=["policy-iejtp4ue"],
        policy_name="terraform_test",
        project_ids=[0],
        start_time=1696608000)
    
    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.GetMonitorAlarmHistory(ctx, &tencentcloud.GetMonitorAlarmHistoryArgs{
    			Content: pulumi.StringRef("CPU利用率 > 3%"),
    			EndTime: pulumi.Float64Ref(1697212799),
    			Module:  "monitor",
    			MonitorTypes: []string{
    				"MT_QCE",
    			},
    			Namespaces: []tencentcloud.GetMonitorAlarmHistoryNamespace{
    				{
    					MonitorType: "CpuUsage",
    					Namespace:   "cvm_device",
    				},
    			},
    			Order: pulumi.StringRef("DESC"),
    			PolicyIds: []string{
    				"policy-iejtp4ue",
    			},
    			PolicyName: pulumi.StringRef("terraform_test"),
    			ProjectIds: []float64{
    				0,
    			},
    			StartTime: pulumi.Float64Ref(1696608000),
    		}, 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 alarmHistory = Tencentcloud.GetMonitorAlarmHistory.Invoke(new()
        {
            Content = "CPU利用率 > 3%",
            EndTime = 1697212799,
            Module = "monitor",
            MonitorTypes = new[]
            {
                "MT_QCE",
            },
            Namespaces = new[]
            {
                new Tencentcloud.Inputs.GetMonitorAlarmHistoryNamespaceInputArgs
                {
                    MonitorType = "CpuUsage",
                    Namespace = "cvm_device",
                },
            },
            Order = "DESC",
            PolicyIds = new[]
            {
                "policy-iejtp4ue",
            },
            PolicyName = "terraform_test",
            ProjectIds = new[]
            {
                0,
            },
            StartTime = 1696608000,
        });
    
    });
    
    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.GetMonitorAlarmHistoryArgs;
    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 alarmHistory = TencentcloudFunctions.getMonitorAlarmHistory(GetMonitorAlarmHistoryArgs.builder()
                .content("CPU利用率 > 3%")
                .endTime(1697212799)
                .module("monitor")
                .monitorTypes("MT_QCE")
                .namespaces(GetMonitorAlarmHistoryNamespaceArgs.builder()
                    .monitorType("CpuUsage")
                    .namespace("cvm_device")
                    .build())
                .order("DESC")
                .policyIds("policy-iejtp4ue")
                .policyName("terraform_test")
                .projectIds(0)
                .startTime(1696608000)
                .build());
    
        }
    }
    
    variables:
      alarmHistory:
        fn::invoke:
          function: tencentcloud:getMonitorAlarmHistory
          arguments:
            content: CPU利用率 > 3%
            endTime: 1.697212799e+09
            module: monitor
            monitorTypes:
              - MT_QCE
            namespaces:
              - monitorType: CpuUsage
                namespace: cvm_device
            order: DESC
            policyIds:
              - policy-iejtp4ue
            policyName: terraform_test
            projectIds:
              - 0
            startTime: 1.696608e+09
    

    Using getMonitorAlarmHistory

    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 getMonitorAlarmHistory(args: GetMonitorAlarmHistoryArgs, opts?: InvokeOptions): Promise<GetMonitorAlarmHistoryResult>
    function getMonitorAlarmHistoryOutput(args: GetMonitorAlarmHistoryOutputArgs, opts?: InvokeOptions): Output<GetMonitorAlarmHistoryResult>
    def get_monitor_alarm_history(alarm_levels: Optional[Sequence[str]] = None,
                                  alarm_object: Optional[str] = None,
                                  alarm_statuses: Optional[Sequence[str]] = None,
                                  content: Optional[str] = None,
                                  end_time: Optional[float] = None,
                                  id: Optional[str] = None,
                                  instance_group_ids: Optional[Sequence[float]] = None,
                                  metric_names: Optional[Sequence[str]] = None,
                                  module: Optional[str] = None,
                                  monitor_types: Optional[Sequence[str]] = None,
                                  namespaces: Optional[Sequence[GetMonitorAlarmHistoryNamespace]] = None,
                                  order: Optional[str] = None,
                                  policy_ids: Optional[Sequence[str]] = None,
                                  policy_name: Optional[str] = None,
                                  project_ids: Optional[Sequence[float]] = None,
                                  receiver_groups: Optional[Sequence[float]] = None,
                                  receiver_uids: Optional[Sequence[float]] = None,
                                  result_output_file: Optional[str] = None,
                                  start_time: Optional[float] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetMonitorAlarmHistoryResult
    def get_monitor_alarm_history_output(alarm_levels: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                  alarm_object: Optional[pulumi.Input[str]] = None,
                                  alarm_statuses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                  content: Optional[pulumi.Input[str]] = None,
                                  end_time: Optional[pulumi.Input[float]] = None,
                                  id: Optional[pulumi.Input[str]] = None,
                                  instance_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[float]]]] = None,
                                  metric_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                  module: Optional[pulumi.Input[str]] = None,
                                  monitor_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                  namespaces: Optional[pulumi.Input[Sequence[pulumi.Input[GetMonitorAlarmHistoryNamespaceArgs]]]] = None,
                                  order: Optional[pulumi.Input[str]] = None,
                                  policy_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                  policy_name: Optional[pulumi.Input[str]] = None,
                                  project_ids: Optional[pulumi.Input[Sequence[pulumi.Input[float]]]] = None,
                                  receiver_groups: Optional[pulumi.Input[Sequence[pulumi.Input[float]]]] = None,
                                  receiver_uids: Optional[pulumi.Input[Sequence[pulumi.Input[float]]]] = None,
                                  result_output_file: Optional[pulumi.Input[str]] = None,
                                  start_time: Optional[pulumi.Input[float]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetMonitorAlarmHistoryResult]
    func GetMonitorAlarmHistory(ctx *Context, args *GetMonitorAlarmHistoryArgs, opts ...InvokeOption) (*GetMonitorAlarmHistoryResult, error)
    func GetMonitorAlarmHistoryOutput(ctx *Context, args *GetMonitorAlarmHistoryOutputArgs, opts ...InvokeOption) GetMonitorAlarmHistoryResultOutput

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

    public static class GetMonitorAlarmHistory 
    {
        public static Task<GetMonitorAlarmHistoryResult> InvokeAsync(GetMonitorAlarmHistoryArgs args, InvokeOptions? opts = null)
        public static Output<GetMonitorAlarmHistoryResult> Invoke(GetMonitorAlarmHistoryInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMonitorAlarmHistoryResult> getMonitorAlarmHistory(GetMonitorAlarmHistoryArgs args, InvokeOptions options)
    public static Output<GetMonitorAlarmHistoryResult> getMonitorAlarmHistory(GetMonitorAlarmHistoryArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getMonitorAlarmHistory:getMonitorAlarmHistory
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Module string
    Value fixed at monitor.
    AlarmLevels List<string>
    Alarm levels.
    AlarmObject string
    Filter by alarm object. Fuzzy search with string is supported.
    AlarmStatuses List<string>
    Filter by alarm status. Valid values: ALARM (not resolved), OK (resolved), NO_CONF (expired), NO_DATA (insufficient data). If this parameter is left empty, all will be queried by default.
    Content string
    Fuzzy search by alarm content.
    EndTime double
    End time, which is the current timestamp and the time when the alarm FirstOccurTime first occurs. An alarm record can be searched only if its FirstOccurTime is earlier than the EndTime.
    Id string
    Instance group ID.
    InstanceGroupIds List<double>
    Filter by instance group ID.
    MetricNames List<string>
    Filter by metric name.
    MonitorTypes List<string>
    Filter by monitor type. Valid values: MT_QCE (Tencent Cloud service monitoring), MT_TAW (application performance monitoring), MT_RUM (frontend performance monitoring), MT_PROBE (cloud automated testing). If this parameter is left empty, all types will be queried by default.
    Namespaces List<GetMonitorAlarmHistoryNamespace>
    Filter by policy type. Monitoring type and policy type are first-level and second-level filters respectively and both need to be passed in. For example, [{MonitorType: MT_QCE, Namespace: cvm_device}].
    Order string
    Sort by the first occurrence time in descending order by default. Valid values: ASC (ascending), DESC (descending).
    PolicyIds List<string>
    Search by alarm policy ID list.
    PolicyName string
    Fuzzy search by policy name.
    ProjectIds List<double>
    Filter by project ID. Valid values: -1 (no project), 0 (default project).
    ReceiverGroups List<double>
    Search by recipient group.
    ReceiverUids List<double>
    Search by recipient.
    ResultOutputFile string
    Used to save results.
    StartTime double
    Start time, which is the timestamp one day ago by default and the time when the alarm FirstOccurTime first occurs. An alarm record can be searched only if its FirstOccurTime is later than the StartTime.
    Module string
    Value fixed at monitor.
    AlarmLevels []string
    Alarm levels.
    AlarmObject string
    Filter by alarm object. Fuzzy search with string is supported.
    AlarmStatuses []string
    Filter by alarm status. Valid values: ALARM (not resolved), OK (resolved), NO_CONF (expired), NO_DATA (insufficient data). If this parameter is left empty, all will be queried by default.
    Content string
    Fuzzy search by alarm content.
    EndTime float64
    End time, which is the current timestamp and the time when the alarm FirstOccurTime first occurs. An alarm record can be searched only if its FirstOccurTime is earlier than the EndTime.
    Id string
    Instance group ID.
    InstanceGroupIds []float64
    Filter by instance group ID.
    MetricNames []string
    Filter by metric name.
    MonitorTypes []string
    Filter by monitor type. Valid values: MT_QCE (Tencent Cloud service monitoring), MT_TAW (application performance monitoring), MT_RUM (frontend performance monitoring), MT_PROBE (cloud automated testing). If this parameter is left empty, all types will be queried by default.
    Namespaces []GetMonitorAlarmHistoryNamespace
    Filter by policy type. Monitoring type and policy type are first-level and second-level filters respectively and both need to be passed in. For example, [{MonitorType: MT_QCE, Namespace: cvm_device}].
    Order string
    Sort by the first occurrence time in descending order by default. Valid values: ASC (ascending), DESC (descending).
    PolicyIds []string
    Search by alarm policy ID list.
    PolicyName string
    Fuzzy search by policy name.
    ProjectIds []float64
    Filter by project ID. Valid values: -1 (no project), 0 (default project).
    ReceiverGroups []float64
    Search by recipient group.
    ReceiverUids []float64
    Search by recipient.
    ResultOutputFile string
    Used to save results.
    StartTime float64
    Start time, which is the timestamp one day ago by default and the time when the alarm FirstOccurTime first occurs. An alarm record can be searched only if its FirstOccurTime is later than the StartTime.
    module String
    Value fixed at monitor.
    alarmLevels List<String>
    Alarm levels.
    alarmObject String
    Filter by alarm object. Fuzzy search with string is supported.
    alarmStatuses List<String>
    Filter by alarm status. Valid values: ALARM (not resolved), OK (resolved), NO_CONF (expired), NO_DATA (insufficient data). If this parameter is left empty, all will be queried by default.
    content String
    Fuzzy search by alarm content.
    endTime Double
    End time, which is the current timestamp and the time when the alarm FirstOccurTime first occurs. An alarm record can be searched only if its FirstOccurTime is earlier than the EndTime.
    id String
    Instance group ID.
    instanceGroupIds List<Double>
    Filter by instance group ID.
    metricNames List<String>
    Filter by metric name.
    monitorTypes List<String>
    Filter by monitor type. Valid values: MT_QCE (Tencent Cloud service monitoring), MT_TAW (application performance monitoring), MT_RUM (frontend performance monitoring), MT_PROBE (cloud automated testing). If this parameter is left empty, all types will be queried by default.
    namespaces List<GetMonitorAlarmHistoryNamespace>
    Filter by policy type. Monitoring type and policy type are first-level and second-level filters respectively and both need to be passed in. For example, [{MonitorType: MT_QCE, Namespace: cvm_device}].
    order String
    Sort by the first occurrence time in descending order by default. Valid values: ASC (ascending), DESC (descending).
    policyIds List<String>
    Search by alarm policy ID list.
    policyName String
    Fuzzy search by policy name.
    projectIds List<Double>
    Filter by project ID. Valid values: -1 (no project), 0 (default project).
    receiverGroups List<Double>
    Search by recipient group.
    receiverUids List<Double>
    Search by recipient.
    resultOutputFile String
    Used to save results.
    startTime Double
    Start time, which is the timestamp one day ago by default and the time when the alarm FirstOccurTime first occurs. An alarm record can be searched only if its FirstOccurTime is later than the StartTime.
    module string
    Value fixed at monitor.
    alarmLevels string[]
    Alarm levels.
    alarmObject string
    Filter by alarm object. Fuzzy search with string is supported.
    alarmStatuses string[]
    Filter by alarm status. Valid values: ALARM (not resolved), OK (resolved), NO_CONF (expired), NO_DATA (insufficient data). If this parameter is left empty, all will be queried by default.
    content string
    Fuzzy search by alarm content.
    endTime number
    End time, which is the current timestamp and the time when the alarm FirstOccurTime first occurs. An alarm record can be searched only if its FirstOccurTime is earlier than the EndTime.
    id string
    Instance group ID.
    instanceGroupIds number[]
    Filter by instance group ID.
    metricNames string[]
    Filter by metric name.
    monitorTypes string[]
    Filter by monitor type. Valid values: MT_QCE (Tencent Cloud service monitoring), MT_TAW (application performance monitoring), MT_RUM (frontend performance monitoring), MT_PROBE (cloud automated testing). If this parameter is left empty, all types will be queried by default.
    namespaces GetMonitorAlarmHistoryNamespace[]
    Filter by policy type. Monitoring type and policy type are first-level and second-level filters respectively and both need to be passed in. For example, [{MonitorType: MT_QCE, Namespace: cvm_device}].
    order string
    Sort by the first occurrence time in descending order by default. Valid values: ASC (ascending), DESC (descending).
    policyIds string[]
    Search by alarm policy ID list.
    policyName string
    Fuzzy search by policy name.
    projectIds number[]
    Filter by project ID. Valid values: -1 (no project), 0 (default project).
    receiverGroups number[]
    Search by recipient group.
    receiverUids number[]
    Search by recipient.
    resultOutputFile string
    Used to save results.
    startTime number
    Start time, which is the timestamp one day ago by default and the time when the alarm FirstOccurTime first occurs. An alarm record can be searched only if its FirstOccurTime is later than the StartTime.
    module str
    Value fixed at monitor.
    alarm_levels Sequence[str]
    Alarm levels.
    alarm_object str
    Filter by alarm object. Fuzzy search with string is supported.
    alarm_statuses Sequence[str]
    Filter by alarm status. Valid values: ALARM (not resolved), OK (resolved), NO_CONF (expired), NO_DATA (insufficient data). If this parameter is left empty, all will be queried by default.
    content str
    Fuzzy search by alarm content.
    end_time float
    End time, which is the current timestamp and the time when the alarm FirstOccurTime first occurs. An alarm record can be searched only if its FirstOccurTime is earlier than the EndTime.
    id str
    Instance group ID.
    instance_group_ids Sequence[float]
    Filter by instance group ID.
    metric_names Sequence[str]
    Filter by metric name.
    monitor_types Sequence[str]
    Filter by monitor type. Valid values: MT_QCE (Tencent Cloud service monitoring), MT_TAW (application performance monitoring), MT_RUM (frontend performance monitoring), MT_PROBE (cloud automated testing). If this parameter is left empty, all types will be queried by default.
    namespaces Sequence[GetMonitorAlarmHistoryNamespace]
    Filter by policy type. Monitoring type and policy type are first-level and second-level filters respectively and both need to be passed in. For example, [{MonitorType: MT_QCE, Namespace: cvm_device}].
    order str
    Sort by the first occurrence time in descending order by default. Valid values: ASC (ascending), DESC (descending).
    policy_ids Sequence[str]
    Search by alarm policy ID list.
    policy_name str
    Fuzzy search by policy name.
    project_ids Sequence[float]
    Filter by project ID. Valid values: -1 (no project), 0 (default project).
    receiver_groups Sequence[float]
    Search by recipient group.
    receiver_uids Sequence[float]
    Search by recipient.
    result_output_file str
    Used to save results.
    start_time float
    Start time, which is the timestamp one day ago by default and the time when the alarm FirstOccurTime first occurs. An alarm record can be searched only if its FirstOccurTime is later than the StartTime.
    module String
    Value fixed at monitor.
    alarmLevels List<String>
    Alarm levels.
    alarmObject String
    Filter by alarm object. Fuzzy search with string is supported.
    alarmStatuses List<String>
    Filter by alarm status. Valid values: ALARM (not resolved), OK (resolved), NO_CONF (expired), NO_DATA (insufficient data). If this parameter is left empty, all will be queried by default.
    content String
    Fuzzy search by alarm content.
    endTime Number
    End time, which is the current timestamp and the time when the alarm FirstOccurTime first occurs. An alarm record can be searched only if its FirstOccurTime is earlier than the EndTime.
    id String
    Instance group ID.
    instanceGroupIds List<Number>
    Filter by instance group ID.
    metricNames List<String>
    Filter by metric name.
    monitorTypes List<String>
    Filter by monitor type. Valid values: MT_QCE (Tencent Cloud service monitoring), MT_TAW (application performance monitoring), MT_RUM (frontend performance monitoring), MT_PROBE (cloud automated testing). If this parameter is left empty, all types will be queried by default.
    namespaces List<Property Map>
    Filter by policy type. Monitoring type and policy type are first-level and second-level filters respectively and both need to be passed in. For example, [{MonitorType: MT_QCE, Namespace: cvm_device}].
    order String
    Sort by the first occurrence time in descending order by default. Valid values: ASC (ascending), DESC (descending).
    policyIds List<String>
    Search by alarm policy ID list.
    policyName String
    Fuzzy search by policy name.
    projectIds List<Number>
    Filter by project ID. Valid values: -1 (no project), 0 (default project).
    receiverGroups List<Number>
    Search by recipient group.
    receiverUids List<Number>
    Search by recipient.
    resultOutputFile String
    Used to save results.
    startTime Number
    Start time, which is the timestamp one day ago by default and the time when the alarm FirstOccurTime first occurs. An alarm record can be searched only if its FirstOccurTime is later than the StartTime.

    getMonitorAlarmHistory Result

    The following output properties are available:

    Histories List<GetMonitorAlarmHistoryHistory>
    Alarm record list.
    Id string
    Instance group ID.
    Module string
    AlarmLevels List<string>
    AlarmObject string
    Alarm object.
    AlarmStatuses List<string>
    Alarm status. Valid values: ALARM (not resolved), OK (resolved), NO_CONF (expired), NO_DATA (insufficient data).
    Content string
    Alarm content.
    EndTime double
    InstanceGroupIds List<double>
    MetricNames List<string>
    MonitorTypes List<string>
    Namespaces List<GetMonitorAlarmHistoryNamespace>
    Order string
    PolicyIds List<string>
    PolicyName string
    Policy name.
    ProjectIds List<double>
    ReceiverGroups List<double>
    Recipient group list.
    ReceiverUids List<double>
    Recipient list.
    ResultOutputFile string
    StartTime double
    Histories []GetMonitorAlarmHistoryHistory
    Alarm record list.
    Id string
    Instance group ID.
    Module string
    AlarmLevels []string
    AlarmObject string
    Alarm object.
    AlarmStatuses []string
    Alarm status. Valid values: ALARM (not resolved), OK (resolved), NO_CONF (expired), NO_DATA (insufficient data).
    Content string
    Alarm content.
    EndTime float64
    InstanceGroupIds []float64
    MetricNames []string
    MonitorTypes []string
    Namespaces []GetMonitorAlarmHistoryNamespace
    Order string
    PolicyIds []string
    PolicyName string
    Policy name.
    ProjectIds []float64
    ReceiverGroups []float64
    Recipient group list.
    ReceiverUids []float64
    Recipient list.
    ResultOutputFile string
    StartTime float64
    histories List<GetMonitorAlarmHistoryHistory>
    Alarm record list.
    id String
    Instance group ID.
    module String
    alarmLevels List<String>
    alarmObject String
    Alarm object.
    alarmStatuses List<String>
    Alarm status. Valid values: ALARM (not resolved), OK (resolved), NO_CONF (expired), NO_DATA (insufficient data).
    content String
    Alarm content.
    endTime Double
    instanceGroupIds List<Double>
    metricNames List<String>
    monitorTypes List<String>
    namespaces List<GetMonitorAlarmHistoryNamespace>
    order String
    policyIds List<String>
    policyName String
    Policy name.
    projectIds List<Double>
    receiverGroups List<Double>
    Recipient group list.
    receiverUids List<Double>
    Recipient list.
    resultOutputFile String
    startTime Double
    histories GetMonitorAlarmHistoryHistory[]
    Alarm record list.
    id string
    Instance group ID.
    module string
    alarmLevels string[]
    alarmObject string
    Alarm object.
    alarmStatuses string[]
    Alarm status. Valid values: ALARM (not resolved), OK (resolved), NO_CONF (expired), NO_DATA (insufficient data).
    content string
    Alarm content.
    endTime number
    instanceGroupIds number[]
    metricNames string[]
    monitorTypes string[]
    namespaces GetMonitorAlarmHistoryNamespace[]
    order string
    policyIds string[]
    policyName string
    Policy name.
    projectIds number[]
    receiverGroups number[]
    Recipient group list.
    receiverUids number[]
    Recipient list.
    resultOutputFile string
    startTime number
    histories Sequence[GetMonitorAlarmHistoryHistory]
    Alarm record list.
    id str
    Instance group ID.
    module str
    alarm_levels Sequence[str]
    alarm_object str
    Alarm object.
    alarm_statuses Sequence[str]
    Alarm status. Valid values: ALARM (not resolved), OK (resolved), NO_CONF (expired), NO_DATA (insufficient data).
    content str
    Alarm content.
    end_time float
    instance_group_ids Sequence[float]
    metric_names Sequence[str]
    monitor_types Sequence[str]
    namespaces Sequence[GetMonitorAlarmHistoryNamespace]
    order str
    policy_ids Sequence[str]
    policy_name str
    Policy name.
    project_ids Sequence[float]
    receiver_groups Sequence[float]
    Recipient group list.
    receiver_uids Sequence[float]
    Recipient list.
    result_output_file str
    start_time float
    histories List<Property Map>
    Alarm record list.
    id String
    Instance group ID.
    module String
    alarmLevels List<String>
    alarmObject String
    Alarm object.
    alarmStatuses List<String>
    Alarm status. Valid values: ALARM (not resolved), OK (resolved), NO_CONF (expired), NO_DATA (insufficient data).
    content String
    Alarm content.
    endTime Number
    instanceGroupIds List<Number>
    metricNames List<String>
    monitorTypes List<String>
    namespaces List<Property Map>
    order String
    policyIds List<String>
    policyName String
    Policy name.
    projectIds List<Number>
    receiverGroups List<Number>
    Recipient group list.
    receiverUids List<Number>
    Recipient list.
    resultOutputFile String
    startTime Number

    Supporting Types

    GetMonitorAlarmHistoryHistory

    AlarmId string
    Alarm record ID.
    AlarmLevel string
    Alarm level.Note: this field may return null, indicating that no valid values can be obtained.
    AlarmObject string
    Filter by alarm object. Fuzzy search with string is supported.
    AlarmStatus string
    Filter by alarm status. Valid values: ALARM (not resolved), OK (resolved), NO_CONF (expired), NO_DATA (insufficient data). If this parameter is left empty, all will be queried by default.
    AlarmType string
    Alarm type.
    Content string
    Fuzzy search by alarm content.
    Dimensions string
    Dimension information of an instance that triggered alarms.Note: this field may return null, indicating that no valid values can be obtained.
    EventId double
    Event ID.
    FirstOccurTime double
    Timestamp of the first occurrence.
    InstanceGroups List<GetMonitorAlarmHistoryHistoryInstanceGroup>
    Instance group of alarm object.
    LastOccurTime double
    Timestamp of the last occurrence.
    MetricsInfos List<GetMonitorAlarmHistoryHistoryMetricsInfo>
    Metric informationNote: this field may return null, indicating that no valid values can be obtained.
    MonitorType string
    Monitor type.
    Namespace string
    Policy type.
    NoticeWays List<string>
    Alarm channel list. Valid values: SMS (SMS), EMAIL (email), CALL (phone), WECHAT (WeChat).
    OriginId string
    Alarm policy ID, which can be used when you call APIs (BindingPolicyObject, UnBindingAllPolicyObject, UnBindingPolicyObject) to bind/unbind instances or instance groups to/from an alarm policy.
    PolicyExists double
    Whether the policy exists. Valid values: 0 (no), 1 (yes).
    PolicyId string
    Alarm policy ID.
    PolicyName string
    Fuzzy search by policy name.
    ProjectId double
    Project ID.
    ProjectName string
    Project name.
    ReceiverGroups List<double>
    Search by recipient group.
    ReceiverUids List<double>
    Search by recipient.
    Region string
    Region.
    Vpc string
    VPC of alarm object for basic product alarm.
    AlarmId string
    Alarm record ID.
    AlarmLevel string
    Alarm level.Note: this field may return null, indicating that no valid values can be obtained.
    AlarmObject string
    Filter by alarm object. Fuzzy search with string is supported.
    AlarmStatus string
    Filter by alarm status. Valid values: ALARM (not resolved), OK (resolved), NO_CONF (expired), NO_DATA (insufficient data). If this parameter is left empty, all will be queried by default.
    AlarmType string
    Alarm type.
    Content string
    Fuzzy search by alarm content.
    Dimensions string
    Dimension information of an instance that triggered alarms.Note: this field may return null, indicating that no valid values can be obtained.
    EventId float64
    Event ID.
    FirstOccurTime float64
    Timestamp of the first occurrence.
    InstanceGroups []GetMonitorAlarmHistoryHistoryInstanceGroup
    Instance group of alarm object.
    LastOccurTime float64
    Timestamp of the last occurrence.
    MetricsInfos []GetMonitorAlarmHistoryHistoryMetricsInfo
    Metric informationNote: this field may return null, indicating that no valid values can be obtained.
    MonitorType string
    Monitor type.
    Namespace string
    Policy type.
    NoticeWays []string
    Alarm channel list. Valid values: SMS (SMS), EMAIL (email), CALL (phone), WECHAT (WeChat).
    OriginId string
    Alarm policy ID, which can be used when you call APIs (BindingPolicyObject, UnBindingAllPolicyObject, UnBindingPolicyObject) to bind/unbind instances or instance groups to/from an alarm policy.
    PolicyExists float64
    Whether the policy exists. Valid values: 0 (no), 1 (yes).
    PolicyId string
    Alarm policy ID.
    PolicyName string
    Fuzzy search by policy name.
    ProjectId float64
    Project ID.
    ProjectName string
    Project name.
    ReceiverGroups []float64
    Search by recipient group.
    ReceiverUids []float64
    Search by recipient.
    Region string
    Region.
    Vpc string
    VPC of alarm object for basic product alarm.
    alarmId String
    Alarm record ID.
    alarmLevel String
    Alarm level.Note: this field may return null, indicating that no valid values can be obtained.
    alarmObject String
    Filter by alarm object. Fuzzy search with string is supported.
    alarmStatus String
    Filter by alarm status. Valid values: ALARM (not resolved), OK (resolved), NO_CONF (expired), NO_DATA (insufficient data). If this parameter is left empty, all will be queried by default.
    alarmType String
    Alarm type.
    content String
    Fuzzy search by alarm content.
    dimensions String
    Dimension information of an instance that triggered alarms.Note: this field may return null, indicating that no valid values can be obtained.
    eventId Double
    Event ID.
    firstOccurTime Double
    Timestamp of the first occurrence.
    instanceGroups List<GetMonitorAlarmHistoryHistoryInstanceGroup>
    Instance group of alarm object.
    lastOccurTime Double
    Timestamp of the last occurrence.
    metricsInfos List<GetMonitorAlarmHistoryHistoryMetricsInfo>
    Metric informationNote: this field may return null, indicating that no valid values can be obtained.
    monitorType String
    Monitor type.
    namespace String
    Policy type.
    noticeWays List<String>
    Alarm channel list. Valid values: SMS (SMS), EMAIL (email), CALL (phone), WECHAT (WeChat).
    originId String
    Alarm policy ID, which can be used when you call APIs (BindingPolicyObject, UnBindingAllPolicyObject, UnBindingPolicyObject) to bind/unbind instances or instance groups to/from an alarm policy.
    policyExists Double
    Whether the policy exists. Valid values: 0 (no), 1 (yes).
    policyId String
    Alarm policy ID.
    policyName String
    Fuzzy search by policy name.
    projectId Double
    Project ID.
    projectName String
    Project name.
    receiverGroups List<Double>
    Search by recipient group.
    receiverUids List<Double>
    Search by recipient.
    region String
    Region.
    vpc String
    VPC of alarm object for basic product alarm.
    alarmId string
    Alarm record ID.
    alarmLevel string
    Alarm level.Note: this field may return null, indicating that no valid values can be obtained.
    alarmObject string
    Filter by alarm object. Fuzzy search with string is supported.
    alarmStatus string
    Filter by alarm status. Valid values: ALARM (not resolved), OK (resolved), NO_CONF (expired), NO_DATA (insufficient data). If this parameter is left empty, all will be queried by default.
    alarmType string
    Alarm type.
    content string
    Fuzzy search by alarm content.
    dimensions string
    Dimension information of an instance that triggered alarms.Note: this field may return null, indicating that no valid values can be obtained.
    eventId number
    Event ID.
    firstOccurTime number
    Timestamp of the first occurrence.
    instanceGroups GetMonitorAlarmHistoryHistoryInstanceGroup[]
    Instance group of alarm object.
    lastOccurTime number
    Timestamp of the last occurrence.
    metricsInfos GetMonitorAlarmHistoryHistoryMetricsInfo[]
    Metric informationNote: this field may return null, indicating that no valid values can be obtained.
    monitorType string
    Monitor type.
    namespace string
    Policy type.
    noticeWays string[]
    Alarm channel list. Valid values: SMS (SMS), EMAIL (email), CALL (phone), WECHAT (WeChat).
    originId string
    Alarm policy ID, which can be used when you call APIs (BindingPolicyObject, UnBindingAllPolicyObject, UnBindingPolicyObject) to bind/unbind instances or instance groups to/from an alarm policy.
    policyExists number
    Whether the policy exists. Valid values: 0 (no), 1 (yes).
    policyId string
    Alarm policy ID.
    policyName string
    Fuzzy search by policy name.
    projectId number
    Project ID.
    projectName string
    Project name.
    receiverGroups number[]
    Search by recipient group.
    receiverUids number[]
    Search by recipient.
    region string
    Region.
    vpc string
    VPC of alarm object for basic product alarm.
    alarm_id str
    Alarm record ID.
    alarm_level str
    Alarm level.Note: this field may return null, indicating that no valid values can be obtained.
    alarm_object str
    Filter by alarm object. Fuzzy search with string is supported.
    alarm_status str
    Filter by alarm status. Valid values: ALARM (not resolved), OK (resolved), NO_CONF (expired), NO_DATA (insufficient data). If this parameter is left empty, all will be queried by default.
    alarm_type str
    Alarm type.
    content str
    Fuzzy search by alarm content.
    dimensions str
    Dimension information of an instance that triggered alarms.Note: this field may return null, indicating that no valid values can be obtained.
    event_id float
    Event ID.
    first_occur_time float
    Timestamp of the first occurrence.
    instance_groups Sequence[GetMonitorAlarmHistoryHistoryInstanceGroup]
    Instance group of alarm object.
    last_occur_time float
    Timestamp of the last occurrence.
    metrics_infos Sequence[GetMonitorAlarmHistoryHistoryMetricsInfo]
    Metric informationNote: this field may return null, indicating that no valid values can be obtained.
    monitor_type str
    Monitor type.
    namespace str
    Policy type.
    notice_ways Sequence[str]
    Alarm channel list. Valid values: SMS (SMS), EMAIL (email), CALL (phone), WECHAT (WeChat).
    origin_id str
    Alarm policy ID, which can be used when you call APIs (BindingPolicyObject, UnBindingAllPolicyObject, UnBindingPolicyObject) to bind/unbind instances or instance groups to/from an alarm policy.
    policy_exists float
    Whether the policy exists. Valid values: 0 (no), 1 (yes).
    policy_id str
    Alarm policy ID.
    policy_name str
    Fuzzy search by policy name.
    project_id float
    Project ID.
    project_name str
    Project name.
    receiver_groups Sequence[float]
    Search by recipient group.
    receiver_uids Sequence[float]
    Search by recipient.
    region str
    Region.
    vpc str
    VPC of alarm object for basic product alarm.
    alarmId String
    Alarm record ID.
    alarmLevel String
    Alarm level.Note: this field may return null, indicating that no valid values can be obtained.
    alarmObject String
    Filter by alarm object. Fuzzy search with string is supported.
    alarmStatus String
    Filter by alarm status. Valid values: ALARM (not resolved), OK (resolved), NO_CONF (expired), NO_DATA (insufficient data). If this parameter is left empty, all will be queried by default.
    alarmType String
    Alarm type.
    content String
    Fuzzy search by alarm content.
    dimensions String
    Dimension information of an instance that triggered alarms.Note: this field may return null, indicating that no valid values can be obtained.
    eventId Number
    Event ID.
    firstOccurTime Number
    Timestamp of the first occurrence.
    instanceGroups List<Property Map>
    Instance group of alarm object.
    lastOccurTime Number
    Timestamp of the last occurrence.
    metricsInfos List<Property Map>
    Metric informationNote: this field may return null, indicating that no valid values can be obtained.
    monitorType String
    Monitor type.
    namespace String
    Policy type.
    noticeWays List<String>
    Alarm channel list. Valid values: SMS (SMS), EMAIL (email), CALL (phone), WECHAT (WeChat).
    originId String
    Alarm policy ID, which can be used when you call APIs (BindingPolicyObject, UnBindingAllPolicyObject, UnBindingPolicyObject) to bind/unbind instances or instance groups to/from an alarm policy.
    policyExists Number
    Whether the policy exists. Valid values: 0 (no), 1 (yes).
    policyId String
    Alarm policy ID.
    policyName String
    Fuzzy search by policy name.
    projectId Number
    Project ID.
    projectName String
    Project name.
    receiverGroups List<Number>
    Search by recipient group.
    receiverUids List<Number>
    Search by recipient.
    region String
    Region.
    vpc String
    VPC of alarm object for basic product alarm.

    GetMonitorAlarmHistoryHistoryInstanceGroup

    Id double
    Instance group ID.
    Name string
    Instance group name.
    Id float64
    Instance group ID.
    Name string
    Instance group name.
    id Double
    Instance group ID.
    name String
    Instance group name.
    id number
    Instance group ID.
    name string
    Instance group name.
    id float
    Instance group ID.
    name str
    Instance group name.
    id Number
    Instance group ID.
    name String
    Instance group name.

    GetMonitorAlarmHistoryHistoryMetricsInfo

    Description string
    Metric display name.
    MetricName string
    Metric name.
    Period double
    Statistical period.
    QceNamespace string
    Namespace used to query data by Tencent Cloud service monitoring type.
    Value string
    Value triggering alarm.
    Description string
    Metric display name.
    MetricName string
    Metric name.
    Period float64
    Statistical period.
    QceNamespace string
    Namespace used to query data by Tencent Cloud service monitoring type.
    Value string
    Value triggering alarm.
    description String
    Metric display name.
    metricName String
    Metric name.
    period Double
    Statistical period.
    qceNamespace String
    Namespace used to query data by Tencent Cloud service monitoring type.
    value String
    Value triggering alarm.
    description string
    Metric display name.
    metricName string
    Metric name.
    period number
    Statistical period.
    qceNamespace string
    Namespace used to query data by Tencent Cloud service monitoring type.
    value string
    Value triggering alarm.
    description str
    Metric display name.
    metric_name str
    Metric name.
    period float
    Statistical period.
    qce_namespace str
    Namespace used to query data by Tencent Cloud service monitoring type.
    value str
    Value triggering alarm.
    description String
    Metric display name.
    metricName String
    Metric name.
    period Number
    Statistical period.
    qceNamespace String
    Namespace used to query data by Tencent Cloud service monitoring type.
    value String
    Value triggering alarm.

    GetMonitorAlarmHistoryNamespace

    MonitorType string
    Monitor type.
    Namespace string
    Policy type.
    MonitorType string
    Monitor type.
    Namespace string
    Policy type.
    monitorType String
    Monitor type.
    namespace String
    Policy type.
    monitorType string
    Monitor type.
    namespace string
    Policy type.
    monitor_type str
    Monitor type.
    namespace str
    Policy type.
    monitorType String
    Monitor type.
    namespace String
    Policy type.

    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