Create or Update Service Group
Use this API to create a parent (root level) service group.
This API can perform the following actions on a service group:
- Create a service group
- Rename a service group
- Add set of services to a service group
- Change knowledge base articles assigned to a service group
- Add a service group as child to a parent service group
Path Parameters
- clientId
Describes the clientId of the tenant
Request Body
application/json
- id
- name
Unique name for the service group. The service group is identified with this name.
- createdDate
- updatedDate
- childType
Child service group type. Example: DEVICE, SERVICEGROUP, SNS, SQS
- frequency
(Optional)
- thresholdType
(Optional) Define the availability status for a service group with below threshold types: - count: Define availability of a service group based on the number of resources in the group. For example, if 10 resources are down. - percentage: Percentage of resources or services that should be considered to determine the availability. Below are the supported availability statuses: - Down: If resources or services down are greater than or equal to a specific value(count/percentage), then service is considered as Down. - Degraded: If resource or services down are less than a specific value(count/percentage), then service is considered as Degraded. - OK: If all resources or services are Up, then service is considered as OK. For example, a user wants to define availability status as Down if 5 resources are down, then the values are provided as: `"thresholdType": "count","thresholdLimit": 5`.
- thresholdLimit
(Optional) Provide a specific threshold value to determine count or percentage. only numeric values are accepted; decimal values will be rounded to the lower value(floor). The range is between 1 to 100.
- monitorNames
- include
- type
(Optional) - To generate an alert when the threshold limits are breached, provide type: alert. - To display the availability status without generating an alert, provide type: default.
- alertType
(Optional) Provide specific alertType value to set service availability monitor: - Service Availability Monitor will be set to Available, If alertType = 2. - Service Availability Monitor will be set to Any critical alert, If alertType = 0. - Service Availability Monitor will be set to Critical alert, If alertType = 1.
- alert
(Optional) Generate an alert when the threshold limits are breached.
- metrics
- filterCriteria
- parent
- kbArticlesIds
Assign knowledge base articles to a device group.Note: To fetch a knowledge base article ID: 1. Log into OpsRamp. 2. Click Knowledge Base. 3. Select the required article and then copy the article ID. 4. Provide the article ID in "kbArticleIds" field. Example: "kbArticleIds": [22089].
- depth
- client
Responses
- id
- name
Unique name for the service group. The service group is identified with this name.
- createdDate
- updatedDate
- childType
Child service group type. Example: DEVICE, SERVICEGROUP, SNS, SQS
- frequency
(Optional)
- thresholdType
(Optional) Define the availability status for a service group with below threshold types: - count: Define availability of a service group based on the number of resources in the group. For example, if 10 resources are down. - percentage: Percentage of resources or services that should be considered to determine the availability. Below are the supported availability statuses: - Down: If resources or services down are greater than or equal to a specific value(count/percentage), then service is considered as Down. - Degraded: If resource or services down are less than a specific value(count/percentage), then service is considered as Degraded. - OK: If all resources or services are Up, then service is considered as OK. For example, a user wants to define availability status as Down if 5 resources are down, then the values are provided as: `"thresholdType": "count","thresholdLimit": 5`.
- thresholdLimit
(Optional) Provide a specific threshold value to determine count or percentage. only numeric values are accepted; decimal values will be rounded to the lower value(floor). The range is between 1 to 100.
- monitorNames
- include
- type
(Optional) - To generate an alert when the threshold limits are breached, provide type: alert. - To display the availability status without generating an alert, provide type: default.
- alertType
(Optional) Provide specific alertType value to set service availability monitor: - Service Availability Monitor will be set to Available, If alertType = 2. - Service Availability Monitor will be set to Any critical alert, If alertType = 0. - Service Availability Monitor will be set to Critical alert, If alertType = 1.
- alert
(Optional) Generate an alert when the threshold limits are breached.
- metrics
- filterCriteria
- parent
- kbArticlesIds
Assign knowledge base articles to a device group.Note: To fetch a knowledge base article ID: 1. Log into OpsRamp. 2. Click Knowledge Base. 3. Select the required article and then copy the article ID. 4. Provide the article ID in "kbArticleIds" field. Example: "kbArticleIds": [22089].
- depth
- client