get_resource_instance_data
Fetch time-series metrics like CPU, memory, or disk usage for a specific resource instance in LogicMonitor. Specify datapoints and time range to get data with timestamps and values.
Instructions
Get time-series metrics/datapoints data (e.g., CPU/memory/network utilization) for a specific resource/device datasource instance in LogicMonitor (LM) monitoring.
Returns: Time-series data with timestamps and values for requested datapoints. Format: {timestamps: [epoch1, epoch2], values: {datapoint1: [val1, val2], datapoint2: [val1, val2]}}.
When to use:
Get CPU utilization for last 24 hours
Fetch disk usage trends
Retrieve network bandwidth data
Export metrics for analysis
Build custom dashboards/reports
Required workflow (3 steps):
Use "list_resource_datasources" → get deviceDataSourceId for datasource (e.g., WinCPU)
Use "list_resource_instances" → get instanceId for specific instance (e.g., CPU Core 0)
Use this tool → get actual metric values for that instance
Parameters:
deviceId: Device ID from "get_resource" or "list_resources"
deviceDataSourceId: From "get_resource_datasource" or "list_resource_datasources"
instanceId: From "list_resource_instances"
datapoints: Comma-separated metric names (e.g., "CPUBusyPercent,MemoryUsedPercent")
start/end: Time range in epoch milliseconds (not seconds!), start time must be before current time
Example: Get last hour CPU data: start=Date.now()-3600000, end=Date.now()
Time range tips: If omitted, returns last 2 hours. Max range: 1 year. Use shorter ranges for better performance.
Related tools: "list_resource_datasources", "list_resource_instances".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deviceId | Yes | The resource/device ID | |
| deviceDataSourceId | Yes | The resource/device datasource ID | |
| instanceId | Yes | The instance ID | |
| datapoints | No | Comma-separated list of metric/datapoint names | |
| start | No | Start time (epoch milliseconds), start time must be before current time | |
| end | No | End time (epoch milliseconds) | |
| format | No | Response format: "json" or "csv" |