Retrieve Details of a Specific Metric Threshold

get

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

Request

Path 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 : 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 a specific metric threshold 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/b9068caa-83d6-467b-8bb8-354e40767573

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:

  {
      "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"
    },
Back to Top