tencentcloud 1.82.29 published on Friday, Oct 10, 2025 by tencentcloudstack
tencentcloud.getMonitorProductEvent
tencentcloud 1.82.29 published on Friday, Oct 10, 2025 by tencentcloudstack
Use this data source to query monitor events(There is a lot of data and it is recommended to output to a file)
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const cvmEventData = tencentcloud.getMonitorProductEvent({
    isAlarmConfig: 0,
    productNames: ["cvm"],
    startTime: 1588700283,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
cvm_event_data = tencentcloud.get_monitor_product_event(is_alarm_config=0,
    product_names=["cvm"],
    start_time=1588700283)
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.GetMonitorProductEvent(ctx, &tencentcloud.GetMonitorProductEventArgs{
			IsAlarmConfig: pulumi.Float64Ref(0),
			ProductNames: []string{
				"cvm",
			},
			StartTime: pulumi.Float64Ref(1588700283),
		}, 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 cvmEventData = Tencentcloud.GetMonitorProductEvent.Invoke(new()
    {
        IsAlarmConfig = 0,
        ProductNames = new[]
        {
            "cvm",
        },
        StartTime = 1588700283,
    });
});
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.GetMonitorProductEventArgs;
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 cvmEventData = TencentcloudFunctions.getMonitorProductEvent(GetMonitorProductEventArgs.builder()
            .isAlarmConfig(0)
            .productNames("cvm")
            .startTime(1588700283)
            .build());
    }
}
variables:
  cvmEventData:
    fn::invoke:
      function: tencentcloud:getMonitorProductEvent
      arguments:
        isAlarmConfig: 0
        productNames:
          - cvm
        startTime: 1.588700283e+09
