LogicMonitor + Catchpoint: Enter the New Era of Autonomous IT

Learn more

You can use LogicMonitor REST API v3 to add a DiagnosticSource module. You must authenticate before making the API request.

URI: POST /setting/diagnosticssources

The following table describes parameters used in the API request:

ParameterTypeDescription
accessGroupsStringAccess group details with which the DiagnosticSource is mapped. This includes the following parameters:
  • name—(Mandatory) Name of the access group.
  • description—Description of the access group.
  • tenant id—Tenant ID of the access group.
groovyScriptStringDiagnosticSource Groovy script that you want to run.
descriptionStringDescription for the DiagnosticSource.
appliesToStringAppliesTo setting for the DiagnosticSource.
technologyStringTechnical Notes for the DiagnosticSource.
tagsStringTags for the DiagnosticSource.
originRegistryIdStringThe Registry ID of the Exchange Integration that this module is based on. Including this field sets the module’s import base and marks the Registry ID version as audited.
scriptTypeStringType of script on which the DiagnosticSource script is based. Supported script types are Groovy and PowerShell.
accessGroupIdsIntegerID of access groups with which the DiagnosticSource is mapped.
groupStringGroup the DiagnosticSource is in.

Executing DiagnosticSources

You can use LogicMonitor REST API v3 to trigger DiagnosticSource module for host.

URI: POST /setting/diagnosticssources/executemanually

The following table describes parameters used in the API request:

ParameterTypeDescription
diagnosticIdInteger(Mandatory) DiagnosticSource module ID.
hostIdInteger(Mandatory) The host ID
alertIdStringThe alert ID.
hostDiagnosticSourceIdInteger(Mandatory) DiagnosticSource module host ID.

Importing DiagnosticSources Using JSON

You can use LogicMonitor REST API v3 to import DiagnosticSource module using JSON.

There are no parameters in this API request. To get a response, use the URI in the API request.

URI: POST /setting/diagnosticssources/importjson

14-day access to the full LogicMonitor platform