LogicMonitor seeks to disrupt AI landscape with $800M strategic investment at $2.4B valuation to revolutionize data centers.

Learn More

Updating Resource Properties with the Push Metrics REST API

Last updated on 09 September, 2024

You can use LogicMonitor’s Push Metrics REST API to programmatically add or update properties for existing resources. However, system (system.xyz) and (auto.xyz) properties are not added to the payload.

The Push Metrics REST API requires LMv1 API Token Authentication.

Request Information

The resource property ingestion endpoint is used to add or update one or more properties for an existing resource.

Only one resource is supported per request.

MethodPUT/PATCH
Base URLhttps://{ACCOUNTNAME}.logicmonitor.com/rest
Pathresource_property/ingest
HeaderAuthorization: LMv1 token
Content-Typeapplication/json
SpecificationPUT – All the properties for that resource must be specified.
PATCH – LogicMonitor will add/update the properties specified in the request.

{
    “resourceName”: “<Resource Name>”,               //Optional
    “resourceIds”: {                                 //Mandatory
        “key”: “<The value of a property>”,…
    },
    “resourceProperties”: {
         “key”: “<The value of a property>”,…    //Should have at least 1 attribute
    }
}

For details on the fields used in this request, see Ingesting Metrics with the Push Metrics REST API.

In This Article