Retrieve Details of All Available Metric Thresholds

get

/monitoring/monitoring/{idDomainName}/.customer/api/v1/metricThresholds

Request

Path Parameters
Query Parameters
Header Parameters
  • Basic Authentication credentials. The user must be located in the identity domain name specified by the header X-ID-TENANT-NAME.
  • Set to the identity domain ID where the user specified in the Authorization header resides.
Back to Top

Response

Supported Media Types

200 Response

successful operation
Body ()
Root Schema : MetricThresholds
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : MetricThreshold
Type: object
Show Source
Nested Schema : MetricThresholdAlertAction
Type: object
Show Source
  • Specify the type of alert notification to be sent. By default, the channelType attribute is set to NOTIFICATION_MESSAGE. In this case, an email notification is sent to the service administrator of the requested resource when an event occurs.

    The channelType attribute can also be set to PUSH_TO_CLIENT. In this case, notification messages are delivered to the process polling for state changes.
  • Specify the alert action type.
Nested Schema : MetricThresholdCondition
Type: object
Show Source
Nested Schema : MetricTarget
Type: object
Show Source
Nested Schema : MetricSeries
Type: object
Show Source
Nested Schema : MetricType
Type: object
Show Source
Nested Schema : MetricSubject
Type: object
Show Source
Nested Schema : MetricSubjectType
Type: object
Show Source
Nested Schema : MetricUnit
Type: object
Show Source
Nested Schema : properties
Type: array
Properties of the subject.
Show Source
Nested Schema : MetricProperty
Type: object
Show Source
Back to Top

Examples

The following example shows how to retrieve details of all available metric thresholds by submitting a GET request on the REST resource using cURL. See Use cURL.

curl -X GET -H "Authorization: Basic d2VibG9naWM6V2VsY29tZTE=" -H "X-ID-TENANT-NAME:mydomain" https://monitoring.us.oraclecloud.com/monitoring/mydomain/.customer/api/v1/metricThresholds

Example of Response Header

The following shows an example of the response header.

HTTP/1.1 200 OK
Date: Fri, 29 Apr 2016 08:40:06 GMT
Content-Type: application/json

Example of Response Body

The following example shows the contents of the response body in JSON format:

