tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getMonitorProductEvent
Start a Neo task
Explain and create a tencentcloud.getMonitorProductEvent resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 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({
startTime: 1588700283,
isAlarmConfig: 0,
productNames: ["cvm"],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
cvm_event_data = tencentcloud.get_monitor_product_event(start_time=1588700283,
is_alarm_config=0,
product_names=["cvm"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.GetMonitorProductEvent(ctx, &tencentcloud.GetMonitorProductEventArgs{
StartTime: pulumi.Float64Ref(1588700283),
IsAlarmConfig: pulumi.Float64Ref(0),
ProductNames: []string{
"cvm",
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var cvmEventData = Tencentcloud.GetMonitorProductEvent.Invoke(new()
{
StartTime = 1588700283,
IsAlarmConfig = 0,
ProductNames = new[]
{
"cvm",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.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()
.startTime(1588700283)
.isAlarmConfig(0)
.productNames("cvm")
.build());
}
}
variables:
cvmEventData:
fn::invoke:
function: tencentcloud:getMonitorProductEvent
arguments:
startTime: 1.588700283e+09
isAlarmConfig: 0
productNames:
- cvm
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<Get
Monitor Product Event Dimension> - Dimensional composition of instance objects.
- End
Time double - End timestamp for this query, eg:
1588232111. Default start time isnow-3000. - Event
Names List<string> - Event name filtering, such as
guest_rebootindicates that the machine restart. - Id string
- Instance
Ids List<string> - Affect objects, such as
ins-19708ino. - Is
Alarm doubleConfig - Alarm status configuration filter, 1means configured, 0(default) means not configured.
- Product
Names List<string> - Product type filtering, such as
cvmfor cloud server. - Project
Ids List<string> - Project ID filter.
- Region
Lists List<string> - Region filter, such as
gz. - Result
Output stringFile - Used to store results.
- Start
Time 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
[]Get
Monitor Product Event Dimension - Dimensional composition of instance objects.
- End
Time float64 - End timestamp for this query, eg:
1588232111. Default start time isnow-3000. - Event
Names []string - Event name filtering, such as
guest_rebootindicates that the machine restart. - Id string
- Instance
Ids []string - Affect objects, such as
ins-19708ino. - Is
Alarm float64Config - Alarm status configuration filter, 1means configured, 0(default) means not configured.
- Product
Names []string - Product type filtering, such as
cvmfor cloud server. - Project
Ids []string - Project ID filter.
- Region
Lists []string - Region filter, such as
gz. - Result
Output stringFile - Used to store results.
- Start
Time 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<Get
Monitor Product Event Dimension> - Dimensional composition of instance objects.
- end
Time Double - End timestamp for this query, eg:
1588232111. Default start time isnow-3000. - event
Names List<String> - Event name filtering, such as
guest_rebootindicates that the machine restart. - id String
- instance
Ids List<String> - Affect objects, such as
ins-19708ino. - is
Alarm DoubleConfig - Alarm status configuration filter, 1means configured, 0(default) means not configured.
- product
Names List<String> - Product type filtering, such as
cvmfor cloud server. - project
Ids List<String> - Project ID filter.
- region
Lists List<String> - Region filter, such as
gz. - result
Output StringFile - Used to store results.
- start
Time 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
Get
Monitor Product Event Dimension[] - Dimensional composition of instance objects.
- end
Time number - End timestamp for this query, eg:
1588232111. Default start time isnow-3000. - event
Names string[] - Event name filtering, such as
guest_rebootindicates that the machine restart. - id string
- instance
Ids string[] - Affect objects, such as
ins-19708ino. - is
Alarm numberConfig - Alarm status configuration filter, 1means configured, 0(default) means not configured.
- product
Names string[] - Product type filtering, such as
cvmfor cloud server. - project
Ids string[] - Project ID filter.
- region
Lists string[] - Region filter, such as
gz. - result
Output stringFile - Used to store results.
- start
Time 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[Get
Monitor 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.
- end
Time Number - End timestamp for this query, eg:
1588232111. Default start time isnow-3000. - event
Names List<String> - Event name filtering, such as
guest_rebootindicates that the machine restart. - id String
- instance
Ids List<String> - Affect objects, such as
ins-19708ino. - is
Alarm NumberConfig - Alarm status configuration filter, 1means configured, 0(default) means not configured.
- product
Names List<String> - Product type filtering, such as
cvmfor cloud server. - project
Ids List<String> - Project ID filter.
- region
Lists List<String> - Region filter, such as
gz. - result
Output StringFile - Used to store results.
- start
Time 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<Get
Monitor Product Event List> - A list events. Each element contains the following attributes:
- Dimensions
List<Get
Monitor Product Event Dimension> - A list of event dimensions. Each element contains the following attributes:
- End
Time double - Event
Names List<string> - Event short name.
- Instance
Ids List<string> - The instance ID of this event.
- Is
Alarm doubleConfig - Whether to configure alarm.
- Product
Names List<string> - Product short name.
- Project
Ids List<string> - Project ID of this instance.
- Region
Lists List<string> - Result
Output stringFile - Start
Time 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
[]Get
Monitor Product Event List - A list events. Each element contains the following attributes:
- Dimensions
[]Get
Monitor Product Event Dimension - A list of event dimensions. Each element contains the following attributes:
- End
Time float64 - Event
Names []string - Event short name.
- Instance
Ids []string - The instance ID of this event.
- Is
Alarm float64Config - Whether to configure alarm.
- Product
Names []string - Product short name.
- Project
Ids []string - Project ID of this instance.
- Region
Lists []string - Result
Output stringFile - Start
Time 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<Get
Monitor Product Event List> - A list events. Each element contains the following attributes:
- dimensions
List<Get
Monitor Product Event Dimension> - A list of event dimensions. Each element contains the following attributes:
- end
Time Double - event
Names List<String> - Event short name.
- instance
Ids List<String> - The instance ID of this event.
- is
Alarm DoubleConfig - Whether to configure alarm.
- product
Names List<String> - Product short name.
- project
Ids List<String> - Project ID of this instance.
- region
Lists List<String> - result
Output StringFile - start
Time 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
Get
Monitor Product Event List[] - A list events. Each element contains the following attributes:
- dimensions
Get
Monitor Product Event Dimension[] - A list of event dimensions. Each element contains the following attributes:
- end
Time number - event
Names string[] - Event short name.
- instance
Ids string[] - The instance ID of this event.
- is
Alarm numberConfig - Whether to configure alarm.
- product
Names string[] - Product short name.
- project
Ids string[] - Project ID of this instance.
- region
Lists string[] - result
Output stringFile - start
Time 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[Get
Monitor Product Event List] - A list events. Each element contains the following attributes:
- dimensions
Sequence[Get
Monitor 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:
- end
Time Number - event
Names List<String> - Event short name.
- instance
Ids List<String> - The instance ID of this event.
- is
Alarm NumberConfig - Whether to configure alarm.
- product
Names List<String> - Product short name.
- project
Ids List<String> - Project ID of this instance.
- region
Lists List<String> - result
Output StringFile - start
Time 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
- Addition
Msgs List<GetMonitor Product Event List Addition Msg> - A list of addition message. Each element contains the following attributes:
- Dimensions
List<Get
Monitor Product Event List Dimension> - Dimensional composition of instance objects.
- Event
Cname string - Event chinese name.
- Event
Ename string - Event english name.
- Event
Id double - Event ID.
- Event
Name string - Event name filtering, such as
guest_rebootindicates that the machine restart. - Group
Infos List<GetMonitor Product Event List Group Info> - A list of group info. Each element contains the following attributes:
- Instance
Id string - Affect objects, such as
ins-19708ino. - Instance
Name string - The name of this instance.
- Is
Alarm doubleConfig - Alarm status configuration filter, 1means configured, 0(default) means not configured.
- Product
Cname string - Product chinese name.
- Product
Ename string - Product english name.
- Product
Name string - Product type filtering, such as
cvmfor cloud server. - Project
Id string - Project ID filter.
- Region string
- The region of this instance.
- Start
Time 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. - Support
Alarm double - Whether to support alarm.
- Type string
- Event type filtering, with value range
abnormal,status_change, indicating state change and abnormal events. - Update
Time double - The update timestamp of this event.
- Addition
Msgs []GetMonitor Product Event List Addition Msg - A list of addition message. Each element contains the following attributes:
- Dimensions
[]Get
Monitor Product Event List Dimension - Dimensional composition of instance objects.
- Event
Cname string - Event chinese name.
- Event
Ename string - Event english name.
- Event
Id float64 - Event ID.
- Event
Name string - Event name filtering, such as
guest_rebootindicates that the machine restart. - Group
Infos []GetMonitor Product Event List Group Info - A list of group info. Each element contains the following attributes:
- Instance
Id string - Affect objects, such as
ins-19708ino. - Instance
Name string - The name of this instance.
- Is
Alarm float64Config - Alarm status configuration filter, 1means configured, 0(default) means not configured.
- Product
Cname string - Product chinese name.
- Product
Ename string - Product english name.
- Product
Name string - Product type filtering, such as
cvmfor cloud server. - Project
Id string - Project ID filter.
- Region string
- The region of this instance.
- Start
Time 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. - Support
Alarm float64 - Whether to support alarm.
- Type string
- Event type filtering, with value range
abnormal,status_change, indicating state change and abnormal events. - Update
Time float64 - The update timestamp of this event.
- addition
Msgs List<GetMonitor Product Event List Addition Msg> - A list of addition message. Each element contains the following attributes:
- dimensions
List<Get
Monitor Product Event List Dimension> - Dimensional composition of instance objects.
- event
Cname String - Event chinese name.
- event
Ename String - Event english name.
- event
Id Double - Event ID.
- event
Name String - Event name filtering, such as
guest_rebootindicates that the machine restart. - group
Infos List<GetMonitor Product Event List Group Info> - A list of group info. Each element contains the following attributes:
- instance
Id String - Affect objects, such as
ins-19708ino. - instance
Name String - The name of this instance.
- is
Alarm DoubleConfig - Alarm status configuration filter, 1means configured, 0(default) means not configured.
- product
Cname String - Product chinese name.
- product
Ename String - Product english name.
- product
Name String - Product type filtering, such as
cvmfor cloud server. - project
Id String - Project ID filter.
- region String
- The region of this instance.
- start
Time 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. - support
Alarm Double - Whether to support alarm.
- type String
- Event type filtering, with value range
abnormal,status_change, indicating state change and abnormal events. - update
Time Double - The update timestamp of this event.
- addition
Msgs GetMonitor Product Event List Addition Msg[] - A list of addition message. Each element contains the following attributes:
- dimensions
Get
Monitor Product Event List Dimension[] - Dimensional composition of instance objects.
- event
Cname string - Event chinese name.
- event
Ename string - Event english name.
- event
Id number - Event ID.
- event
Name string - Event name filtering, such as
guest_rebootindicates that the machine restart. - group
Infos GetMonitor Product Event List Group Info[] - A list of group info. Each element contains the following attributes:
- instance
Id string - Affect objects, such as
ins-19708ino. - instance
Name string - The name of this instance.
- is
Alarm numberConfig - Alarm status configuration filter, 1means configured, 0(default) means not configured.
- product
Cname string - Product chinese name.
- product
Ename string - Product english name.
- product
Name string - Product type filtering, such as
cvmfor cloud server. - project
Id string - Project ID filter.
- region string
- The region of this instance.
- start
Time 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. - support
Alarm number - Whether to support alarm.
- type string
- Event type filtering, with value range
abnormal,status_change, indicating state change and abnormal events. - update
Time 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[Get
Monitor 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.
- addition
Msgs List<Property Map> - A list of addition message. Each element contains the following attributes:
- dimensions List<Property Map>
- Dimensional composition of instance objects.
- event
Cname String - Event chinese name.
- event
Ename String - Event english name.
- event
Id Number - Event ID.
- event
Name String - Event name filtering, such as
guest_rebootindicates that the machine restart. - group
Infos List<Property Map> - A list of group info. Each element contains the following attributes:
- instance
Id String - Affect objects, such as
ins-19708ino. - instance
Name String - The name of this instance.
- is
Alarm NumberConfig - Alarm status configuration filter, 1means configured, 0(default) means not configured.
- product
Cname String - Product chinese name.
- product
Ename String - Product english name.
- product
Name String - Product type filtering, such as
cvmfor cloud server. - project
Id String - Project ID filter.
- region String
- The region of this instance.
- start
Time 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. - support
Alarm Number - Whether to support alarm.
- type String
- Event type filtering, with value range
abnormal,status_change, indicating state change and abnormal events. - update
Time 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.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
