tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getMonitorAlarmHistory
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 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.
- Alarm
Levels List<string> - Alarm levels.
- Alarm
Object string - Filter by alarm object. Fuzzy search with string is supported.
- Alarm
Statuses 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.
- End
Time 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.
- Instance
Group List<double>Ids - Filter by instance group ID.
- Metric
Names List<string> - Filter by metric name.
- Monitor
Types 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<Get
Monitor Alarm History Namespace> - 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).
- Policy
Ids List<string> - Search by alarm policy ID list.
- Policy
Name string - Fuzzy search by policy name.
- Project
Ids List<double> - Filter by project ID. Valid values: -1 (no project), 0 (default project).
- Receiver
Groups List<double> - Search by recipient group.
- Receiver
Uids List<double> - Search by recipient.
- Result
Output stringFile - Used to save results.
- Start
Time 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.
- Alarm
Levels []string - Alarm levels.
- Alarm
Object string - Filter by alarm object. Fuzzy search with string is supported.
- Alarm
Statuses []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.
- End
Time 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.
- Instance
Group []float64Ids - Filter by instance group ID.
- Metric
Names []string - Filter by metric name.
- Monitor
Types []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
[]Get
Monitor Alarm History Namespace - 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).
- Policy
Ids []string - Search by alarm policy ID list.
- Policy
Name string - Fuzzy search by policy name.
- Project
Ids []float64 - Filter by project ID. Valid values: -1 (no project), 0 (default project).
- Receiver
Groups []float64 - Search by recipient group.
- Receiver
Uids []float64 - Search by recipient.
- Result
Output stringFile - Used to save results.
- Start
Time 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.
- alarm
Levels List<String> - Alarm levels.
- alarm
Object String - Filter by alarm object. Fuzzy search with string is supported.
- alarm
Statuses 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.
- end
Time 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.
- instance
Group List<Double>Ids - Filter by instance group ID.
- metric
Names List<String> - Filter by metric name.
- monitor
Types 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<Get
Monitor Alarm History Namespace> - 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).
- policy
Ids List<String> - Search by alarm policy ID list.
- policy
Name String - Fuzzy search by policy name.
- project
Ids List<Double> - Filter by project ID. Valid values: -1 (no project), 0 (default project).
- receiver
Groups List<Double> - Search by recipient group.
- receiver
Uids List<Double> - Search by recipient.
- result
Output StringFile - Used to save results.
- start
Time 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.
- alarm
Levels string[] - Alarm levels.
- alarm
Object string - Filter by alarm object. Fuzzy search with string is supported.
- alarm
Statuses 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.
- end
Time 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.
- instance
Group number[]Ids - Filter by instance group ID.
- metric
Names string[] - Filter by metric name.
- monitor
Types 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
Get
Monitor Alarm History Namespace[] - 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).
- policy
Ids string[] - Search by alarm policy ID list.
- policy
Name string - Fuzzy search by policy name.
- project
Ids number[] - Filter by project ID. Valid values: -1 (no project), 0 (default project).
- receiver
Groups number[] - Search by recipient group.
- receiver
Uids number[] - Search by recipient.
- result
Output stringFile - Used to save results.
- start
Time 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_ Sequence[float]ids - 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[Get
Monitor Alarm History Namespace] - 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_ strfile - 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.
- alarm
Levels List<String> - Alarm levels.
- alarm
Object String - Filter by alarm object. Fuzzy search with string is supported.
- alarm
Statuses 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.
- end
Time 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.
- instance
Group List<Number>Ids - Filter by instance group ID.
- metric
Names List<String> - Filter by metric name.
- monitor
Types 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).
- policy
Ids List<String> - Search by alarm policy ID list.
- policy
Name String - Fuzzy search by policy name.
- project
Ids List<Number> - Filter by project ID. Valid values: -1 (no project), 0 (default project).
- receiver
Groups List<Number> - Search by recipient group.
- receiver
Uids List<Number> - Search by recipient.
- result
Output StringFile - Used to save results.
- start
Time 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<Get
Monitor Alarm History History> - Alarm record list.
- Id string
- Instance group ID.
- Module string
- Alarm
Levels List<string> - Alarm
Object string - Alarm object.
- Alarm
Statuses List<string> - Alarm status. Valid values: ALARM (not resolved), OK (resolved), NO_CONF (expired), NO_DATA (insufficient data).
- Content string
- Alarm content.
- End
Time double - Instance
Group List<double>Ids - Metric
Names List<string> - Monitor
Types List<string> - Namespaces
List<Get
Monitor Alarm History Namespace> - Order string
- Policy
Ids List<string> - Policy
Name string - Policy name.
- Project
Ids List<double> - Receiver
Groups List<double> - Recipient group list.
- Receiver
Uids List<double> - Recipient list.
- Result
Output stringFile - Start
Time double
- Histories
[]Get
Monitor Alarm History History - Alarm record list.
- Id string
- Instance group ID.
- Module string
- Alarm
Levels []string - Alarm
Object string - Alarm object.
- Alarm
Statuses []string - Alarm status. Valid values: ALARM (not resolved), OK (resolved), NO_CONF (expired), NO_DATA (insufficient data).
- Content string
- Alarm content.
- End
Time float64 - Instance
Group []float64Ids - Metric
Names []string - Monitor
Types []string - Namespaces
[]Get
Monitor Alarm History Namespace - Order string
- Policy
Ids []string - Policy
Name string - Policy name.
- Project
Ids []float64 - Receiver
Groups []float64 - Recipient group list.
- Receiver
Uids []float64 - Recipient list.
- Result
Output stringFile - Start
Time float64
- histories
List<Get
Monitor Alarm History History> - Alarm record list.
- id String
- Instance group ID.
- module String
- alarm
Levels List<String> - alarm
Object String - Alarm object.
- alarm
Statuses List<String> - Alarm status. Valid values: ALARM (not resolved), OK (resolved), NO_CONF (expired), NO_DATA (insufficient data).
- content String
- Alarm content.
- end
Time Double - instance
Group List<Double>Ids - metric
Names List<String> - monitor
Types List<String> - namespaces
List<Get
Monitor Alarm History Namespace> - order String
- policy
Ids List<String> - policy
Name String - Policy name.
- project
Ids List<Double> - receiver
Groups List<Double> - Recipient group list.
- receiver
Uids List<Double> - Recipient list.
- result
Output StringFile - start
Time Double
- histories
Get
Monitor Alarm History History[] - Alarm record list.
- id string
- Instance group ID.
- module string
- alarm
Levels string[] - alarm
Object string - Alarm object.
- alarm
Statuses string[] - Alarm status. Valid values: ALARM (not resolved), OK (resolved), NO_CONF (expired), NO_DATA (insufficient data).
- content string
- Alarm content.
- end
Time number - instance
Group number[]Ids - metric
Names string[] - monitor
Types string[] - namespaces
Get
Monitor Alarm History Namespace[] - order string
- policy
Ids string[] - policy
Name string - Policy name.
- project
Ids number[] - receiver
Groups number[] - Recipient group list.
- receiver
Uids number[] - Recipient list.
- result
Output stringFile - start
Time number
- histories
Sequence[Get
Monitor Alarm History History] - 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_ Sequence[float]ids - metric_
names Sequence[str] - monitor_
types Sequence[str] - namespaces
Sequence[Get
Monitor Alarm History Namespace] - 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_ strfile - start_
time float
- histories List<Property Map>
- Alarm record list.
- id String
- Instance group ID.
- module String
- alarm
Levels List<String> - alarm
Object String - Alarm object.
- alarm
Statuses List<String> - Alarm status. Valid values: ALARM (not resolved), OK (resolved), NO_CONF (expired), NO_DATA (insufficient data).
- content String
- Alarm content.
- end
Time Number - instance
Group List<Number>Ids - metric
Names List<String> - monitor
Types List<String> - namespaces List<Property Map>
- order String
- policy
Ids List<String> - policy
Name String - Policy name.
- project
Ids List<Number> - receiver
Groups List<Number> - Recipient group list.
- receiver
Uids List<Number> - Recipient list.
- result
Output StringFile - start
Time Number
Supporting Types
GetMonitorAlarmHistoryHistory
- Alarm
Id string - Alarm record ID.
- Alarm
Level string - Alarm level.Note: this field may return null, indicating that no valid values can be obtained.
- Alarm
Object string - Filter by alarm object. Fuzzy search with string is supported.
- Alarm
Status 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.
- Alarm
Type 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.
- Event
Id double - Event ID.
- First
Occur doubleTime - Timestamp of the first occurrence.
- Instance
Groups List<GetMonitor Alarm History History Instance Group> - Instance group of alarm object.
- Last
Occur doubleTime - Timestamp of the last occurrence.
- Metrics
Infos List<GetMonitor Alarm History History Metrics Info> - Metric informationNote: this field may return null, indicating that no valid values can be obtained.
- Monitor
Type string - Monitor type.
- Namespace string
- Policy type.
- Notice
Ways List<string> - Alarm channel list. Valid values: SMS (SMS), EMAIL (email), CALL (phone), WECHAT (WeChat).
- Origin
Id 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.
- Policy
Exists double - Whether the policy exists. Valid values: 0 (no), 1 (yes).
- Policy
Id string - Alarm policy ID.
- Policy
Name string - Fuzzy search by policy name.
- Project
Id double - Project ID.
- Project
Name string - Project name.
- Receiver
Groups List<double> - Search by recipient group.
- Receiver
Uids List<double> - Search by recipient.
- Region string
- Region.
- Vpc string
- VPC of alarm object for basic product alarm.
- Alarm
Id string - Alarm record ID.
- Alarm
Level string - Alarm level.Note: this field may return null, indicating that no valid values can be obtained.
- Alarm
Object string - Filter by alarm object. Fuzzy search with string is supported.
- Alarm
Status 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.
- Alarm
Type 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.
- Event
Id float64 - Event ID.
- First
Occur float64Time - Timestamp of the first occurrence.
- Instance
Groups []GetMonitor Alarm History History Instance Group - Instance group of alarm object.
- Last
Occur float64Time - Timestamp of the last occurrence.
- Metrics
Infos []GetMonitor Alarm History History Metrics Info - Metric informationNote: this field may return null, indicating that no valid values can be obtained.
- Monitor
Type string - Monitor type.
- Namespace string
- Policy type.
- Notice
Ways []string - Alarm channel list. Valid values: SMS (SMS), EMAIL (email), CALL (phone), WECHAT (WeChat).
- Origin
Id 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.
- Policy
Exists float64 - Whether the policy exists. Valid values: 0 (no), 1 (yes).
- Policy
Id string - Alarm policy ID.
- Policy
Name string - Fuzzy search by policy name.
- Project
Id float64 - Project ID.
- Project
Name string - Project name.
- Receiver
Groups []float64 - Search by recipient group.
- Receiver
Uids []float64 - Search by recipient.
- Region string
- Region.
- Vpc string
- VPC of alarm object for basic product alarm.
- alarm
Id String - Alarm record ID.
- alarm
Level String - Alarm level.Note: this field may return null, indicating that no valid values can be obtained.
- alarm
Object String - Filter by alarm object. Fuzzy search with string is supported.
- alarm
Status 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.
- alarm
Type 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.
- event
Id Double - Event ID.
- first
Occur DoubleTime - Timestamp of the first occurrence.
- instance
Groups List<GetMonitor Alarm History History Instance Group> - Instance group of alarm object.
- last
Occur DoubleTime - Timestamp of the last occurrence.
- metrics
Infos List<GetMonitor Alarm History History Metrics Info> - Metric informationNote: this field may return null, indicating that no valid values can be obtained.
- monitor
Type String - Monitor type.
- namespace String
- Policy type.
- notice
Ways List<String> - Alarm channel list. Valid values: SMS (SMS), EMAIL (email), CALL (phone), WECHAT (WeChat).
- origin
Id 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.
- policy
Exists Double - Whether the policy exists. Valid values: 0 (no), 1 (yes).
- policy
Id String - Alarm policy ID.
- policy
Name String - Fuzzy search by policy name.
- project
Id Double - Project ID.
- project
Name String - Project name.
- receiver
Groups List<Double> - Search by recipient group.
- receiver
Uids List<Double> - Search by recipient.
- region String
- Region.
- vpc String
- VPC of alarm object for basic product alarm.
- alarm
Id string - Alarm record ID.
- alarm
Level string - Alarm level.Note: this field may return null, indicating that no valid values can be obtained.
- alarm
Object string - Filter by alarm object. Fuzzy search with string is supported.
- alarm
Status 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.
- alarm
Type 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.
- event
Id number - Event ID.
- first
Occur numberTime - Timestamp of the first occurrence.
- instance
Groups GetMonitor Alarm History History Instance Group[] - Instance group of alarm object.
- last
Occur numberTime - Timestamp of the last occurrence.
- metrics
Infos GetMonitor Alarm History History Metrics Info[] - Metric informationNote: this field may return null, indicating that no valid values can be obtained.
- monitor
Type string - Monitor type.
- namespace string
- Policy type.
- notice
Ways string[] - Alarm channel list. Valid values: SMS (SMS), EMAIL (email), CALL (phone), WECHAT (WeChat).
- origin
Id 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.
- policy
Exists number - Whether the policy exists. Valid values: 0 (no), 1 (yes).
- policy
Id string - Alarm policy ID.
- policy
Name string - Fuzzy search by policy name.
- project
Id number - Project ID.
- project
Name string - Project name.
- receiver
Groups number[] - Search by recipient group.
- receiver
Uids 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_ floattime - Timestamp of the first occurrence.
- instance_
groups Sequence[GetMonitor Alarm History History Instance Group] - Instance group of alarm object.
- last_
occur_ floattime - Timestamp of the last occurrence.
- metrics_
infos Sequence[GetMonitor Alarm History History Metrics Info] - 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.
- alarm
Id String - Alarm record ID.
- alarm
Level String - Alarm level.Note: this field may return null, indicating that no valid values can be obtained.
- alarm
Object String - Filter by alarm object. Fuzzy search with string is supported.
- alarm
Status 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.
- alarm
Type 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.
- event
Id Number - Event ID.
- first
Occur NumberTime - Timestamp of the first occurrence.
- instance
Groups List<Property Map> - Instance group of alarm object.
- last
Occur NumberTime - Timestamp of the last occurrence.
- metrics
Infos List<Property Map> - Metric informationNote: this field may return null, indicating that no valid values can be obtained.
- monitor
Type String - Monitor type.
- namespace String
- Policy type.
- notice
Ways List<String> - Alarm channel list. Valid values: SMS (SMS), EMAIL (email), CALL (phone), WECHAT (WeChat).
- origin
Id 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.
- policy
Exists Number - Whether the policy exists. Valid values: 0 (no), 1 (yes).
- policy
Id String - Alarm policy ID.
- policy
Name String - Fuzzy search by policy name.
- project
Id Number - Project ID.
- project
Name String - Project name.
- receiver
Groups List<Number> - Search by recipient group.
- receiver
Uids List<Number> - Search by recipient.
- region String
- Region.
- vpc String
- VPC of alarm object for basic product alarm.
GetMonitorAlarmHistoryHistoryInstanceGroup
GetMonitorAlarmHistoryHistoryMetricsInfo
- Description string
- Metric display name.
- Metric
Name string - Metric name.
- Period double
- Statistical period.
- Qce
Namespace string - Namespace used to query data by Tencent Cloud service monitoring type.
- Value string
- Value triggering alarm.
- Description string
- Metric display name.
- Metric
Name string - Metric name.
- Period float64
- Statistical period.
- Qce
Namespace string - Namespace used to query data by Tencent Cloud service monitoring type.
- Value string
- Value triggering alarm.
- description String
- Metric display name.
- metric
Name String - Metric name.
- period Double
- Statistical period.
- qce
Namespace String - Namespace used to query data by Tencent Cloud service monitoring type.
- value String
- Value triggering alarm.
- description string
- Metric display name.
- metric
Name string - Metric name.
- period number
- Statistical period.
- qce
Namespace 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.
- metric
Name String - Metric name.
- period Number
- Statistical period.
- qce
Namespace String - Namespace used to query data by Tencent Cloud service monitoring type.
- value String
- Value triggering alarm.
GetMonitorAlarmHistoryNamespace
- Monitor
Type string - Monitor type.
- Namespace string
- Policy type.
- Monitor
Type string - Monitor type.
- Namespace string
- Policy type.
- monitor
Type String - Monitor type.
- namespace String
- Policy type.
- monitor
Type string - Monitor type.
- namespace string
- Policy type.
- monitor_
type str - Monitor type.
- namespace str
- Policy type.
- monitor
Type 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 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack