{
    "swagger":"2.0",
    "info":{
        "description":"The Oracle Monitoring Cloud Service API enables you to monitor cloud services and set alert thresholds for specific metrics. For example, you can use this REST API to build your own dashboard to monitor the state of specific metrics, such as CPU and memory usage, for instances of your Oracle Cloud services. ",
        "version":"2019.01.11",
        "title":"REST API for Oracle Monitoring Cloud Service",
        "x-summary":"The Oracle Monitoring Cloud Service API enables you to monitor cloud services and set alert thresholds for specific metrics."
    },
    "basePath":"/monitoring",
    "tags":[
        {
            "name":"Alerts",
            "description":""
        },
        {
            "name":"Metrics",
            "description":""
        },
        {
            "name":"Reports",
            "description":""
        }
    ],
    "schemes":[
        "https"
    ],
    "paths":{
        "/monitoring/{idDomainName}/.customer/api/v1/metricReports":{
            "get":{
                "tags":[
                    "Reports"
                ],
                "summary":"Generate a Metrics Report",
                "description":"Generates a metrics report based on specific query criteria.",
                "operationId":"createMetricReport",
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "name":"Authorization",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Basic Authentication credentials. The user must be located in the identity domain name specified by the header X-ID-TENANT-NAME."
                    },
                    {
                        "name":"X-ID-TENANT-NAME",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Set to the identity domain ID where the user specified in the Authorization header resides."
                    },
                    {
                        "name":"idDomainName",
                        "in":"path",
                        "description":"Identity domain ID for the Oracle Monitoring Cloud Service account.",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"sinceDuration",
                        "in":"query",
                        "description":"Specify how far from the current time should the start of the time range be set. Note: You must use the iCalendar Duration format. For example, PT10M.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"since",
                        "in":"query",
                        "description":"Start of the time range. This value is inclusive and must not be specified if sinceDuration is specified.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"until",
                        "in":"query",
                        "description":"End of the time range. This value is exclusive and is set to the current time if not specified.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"precision",
                        "in":"query",
                        "description":"Desired precision expressed in time duration of the returned elements. If not specified, the service will use the most precise precision available for the supplied interval. Note that the user cannot request a precision with a lower time interval that is presently available on the service. Note: You must use the iCalendar Duration format. For example, PT10M.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"seriesIds",
                        "in":"query",
                        "description":"Filter on the metric series.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"subjectIds",
                        "in":"query",
                        "description":"Filter on the metric subject.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"metricTypeIds",
                        "in":"query",
                        "description":"Filter on the metric type.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"extraFields",
                        "in":"query",
                        "description":"Specify the extra field to include in the report. Accepted value are: items.data.startInMillisecond and items.data.endInMillisecond",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"filterOutDeleted",
                        "in":"query",
                        "description":"Filter on isDeleted attribute of the metric series.",
                        "required":false,
                        "type":"boolean"
                    }
                ],
                "responses":{
                    "200":{
                        "description":"successful operation",
                        "schema":{
                            "$ref":"#/definitions/MetricReports"
                        }
                    }
                },
                "x-internal-id":"monitoring-{idDomainName}-.customer-api-v1-metricReports-get",
                "x-filename-id":"monitoring-iddomainname-customer-api-v1-metricreports-get"
            }
        },
        "/monitoring/{idDomainName}/.customer/api/v1/metricSeries":{
            "get":{
                "tags":[
                    "Metrics"
                ],
                "summary":"Retrieve Details of All Available Metric Instances",
                "description":"",
                "operationId":"searchMetricSeries",
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "name":"Authorization",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Basic Authentication credentials. The user must be located in the identity domain name specified by the header X-ID-TENANT-NAME."
                    },
                    {
                        "name":"X-ID-TENANT-NAME",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Set to the identity domain ID where the user specified in the Authorization header resides."
                    },
                    {
                        "name":"idDomainName",
                        "in":"path",
                        "description":"Identity domain ID for the Oracle Monitoring Cloud Service account.",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"since",
                        "in":"query",
                        "description":"Filter on the creation date time.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"until",
                        "in":"query",
                        "description":"Filter on the creation date time.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"limit",
                        "in":"query",
                        "description":"Maximum number of items that the request should return.",
                        "required":false,
                        "type":"integer",
                        "format":"int32"
                    },
                    {
                        "name":"offset",
                        "in":"query",
                        "description":"Offset of the first element to return (for pagination purpose).",
                        "required":false,
                        "type":"integer",
                        "format":"int32"
                    },
                    {
                        "name":"expands",
                        "in":"query",
                        "description":"Expand attributes in the comma separated list.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"ids",
                        "in":"query",
                        "description":"Filter on metric series ids.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"subjectTypeIds",
                        "in":"query",
                        "description":"Filter on metric subject type ids.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"subjectIds",
                        "in":"query",
                        "description":"Filter on metric subject ids.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"metricTypeIds",
                        "in":"query",
                        "description":"Filter on metric type ids.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"filterOutDeleted",
                        "in":"query",
                        "description":"Filter on isDeleted attribute of the metric series.",
                        "required":false,
                        "type":"boolean"
                    }
                ],
                "responses":{
                    "200":{
                        "description":"successful operation",
                        "schema":{
                            "$ref":"#/definitions/MetricSeriesResultSet"
                        }
                    }
                },
                "x-internal-id":"monitoring-{idDomainName}-.customer-api-v1-metricSeries-get",
                "x-filename-id":"monitoring-iddomainname-customer-api-v1-metricseries-get"
            }
        },
        "/monitoring/{idDomainName}/.customer/api/v1/metricSeries/{metricSeriesId}":{
            "get":{
                "tags":[
                    "Metrics"
                ],
                "summary":"Retrieve Details of a Specific Metric Instance",
                "description":"",
                "operationId":"searchSingularMetricSeries",
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "name":"Authorization",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Basic Authentication credentials. The user must be located in the identity domain name specified by the header X-ID-TENANT-NAME."
                    },
                    {
                        "name":"X-ID-TENANT-NAME",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Set to the identity domain ID where the user specified in the Authorization header resides."
                    },
                    {
                        "name":"idDomainName",
                        "in":"path",
                        "description":"Identity domain ID for the Oracle Monitoring Cloud Service account.",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"metricSeriesId",
                        "in":"path",
                        "description":"Id of the metric series.",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"expands",
                        "in":"query",
                        "description":"Expand attributes in the comma separated list.",
                        "required":false,
                        "type":"string"
                    }
                ],
                "responses":{
                    "200":{
                        "description":"successful operation",
                        "schema":{
                            "$ref":"#/definitions/MetricSeries"
                        }
                    }
                },
                "x-internal-id":"monitoring-{idDomainName}-.customer-api-v1-metricSeries-{metricSeriesId}-get",
                "x-filename-id":"monitoring-iddomainname-customer-api-v1-metricseries-metricseriesid-get"
            }
        },
        "/monitoring/{idDomainName}/.customer/api/v1/metricSubjects":{
            "get":{
                "tags":[
                    "Metrics"
                ],
                "summary":"Retrieve Details of All Available Metric Subjects",
                "description":"",
                "operationId":"searchMetricSubjects",
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "name":"Authorization",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Basic Authentication credentials. The user must be located in the identity domain name specified by the header X-ID-TENANT-NAME."
                    },
                    {
                        "name":"X-ID-TENANT-NAME",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Set to the identity domain ID where the user specified in the Authorization header resides."
                    },
                    {
                        "name":"idDomainName",
                        "in":"path",
                        "description":"Identity domain ID for the Oracle Monitoring Cloud Service account.",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"since",
                        "in":"query",
                        "description":"Filter on the creation date time.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"until",
                        "in":"query",
                        "description":"Filter on the creation date time.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"limit",
                        "in":"query",
                        "description":"Maximum number of items that the request should return.",
                        "required":false,
                        "type":"integer",
                        "format":"int32"
                    },
                    {
                        "name":"offset",
                        "in":"query",
                        "description":"Offset of the first element to return (for pagination purpose).",
                        "required":false,
                        "type":"integer",
                        "format":"int32"
                    },
                    {
                        "name":"ids",
                        "in":"query",
                        "description":"Filter on metric subject ids.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"subjectTypeIds",
                        "in":"query",
                        "description":"Filter on metric subject type ids.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"filterOutDeleted",
                        "in":"query",
                        "description":"Filter on isDeleted attribute of the metric subject.",
                        "required":false,
                        "type":"boolean"
                    }
                ],
                "responses":{
                    "200":{
                        "description":"successful operation",
                        "schema":{
                            "$ref":"#/definitions/MetricSubjects"
                        }
                    }
                },
                "x-internal-id":"monitoring-{idDomainName}-.customer-api-v1-metricSubjects-get",
                "x-filename-id":"monitoring-iddomainname-customer-api-v1-metricsubjects-get"
            }
        },
        "/monitoring/{idDomainName}/.customer/api/v1/metricSubjects/{metricSubjectId}":{
            "get":{
                "tags":[
                    "Metrics"
                ],
                "summary":"Retrieve Details of a Specific Metric Subject",
                "description":"",
                "operationId":"searchMetricSubject",
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "name":"Authorization",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Basic Authentication credentials. The user must be located in the identity domain name specified by the header X-ID-TENANT-NAME."
                    },
                    {
                        "name":"X-ID-TENANT-NAME",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Set to the identity domain ID where the user specified in the Authorization header resides."
                    },
                    {
                        "name":"idDomainName",
                        "in":"path",
                        "description":"Identity domain ID for the Oracle Monitoring Cloud Service account.",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"metricSubjectId",
                        "in":"path",
                        "description":"Id of the metric subject.",
                        "required":true,
                        "type":"string"
                    }
                ],
                "responses":{
                    "200":{
                        "description":"successful operation",
                        "schema":{
                            "$ref":"#/definitions/MetricSubject"
                        }
                    }
                },
                "x-internal-id":"monitoring-{idDomainName}-.customer-api-v1-metricSubjects-{metricSubjectId}-get",
                "x-filename-id":"monitoring-iddomainname-customer-api-v1-metricsubjects-metricsubjectid-get"
            }
        },
        "/monitoring/{idDomainName}/.customer/api/v1/metricThresholds":{
            "get":{
                "tags":[
                    "Alerts"
                ],
                "summary":"Retrieve Details of All Available Metric Thresholds",
                "description":"",
                "operationId":"searchMetricThresholds",
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "name":"Authorization",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Basic Authentication credentials. The user must be located in the identity domain name specified by the header X-ID-TENANT-NAME."
                    },
                    {
                        "name":"X-ID-TENANT-NAME",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Set to the identity domain ID where the user specified in the Authorization header resides."
                    },
                    {
                        "name":"idDomainName",
                        "in":"path",
                        "description":"Identity domain ID for the Oracle Monitoring Cloud Service account.",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"since",
                        "in":"query",
                        "description":"Filter on the creation date time.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"until",
                        "in":"query",
                        "description":"Filter on the creation date time.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"limit",
                        "in":"query",
                        "description":"Maximum number of items that the request should return.",
                        "required":false,
                        "type":"integer",
                        "format":"int32"
                    },
                    {
                        "name":"offset",
                        "in":"query",
                        "description":"Offset of the first element to return (for pagination purpose).",
                        "required":false,
                        "type":"integer",
                        "format":"int32"
                    },
                    {
                        "name":"seriesIds",
                        "in":"query",
                        "description":"Filter on the metric series. A coma separated list of IDs of the desired metric series.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"actionChannelType",
                        "in":"query",
                        "description":"Filter on the action channel type.",
                        "required":false,
                        "type":"string"
                    }
                ],
                "responses":{
                    "200":{
                        "description":"successful operation",
                        "schema":{
                            "$ref":"#/definitions/MetricThresholds"
                        }
                    }
                },
                "x-internal-id":"monitoring-{idDomainName}-.customer-api-v1-metricThresholds-get",
                "x-filename-id":"monitoring-iddomainname-customer-api-v1-metricthresholds-get"
            },
            "post":{
                "tags":[
                    "Alerts"
                ],
                "summary":"Create a Metric Threshold",
                "description":"<p>For some Oracle Cloud services, service administrators can configure rules to generate alerts when metrics exceed or are under specified thresholds for a specific time period.</p>\r\n<p>You can specify thresholds to monitor and receive alerts about specific metrics for specific instances. The resulting alert can be either an email to the service administrator or a notification message to the process that's polling for changes in the state of the alert threshold.</p>\r\n<p>The specified alert action (email or notification message) is triggered in the following situations:<ul>\r\n<li>The metric being monitored has crossed the defined threshold and has remained in that state for the period specified in the alert condition.</li>\r\n<li>The metric has returned to a value that's within the threshold and has remained in that state for the period specified in the alert condition.</li>\r\n<ul></p>",
                "operationId":"persist",
                "consumes":[
                    "application/json"
                ],
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "name":"Content-Type",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Must be set to \"application/json\". The content in an HTTP request body must be encoded in JavaScript Object Notation (JSON)."
                    },
                    {
                        "name":"Authorization",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Basic Authentication credentials. The user must be located in the identity domain name specified by the header X-ID-TENANT-NAME."
                    },
                    {
                        "name":"X-ID-TENANT-NAME",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Set to the identity domain ID where the user specified in the Authorization header resides."
                    },
                    {
                        "name":"idDomainName",
                        "in":"path",
                        "description":"Identity domain ID for the Oracle Monitoring Cloud Service account.",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "in":"body",
                        "name":"body",
                        "description":"The request payload",
                        "required":true,
                        "schema":{
                            "$ref":"#/definitions/MetricThreshold"
                        }
                    }
                ],
                "responses":{
                    "201":{
                        "description":"successful operation",
                        "headers":{
                            "location":{
                                "description":"Url of the newly created threshold",
                                "type":"string"
                            }
                        }
                    }
                },
                "x-internal-id":"monitoring-{idDomainName}-.customer-api-v1-metricThresholds-post",
                "x-filename-id":"monitoring-iddomainname-customer-api-v1-metricthresholds-post"
            }
        },
        "/monitoring/{idDomainName}/.customer/api/v1/metricThresholds/{thresholdId}":{
            "get":{
                "tags":[
                    "Alerts"
                ],
                "summary":"Retrieve Details of a Specific Metric Threshold",
                "description":"",
                "operationId":"searchMetricThreshold",
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "name":"Authorization",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Basic Authentication credentials. The user must be located in the identity domain name specified by the header X-ID-TENANT-NAME."
                    },
                    {
                        "name":"X-ID-TENANT-NAME",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Set to the identity domain ID where the user specified in the Authorization header resides."
                    },
                    {
                        "name":"idDomainName",
                        "in":"path",
                        "description":"Identity domain ID for the Oracle Monitoring Cloud Service account.",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"thresholdId",
                        "in":"path",
                        "description":"ID of the Threshold object.",
                        "required":true,
                        "type":"string"
                    }
                ],
                "responses":{
                    "200":{
                        "description":"successful operation",
                        "schema":{
                            "$ref":"#/definitions/MetricThreshold"
                        }
                    }
                },
                "x-internal-id":"monitoring-{idDomainName}-.customer-api-v1-metricThresholds-{thresholdId}-get",
                "x-filename-id":"monitoring-iddomainname-customer-api-v1-metricthresholds-thresholdid-get"
            },
            "delete":{
                "tags":[
                    "Alerts"
                ],
                "summary":"Delete a Metric Threshold",
                "description":"",
                "operationId":"remove",
                "consumes":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "name":"Authorization",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Basic Authentication credentials. The user must be located in the identity domain name specified by the header X-ID-TENANT-NAME."
                    },
                    {
                        "name":"X-ID-TENANT-NAME",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Set to the identity domain ID where the user specified in the Authorization header resides."
                    },
                    {
                        "name":"idDomainName",
                        "in":"path",
                        "description":"Identity domain ID for the Oracle Monitoring Cloud Service account.",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"thresholdId",
                        "in":"path",
                        "description":"ID of the Threshold object.",
                        "required":true,
                        "type":"string"
                    }
                ],
                "responses":{
                    "204":{
                        "description":"successful operation"
                    }
                },
                "x-internal-id":"monitoring-{idDomainName}-.customer-api-v1-metricThresholds-{thresholdId}-delete",
                "x-filename-id":"monitoring-iddomainname-customer-api-v1-metricthresholds-thresholdid-delete"
            }
        },
        "/monitoring/{idDomainName}/.customer/api/v1/metricTypes":{
            "get":{
                "tags":[
                    "Metrics"
                ],
                "summary":"Retrieve Details of All Available Metric Types",
                "description":"",
                "operationId":"searchMetricTypes",
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "name":"Authorization",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Basic Authentication credentials. The user must be located in the identity domain name specified by the header X-ID-TENANT-NAME."
                    },
                    {
                        "name":"X-ID-TENANT-NAME",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Set to the identity domain ID where the user specified in the Authorization header resides."
                    },
                    {
                        "name":"idDomainName",
                        "in":"path",
                        "description":"Identity domain ID for the Oracle Monitoring Cloud Service account.",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"since",
                        "in":"query",
                        "description":"Filter on the creation date time.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"until",
                        "in":"query",
                        "description":"Filter on the creation date time.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"limit",
                        "in":"query",
                        "description":"Maximum number of items that the request should return.",
                        "required":false,
                        "type":"integer",
                        "format":"int32"
                    },
                    {
                        "name":"offset",
                        "in":"query",
                        "description":"Offset of the first element to return (for pagination purpose).",
                        "required":false,
                        "type":"integer",
                        "format":"int32"
                    },
                    {
                        "name":"orderBy",
                        "in":"query",
                        "description":"Supported value is displayName.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"expands",
                        "in":"query",
                        "description":"Expand attributes in the comma separated list.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"ids",
                        "in":"query",
                        "description":"Filter on the metric types id.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"subjectTypeIds",
                        "in":"query",
                        "description":"Filter on the subject type id.",
                        "required":false,
                        "type":"string"
                    }
                ],
                "responses":{
                    "200":{
                        "description":"successful operation",
                        "schema":{
                            "$ref":"#/definitions/MetricTypes"
                        }
                    }
                },
                "x-internal-id":"monitoring-{idDomainName}-.customer-api-v1-metricTypes-get",
                "x-filename-id":"monitoring-iddomainname-customer-api-v1-metrictypes-get"
            }
        },
        "/monitoring/{idDomainName}/.customer/api/v1/metricTypes/{metricTypeId}":{
            "get":{
                "tags":[
                    "Metrics"
                ],
                "summary":"Retrieve Details of a Specific Metric Type",
                "description":"",
                "operationId":"searchMetricType",
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "name":"Authorization",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Basic Authentication credentials. The user must be located in the identity domain name specified by the header X-ID-TENANT-NAME."
                    },
                    {
                        "name":"X-ID-TENANT-NAME",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Set to the identity domain ID where the user specified in the Authorization header resides."
                    },
                    {
                        "name":"idDomainName",
                        "in":"path",
                        "description":"Identity domain ID for the Oracle Monitoring Cloud Service account.",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"expands",
                        "in":"query",
                        "description":"Expand attributes in the comma separated list.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"metricTypeId",
                        "in":"path",
                        "description":"Id of the metric type.",
                        "required":true,
                        "type":"string"
                    }
                ],
                "responses":{
                    "200":{
                        "description":"successful operation",
                        "schema":{
                            "$ref":"#/definitions/MetricType"
                        }
                    }
                },
                "x-internal-id":"monitoring-{idDomainName}-.customer-api-v1-metricTypes-{metricTypeId}-get",
                "x-filename-id":"monitoring-iddomainname-customer-api-v1-metrictypes-metrictypeid-get"
            }
        },
        "/monitoring/{idDomainName}/.customer/api/v1/metricUnits":{
            "get":{
                "tags":[
                    "Metrics"
                ],
                "summary":"Retrieve Details of All Available Metric Units",
                "description":"",
                "operationId":"searchMetricUnits",
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "name":"Authorization",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Basic Authentication credentials. The user must be located in the identity domain name specified by the header X-ID-TENANT-NAME."
                    },
                    {
                        "name":"X-ID-TENANT-NAME",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Set to the identity domain ID where the user specified in the Authorization header resides."
                    },
                    {
                        "name":"idDomainName",
                        "in":"path",
                        "description":"Identity domain ID for the Oracle Monitoring Cloud Service account.",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"limit",
                        "in":"query",
                        "description":"Maximum number of items that the request should return.",
                        "required":false,
                        "type":"integer",
                        "format":"int32"
                    },
                    {
                        "name":"offset",
                        "in":"query",
                        "description":"Offset of the first element to return (for pagination purpose).",
                        "required":false,
                        "type":"integer",
                        "format":"int32"
                    },
                    {
                        "name":"orderBy",
                        "in":"query",
                        "description":"Supported value is displayName.",
                        "required":false,
                        "type":"string"
                    }
                ],
                "responses":{
                    "200":{
                        "description":"successful operation",
                        "schema":{
                            "$ref":"#/definitions/MetricUnits"
                        }
                    }
                },
                "x-internal-id":"monitoring-{idDomainName}-.customer-api-v1-metricUnits-get",
                "x-filename-id":"monitoring-iddomainname-customer-api-v1-metricunits-get"
            }
        },
        "/monitoring/{idDomainName}/.customer/api/v1/metricUnits/{unitId}":{
            "get":{
                "tags":[
                    "Metrics"
                ],
                "summary":"Retrieve Details of a Specific Metric Unit",
                "description":"",
                "operationId":"searchMetricUnit",
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "name":"Authorization",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Basic Authentication credentials. The user must be located in the identity domain name specified by the header X-ID-TENANT-NAME."
                    },
                    {
                        "name":"X-ID-TENANT-NAME",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Set to the identity domain ID where the user specified in the Authorization header resides."
                    },
                    {
                        "name":"idDomainName",
                        "in":"path",
                        "description":"Identity domain ID for the Oracle Monitoring Cloud Service account.",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"unitId",
                        "in":"path",
                        "description":"Id of the metric unit.",
                        "required":true,
                        "type":"string"
                    }
                ],
                "responses":{
                    "200":{
                        "description":"successful operation",
                        "schema":{
                            "$ref":"#/definitions/MetricUnit"
                        }
                    }
                },
                "x-internal-id":"monitoring-{idDomainName}-.customer-api-v1-metricUnits-{unitId}-get",
                "x-filename-id":"monitoring-iddomainname-customer-api-v1-metricunits-unitid-get"
            }
        },
        "/monitoring/{idDomainName}/.customer/api/v1/notificationPollingInfo":{
            "get":{
                "tags":[
                    "Alerts"
                ],
                "summary":"Monitor Changes to the State of a Metric",
                "description":"",
                "operationId":"getNotificationPollingInfo",
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "name":"Authorization",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Basic Authentication credentials. The user must be located in the identity domain name specified by the header X-ID-TENANT-NAME."
                    },
                    {
                        "name":"X-ID-TENANT-NAME",
                        "in":"header",
                        "required":true,
                        "type":"string",
                        "description":"Set to the identity domain ID where the user specified in the Authorization header resides."
                    },
                    {
                        "name":"idDomainName",
                        "in":"path",
                        "description":"Identity domain ID for the Oracle Monitoring Cloud Service account.",
                        "required":true,
                        "type":"string"
                    }
                ],
                "responses":{
                    "200":{
                        "description":"successful operation",
                        "schema":{
                            "$ref":"#/definitions/NotificationPollingInfo"
                        }
                    }
                },
                "x-internal-id":"monitoring-{idDomainName}-.customer-api-v1-notificationPollingInfo-get",
                "x-filename-id":"monitoring-iddomainname-customer-api-v1-notificationpollinginfo-get"
            }
        }
    },
    "definitions":{
        "MetricThresholdAlertAction":{
            "type":"object",
            "properties":{
                "type":{
                    "type":"string",
                    "description":"Specify the alert action type."
                },
                "channelType":{
                    "type":"string",
                    "description":"Specify the type of alert notification to be sent. By default, the <code>channelType</code> attribute is set to <code>NOTIFICATION_MESSAGE</code>. In this case, an email notification is sent to the service administrator of the requested resource when an event occurs.<br><br>The <code>channelType</code> attribute can also be set to <code>PUSH_TO_CLIENT</code>. In this case, notification messages are delivered to the process polling for state changes."
                }
            }
        },
        "NotificationPollingInfo":{
            "type":"object",
            "properties":{
                "notifications":{
                    "type":"array",
                    "items":{
                        "$ref":"#/definitions/MetricThresholdEvent"
                    }
                },
                "nextLongPollInfo":{
                    "$ref":"#/definitions/LongPollInfo"
                }
            }
        },
        "MetricSeries":{
            "type":"object",
            "properties":{
                "canonicalLink":{
                    "type":"string",
                    "format":"uri",
                    "description":"Relative path to the resource."
                },
                "id":{
                    "type":"string",
                    "format":"uuid",
                    "description":"A unique ID representing a metric type for a specific metric subject. For example, 821ce631-691e-494e-ba69-526739e086e2."
                },
                "isDeleted":{
                    "type":"boolean",
                    "description":"Indicates whether the referenced object has been deleted.",
                    "default":false
                },
                "metricType":{
                    "$ref":"#/definitions/MetricType"
                },
                "subject":{
                    "$ref":"#/definitions/MetricSubject"
                }
            }
        },
        "MetricUnits":{
            "type":"object",
            "properties":{
                "canonicalLink":{
                    "type":"string",
                    "format":"uri",
                    "description":"\tRelative path to the resource."
                },
                "nextLink":{
                    "type":"string",
                    "format":"uri",
                    "description":"Relative path to the next page."
                },
                "offset":{
                    "type":"integer",
                    "format":"int32",
                    "description":"Offset of the first element to return (for pagination purpose)."
                },
                "limit":{
                    "type":"integer",
                    "format":"int32",
                    "description":"Maximum number of items that the request should return."
                },
                "hasMore":{
                    "type":"boolean",
                    "description":"Is true if there are more items to return.",
                    "default":false
                },
                "items":{
                    "type":"array",
                    "items":{
                        "$ref":"#/definitions/MetricUnit"
                    }
                }
            }
        },
        "MetricReports":{
            "type":"object",
            "properties":{
                "canonicalLink":{
                    "type":"string",
                    "format":"uri",
                    "description":"\tRelative path to the resource."
                },
                "items":{
                    "type":"array",
                    "items":{
                        "$ref":"#/definitions/MetricReport"
                    }
                }
            }
        },
        "MetricTypes":{
            "type":"object",
            "properties":{
                "canonicalLink":{
                    "type":"string",
                    "format":"uri",
                    "description":"\tRelative path to the resource."
                },
                "nextLink":{
                    "type":"string",
                    "format":"uri",
                    "description":"Relative path to the next page."
                },
                "offset":{
                    "type":"integer",
                    "format":"int32",
                    "description":"Offset of the first element to return (for pagination purpose)."
                },
                "limit":{
                    "type":"integer",
                    "format":"int32",
                    "description":"Maximum number of items that the request should return."
                },
                "hasMore":{
                    "type":"boolean",
                    "description":"Is true if there are more items to return.",
                    "default":false
                },
                "items":{
                    "type":"array",
                    "items":{
                        "$ref":"#/definitions/MetricType"
                    }
                }
            }
        },
        "MetricType":{
            "type":"object",
            "properties":{
                "canonicalLink":{
                    "type":"string",
                    "format":"uri",
                    "description":"Relative path to the resource."
                },
                "id":{
                    "type":"string",
                    "description":"Unique ID of the metric type. For example, compute.CPU.PERCENT."
                },
                "name":{
                    "type":"string",
                    "description":"Short name of the metric type. For example, cpuPercent."
                },
                "displayName":{
                    "type":"string",
                    "description":"Display name of the metric type."
                },
                "shortDisplayName":{
                    "type":"string",
                    "description":"Short display name for the metric type."
                },
                "description":{
                    "type":"string",
                    "description":"Description of the metric type."
                },
                "unit":{
                    "$ref":"#/definitions/MetricUnit"
                },
                "subjectType":{
                    "$ref":"#/definitions/MetricSubjectType"
                }
            }
        },
        "MetricThreshold":{
            "type":"object",
            "properties":{
                "canonicalLink":{
                    "type":"string",
                    "format":"uri",
                    "readOnly":true,
                    "description":"\tRelative path to the resource."
                },
                "id":{
                    "type":"string",
                    "format":"uuid",
                    "readOnly":true,
                    "description":"Unique ID of the metric threshold."
                },
                "name":{
                    "type":"string",
                    "description":"Specify a name for the metric threshold."
                },
                "target":{
                    "$ref":"#/definitions/MetricTarget"
                },
                "condition":{
                    "$ref":"#/definitions/MetricThresholdCondition"
                },
                "alertAction":{
                    "$ref":"#/definitions/MetricThresholdAlertAction"
                }
            }
        },
        "MetricReportElement":{
            "type":"object",
            "properties":{
                "start":{
                    "type":"string",
                    "format":"date-time",
                    "description":"Start of the range, inclusive."
                },
                "end":{
                    "type":"string",
                    "format":"date-time",
                    "description":"End of the range, exclusive."
                },
                "startInMilliseconds":{
                    "type":"integer",
                    "format":"int64",
                    "description":"Start of the range in millisecond since UNIX Epoch, inclusive."
                },
                "endInMilliseconds":{
                    "type":"integer",
                    "format":"int64",
                    "description":"End of the range in millisecond since UNIX Epoch, exclusive."
                },
                "avg":{
                    "type":"number",
                    "format":"double",
                    "description":"Average value of the data point collected within this interval. Note that if there is no data point available in the range then this value can be set to null."
                },
                "min":{
                    "type":"number",
                    "format":"double",
                    "description":"Minimum value of the data point collected within this interval. Note that if there is no data point available in the range then this value can be set to null."
                },
                "max":{
                    "type":"number",
                    "format":"double",
                    "description":"Maximum value of the data points collected within this interval. Note that if there is no data point available in the range then this value can be set to null."
                },
                "sum":{
                    "type":"number",
                    "format":"double",
                    "description":"Sum of the data points value collected within this interval. Note that if there is no data point available in the range then this value can be set to null."
                },
                "count":{
                    "type":"integer",
                    "format":"int32",
                    "description":"Number of data points present in this interval."
                }
            }
        },
        "PollResult":{
            "type":"object",
            "properties":{
                "canonicalLink":{
                    "type":"string",
                    "format":"uri",
                    "description":"Notifications polling URL."
                }
            }
        },
        "MetricUnit":{
            "type":"object",
            "properties":{
                "canonicalLink":{
                    "type":"string",
                    "format":"uri",
                    "description":"Relative path to the resource."
                },
                "id":{
                    "type":"string",
                    "description":"Unique ID of the metric unit. For example, BYTES."
                },
                "displayName":{
                    "type":"string",
                    "description":"Display name of the metric unit."
                },
                "shortDisplayName":{
                    "type":"string",
                    "description":"Short display name for the metric unit."
                }
            }
        },
        "MetricThresholds":{
            "type":"object",
            "properties":{
                "canonicalLink":{
                    "type":"string",
                    "format":"uri",
                    "description":"\tRelative path to the resource."
                },
                "nextLink":{
                    "type":"string",
                    "format":"uri",
                    "description":"Relative path to the next page."
                },
                "offset":{
                    "type":"integer",
                    "format":"int32",
                    "description":"Offset of the first element to return (for pagination purpose)."
                },
                "limit":{
                    "type":"integer",
                    "format":"int32",
                    "description":"Maximum number of items that the request should return."
                },
                "hasMore":{
                    "type":"boolean",
                    "description":"Is true if there are more items to return.",
                    "default":false
                },
                "items":{
                    "type":"array",
                    "items":{
                        "$ref":"#/definitions/MetricThreshold"
                    }
                }
            }
        },
        "MetricThresholdEvent":{
            "type":"object",
            "properties":{
                "id":{
                    "type":"string",
                    "format":"uuid",
                    "readOnly":true,
                    "description":"A unique ID representing the event."
                },
                "threshold":{
                    "$ref":"#/definitions/MetricThreshold"
                },
                "identityDomain":{
                    "type":"string",
                    "description":"Identity domain ID of the event type."
                },
                "eventType":{
                    "type":"string",
                    "description":"Event type (changedToSatisfied or changedToUnsatisfied)"
                },
                "eventStartedOn":{
                    "type":"string",
                    "format":"date-time",
                    "description":"First occurrence of the event type."
                }
            }
        },
        "MetricReport":{
            "type":"object",
            "properties":{
                "target":{
                    "$ref":"#/definitions/MetricTarget"
                },
                "data":{
                    "type":"array",
                    "items":{
                        "$ref":"#/definitions/MetricReportElement"
                    }
                }
            }
        },
        "LongPollInfo":{
            "type":"object",
            "properties":{
                "pollResult":{
                    "$ref":"#/definitions/PollResult"
                },
                "waitTimeBeforePolling":{
                    "type":"integer",
                    "format":"int64",
                    "description":"Number of seconds the caller must wait before next poll request."
                },
                "httpRequestTimeoutHint":{
                    "type":"integer",
                    "format":"int32",
                    "description":"Suggested client side timeout."
                }
            }
        },
        "MetricProperty":{
            "type":"object",
            "properties":{
                "name":{
                    "type":"string",
                    "description":"The name of the metric property. For example, vmUuid."
                },
                "value":{
                    "type":"string",
                    "description":"The value of the metric property. For example, 11da4f96-e95e-4998-810c-198d5df034c4 for the vmUuid property."
                }
            }
        },
        "MetricSubject":{
            "type":"object",
            "properties":{
                "canonicalLink":{
                    "type":"string",
                    "format":"uri",
                    "description":"Relative path to the resource."
                },
                "isDeleted":{
                    "type":"boolean",
                    "description":"Indicates whether the referenced object has been deleted.",
                    "default":false
                },
                "displayName":{
                    "type":"string",
                    "description":"Display name of the metric subject."
                },
                "id":{
                    "type":"string",
                    "format":"uuid",
                    "description":"Unique ID of the metric subject. For example, bbdce636-691e-494e-ba69-526739e086e0."
                },
                "subjectType":{
                    "$ref":"#/definitions/MetricSubjectType"
                },
                "properties":{
                    "type":"array",
                    "description":"Properties of the subject.",
                    "items":{
                        "$ref":"#/definitions/MetricProperty"
                    }
                }
            }
        },
        "MetricSeriesResultSet":{
            "type":"object",
            "properties":{
                "canonicalLink":{
                    "type":"string",
                    "format":"uri",
                    "description":"\tRelative path to the resource."
                },
                "nextLink":{
                    "type":"string",
                    "format":"uri",
                    "description":"Relative path to the next page."
                },
                "offset":{
                    "type":"integer",
                    "format":"int32",
                    "description":"Offset of the first element to return (for pagination purpose)."
                },
                "limit":{
                    "type":"integer",
                    "format":"int32",
                    "description":"Maximum number of items that the request should return."
                },
                "hasMore":{
                    "type":"boolean",
                    "description":"Is true if there are more items to return.",
                    "default":false
                },
                "items":{
                    "type":"array",
                    "items":{
                        "$ref":"#/definitions/MetricSeries"
                    }
                }
            }
        },
        "MetricSubjectType":{
            "type":"object",
            "properties":{
                "id":{
                    "type":"string",
                    "description":"Unique ID of the metric unit. For example, compute.vm."
                }
            }
        },
        "MetricThresholdCondition":{
            "type":"object",
            "properties":{
                "periodDuration":{
                    "type":"string",
                    "description":"Specify the time period for which you want to monitor the metric.<br><br><strong>Note:</strong> You must use the iCalendar <a href=\"https://tools.ietf.org/html/rfc5545#section-3.3.6\">Duration</a> format. For example, <code>PT10M</code>.<br><br>By default <code>periodDuration</code> is set to <code>PT5M</code>. The minimum accepted value for <code>periodDuration</code> is <code>PT5M</code>."
                },
                "periodCountToSatisfy":{
                    "type":"integer",
                    "format":"int32",
                    "description":"Enter the number of consecutive times the metric must meet the criteria specified by you to trigger an alert."
                },
                "periodCountToUnsatisfy":{
                    "type":"integer",
                    "format":"int32",
                    "description":"Enter the number of consecutive times that the metric must be within the threshold limit to trigger an alert."
                },
                "operation":{
                    "type":"string",
                    "description":"Specify the operation (&gt;, &lt;, &lt;=, &gt;=, =)."
                },
                "value":{
                    "type":"number",
                    "format":"double",
                    "description":"Specify the threshold value."
                },
                "stats":{
                    "type":"string",
                    "description":"Specify the statistic to monitor (avg, count, min, max, sum)."
                }
            }
        },
        "MetricSubjects":{
            "type":"object",
            "properties":{
                "canonicalLink":{
                    "type":"string",
                    "format":"uri",
                    "description":"\tRelative path to the resource."
                },
                "nextLink":{
                    "type":"string",
                    "format":"uri",
                    "description":"Relative path to the next page."
                },
                "offset":{
                    "type":"integer",
                    "format":"int32",
                    "description":"Offset of the first element to return (for pagination purpose)."
                },
                "limit":{
                    "type":"integer",
                    "format":"int32",
                    "description":"Maximum number of items that the request should return."
                },
                "hasMore":{
                    "type":"boolean",
                    "description":"Is true if there are more items to return.",
                    "default":false
                },
                "items":{
                    "type":"array",
                    "items":{
                        "$ref":"#/definitions/MetricSubject"
                    }
                }
            }
        },
        "MetricTarget":{
            "type":"object",
            "properties":{
                "series":{
                    "$ref":"#/definitions/MetricSeries"
                }
            }
        }
    }
}