GET /analytics/anomaly/pool/{uuid}

GET /analytics/anomaly/pool/{uuid}

/analytics/anomaly/pool/{uuid}

Request
URI
GET
https://{api_host}/api/analytics/anomaly/pool/{uuid}
COPY
Path Parameters
string
uuid
Required

UUID of the object to fetch

Query Parameters
boolean
include_name
Optional

All the Avi REST reference URIs have a name suffix as URI#name. It is useful to get the referenced resource name without performing get on that object.

boolean
skip_default
Optional

Default values are not set.

boolean
aggregate_obj_id
Optional

Aggregate metrics for all the records for obj_id. When this is set obj_id is treated as a filter rather than a dimension. Field introduced in 17.2.1. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

string
aggregation
Optional

Enum options - METRICS_ANOMALY_AGG_NONE, METRICS_ANOMALY_AGG_COUNT. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

integer
aggregation_window
Optional

factor of aggregation window to the step. Eg. if requirement to is aggregate count ever 30 mins using 5 minute samples then value is 6. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

boolean
detailed_header
Optional

ability to reduce the information returned in header. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

string
dimension_filter_op
Optional

Filters the obj_id based on the filter specified. Enum options - METRICS_FILTER_EQUALS, METRICS_FILTER_LIKE, METRICS_FILTER_CONTAINS, METRICS_FILTER_NOT_EQUALS. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

string
entity_uuid
Optional

uuid of the entity type. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

boolean
include_refs
Optional

Resolve uuid to references. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

boolean
include_related
Optional

include anomalies from related objects. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

integer
limit
Optional

Max number of metric samples. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

string
metric_entity
Optional

Metrics Types supported. Enum options - VSERVER_METRICS_ENTITY, VM_METRICS_ENTITY, SE_METRICS_ENTITY, CONTROLLER_METRICS_ENTITY, APPLICATION_METRICS_ENTITY, TENANT_METRICS_ENTITY, POOL_METRICS_ENTITY. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

string
metric_id
Optional

This is of the form l4_server. comma seperated values. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

string
model
Optional

Enum options - EXPONENTIAL_MOVING_AVG, EXPONENTIAL_WEIGHTED_MOVING_AVG, HOLTWINTERS_AT_AS, HOLTWINTERS_AT_MS. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

string
obj_id
Optional

object id like vip or server ip. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

string
order_by
Optional

Positive means sort from start and Negative sign means sort from end. Only metric_timestamp is supported for now. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

integer
page
Optional

page id for the anomaly query. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

integer
page_size
Optional

size of each page of anomalies. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

string
pool_uuid
Optional

Pool name. This will apply to any backend stats that are specified in the query. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

string
priority
Optional

High priority Anomaly. Enum options - ANZ_PRIORITY_HIGH, ANZ_PRIORITY_MEDIUM, ANZ_PRIORITY_LOW. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

string
result_format
Optional

format of the data returned. Enum options - METRICS_FORMAT_JSON, METRICS_FORMAT_CSV, METRICS_FORMAT_TXT, METRICS_FORMAT_PROTOBUF. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

string
server
Optional

server ip port. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

string
serviceengine_uuid
Optional

ID of the Node. Eg. if query is SE specific then it would have SE UUID. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

string
start
Optional

Start time for the metrics in ISO 8601 format. Default is UNIX Epoch. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

integer
step
Optional

step interval in seconds. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

string
stop
Optional

End time for the metrics in ISO 8601 format. Default is now. Negative numbers mean relative time from now. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

string
tenant_uuid
Optional

UUID of the Tenant. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

Header Parameters
string
X-Avi-Tenant
Optional

Avi Tenant Header

string
X-Avi-Tenant-UUID
Optional

Avi Tenant Header UUID

string
X-CSRFToken
Optional

Avi Controller may send back CSRF token in the response cookies. The caller should update the request headers with this token else controller with reject requests.


Responses
200

OK

Returns AnomalyzerQueryResponse of type(s) application/json
{
    "metric_id": "string",
    "series": [
        {
            "data": [
                {
                    "anomaly_context": {
                        "ema_context": {
                            "average": "number",
                            "deviation": "number",
                            "max_std_dev": "number",
                            "normal_high": "number",
                            "normal_low": "number",
                            "prediction": "number",
                            "prediction_interval_high": "number",
                            "prediction_interval_low": "number",
                            "std_dev": "number"
                        },
                        "ewma_context": {
                            "average": "number",
                            "deviation": "number",
                            "max_std_dev": "number",
                            "normal_high": "number",
                            "normal_low": "number",
                            "prediction": "number",
                            "prediction_interval_high": "number",
                            "prediction_interval_low": "number",
                            "std_dev": "number"
                        },
                        "hw_at_as_context": {
                            "deviation": "number",
                            "level": "number",
                            "prediction": "number",
                            "prediction_interval_high": "number",
                            "prediction_interval_low": "number",
                            "trend": "number"
                        },
                        "hw_at_ms_context": {
                            "deviation": "number",
                            "level": "number",
                            "prediction": "number",
                            "prediction_interval_high": "number",
                            "prediction_interval_low": "number",
                            "trend": "number"
                        },
                        "prediction_interval_high": "number",
                        "prediction_interval_low": "number"
                    },
                    "anomaly_model": "string",
                    "entity_uuid": "string",
                    "obj_id": "string",
                    "obj_id_type": "string",
                    "pool_uuid": "string",
                    "priority": "string",
                    "timestamp": "string",
                    "value": "number"
                }
            ],
            "header": {
                "derivation_data": {
                    "derivation_fn": "string",
                    "exclude_derived_metric": false,
                    "include_derivation_metrics": false,
                    "join_tables": "string",
                    "metric_ids": "string",
                    "result_has_additional_fields": false,
                    "second_order_derivation": false,
                    "skip_backend_derivation": false
                },
                "dimension_data": [
                    {
                        "dimension": "string",
                        "dimension_id": "string"
                    }
                ],
                "entity_uuid": "string",
                "metric_description": "string",
                "metrics_min_scale": "number",
                "metrics_sum_agg_invalid": false,
                "missing_intervals": [
                    {
                        "end": "string",
                        "start": "string"
                    }
                ],
                "name": "string",
                "obj_id": "string",
                "obj_id_type": "string",
                "pool_uuid": "string",
                "priority": false,
                "server": "string",
                "serviceengine_uuid": "string",
                "statistics": {
                    "last_sample": "number",
                    "max": "number",
                    "max_ts": "string",
                    "mean": "number",
                    "min": "number",
                    "min_ts": "string",
                    "num_samples": 0,
                    "sum": "number",
                    "trend": "number"
                },
                "tenant_uuid": "string",
                "units": "string"
            }
        }
    ],
    "start": "string",
    "step": 0,
    "stop": "string",
    "url": "string"
}
string
metric_id
Optional

Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

array of object
series
Optional

Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

string
start
Required

Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

integer As int32 As int32
step
Required

Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

string
stop
Required

Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

string
url
Optional

url


401

log in failed

Operation doesn't return any data structure

Code Samples
COPY
                    curl -H 'Authorization: <value>' https://{api_host}/api/analytics/anomaly/pool/{uuid}