list_resource_datasources
List datasources monitoring a specific LogicMonitor resource, showing status, instance count, and alert status. Get deviceDataSourceId for metric retrieval.
Instructions
List datasources applied to a specific resource/device in LogicMonitor (LM) monitoring.
Returns: Array of datasources actively monitoring this resource/device with: id (deviceDataSourceId), dataSourceName, dataSourceDisplayName, status, alert status, instance count, last poll time.
When to use:
See what's being monitored on a resource/device
Verify datasource is collecting data
Get deviceDataSourceId for metric retrieval
Troubleshoot missing data
Check datasource health
What you discover:
Which datasources are active (e.g., WinCPU, WinMemory, SNMP_Network_Interfaces)
How many instances per datasource (e.g., 3 disks, 4 network interfaces)
Collection status: Collecting data vs errors
Alert status: Any active alerts from this datasource
This is step 1 for getting metrics: Complete workflow to retrieve metric data: 1. Use this tool → get deviceDataSourceId for datasource you want (e.g., WinCPU) 2. Use "list_device_instances" → get instanceId for specific instance 3. Use "get_device_instance_data" → get actual metric values
Troubleshooting use cases:
"Why no CPU data?" → Check if WinCPU datasource is applied and collecting
"Find disk datasource" → Look for datasource with "disk" or "volume" in name
"Check datasource errors" → Review status field for error messages
Important: A negative "total" value in the response indicates incomplete results. Use pagination (size/offset parameters) or set autoPaginate: true to retrieve all items.
Related tools: "list_device_instances" (next step), "get_device_instance_data" (get metrics), "update_device_datasource" (enable/disable).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deviceId | Yes | The resource/device ID | |
| size | No | Number of results per page (default: 50, max: 1000). | |
| offset | No | Starting offset for pagination (default: 0). Use this to skip a specific number of results. | |
| autoPaginate | No | Automatically fetch all pages (default: false). When true, fetches all results across multiple pages. When false, returns only the requested page. Use false for large result sets to avoid long response times. | |
| filter | No | Filter expression using LogicMonitor query syntax. Examples: name:*prod*, displayName~*server*, id>100, hostStatus:normal. Available operators: : (equals), ~ (includes), !: (not equals), !~ (not includes), >: (greater than or equals), <: (less than or equals), > (greater than), < (less than). Multiple conditions: Use comma (,) for AND, use || for OR. Do NOT use &&. | |
| fields | No | Comma-separated list of fields to include in response. Examples: "id,displayName,hostStatus" or use "*" for all fields. Omit this parameter to receive a curated set of commonly used fields. |