Using getMonitorProductEvent
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 getMonitorProductEvent(args: GetMonitorProductEventArgs, opts?: InvokeOptions): Promise<GetMonitorProductEventResult>
function getMonitorProductEventOutput(args: GetMonitorProductEventOutputArgs, opts?: InvokeOptions): Output<GetMonitorProductEventResult>def get_monitor_product_event(dimensions: Optional[Sequence[GetMonitorProductEventDimension]] = None,
                              end_time: Optional[float] = None,
                              event_names: Optional[Sequence[str]] = None,
                              id: Optional[str] = None,
                              instance_ids: Optional[Sequence[str]] = None,
                              is_alarm_config: Optional[float] = None,
                              product_names: Optional[Sequence[str]] = None,
                              project_ids: Optional[Sequence[str]] = None,
                              region_lists: Optional[Sequence[str]] = None,
                              result_output_file: Optional[str] = None,
                              start_time: Optional[float] = None,
                              statuses: Optional[Sequence[str]] = None,
                              types: Optional[Sequence[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> GetMonitorProductEventResult
def get_monitor_product_event_output(dimensions: Optional[pulumi.Input[Sequence[pulumi.Input[GetMonitorProductEventDimensionArgs]]]] = None,
                              end_time: Optional[pulumi.Input[float]] = None,
                              event_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                              id: Optional[pulumi.Input[str]] = None,
                              instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                              is_alarm_config: Optional[pulumi.Input[float]] = None,
                              product_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                              project_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                              region_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                              result_output_file: Optional[pulumi.Input[str]] = None,
                              start_time: Optional[pulumi.Input[float]] = None,
                              statuses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                              types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetMonitorProductEventResult]func GetMonitorProductEvent(ctx *Context, args *GetMonitorProductEventArgs, opts ...InvokeOption) (*GetMonitorProductEventResult, error)
func GetMonitorProductEventOutput(ctx *Context, args *GetMonitorProductEventOutputArgs, opts ...InvokeOption) GetMonitorProductEventResultOutput> Note: This function is named GetMonitorProductEvent in the Go SDK.
public static class GetMonitorProductEvent 
{
    public static Task<GetMonitorProductEventResult> InvokeAsync(GetMonitorProductEventArgs args, InvokeOptions? opts = null)
    public static Output<GetMonitorProductEventResult> Invoke(GetMonitorProductEventInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMonitorProductEventResult> getMonitorProductEvent(GetMonitorProductEventArgs args, InvokeOptions options)
public static Output<GetMonitorProductEventResult> getMonitorProductEvent(GetMonitorProductEventArgs args, InvokeOptions options)
fn::invoke:
  function: tencentcloud:index/getMonitorProductEvent:getMonitorProductEvent
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Dimensions
List<GetMonitor Product Event Dimension> 
- Dimensional composition of instance objects.
- EndTime double
- End timestamp for this query, eg:1588232111. Default start time isnow-3000.
- EventNames List<string>
- Event name filtering, such as guest_rebootindicates that the machine restart.
- Id string
- InstanceIds List<string>
- Affect objects, such as ins-19708ino.
- IsAlarm doubleConfig 
- Alarm status configuration filter, 1means configured, 0(default) means not configured.
- ProductNames List<string>
- Product type filtering, such as cvmfor cloud server.
- ProjectIds List<string>
- Project ID filter.
- RegionLists List<string>
- Region filter, such as gz.
- ResultOutput stringFile 
- Used to store results.
- StartTime double
- Start timestamp for this query, eg:1588230000. Default start time isnow-3600.
- Statuses List<string>
- Event status filter, value range -,alarm,recover, indicating recovered, unrecovered and stateless.
- Types List<string>
- Event type filtering, with value range abnormal,status_change, indicating state change and abnormal events.
- Dimensions
[]GetMonitor Product Event Dimension 
- Dimensional composition of instance objects.
- EndTime float64
- End timestamp for this query, eg:1588232111. Default start time isnow-3000.
- EventNames []string
- Event name filtering, such as guest_rebootindicates that the machine restart.
- Id string
- InstanceIds []string
- Affect objects, such as ins-19708ino.
- IsAlarm float64Config 
- Alarm status configuration filter, 1means configured, 0(default) means not configured.
- ProductNames []string
- Product type filtering, such as cvmfor cloud server.
- ProjectIds []string
- Project ID filter.
- RegionLists []string
- Region filter, such as gz.
- ResultOutput stringFile 
- Used to store results.
- StartTime float64
- Start timestamp for this query, eg:1588230000. Default start time isnow-3600.
- Statuses []string
- Event status filter, value range -,alarm,recover, indicating recovered, unrecovered and stateless.
- Types []string
- Event type filtering, with value range abnormal,status_change, indicating state change and abnormal events.
- dimensions
List<GetMonitor Product Event Dimension> 
- Dimensional composition of instance objects.
- endTime Double
- End timestamp for this query, eg:1588232111. Default start time isnow-3000.
- eventNames List<String>
- Event name filtering, such as guest_rebootindicates that the machine restart.
- id String
- instanceIds List<String>
- Affect objects, such as ins-19708ino.
- isAlarm DoubleConfig 
- Alarm status configuration filter, 1means configured, 0(default) means not configured.
- productNames List<String>
- Product type filtering, such as cvmfor cloud server.
- projectIds List<String>
- Project ID filter.
- regionLists List<String>
- Region filter, such as gz.
- resultOutput StringFile 
- Used to store results.
- startTime Double
- Start timestamp for this query, eg:1588230000. Default start time isnow-3600.
- statuses List<String>
- Event status filter, value range -,alarm,recover, indicating recovered, unrecovered and stateless.
- types List<String>
- Event type filtering, with value range abnormal,status_change, indicating state change and abnormal events.
- dimensions
GetMonitor Product Event Dimension[] 
- Dimensional composition of instance objects.
- endTime number
- End timestamp for this query, eg:1588232111. Default start time isnow-3000.
- eventNames string[]
- Event name filtering, such as guest_rebootindicates that the machine restart.
- id string
- instanceIds string[]
- Affect objects, such as ins-19708ino.
- isAlarm numberConfig 
- Alarm status configuration filter, 1means configured, 0(default) means not configured.
- productNames string[]
- Product type filtering, such as cvmfor cloud server.
- projectIds string[]
- Project ID filter.
- regionLists string[]
- Region filter, such as gz.
- resultOutput stringFile 
- Used to store results.
- startTime number
- Start timestamp for this query, eg:1588230000. Default start time isnow-3600.
- statuses string[]
- Event status filter, value range -,alarm,recover, indicating recovered, unrecovered and stateless.
- types string[]
- Event type filtering, with value range abnormal,status_change, indicating state change and abnormal events.
- dimensions
Sequence[GetMonitor Product Event Dimension] 
- Dimensional composition of instance objects.
- end_time float
- End timestamp for this query, eg:1588232111. Default start time isnow-3000.
- event_names Sequence[str]
- Event name filtering, such as guest_rebootindicates that the machine restart.
- id str
- instance_ids Sequence[str]
- Affect objects, such as ins-19708ino.
- is_alarm_ floatconfig 
- Alarm status configuration filter, 1means configured, 0(default) means not configured.
- product_names Sequence[str]
- Product type filtering, such as cvmfor cloud server.
- project_ids Sequence[str]
- Project ID filter.
- region_lists Sequence[str]
- Region filter, such as gz.
- result_output_ strfile 
- Used to store results.
- start_time float
- Start timestamp for this query, eg:1588230000. Default start time isnow-3600.
- statuses Sequence[str]
- Event status filter, value range -,alarm,recover, indicating recovered, unrecovered and stateless.
- types Sequence[str]
- Event type filtering, with value range abnormal,status_change, indicating state change and abnormal events.
- dimensions List<Property Map>
- Dimensional composition of instance objects.
- endTime Number
- End timestamp for this query, eg:1588232111. Default start time isnow-3000.
- eventNames List<String>
- Event name filtering, such as guest_rebootindicates that the machine restart.
- id String
- instanceIds List<String>
- Affect objects, such as ins-19708ino.
- isAlarm NumberConfig 
- Alarm status configuration filter, 1means configured, 0(default) means not configured.
- productNames List<String>
- Product type filtering, such as cvmfor cloud server.
- projectIds List<String>
- Project ID filter.
- regionLists List<String>
- Region filter, such as gz.
- resultOutput StringFile 
- Used to store results.
- startTime Number
- Start timestamp for this query, eg:1588230000. Default start time isnow-3600.
- statuses List<String>
- Event status filter, value range -,alarm,recover, indicating recovered, unrecovered and stateless.
- types List<String>
- Event type filtering, with value range abnormal,status_change, indicating state change and abnormal events.
getMonitorProductEvent Result
The following output properties are available:
- Id string
- Lists
List<GetMonitor Product Event List> 
- A list events. Each element contains the following attributes:
- Dimensions
List<GetMonitor Product Event Dimension> 
- A list of event dimensions. Each element contains the following attributes:
- EndTime double
- EventNames List<string>
- Event short name.
- InstanceIds List<string>
- The instance ID of this event.
- IsAlarm doubleConfig 
- Whether to configure alarm.
- ProductNames List<string>
- Product short name.
- ProjectIds List<string>
- Project ID of this instance.
- RegionLists List<string>
- ResultOutput stringFile 
- StartTime double
- The start timestamp of this event.
- Statuses List<string>
- The status of this event.
- Types List<string>
- The type of this event.
- Id string
- Lists
[]GetMonitor Product Event List 
- A list events. Each element contains the following attributes:
- Dimensions
[]GetMonitor Product Event Dimension 
- A list of event dimensions. Each element contains the following attributes:
- EndTime float64
- EventNames []string
- Event short name.
- InstanceIds []string
- The instance ID of this event.
- IsAlarm float64Config 
- Whether to configure alarm.
- ProductNames []string
- Product short name.
- ProjectIds []string
- Project ID of this instance.
- RegionLists []string
- ResultOutput stringFile 
- StartTime float64
- The start timestamp of this event.
- Statuses []string
- The status of this event.
- Types []string
- The type of this event.
- id String
- lists
List<GetMonitor Product Event List> 
- A list events. Each element contains the following attributes:
- dimensions
List<GetMonitor Product Event Dimension> 
- A list of event dimensions. Each element contains the following attributes:
- endTime Double
- eventNames List<String>
- Event short name.
- instanceIds List<String>
- The instance ID of this event.
- isAlarm DoubleConfig 
- Whether to configure alarm.
- productNames List<String>
- Product short name.
- projectIds List<String>
- Project ID of this instance.
- regionLists List<String>
- resultOutput StringFile 
- startTime Double
- The start timestamp of this event.
- statuses List<String>
- The status of this event.
- types List<String>
- The type of this event.
- id string
- lists
GetMonitor Product Event List[] 
- A list events. Each element contains the following attributes:
- dimensions
GetMonitor Product Event Dimension[] 
- A list of event dimensions. Each element contains the following attributes:
- endTime number
- eventNames string[]
- Event short name.
- instanceIds string[]
- The instance ID of this event.
- isAlarm numberConfig 
- Whether to configure alarm.
- productNames string[]
- Product short name.
- projectIds string[]
- Project ID of this instance.
- regionLists string[]
- resultOutput stringFile 
- startTime number
- The start timestamp of this event.
- statuses string[]
- The status of this event.
- types string[]
- The type of this event.
- id str
- lists
Sequence[GetMonitor Product Event List] 
- A list events. Each element contains the following attributes:
- dimensions
Sequence[GetMonitor Product Event Dimension] 
- A list of event dimensions. Each element contains the following attributes:
- end_time float
- event_names Sequence[str]
- Event short name.
- instance_ids Sequence[str]
- The instance ID of this event.
- is_alarm_ floatconfig 
- Whether to configure alarm.
- product_names Sequence[str]
- Product short name.
- project_ids Sequence[str]
- Project ID of this instance.
- region_lists Sequence[str]
- result_output_ strfile 
- start_time float
- The start timestamp of this event.
- statuses Sequence[str]
- The status of this event.
- types Sequence[str]
- The type of this event.
- id String
- lists List<Property Map>
- A list events. Each element contains the following attributes:
- dimensions List<Property Map>
- A list of event dimensions. Each element contains the following attributes:
- endTime Number
- eventNames List<String>
- Event short name.
- instanceIds List<String>
- The instance ID of this event.
- isAlarm NumberConfig 
- Whether to configure alarm.
- productNames List<String>
- Product short name.
- projectIds List<String>
- Project ID of this instance.
- regionLists List<String>
- resultOutput StringFile 
- startTime Number
- The start timestamp of this event.
- statuses List<String>
- The status of this event.
- types List<String>
- The type of this event.
Supporting Types
GetMonitorProductEventDimension    
GetMonitorProductEventList    
- AdditionMsgs List<GetMonitor Product Event List Addition Msg> 
- A list of addition message. Each element contains the following attributes:
- Dimensions
List<GetMonitor Product Event List Dimension> 
- Dimensional composition of instance objects.
- EventCname string
- Event chinese name.
- EventEname string
- Event english name.
- EventId double
- Event ID.
- EventName string
- Event name filtering, such as guest_rebootindicates that the machine restart.
- GroupInfos List<GetMonitor Product Event List Group Info> 
- A list of group info. Each element contains the following attributes:
- InstanceId string
- Affect objects, such as ins-19708ino.
- InstanceName string
- The name of this instance.
- IsAlarm doubleConfig 
- Alarm status configuration filter, 1means configured, 0(default) means not configured.
- ProductCname string
- Product chinese name.
- ProductEname string
- Product english name.
- ProductName string
- Product type filtering, such as cvmfor cloud server.
- ProjectId string
- Project ID filter.
- Region string
- The region of this instance.
- StartTime double
- Start timestamp for this query, eg:1588230000. Default start time isnow-3600.
- Status string
- Event status filter, value range -,alarm,recover, indicating recovered, unrecovered and stateless.
- SupportAlarm double
- Whether to support alarm.
- Type string
- Event type filtering, with value range abnormal,status_change, indicating state change and abnormal events.
- UpdateTime double
- The update timestamp of this event.
- AdditionMsgs []GetMonitor Product Event List Addition Msg 
- A list of addition message. Each element contains the following attributes:
- Dimensions
[]GetMonitor Product Event List Dimension 
- Dimensional composition of instance objects.
- EventCname string
- Event chinese name.
- EventEname string
- Event english name.
- EventId float64
- Event ID.
- EventName string
- Event name filtering, such as guest_rebootindicates that the machine restart.
- GroupInfos []GetMonitor Product Event List Group Info 
- A list of group info. Each element contains the following attributes:
- InstanceId string
- Affect objects, such as ins-19708ino.
- InstanceName string
- The name of this instance.
- IsAlarm float64Config 
- Alarm status configuration filter, 1means configured, 0(default) means not configured.
- ProductCname string
- Product chinese name.
- ProductEname string
- Product english name.
- ProductName string
- Product type filtering, such as cvmfor cloud server.
- ProjectId string
- Project ID filter.
- Region string
- The region of this instance.
- StartTime float64
- Start timestamp for this query, eg:1588230000. Default start time isnow-3600.
- Status string
- Event status filter, value range -,alarm,recover, indicating recovered, unrecovered and stateless.
- SupportAlarm float64
- Whether to support alarm.
- Type string
- Event type filtering, with value range abnormal,status_change, indicating state change and abnormal events.
- UpdateTime float64
- The update timestamp of this event.
- additionMsgs List<GetMonitor Product Event List Addition Msg> 
- A list of addition message. Each element contains the following attributes:
- dimensions
List<GetMonitor Product Event List Dimension> 
- Dimensional composition of instance objects.
- eventCname String
- Event chinese name.
- eventEname String
- Event english name.
- eventId Double
- Event ID.
- eventName String
- Event name filtering, such as guest_rebootindicates that the machine restart.
- groupInfos List<GetMonitor Product Event List Group Info> 
- A list of group info. Each element contains the following attributes:
- instanceId String
- Affect objects, such as ins-19708ino.
- instanceName String
- The name of this instance.
- isAlarm DoubleConfig 
- Alarm status configuration filter, 1means configured, 0(default) means not configured.
- productCname String
- Product chinese name.
- productEname String
- Product english name.
- productName String
- Product type filtering, such as cvmfor cloud server.
- projectId String
- Project ID filter.
- region String
- The region of this instance.
- startTime Double
- Start timestamp for this query, eg:1588230000. Default start time isnow-3600.
- status String
- Event status filter, value range -,alarm,recover, indicating recovered, unrecovered and stateless.
- supportAlarm Double
- Whether to support alarm.
- type String
- Event type filtering, with value range abnormal,status_change, indicating state change and abnormal events.
- updateTime Double
- The update timestamp of this event.
- additionMsgs GetMonitor Product Event List Addition Msg[] 
- A list of addition message. Each element contains the following attributes:
- dimensions
GetMonitor Product Event List Dimension[] 
- Dimensional composition of instance objects.
- eventCname string
- Event chinese name.
- eventEname string
- Event english name.
- eventId number
- Event ID.
- eventName string
- Event name filtering, such as guest_rebootindicates that the machine restart.
- groupInfos GetMonitor Product Event List Group Info[] 
- A list of group info. Each element contains the following attributes:
- instanceId string
- Affect objects, such as ins-19708ino.
- instanceName string
- The name of this instance.
- isAlarm numberConfig 
- Alarm status configuration filter, 1means configured, 0(default) means not configured.
- productCname string
- Product chinese name.
- productEname string
- Product english name.
- productName string
- Product type filtering, such as cvmfor cloud server.
- projectId string
- Project ID filter.
- region string
- The region of this instance.
- startTime number
- Start timestamp for this query, eg:1588230000. Default start time isnow-3600.
- status string
- Event status filter, value range -,alarm,recover, indicating recovered, unrecovered and stateless.
- supportAlarm number
- Whether to support alarm.
- type string
- Event type filtering, with value range abnormal,status_change, indicating state change and abnormal events.
- updateTime number
- The update timestamp of this event.
- addition_msgs Sequence[GetMonitor Product Event List Addition Msg] 
- A list of addition message. Each element contains the following attributes:
- dimensions
Sequence[GetMonitor Product Event List Dimension] 
- Dimensional composition of instance objects.
- event_cname str
- Event chinese name.
- event_ename str
- Event english name.
- event_id float
- Event ID.
- event_name str
- Event name filtering, such as guest_rebootindicates that the machine restart.
- group_infos Sequence[GetMonitor Product Event List Group Info] 
- A list of group info. Each element contains the following attributes:
- instance_id str
- Affect objects, such as ins-19708ino.
- instance_name str
- The name of this instance.
- is_alarm_ floatconfig 
- Alarm status configuration filter, 1means configured, 0(default) means not configured.
- product_cname str
- Product chinese name.
- product_ename str
- Product english name.
- product_name str
- Product type filtering, such as cvmfor cloud server.
- project_id str
- Project ID filter.
- region str
- The region of this instance.
- start_time float
- Start timestamp for this query, eg:1588230000. Default start time isnow-3600.
- status str
- Event status filter, value range -,alarm,recover, indicating recovered, unrecovered and stateless.
- support_alarm float
- Whether to support alarm.
- type str
- Event type filtering, with value range abnormal,status_change, indicating state change and abnormal events.
- update_time float
- The update timestamp of this event.
- additionMsgs List<Property Map>
- A list of addition message. Each element contains the following attributes:
- dimensions List<Property Map>
- Dimensional composition of instance objects.
- eventCname String
- Event chinese name.
- eventEname String
- Event english name.
- eventId Number
- Event ID.
- eventName String
- Event name filtering, such as guest_rebootindicates that the machine restart.
- groupInfos List<Property Map>
- A list of group info. Each element contains the following attributes:
- instanceId String
- Affect objects, such as ins-19708ino.
- instanceName String
- The name of this instance.
- isAlarm NumberConfig 
- Alarm status configuration filter, 1means configured, 0(default) means not configured.
- productCname String
- Product chinese name.
- productEname String
- Product english name.
- productName String
- Product type filtering, such as cvmfor cloud server.
- projectId String
- Project ID filter.
- region String
- The region of this instance.
- startTime Number
- Start timestamp for this query, eg:1588230000. Default start time isnow-3600.
- status String
- Event status filter, value range -,alarm,recover, indicating recovered, unrecovered and stateless.
- supportAlarm Number
- Whether to support alarm.
- type String
- Event type filtering, with value range abnormal,status_change, indicating state change and abnormal events.
- updateTime Number
- The update timestamp of this event.
GetMonitorProductEventListAdditionMsg      
GetMonitorProductEventListDimension     
GetMonitorProductEventListGroupInfo      
- group_id str
- Policy group ID.
- group_name str
- Policy group name.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the tencentcloudTerraform Provider.
tencentcloud 1.82.29 published on Friday, Oct 10, 2025 by tencentcloudstack
