Updating Resource Properties with the Push Metrics REST API
Last updated on 09 September, 2024You 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.
Method | PUT/PATCH |
Base URL | https://{ACCOUNTNAME}.logicmonitor.com/rest |
Path | resource_property/ingest |
Header | Authorization: LMv1 token |
Content-Type | application/json |
Specification | PUT – 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.