{
  "items": [
    {
      "id": "b9068caa-83d6-467b-8bb8-354e40767573",
      "target": {
        "series": {
          "id": "2b0af13a-e497-6bec-e053-caa0f90a8a24",
          "metricType": {
            "id": "compute.CPU.PERCENT",
            "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricTypes/compute.CPU.PERCENT"
          },
          "subject": {
            "id": "2b0af13a-e496-6bec-e053-caa0f90a8a24",
            "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricSubjects/2b0af13a-e496-6bec-e053-caa0f90a8a24"
          },
          "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricSeries/2b0af13a-e497-6bec-e053-caa0f90a8a24"
        }
      },
      "name": "VM1 High Cpu",
      "condition": {
        "stats": "avg",
        "operation": ">=",
        "value": 70,
        "periodDuration": "PT10M",
        "periodCountToSatisfy": 3,
        "periodCountToUnsatisfy": 2
      },
      "alertAction": {
        "type": "notification",
        "channelType": "notificationMessage"
      },
      "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricThresholds/b9068caa-83d6-467b-8bb8-354e40767573"
    },
    {
      "id": "b650fc8f-0cb4-4bf7-8e26-9395a3504666",
      "target": {
        "series": {
          "id": "2b0af13a-e497-6bec-e053-caa0f90a8a24",
          "metricType": {
            "id": "compute.CPU.PERCENT",
            "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricTypes/compute.CPU.PERCENT"
          },
          "subject": {
            "id": "2b0af13a-e496-6bec-e053-caa0f90a8a24",
            "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricSubjects/2b0af13a-e496-6bec-e053-caa0f90a8a24"
          },
          "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricSeries/2b0af13a-e497-6bec-e053-caa0f90a8a24"
        }
      },
      "name": "VM1 High Cpu",
      "condition": {
        "stats": "avg",
        "operation": ">=",
        "value": 70,
        "periodDuration": "PT10M",
        "periodCountToSatisfy": 3,
        "periodCountToUnsatisfy": 2
      },
      "alertAction": {
        "type": "notification",
        "channelType": "notificationMessage"
      },
      "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricThresholds/b650fc8f-0cb4-4bf7-8e26-9395a3504666"
    },
    {
      "id": "6b9cdf7e-893a-49bf-8959-72ad4e2ae4a1",
      "target": {
        "series": {
          "id": "2b0af13a-e497-6bec-e053-caa0f90a8a24",
          "metricType": {
            "id": "compute.CPU.PERCENT",
            "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricTypes/compute.CPU.PERCENT"
          },
          "subject": {
            "id": "2b0af13a-e496-6bec-e053-caa0f90a8a24",
            "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricSubjects/2b0af13a-e496-6bec-e053-caa0f90a8a24"
          },
          "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricSeries/2b0af13a-e497-6bec-e053-caa0f90a8a24"
        }
      },
      "name": "VM1 High Cpu",
      "condition": {
        "stats": "avg",
        "operation": ">=",
        "value": 70,
        "periodDuration": "PT10M",
        "periodCountToSatisfy": 3,
        "periodCountToUnsatisfy": 2
      },
      "alertAction": {
        "type": "notification",
        "channelType": "notificationMessage"
      },
      "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricThresholds/6b9cdf7e-893a-49bf-8959-72ad4e2ae4a1"
    },
    {
      "id": "69a70e66-d188-429d-91dd-4797854f0b38",
      "target": {
        "series": {
          "id": "2b0af13a-e497-6bec-e053-caa0f90a8a24",
          "metricType": {
            "id": "compute.CPU.PERCENT",
            "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricTypes/compute.CPU.PERCENT"
          },
          "subject": {
            "id": "2b0af13a-e496-6bec-e053-caa0f90a8a24",
            "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricSubjects/2b0af13a-e496-6bec-e053-caa0f90a8a24"
          },
          "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricSeries/2b0af13a-e497-6bec-e053-caa0f90a8a24"
        }
      },
      "name": "VM1 High Cpu",
      "condition": {
        "stats": "avg",
        "operation": ">=",
        "value": 70,
        "periodDuration": "PT10M",
        "periodCountToSatisfy": 3,
        "periodCountToUnsatisfy": 2
      },
      "alertAction": {
        "type": "notification",
        "channelType": "notificationMessage"
      },
      "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricThresholds/69a70e66-d188-429d-91dd-4797854f0b38"
    },
    {
      "id": "c1bd1686-9ba3-4466-a671-579a29c10320",
      "target": {
        "series": {
          "id": "2b0890f7-8b74-0388-e053-caa0f90a5684",
          "metricType": {
            "id": "compute.CPU.PERCENT",
            "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricTypes/compute.CPU.PERCENT"
          },
          "subject": {
            "id": "2b0890f7-8b73-0388-e053-caa0f90a5684",
            "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricSubjects/2b0890f7-8b73-0388-e053-caa0f90a5684"
          },
          "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricSeries/2b0890f7-8b74-0388-e053-caa0f90a5684"
        }
      },
      "name": "VM1 High Cpu",
      "condition": {
        "stats": "avg",
        "operation": ">=",
        "value": 70,
        "periodDuration": "PT10M",
        "periodCountToSatisfy": 3,
        "periodCountToUnsatisfy": 2
      },
      "alertAction": {
        "type": "notification",
        "channelType": "notificationMessage"
      },
      "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricThresholds/c1bd1686-9ba3-4466-a671-579a29c10320"
    },
    {
      "id": "b01a0136-c3d5-4256-88b5-79dbd23c6abb",
      "target": {
        "series": {
          "id": "2b0890f7-8b77-0388-e053-caa0f90a5684",
          "metricType": {
            "id": "compute.MEMORY.CURRENT",
            "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricTypes/compute.MEMORY.CURRENT"
          },
          "subject": {
            "id": "2b0890f7-8b73-0388-e053-caa0f90a5684",
            "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricSubjects/2b0890f7-8b73-0388-e053-caa0f90a5684"
          },
          "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricSeries/2b0890f7-8b77-0388-e053-caa0f90a5684"
        }
      },
      "name": "VM1 High Cpu",
      "condition": {
        "stats": "avg",
        "operation": ">=",
        "value": 70,
        "periodDuration": "PT10M",
        "periodCountToSatisfy": 3,
        "periodCountToUnsatisfy": 2
      },
      "alertAction": {
        "type": "notification",
        "channelType": "notificationMessage"
      },
      "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricThresholds/b01a0136-c3d5-4256-88b5-79dbd23c6abb"
    }
  ],
  "offset": 0,
  "limit": 100,
  "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricThresholds"
}
Back to Top