Create Resource Monitors
Creates resource monitors. If you export the monitor JSON from the Monitors page, the monitorScope will be by default 0, and if you want to create the same monitor using the API, update the fields as follows:
- Partner user API login: Set monitorScope = 18 for partner scope.
- Partner user login (client scope): Set monitorScope = 52 and add clientId (UUID).
- Client user login: Set monitorScope = 52 for client scope.
Notes
- Get monitors list
Path Parameters
- tenantId
Describes the clientId or mspId of the tenant.
Query Parameters
- tenantId
Tenant identifier
- pageNo
Current page number to fetch.
- pageSize
Number of items per page.
- queryString
Search filter. Includes information such as scope (like partner).
Responses
- results
- totalResults
Total number of results available.
- orderBy
Field used for ordering results.
- pageNo
Current page number.
- pageSize
Number of items per page.
- totalPages
Total number of pages available.
- nextPage
Indicates whether there is a next page.
- nextPageNo
Next page number (if nextPage is true).
- previousPageNo
Previous page number (if applicable).
- descendingOrder
Indicates whether sorting is in descending order.
Path Parameters
- tenantId
Describes the clientId or mspId of the tenant.
Request Body
application/json
- name
- script
- monitorScope
- clientId
- mspId
- serviceProviderId
- resourceMonAdditionalParams
- instanceType
- instanceIds
- uuid
- desc
- mulInst
- disc_freq_min
- disc_metric
- disc_type
- disc_lookup_Oid
- create_ts
- update_ts
- discoveryFilters
- staticMetrics
- dynamicMetrics
Responses
- failedCount
- failedList
- updatedCount
- createdCount