GET /analytics/metrics/virtualservice

GET /analytics/metrics/virtualservice

/analytics/metrics/virtualservice

Request
URI
GET
https://{api_host}/api/analytics/Metrics/virtualservice
COPY
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.

string
name
Optional

object name

boolean
aggregate_entity
Optional

Required if the metrics need to be aggregated across multiple entities like virtualservice. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

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 with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

string
asn
Optional

Autonomous System number. Eg. asn=3794. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

string
attack
Optional

Dos Attack ID filter. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

string
browser
Optional

Browser filter. Eg. browser=Chrome. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

string
client_insights
Optional

Client Insights Source Type - Active or Passive. Enum options - NO_INSIGHTS, PASSIVE, ACTIVE. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

string
country
Optional

Two letter country filter. Eg. country=US. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

boolean
detailed_header
Optional

Detailed header returns metric information, statistics etc. It is has overhead which can be bypassed if caller just wants raw data. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

string
devtype
Optional

Device type filter. Eg. devtype=desktop. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

string
dimension_aggregation
Optional

Aggregations for dimensions. Eg. use dimension_aggregation=avg for averaged metric values. Enum options - METRICS_DIMENSION_AGG_NONE, METRICS_DIMENSION_AGG_AVG, METRICS_DIMENSION_AGG_SUM, METRICS_DIMENSION_AGG_MAX, METRICS_DIMENSION_AGG_MIN, METRICS_DIMENSION_AGG_PERCENT, METRICS_DIMENSION_AGG_ALL. Allowed with any value in Enterprise, 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 with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

integer
dimension_limit
Optional

Limit the number of dimensions in the result. specially useful in case of URLs. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

integer
dimension_sampling
Optional

Deprecated. perform sampling for dimensional metrics. zero means auto. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

string
dimensions
Optional

Group by dimensions for the metrics. Eg. For results by single dimension use dimensions=browser. For results by browser and operating system use dimensions=browser,os. Enum options - METRICS_DIMENSION_METRIC_TIMESTAMP, METRICS_DIMENSION_COUNTRY, METRICS_DIMENSION_OS, METRICS_DIMENSION_URL, METRICS_DIMENSION_DEVTYPE, METRICS_DIMENSION_LANG, METRICS_DIMENSION_BROWSER, METRICS_DIMENSION_IPGROUP, METRICS_DIMENSION_ATTACK, METRICS_DIMENSION_ASN. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

string
entity_uuid
Optional

UUID of the entity. Eg. entity_uuid=virtualservice-0-1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

string
id
Optional

ID of the request. In case of GET API it is returned in the metrics query response. In case of collections API responses are grouped byresponses corresponding to each optimized query. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

boolean
include_refs
Optional

Resolve UUID to names. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

boolean
include_statistics
Optional

Include metrics statistics with the request. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

string
ipgroup
Optional

IPGROUP filter Eg. UUID of the IP group. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

string
lang
Optional

Language filter. Eg. lang=english. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

integer
limit
Optional

Max number of metric samples per metric requestedEg. limit=100 implies return only 100 samples. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

string
metric_entity
Optional

Describes the entity type for which metrics is requested. Eg. &metric_entity=VSERVER_METRICS_ENTITY. Enum options - VSERVER_METRICS_ENTITY, VM_METRICS_ENTITY, SE_METRICS_ENTITY, CONTROLLER_METRICS_ENTITY, APPLICATION_METRICS_ENTITY, TENANT_METRICS_ENTITY, POOL_METRICS_ENTITY. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

string
metric_id
Optional

Comma separated list of metrics requested.Eg. metric_id=l4_client.avg_bandwidth,l7_client.avg_total_responses. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

integer
microservice_levels
Optional

number of levels of microservices map. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

string
obj_id
Optional

serverip port of the pool server. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

string
order_by
Optional

Order metrics series by metric timestamp. -metric_timestamp will result in most recent value first in the time series. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

string
os
Optional

Operating system filter. Eg. os=mac. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

boolean
pad_missing_data
Optional

Pad missing data when not available. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

integer
page
Optional

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

integer
page_size
Optional

page size of the query. Allowed only for the aggregation queries. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

string
pool_uuid
Optional

metrics for a member pool in a virtual service. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

boolean
prediction
Optional

Request prediction values instead of actual observed metrics in future if supported. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

string
result_format
Optional

Deprecated. Please do not use this option. APIs only support JSON format. Enum options - METRICS_FORMAT_JSON, METRICS_FORMAT_CSV, METRICS_FORMAT_TXT, METRICS_FORMAT_PROTOBUF. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

string
sampling_level
Optional

Deprecated. Enum options - METRICS_SAMPLING_DEFAULT, METRICS_SAMPLING_FAST, METRICS_SAMPLING_FORCE. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

string
server
Optional

Pool Server ID in format server IP port. Eg. 10.10.1.42 80. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

string
serviceengine_uuid
Optional

UUID of the service engine.Eg. serviceengine_uuid=se-422ce810-50a4-2ecd-d45d-870656e99b7b. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

string
start
Optional

Start time for the metrics in ISO 8601 format. Default is UNIX Epoch. Eg. start=1970-01-01T00 00 00. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

integer
step
Optional

Metrics time series returned with time points every time duration specified as step. Eg. if bandwidth is desired every 5 Secs then use step=5&metric_id=l4_client.avg_bandwidth. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

string
stop
Optional

End time for the metrics in ISO 8601 format. Default is now. Eg. stop=2014-01-01T12 42 42. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

string
tenant_uuid
Optional

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

string
url
Optional

URL filter. Eg. url=http //www.avinetworks.com. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

boolean
validate_data
Optional

Validate every data before returning. This will result in increased latency and should only be used for troubleshooting. Allowed with any value in Enterprise, 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.


Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns MetricsQueryResponseApiResponse of type(s) application/json
{
    "count": 0,
    "results": [
        {
            "entity_uuid": "string",
            "id": "string",
            "limit": 0,
            "metric_entity": "string",
            "metric_id": "string",
            "series": [
                {
                    "data": [
                        {
                            "application_response_time": "number",
                            "blocking_time": "number",
                            "browser_rendering_time": "number",
                            "client_rtt": "number",
                            "connection_time": "number",
                            "dns_lookup_time": "number",
                            "dom_content_load_time": "number",
                            "is_null": false,
                            "num_samples": 0,
                            "page_download_time": "number",
                            "page_load_time": "number",
                            "prediction_interval_high": "number",
                            "prediction_interval_low": "number",
                            "redirection_time": "number",
                            "rum_client_data_transfer_time": "number",
                            "server_rtt": "number",
                            "service_time": "number",
                            "timestamp": "string",
                            "value": "number",
                            "value_str": "string",
                            "value_str_desc": "string",
                            "waiting_time": "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"
        }
    ],
    "next": "string"
}
integer As int32 As int32
count
Required

count

array of object
results
Required

results

string
next
Optional

next


401

log in failed

Operation doesn't return any data structure

Code Samples
COPY
                    curl -H 'Authorization: <value>' https://{api_host}/api/analytics/Metrics/virtualservice