get_datasource
Fetch detailed datasource configuration including collection method, datapoints, thresholds, and appliesTo logic. Understand what it monitors and diagnose issues.
Instructions
Get detailed information about a specific datasource by its ID in LogicMonitor (LM) monitoring.
Returns: Complete datasource details: name, displayName, description, appliesTo logic, collection method, datapoints (metrics), thresholds, alert rules, polling interval.
When to use:
Understand what datasource monitors
Review alert thresholds
See collection method (SNMP/WMI/API/script)
Check datapoint definitions
Troubleshoot why datasource applies/doesn't apply to device
Key information returned:
appliesTo: Logic determining which resource/device get this datasource (e.g., "system.hostname =~"*prod*"")
dataSourceType: Collection method (SNMP, WMI, JDBC, API, script)
dataPoints: List of metrics collected (e.g., CPUBusyPercent, MemoryUsedPercent)
alertExpr: Threshold formulas (when to alert)
collectInterval: How often data is collected (seconds)
Understanding appliesTo logic: Shows why datasource does/doesn't monitor certain resources/devices. Common patterns:
isWindows() - Only Windows resource/device
system.devicetype == "server" - Only servers
hasCategory("AWS/EC2") - Only AWS EC2 instances
Workflow: Use "list_datasources" to find dataSourceId, then use this tool to understand how it works.
Related tools: "list_datasources" (find datasource), "list_resource_datasources" (see which resource/device use it).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataSourceId | Yes | The ID of the datasource to retrieve | |
| 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. |