1 of 20
2 of 20
3 of 20
4 of 20
5 of 20
6 of 20
7 of 20
8 of 20
9 of 20
10 of 20
11 of 20
12 of 20
13 of 20
14 of 20
15 of 20
16 of 20
17 of 20
18 of 20
19 of 20
20 of 20

site

doc

blog

success stories

Real-Time Metrics

Edit on GitHub

The Analytics API enables you to consult historical data from monitoring indicators taken from the traffic generated by your content and applications through Azion.

The data is grouped by Product, Settings, Metrics and Dimension.

  1. Look up the list of metrics and dimensions being monitored
  2. Look up the aggregate historical data for a metric
  3. Look up the aggregate historical data for a dimension of a metric
  4. Look up a list of settings being monitored
  5. Look up the historical data of a metric for a setting
  6. Look up the historical data of a dimension for a metric for a setting

1. Look up the list of metrics and dimensions being monitored

Look up the list of metric names and the respective dimensions being used as parameters in all the endpoints of Analytics historical data query.

GET /analytics/metadata

Permission necessary: Analytics

Parameter Description Type of Parameter Type of Data
Authorization (mandatory) Authentication through the Token, previously created through the endpoint of Token Creation.

e.g.:

Authorization: Token
583f8a9ca8d6d5ff2cb50f1d3c4d35cb8939f1bf
header string

Example Request

GET /analytics/metadata
Accept: application/json; version=1
Authorization: Token 583f8a9ca8d6d5ff2cb50f1d3c4d35cb8939f1bf

Example Response

HTTP/1.1 200 OK
{  
    "data_ingested":[  
       "total",
       "bandwidth"
    ],
    "used_space":[  
       "total"
    ],
    "requests_per_second_offloaded":[  
       "offload"
    ],
    "connected_users":[  
       "average",
       "max"
    ],
    "data_packaged":[  
       "total",
       "bandwidth"
    ],
    "requests_per_second":[  
       "total",
       "saved",
       "missed"
    ],
    "data_offloaded":[  
       "offload"
    ],
    "bandwidth":[  
       "total",
       "saved",
       "missed"
    ],
    "http_method":[  
       "get",
       "head",
       "post",
       "others"
    ],
    "requests_offloaded":[  
       "offload"
    ],
    "waf":[  
       "requests",
       "blocked",
       "threats",
       "xss",
       "rfi",
       "sql",
       "others"
    ],
    "status_code":[  
       "2xx",
       "200",
       "204",
       "206",
       "3xx",
       "301",
       "302",
       "304",
       "4xx",
       "400",
       "403",
       "404",
       "500",
       "502",
       "503",
       "5xx"
    ],
    "bandwidth_offloaded":[  
       "offload"
    ],
    "requests":[  
       "total",
       "http",
       "https",
       "saved",
       "missed"
    ],
    "images_processed":[  
       "requests",
       "throughput"
    ],
    "data_transferred":[  
       "total",
       "http",
       "https",
       "saved",
       "missed"
    ]
}

2. Look up the aggregate historical data for a metric

Return the historical collected data set of a metric for all the aggregated settings of the product.

GET /analytics/products/:prod_id/aggregate/metrics/:metric_name

Permission necessary: Analytics

Parameter Description Type of Parameter Type of Data
Authorization (mandatory) Authentication through the Token, previously created through the endpoint of Token Creation.

e.g.:

Authorization: Token
583f8a9ca8d6d5ff2cb50f1d3c4d35cb8939f1bf
header string
:prod_id (mandatory) ID of the product to be queried.

ContentDelivery: ID 1441740010
   


Cloud Storage: ID 1441740013

Image Optimization: ID 1441110021

Live Ingest: ID 1467740028

Media Packager: ID 1441740014
path number  
:metric_name (mandatory) Name of the metric to be queried To get a list of stored metrics, you can look up the endpoint of Metrics and Dimensions. path string
date_from (mandatory) Date and time of the start of the query in the format “YYYY-MM-DDThh:mm” (Local Time) or “YYYY-MM-DDThh:mmZ” (UTC). You can also specify a duration by using one of the following values, in which case the date_to parameter is left out.

last-hour

last-3-hours
   


last-6-hours

last-24-hours

last-3-days

last-7-days

last-15-days

last-30-days
query string  
date_to (optional) Date and time of the end of the query in the format “YYYY-MM-DDThh:mm” (Local Time) or “YYYY-MM-DDThh:mmZ” (UTC). You can also specify a duration by using the value “now”, in the case of omission it will be considered the default value. query string

Example Request

GET /analytics/products/1441740010/aggregate/metrics/data_transferred?date_from=2016-10-01T00%3A00Z&date_to=2016-11-01T00%3A00Z
Accept: application/json; version=1
Authorization: Token 583f8a9ca8d6d5ff2cb50f1d3c4d35cb8939f1bf

Example Response

HTTP/1.1 200 OK
{  
    "products":{  
       "1441740010":{  
          "data_transferred":{  
             "saved":[  
                [  
                   1475290800000.0,
                   0.0
                ],
                [  
                   1475334000000.0,
                   0.0
                ],
                [  
                   1475377200000.0,
                   0.0
                ],
                [  
                   1475420400000.0,
                   0.0
                ],
                [  
                   1475463600000.0,
                   0.0
                ],
                [  
                   1475506800000.0,
                   0.0
                ],
                [  
                   1475550000000.0,
                   0.0
                ],
                [  
                   1475593200000.0,
                   0.0
                ],
                [  
                   1475636400000.0,
                   0.0
                ],
                [  
                   1475679600000.0,
                   0.0
                ],
                [  
                   1475722800000.0,
                   0.0
                ],
                [  
                   1475766000000.0,
                   0.0
                ],
                [  
                   1475809200000.0,
                   0.0
                ],
                [  
                   1475852400000.0,
                   0.0
                ],
                [  
                   1475895600000.0,
                   0.0
                ],
                [  
                   1475938800000.0,
                   0.0
                ],
                [  
                   1475982000000.0,
                   0.0
                ],
                [  
                   1476025200000.0,
                   0.0
                ],
                [  
                   1476068400000.0,
                   0.0
                ],
                [  
                   1476111600000.0,
                   0.0
                ],
                [  
                   1476154800000.0,
                   0.0
                ],
                [  
                   1476198000000.0,
                   0.0
                ],
                [  
                   1476241200000.0,
                   0.0
                ],
                [  
                   1476284400000.0,
                   0.0
                ],
                [  
                   1476327600000.0,
                   0.0
                ],
                [  
                   1476370800000.0,
                   0.0
                ],
                [  
                   1476414000000.0,
                   0.0
                ],
                [  
                   1476457200000.0,
                   0.0
                ],
                [  
                   1476500400000.0,
                   0.0
                ],
                [  
                   1476543600000.0,
                   0.0
                ],
                [  
                   1476586800000.0,
                   0.0
                ],
                [  
                   1476630000000.0,
                   0.0
                ],
                [  
                   1476673200000.0,
                   0.0
                ],
                [  
                   1476716400000.0,
                   0.0
                ],
                [  
                   1476759600000.0,
                   0.0
                ],
                [  
                   1476802800000.0,
                   0.0
                ],
                [  
                   1476846000000.0,
                   0.0
                ],
                [  
                   1476889200000.0,
                   0.0
                ],
                [  
                   1476932400000.0,
                   0.0
                ],
                [  
                   1476975600000.0,
                   0.0
                ],
                [  
                   1477018800000.0,
                   0.0
                ],
                [  
                   1477062000000.0,
                   0.0
                ],
                [  
                   1477105200000.0,
                   0.0
                ],
                [  
                   1477148400000.0,
                   0.0
                ],
                [  
                   1477191600000.0,
                   0.0
                ],
                [  
                   1477234800000.0,
                   0.0
                ],
                [  
                   1477278000000.0,
                   0.0
                ],
                [  
                   1477321200000.0,
                   0.0
                ],
                [  
                   1477364400000.0,
                   0.0
                ],
                [  
                   1477407600000.0,
                   0.0
                ],
                [  
                   1477450800000.0,
                   0.0
                ],
                [  
                   1477494000000.0,
                   0.0
                ],
                [  
                   1477537200000.0,
                   0.0
                ],
                [  
                   1477580400000.0,
                   0.0
                ],
                [  
                   1477623600000.0,
                   0.0
                ],
                [  
                   1477666800000.0,
                   0.0
                ],
                [  
                   1477710000000.0,
                   0.0
                ],
                [  
                   1477753200000.0,
                   0.0
                ],
                [  
                   1477796400000.0,
                   0.0
                ],
                [  
                   1477839600000.0,
                   0.0
                ],
                [  
                   1477882800000.0,
                   0.0
                ],
                [  
                   1477926000000.0,
                   0.0
                ]
             ],
             "total":[  
                [  
                   1475290800000.0,
                   0.0
                ],
                [  
                   1475334000000.0,
                   0.0
                ],
                [  
                   1475377200000.0,
                   0.0
                ],
                [  
                   1475420400000.0,
                   0.0
                ],
                [  
                   1475463600000.0,
                   0.0
                ],
                [  
                   1475506800000.0,
                   0.0
                ],
                [  
                   1475550000000.0,
                   0.0
                ],
                [  
                   1475593200000.0,
                   0.0
                ],
                [  
                   1475636400000.0,
                   0.0
                ],
                [  
                   1475679600000.0,
                   0.0
                ],
                [  
                   1475722800000.0,
                   0.0
                ],
                [  
                   1475766000000.0,
                   0.0
                ],
                [  
                   1475809200000.0,
                   0.0
                ],
                [  
                   1475852400000.0,
                   0.0
                ],
                [  
                   1475895600000.0,
                   0.0
                ],
                [  
                   1475938800000.0,
                   0.0
                ],
                [  
                   1475982000000.0,
                   0.0
                ],
                [  
                   1476025200000.0,
                   0.0
                ],
                [  
                   1476068400000.0,
                   0.0
                ],
                [  
                   1476111600000.0,
                   0.0
                ],
                [  
                   1476154800000.0,
                   0.0
                ],
                [  
                   1476198000000.0,
                   0.0
                ],
                [  
                   1476241200000.0,
                   0.0
                ],
                [  
                   1476284400000.0,
                   0.0
                ],
                [  
                   1476327600000.0,
                   0.0
                ],
                [  
                   1476370800000.0,
                   0.0
                ],
                [  
                   1476414000000.0,
                   0.0
                ],
                [  
                   1476457200000.0,
                   0.0
                ],
                [  
                   1476500400000.0,
                   0.0
                ],
                [  
                   1476543600000.0,
                   0.0
                ],
                [  
                   1476586800000.0,
                   0.0
                ],
                [  
                   1476630000000.0,
                   0.0
                ],
                [  
                   1476673200000.0,
                   0.0
                ],
                [  
                   1476716400000.0,
                   0.0
                ],
                [  
                   1476759600000.0,
                   0.0
                ],
                [  
                   1476802800000.0,
                   0.0
                ],
                [  
                   1476846000000.0,
                   0.0
                ],
                [  
                   1476889200000.0,
                   0.0
                ],
                [  
                   1476932400000.0,
                   0.0
                ],
                [  
                   1476975600000.0,
                   0.0
                ],
                [  
                   1477018800000.0,
                   0.0
                ],
                [  
                   1477062000000.0,
                   0.0
                ],
                [  
                   1477105200000.0,
                   0.0
                ],
                [  
                   1477148400000.0,
                   0.0
                ],
                [  
                   1477191600000.0,
                   0.0
                ],
                [  
                   1477234800000.0,
                   0.0
                ],
                [  
                   1477278000000.0,
                   0.0
                ],
                [  
                   1477321200000.0,
                   0.0
                ],
                [  
                   1477364400000.0,
                   0.0
                ],
                [  
                   1477407600000.0,
                   0.0
                ],
                [  
                   1477450800000.0,
                   0.0
                ],
                [  
                   1477494000000.0,
                   0.0
                ],
                [  
                   1477537200000.0,
                   0.0
                ],
                [  
                   1477580400000.0,
                   0.0
                ],
                [  
                   1477623600000.0,
                   0.0
                ],
                [  
                   1477666800000.0,
                   0.0
                ],
                [  
                   1477710000000.0,
                   0.0
                ],
                [  
                   1477753200000.0,
                   0.0
                ],
                [  
                   1477796400000.0,
                   0.0
                ],
                [  
                   1477839600000.0,
                   0.0
                ],
                [  
                   1477882800000.0,
                   0.0
                ],
                [  
                   1477926000000.0,
                   0.0
                ]
             ],
             "http":[  
                [  
                   1475290800000.0,
                   0.0
                ],
                [  
                   1475334000000.0,
                   0.0
                ],
                [  
                   1475377200000.0,
                   0.0
                ],
                [  
                   1475420400000.0,
                   0.0
                ],
                [  
                   1475463600000.0,
                   0.0
                ],
                [  
                   1475506800000.0,
                   0.0
                ],
                [  
                   1475550000000.0,
                   0.0
                ],
                [  
                   1475593200000.0,
                   0.0
                ],
                [  
                   1475636400000.0,
                   0.0
                ],
                [  
                   1475679600000.0,
                   0.0
                ],
                [  
                   1475722800000.0,
                   0.0
                ],
                [  
                   1475766000000.0,
                   0.0
                ],
                [  
                   1475809200000.0,
                   0.0
                ],
                [  
                   1475852400000.0,
                   0.0
                ],
                [  
                   1475895600000.0,
                   0.0
                ],
                [  
                   1475938800000.0,
                   0.0
                ],
                [  
                   1475982000000.0,
                   0.0
                ],
                [  
                   1476025200000.0,
                   0.0
                ],
                [  
                   1476068400000.0,
                   0.0
                ],
                [  
                   1476111600000.0,
                   0.0
                ],
                [  
                   1476154800000.0,
                   0.0
                ],
                [  
                   1476198000000.0,
                   0.0
                ],
                [  
                   1476241200000.0,
                   0.0
                ],
                [  
                   1476284400000.0,
                   0.0
                ],
                [  
                   1476327600000.0,
                   0.0
                ],
                [  
                   1476370800000.0,
                   0.0
                ],
                [  
                   1476414000000.0,
                   0.0
                ],
                [  
                   1476457200000.0,
                   0.0
                ],
                [  
                   1476500400000.0,
                   0.0
                ],
                [  
                   1476543600000.0,
                   0.0
                ],
                [  
                   1476586800000.0,
                   0.0
                ],
                [  
                   1476630000000.0,
                   0.0
                ],
                [  
                   1476673200000.0,
                   0.0
                ],
                [  
                   1476716400000.0,
                   0.0
                ],
                [  
                   1476759600000.0,
                   0.0
                ],
                [  
                   1476802800000.0,
                   0.0
                ],
                [  
                   1476846000000.0,
                   0.0
                ],
                [  
                   1476889200000.0,
                   0.0
                ],
                [  
                   1476932400000.0,
                   0.0
                ],
                [  
                   1476975600000.0,
                   0.0
                ],
                [  
                   1477018800000.0,
                   0.0
                ],
                [  
                   1477062000000.0,
                   0.0
                ],
                [  
                   1477105200000.0,
                   0.0
                ],
                [  
                   1477148400000.0,
                   0.0
                ],
                [  
                   1477191600000.0,
                   0.0
                ],
                [  
                   1477234800000.0,
                   0.0
                ],
                [  
                   1477278000000.0,
                   0.0
                ],
                [  
                   1477321200000.0,
                   0.0
                ],
                [  
                   1477364400000.0,
                   0.0
                ],
                [  
                   1477407600000.0,
                   0.0
                ],
                [  
                   1477450800000.0,
                   0.0
                ],
                [  
                   1477494000000.0,
                   0.0
                ],
                [  
                   1477537200000.0,
                   0.0
                ],
                [  
                   1477580400000.0,
                   0.0
                ],
                [  
                   1477623600000.0,
                   0.0
                ],
                [  
                   1477666800000.0,
                   0.0
                ],
                [  
                   1477710000000.0,
                   0.0
                ],
                [  
                   1477753200000.0,
                   0.0
                ],
                [  
                   1477796400000.0,
                   0.0
                ],
                [  
                   1477839600000.0,
                   0.0
                ],
                [  
                   1477882800000.0,
                   0.0
                ],
                [  
                   1477926000000.0,
                   0.0
                ]
             ],
             "missed":[  
                [  
                   1475290800000.0,
                   0.0
                ],
                [  
                   1475334000000.0,
                   0.0
                ],
                [  
                   1475377200000.0,
                   0.0
                ],
                [  
                   1475420400000.0,
                   0.0
                ],
                [  
                   1475463600000.0,
                   0.0
                ],
                [  
                   1475506800000.0,
                   0.0
                ],
                [  
                   1475550000000.0,
                   0.0
                ],
                [  
                   1475593200000.0,
                   0.0
                ],
                [  
                   1475636400000.0,
                   0.0
                ],
                [  
                   1475679600000.0,
                   0.0
                ],
                [  
                   1475722800000.0,
                   0.0
                ],
                [  
                   1475766000000.0,
                   0.0
                ],
                [  
                   1475809200000.0,
                   0.0
                ],
                [  
                   1475852400000.0,
                   0.0
                ],
                [  
                   1475895600000.0,
                   0.0
                ],
                [  
                   1475938800000.0,
                   0.0
                ],
                [  
                   1475982000000.0,
                   0.0
                ],
                [  
                   1476025200000.0,
                   0.0
                ],
                [  
                   1476068400000.0,
                   0.0
                ],
                [  
                   1476111600000.0,
                   0.0
                ],
                [  
                   1476154800000.0,
                   0.0
                ],
                [  
                   1476198000000.0,
                   0.0
                ],
                [  
                   1476241200000.0,
                   0.0
                ],
                [  
                   1476284400000.0,
                   0.0
                ],
                [  
                   1476327600000.0,
                   0.0
                ],
                [  
                   1476370800000.0,
                   0.0
                ],
                [  
                   1476414000000.0,
                   0.0
                ],
                [  
                   1476457200000.0,
                   0.0
                ],
                [  
                   1476500400000.0,
                   0.0
                ],
                [  
                   1476543600000.0,
                   0.0
                ],
                [  
                   1476586800000.0,
                   0.0
                ],
                [  
                   1476630000000.0,
                   0.0
                ],
                [  
                   1476673200000.0,
                   0.0
                ],
                [  
                   1476716400000.0,
                   0.0
                ],
                [  
                   1476759600000.0,
                   0.0
                ],
                [  
                   1476802800000.0,
                   0.0
                ],
                [  
                   1476846000000.0,
                   0.0
                ],
                [  
                   1476889200000.0,
                   0.0
                ],
                [  
                   1476932400000.0,
                   0.0
                ],
                [  
                   1476975600000.0,
                   0.0
                ],
                [  
                   1477018800000.0,
                   0.0
                ],
                [  
                   1477062000000.0,
                   0.0
                ],
                [  
                   1477105200000.0,
                   0.0
                ],
                [  
                   1477148400000.0,
                   0.0
                ],
                [  
                   1477191600000.0,
                   0.0
                ],
                [  
                   1477234800000.0,
                   0.0
                ],
                [  
                   1477278000000.0,
                   0.0
                ],
                [  
                   1477321200000.0,
                   0.0
                ],
                [  
                   1477364400000.0,
                   0.0
                ],
                [  
                   1477407600000.0,
                   0.0
                ],
                [  
                   1477450800000.0,
                   0.0
                ],
                [  
                   1477494000000.0,
                   0.0
                ],
                [  
                   1477537200000.0,
                   0.0
                ],
                [  
                   1477580400000.0,
                   0.0
                ],
                [  
                   1477623600000.0,
                   0.0
                ],
                [  
                   1477666800000.0,
                   0.0
                ],
                [  
                   1477710000000.0,
                   0.0
                ],
                [  
                   1477753200000.0,
                   0.0
                ],
                [  
                   1477796400000.0,
                   0.0
                ],
                [  
                   1477839600000.0,
                   0.0
                ],
                [  
                   1477882800000.0,
                   0.0
                ],
                [  
                   1477926000000.0,
                   0.0
                ]
             ],
             "https":[  
                [  
                   1475290800000.0,
                   0.0
                ],
                [  
                   1475334000000.0,
                   0.0
                ],
                [  
                   1475377200000.0,
                   0.0
                ],
                [  
                   1475420400000.0,
                   0.0
                ],
                [  
                   1475463600000.0,
                   0.0
                ],
                [  
                   1475506800000.0,
                   0.0
                ],
                [  
                   1475550000000.0,
                   0.0
                ],
                [  
                   1475593200000.0,
                   0.0
                ],
                [  
                   1475636400000.0,
                   0.0
                ],
                [  
                   1475679600000.0,
                   0.0
                ],
                [  
                   1475722800000.0,
                   0.0
                ],
                [  
                   1475766000000.0,
                   0.0
                ],
                [  
                   1475809200000.0,
                   0.0
                ],
                [  
                   1475852400000.0,
                   0.0
                ],
                [  
                   1475895600000.0,
                   0.0
                ],
                [  
                   1475938800000.0,
                   0.0
                ],
                [  
                   1475982000000.0,
                   0.0
                ],
                [  
                   1476025200000.0,
                   0.0
                ],
                [  
                   1476068400000.0,
                   0.0
                ],
                [  
                   1476111600000.0,
                   0.0
                ],
                [  
                   1476154800000.0,
                   0.0
                ],
                [  
                   1476198000000.0,
                   0.0
                ],
                [  
                   1476241200000.0,
                   0.0
                ],
                [  
                   1476284400000.0,
                   0.0
                ],
                [  
                   1476327600000.0,
                   0.0
                ],
                [  
                   1476370800000.0,
                   0.0
                ],
                [  
                   1476414000000.0,
                   0.0
                ],
                [  
                   1476457200000.0,
                   0.0
                ],
                [  
                   1476500400000.0,
                   0.0
                ],
                [  
                   1476543600000.0,
                   0.0
                ],
                [  
                   1476586800000.0,
                   0.0
                ],
                [  
                   1476630000000.0,
                   0.0
                ],
                [  
                   1476673200000.0,
                   0.0
                ],
                [  
                   1476716400000.0,
                   0.0
                ],
                [  
                   1476759600000.0,
                   0.0
                ],
                [  
                   1476802800000.0,
                   0.0
                ],
                [  
                   1476846000000.0,
                   0.0
                ],
                [  
                   1476889200000.0,
                   0.0
                ],
                [  
                   1476932400000.0,
                   0.0
                ],
                [  
                   1476975600000.0,
                   0.0
                ],
                [  
                   1477018800000.0,
                   0.0
                ],
                [  
                   1477062000000.0,
                   0.0
                ],
                [  
                   1477105200000.0,
                   0.0
                ],
                [  
                   1477148400000.0,
                   0.0
                ],
                [  
                   1477191600000.0,
                   0.0
                ],
                [  
                   1477234800000.0,
                   0.0
                ],
                [  
                   1477278000000.0,
                   0.0
                ],
                [  
                   1477321200000.0,
                   0.0
                ],
                [  
                   1477364400000.0,
                   0.0
                ],
                [  
                   1477407600000.0,
                   0.0
                ],
                [  
                   1477450800000.0,
                   0.0
                ],
                [  
                   1477494000000.0,
                   0.0
                ],
                [  
                   1477537200000.0,
                   0.0
                ],
                [  
                   1477580400000.0,
                   0.0
                ],
                [  
                   1477623600000.0,
                   0.0
                ],
                [  
                   1477666800000.0,
                   0.0
                ],
                [  
                   1477710000000.0,
                   0.0
                ],
                [  
                   1477753200000.0,
                   0.0
                ],
                [  
                   1477796400000.0,
                   0.0
                ],
                [  
                   1477839600000.0,
                   0.0
                ],
                [  
                   1477882800000.0,
                   0.0
                ],
                [  
                   1477926000000.0,
                   0.0
                ]
             ]
          }
       }
    }
}

3. Look up the aggregate historical data for a dimension of a metric

Return the historical data set of a dimension for a collected metric for all the aggregated settings of the product.

GET /analytics/products/:prod_id/aggregate/metrics/:metric_name/dimensions/:dim_name

Permission necessary: Analytics

Parameter Description Type of Parameter Type of Data
Authorization (mandatory) Authentication through the Token, previously created through the endpoint of Token Creation.

e.g.:

Authorization: Token
583f8a9ca8d6d5ff2cb50f1d3c4d35cb8939f1bf
header string
:prod_id (mandatory) ID of the product to be queried.

ContentDelivery: ID 1441740010
   


Cloud Storage: ID 1441740013

Image Optimization: ID 1441110021

Live Ingest: ID 1467740028

Media Packager: ID 1441740014
path number  
:metric_name (mandatory) Name of the metric to be queried To get a list of stored metrics, you can look up the endpoint of Metrics and Dimensions. path string
:dim_name (mandatory) Name of the dimension for the metric to be queried To get a list of stored metrics, you can look up the endpoint of Metrics and Dimensions path string
date_from (mandatory) Date and time of the start of the query in the format “YYYY-MM-DDThh:mm” (Local Time) or “YYYY-MM-DDThh:mmZ” (UTC). You can also specify a duration by using one of the following values, in which case the date_to parameter is left out.

last-hour

last-3-hours
   


last-6-hours

last-24-hours

last-3-days

last-7-days

last-15-days

last-30-days
query string  
date_to (optional) Date and time of the end of the query in the format “YYYY-MM-DDThh:mm” (Local Time) or “YYYY-MM-DDThh:mmZ” (UTC). You can also specify a duration by using the value “now”, in the case of omission it will be considered the default value. query string

Example Request

GET /analytics/products/1441740010/aggregate/metrics/data_transferred/dimensions/total?date_from=2016-10-01T00%3A00Z&date_to=2016-11-01T00%3A00Z
Accept: application/json; version=1
Authorization: Token 583f8a9ca8d6d5ff2cb50f1d3c4d35cb8939f1bf

Example Response

HTTP/1.1 200 OK
{  
    "products":{  
       "1441740010":{  
          "data_transferred":{  
             "total":[  
                [  
                   1475290800000.0,
                   0.0
                ],
                [  
                   1475334000000.0,
                   0.0
                ],
                [  
                   1475377200000.0,
                   0.0
                ],
                [  
                   1475420400000.0,
                   0.0
                ],
                [  
                   1475463600000.0,
                   0.0
                ],
                [  
                   1475506800000.0,
                   0.0
                ],
                [  
                   1475550000000.0,
                   0.0
                ],
                [  
                   1475593200000.0,
                   0.0
                ],
                [  
                   1475636400000.0,
                   0.0
                ],
                [  
                   1475679600000.0,
                   0.0
                ],
                [  
                   1475722800000.0,
                   0.0
                ],
                [  
                   1475766000000.0,
                   0.0
                ],
                [  
                   1475809200000.0,
                   0.0
                ],
                [  
                   1475852400000.0,
                   0.0
                ],
                [  
                   1475895600000.0,
                   0.0
                ],
                [  
                   1475938800000.0,
                   0.0
                ],
                [  
                   1475982000000.0,
                   0.0
                ],
                [  
                   1476025200000.0,
                   0.0
                ],
                [  
                   1476068400000.0,
                   0.0
                ],
                [  
                   1476111600000.0,
                   0.0
                ],
                [  
                   1476154800000.0,
                   0.0
                ],
                [  
                   1476198000000.0,
                   0.0
                ],
                [  
                   1476241200000.0,
                   0.0
                ],
                [  
                   1476284400000.0,
                   0.0
                ],
                [  
                   1476327600000.0,
                   0.0
                ],
                [  
                   1476370800000.0,
                   0.0
                ],
                [  
                   1476414000000.0,
                   0.0
                ],
                [  
                   1476457200000.0,
                   0.0
                ],
                [  
                   1476500400000.0,
                   0.0
                ],
                [  
                   1476543600000.0,
                   0.0
                ],
                [  
                   1476586800000.0,
                   0.0
                ],
                [  
                   1476630000000.0,
                   0.0
                ],
                [  
                   1476673200000.0,
                   0.0
                ],
                [  
                   1476716400000.0,
                   0.0
                ],
                [  
                   1476759600000.0,
                   0.0
                ],
                [  
                   1476802800000.0,
                   0.0
                ],
                [  
                   1476846000000.0,
                   0.0
                ],
                [  
                   1476889200000.0,
                   0.0
                ],
                [  
                   1476932400000.0,
                   0.0
                ],
                [  
                   1476975600000.0,
                   0.0
                ],
                [  
                   1477018800000.0,
                   0.0
                ],
                [  
                   1477062000000.0,
                   0.0
                ],
                [  
                   1477105200000.0,
                   0.0
                ],
                [  
                   1477148400000.0,
                   0.0
                ],
                [  
                   1477191600000.0,
                   0.0
                ],
                [  
                   1477234800000.0,
                   0.0
                ],
                [  
                   1477278000000.0,
                   0.0
                ],
                [  
                   1477321200000.0,
                   0.0
                ],
                [  
                   1477364400000.0,
                   0.0
                ],
                [  
                   1477407600000.0,
                   0.0
                ],
                [  
                   1477450800000.0,
                   0.0
                ],
                [  
                   1477494000000.0,
                   0.0
                ],
                [  
                   1477537200000.0,
                   0.0
                ],
                [  
                   1477580400000.0,
                   0.0
                ],
                [  
                   1477623600000.0,
                   0.0
                ],
                [  
                   1477666800000.0,
                   0.0
                ],
                [  
                   1477710000000.0,
                   0.0
                ],
                [  
                   1477753200000.0,
                   0.0
                ],
                [  
                   1477796400000.0,
                   0.0
                ],
                [  
                   1477839600000.0,
                   0.0
                ],
                [  
                   1477882800000.0,
                   0.0
                ],
                [  
                   1477926000000.0,
                   0.0
                ]
             ]
          }
       }
    }
}

4. Look up a list of settings being monitored

Return a list of the settings monitored by Analytics, to be used by all the endpoints.

GET /analytics/products/:prod_id/configurations

Permission necessary: Analytics

Parameter Description Type of Parameter Type of Data
Authorization (mandatory) Authentication through the Token, previously created through the endpoint of Token Creation.

e.g.:

Authorization: Token
583f8a9ca8d6d5ff2cb50f1d3c4d35cb8939f1bf
header string
:prod_id (mandatory) ID of the product to be queried.

ContentDelivery: ID 1441740010
   


Cloud Storage: ID 1441740013

Image Optimization: ID 1441110021

Live Ingest: ID 1467740028

Media Packager: ID 1441740014
path number  

Example Request

GET /analytics/products/1441740010/configurations
Accept: application/json; version=1
Authorization: Token 583f8a9ca8d6d5ff2cb50f1d3c4d35cb8939f1bf
HTTP/1.1 200 OK
[
 {
 "active" : true,
 "id" : 1473450681,
 "name" : "Sample 1"
 },
 {
 "id" : 1453750337,
 "active" : true,
 "name" : "Sample 2"
 }
]

5. Look up the historical data of a metric for a setting

Return the historical collected data set of a metric for a setting of the product.

GET /analytics/products/:prod_id/configurations/:conf_id/metrics/:metric_name

Permission necessary: Analytics

Parameter Description Type of Parameter Type of Data
Authorization (mandatory) Authentication through the Token, previously created through the endpoint of Token Creation.

e.g.:

Authorization: Token
583f8a9ca8d6d5ff2cb50f1d3c4d35cb8939f1bf
header string
:prod_id (mandatory) ID of the product to be queried.

ContentDelivery: ID 1441740010
   


Cloud Storage: ID 1441740013

Image Optimization: ID 1441110021

Live Ingest: ID 1467740028

Media Packager: ID 1441740014
path number  
:conf_id (mandatory) ID of the setting of the product to be queried.

PTo get the ID of a setting, look up the Settings List
path number
:metric_name (mandatory) Name of the metric to be queried To get a list of stored metrics, you can look up the endpoint of Metrics and Dimensions. path string
date_from (mandatory) Date and time of the start of the query in the format “YYYY-MM-DDThh:mm” (Local Time) or “YYYY-MM-DDThh:mmZ” (UTC). You can also specify a duration by using one of the following values, in which case the date_to parameter is left out.

last-hour

last-3-hours
   


last-6-hours

last-24-hours

last-3-days

last-7-days

last-15-days

last-30-days
query string  
date_to (optional) Date and time of the end of the query in the format “YYYY-MM-DDThh:mm” (Local Time) or “YYYY-MM-DDThh:mmZ” (UTC). You can also specify a duration by using the value “now”, in the case of omission it will be considered the default value. query string

Example Request

GET /analytics/products/1441740010/configurations/1453750337/metrics/data_transferred?date_from=2016-10-01T00%3A00Z&date_to=2016-11-01T00%3A00Z
Accept: application/json; version=1
Authorization: Token 583f8a9ca8d6d5ff2cb50f1d3c4d35cb8939f1bf

Example Response

HTTP/1.1 200 OK
{  
    "configurations":{  
       "1453750337":{  
          "data_transferred":{  
             "saved":[  
                [  
                   1475290800000.0,
                   0.0
                ],
                [  
                   1475334000000.0,
                   0.0
                ],
                [  
                   1475377200000.0,
                   0.0
                ],
                [  
                   1475420400000.0,
                   0.0
                ],
                [  
                   1475463600000.0,
                   0.0
                ],
                [  
                   1475506800000.0,
                   0.0
                ],
                [  
                   1475550000000.0,
                   0.0
                ],
                [  
                   1475593200000.0,
                   0.0
                ],
                [  
                   1475636400000.0,
                   0.0
                ],
                [  
                   1475679600000.0,
                   0.0
                ],
                [  
                   1475722800000.0,
                   0.0
                ],
                [  
                   1475766000000.0,
                   0.0
                ],
                [  
                   1475809200000.0,
                   0.0
                ],
                [  
                   1475852400000.0,
                   0.0
                ],
                [  
                   1475895600000.0,
                   0.0
                ],
                [  
                   1475938800000.0,
                   0.0
                ],
                [  
                   1475982000000.0,
                   0.0
                ],
                [  
                   1476025200000.0,
                   0.0
                ],
                [  
                   1476068400000.0,
                   0.0
                ],
                [  
                   1476111600000.0,
                   0.0
                ],
                [  
                   1476154800000.0,
                   0.0
                ],
                [  
                   1476198000000.0,
                   0.0
                ],
                [  
                   1476241200000.0,
                   0.0
                ],
                [  
                   1476284400000.0,
                   0.0
                ],
                [  
                   1476327600000.0,
                   0.0
                ],
                [  
                   1476370800000.0,
                   0.0
                ],
                [  
                   1476414000000.0,
                   0.0
                ],
                [  
                   1476457200000.0,
                   0.0
                ],
                [  
                   1476500400000.0,
                   0.0
                ],
                [  
                   1476543600000.0,
                   0.0
                ],
                [  
                   1476586800000.0,
                   0.0
                ],
                [  
                   1476630000000.0,
                   0.0
                ],
                [  
                   1476673200000.0,
                   0.0
                ],
                [  
                   1476716400000.0,
                   0.0
                ],
                [  
                   1476759600000.0,
                   0.0
                ],
                [  
                   1476802800000.0,
                   0.0
                ],
                [  
                   1476846000000.0,
                   0.0
                ],
                [  
                   1476889200000.0,
                   0.0
                ],
                [  
                   1476932400000.0,
                   0.0
                ],
                [  
                   1476975600000.0,
                   0.0
                ],
                [  
                   1477018800000.0,
                   0.0
                ],
                [  
                   1477062000000.0,
                   0.0
                ],
                [  
                   1477105200000.0,
                   0.0
                ],
                [  
                   1477148400000.0,
                   0.0
                ],
                [  
                   1477191600000.0,
                   0.0
                ],
                [  
                   1477234800000.0,
                   0.0
                ],
                [  
                   1477278000000.0,
                   0.0
                ],
                [  
                   1477321200000.0,
                   0.0
                ],
                [  
                   1477364400000.0,
                   0.0
                ],
                [  
                   1477407600000.0,
                   0.0
                ],
                [  
                   1477450800000.0,
                   0.0
                ],
                [  
                   1477494000000.0,
                   0.0
                ],
                [  
                   1477537200000.0,
                   0.0
                ],
                [  
                   1477580400000.0,
                   0.0
                ],
                [  
                   1477623600000.0,
                   0.0
                ],
                [  
                   1477666800000.0,
                   0.0
                ],
                [  
                   1477710000000.0,
                   0.0
                ],
                [  
                   1477753200000.0,
                   0.0
                ],
                [  
                   1477796400000.0,
                   0.0
                ],
                [  
                   1477839600000.0,
                   0.0
                ],
                [  
                   1477882800000.0,
                   0.0
                ],
                [  
                   1477926000000.0,
                   0.0
                ]
             ],
             "total":[  
                [  
                   1475290800000.0,
                   0.0
                ],
                [  
                   1475334000000.0,
                   0.0
                ],
                [  
                   1475377200000.0,
                   0.0
                ],
                [  
                   1475420400000.0,
                   0.0
                ],
                [  
                   1475463600000.0,
                   0.0
                ],
                [  
                   1475506800000.0,
                   0.0
                ],
                [  
                   1475550000000.0,
                   0.0
                ],
                [  
                   1475593200000.0,
                   0.0
                ],
                [  
                   1475636400000.0,
                   0.0
                ],
                [  
                   1475679600000.0,
                   0.0
                ],
                [  
                   1475722800000.0,
                   0.0
                ],
                [  
                   1475766000000.0,
                   0.0
                ],
                [  
                   1475809200000.0,
                   0.0
                ],
                [  
                   1475852400000.0,
                   0.0
                ],
                [  
                   1475895600000.0,
                   0.0
                ],
                [  
                   1475938800000.0,
                   0.0
                ],
                [  
                   1475982000000.0,
                   0.0
                ],
                [  
                   1476025200000.0,
                   0.0
                ],
                [  
                   1476068400000.0,
                   0.0
                ],
                [  
                   1476111600000.0,
                   0.0
                ],
                [  
                   1476154800000.0,
                   0.0
                ],
                [  
                   1476198000000.0,
                   0.0
                ],
                [  
                   1476241200000.0,
                   0.0
                ],
                [  
                   1476284400000.0,
                   0.0
                ],
                [  
                   1476327600000.0,
                   0.0
                ],
                [  
                   1476370800000.0,
                   0.0
                ],
                [  
                   1476414000000.0,
                   0.0
                ],
                [  
                   1476457200000.0,
                   0.0
                ],
                [  
                   1476500400000.0,
                   0.0
                ],
                [  
                   1476543600000.0,
                   0.0
                ],
                [  
                   1476586800000.0,
                   0.0
                ],
                [  
                   1476630000000.0,
                   0.0
                ],
                [  
                   1476673200000.0,
                   0.0
                ],
                [  
                   1476716400000.0,
                   0.0
                ],
                [  
                   1476759600000.0,
                   0.0
                ],
                [  
                   1476802800000.0,
                   0.0
                ],
                [  
                   1476846000000.0,
                   0.0
                ],
                [  
                   1476889200000.0,
                   0.0
                ],
                [  
                   1476932400000.0,
                   0.0
                ],
                [  
                   1476975600000.0,
                   0.0
                ],
                [  
                   1477018800000.0,
                   0.0
                ],
                [  
                   1477062000000.0,
                   0.0
                ],
                [  
                   1477105200000.0,
                   0.0
                ],
                [  
                   1477148400000.0,
                   0.0
                ],
                [  
                   1477191600000.0,
                   0.0
                ],
                [  
                   1477234800000.0,
                   0.0
                ],
                [  
                   1477278000000.0,
                   0.0
                ],
                [  
                   1477321200000.0,
                   0.0
                ],
                [  
                   1477364400000.0,
                   0.0
                ],
                [  
                   1477407600000.0,
                   0.0
                ],
                [  
                   1477450800000.0,
                   0.0
                ],
                [  
                   1477494000000.0,
                   0.0
                ],
                [  
                   1477537200000.0,
                   0.0
                ],
                [  
                   1477580400000.0,
                   0.0
                ],
                [  
                   1477623600000.0,
                   0.0
                ],
                [  
                   1477666800000.0,
                   0.0
                ],
                [  
                   1477710000000.0,
                   0.0
                ],
                [  
                   1477753200000.0,
                   0.0
                ],
                [  
                   1477796400000.0,
                   0.0
                ],
                [  
                   1477839600000.0,
                   0.0
                ],
                [  
                   1477882800000.0,
                   0.0
                ],
                [  
                   1477926000000.0,
                   0.0
                ]
             ],
             "http":[  
                [  
                   1475290800000.0,
                   0.0
                ],
                [  
                   1475334000000.0,
                   0.0
                ],
                [  
                   1475377200000.0,
                   0.0
                ],
                [  
                   1475420400000.0,
                   0.0
                ],
                [  
                   1475463600000.0,
                   0.0
                ],
                [  
                   1475506800000.0,
                   0.0
                ],
                [  
                   1475550000000.0,
                   0.0
                ],
                [  
                   1475593200000.0,
                   0.0
                ],
                [  
                   1475636400000.0,
                   0.0
                ],
                [  
                   1475679600000.0,
                   0.0
                ],
                [  
                   1475722800000.0,
                   0.0
                ],
                [  
                   1475766000000.0,
                   0.0
                ],
                [  
                   1475809200000.0,
                   0.0
                ],
                [  
                   1475852400000.0,
                   0.0
                ],
                [  
                   1475895600000.0,
                   0.0
                ],
                [  
                   1475938800000.0,
                   0.0
                ],
                [  
                   1475982000000.0,
                   0.0
                ],
                [  
                   1476025200000.0,
                   0.0
                ],
                [  
                   1476068400000.0,
                   0.0
                ],
                [  
                   1476111600000.0,
                   0.0
                ],
                [  
                   1476154800000.0,
                   0.0
                ],
                [  
                   1476198000000.0,
                   0.0
                ],
                [  
                   1476241200000.0,
                   0.0
                ],
                [  
                   1476284400000.0,
                   0.0
                ],
                [  
                   1476327600000.0,
                   0.0
                ],
                [  
                   1476370800000.0,
                   0.0
                ],
                [  
                   1476414000000.0,
                   0.0
                ],
                [  
                   1476457200000.0,
                   0.0
                ],
                [  
                   1476500400000.0,
                   0.0
                ],
                [  
                   1476543600000.0,
                   0.0
                ],
                [  
                   1476586800000.0,
                   0.0
                ],
                [  
                   1476630000000.0,
                   0.0
                ],
                [  
                   1476673200000.0,
                   0.0
                ],
                [  
                   1476716400000.0,
                   0.0
                ],
                [  
                   1476759600000.0,
                   0.0
                ],
                [  
                   1476802800000.0,
                   0.0
                ],
                [  
                   1476846000000.0,
                   0.0
                ],
                [  
                   1476889200000.0,
                   0.0
                ],
                [  
                   1476932400000.0,
                   0.0
                ],
                [  
                   1476975600000.0,
                   0.0
                ],
                [  
                   1477018800000.0,
                   0.0
                ],
                [  
                   1477062000000.0,
                   0.0
                ],
                [  
                   1477105200000.0,
                   0.0
                ],
                [  
                   1477148400000.0,
                   0.0
                ],
                [  
                   1477191600000.0,
                   0.0
                ],
                [  
                   1477234800000.0,
                   0.0
                ],
                [  
                   1477278000000.0,
                   0.0
                ],
                [  
                   1477321200000.0,
                   0.0
                ],
                [  
                   1477364400000.0,
                   0.0
                ],
                [  
                   1477407600000.0,
                   0.0
                ],
                [  
                   1477450800000.0,
                   0.0
                ],
                [  
                   1477494000000.0,
                   0.0
                ],
                [  
                   1477537200000.0,
                   0.0
                ],
                [  
                   1477580400000.0,
                   0.0
                ],
                [  
                   1477623600000.0,
                   0.0
                ],
                [  
                   1477666800000.0,
                   0.0
                ],
                [  
                   1477710000000.0,
                   0.0
                ],
                [  
                   1477753200000.0,
                   0.0
                ],
                [  
                   1477796400000.0,
                   0.0
                ],
                [  
                   1477839600000.0,
                   0.0
                ],
                [  
                   1477882800000.0,
                   0.0
                ],
                [  
                   1477926000000.0,
                   0.0
                ]
             ],
             "missed":[  
                [  
                   1475290800000.0,
                   0.0
                ],
                [  
                   1475334000000.0,
                   0.0
                ],
                [  
                   1475377200000.0,
                   0.0
                ],
                [  
                   1475420400000.0,
                   0.0
                ],
                [  
                   1475463600000.0,
                   0.0
                ],
                [  
                   1475506800000.0,
                   0.0
                ],
                [  
                   1475550000000.0,
                   0.0
                ],
                [  
                   1475593200000.0,
                   0.0
                ],
                [  
                   1475636400000.0,
                   0.0
                ],
                [  
                   1475679600000.0,
                   0.0
                ],
                [  
                   1475722800000.0,
                   0.0
                ],
                [  
                   1475766000000.0,
                   0.0
                ],
                [  
                   1475809200000.0,
                   0.0
                ],
                [  
                   1475852400000.0,
                   0.0
                ],
                [  
                   1475895600000.0,
                   0.0
                ],
                [  
                   1475938800000.0,
                   0.0
                ],
                [  
                   1475982000000.0,
                   0.0
                ],
                [  
                   1476025200000.0,
                   0.0
                ],
                [  
                   1476068400000.0,
                   0.0
                ],
                [  
                   1476111600000.0,
                   0.0
                ],
                [  
                   1476154800000.0,
                   0.0
                ],
                [  
                   1476198000000.0,
                   0.0
                ],
                [  
                   1476241200000.0,
                   0.0
                ],
                [  
                   1476284400000.0,
                   0.0
                ],
                [  
                   1476327600000.0,
                   0.0
                ],
                [  
                   1476370800000.0,
                   0.0
                ],
                [  
                   1476414000000.0,
                   0.0
                ],
                [  
                   1476457200000.0,
                   0.0
                ],
                [  
                   1476500400000.0,
                   0.0
                ],
                [  
                   1476543600000.0,
                   0.0
                ],
                [  
                   1476586800000.0,
                   0.0
                ],
                [  
                   1476630000000.0,
                   0.0
                ],
                [  
                   1476673200000.0,
                   0.0
                ],
                [  
                   1476716400000.0,
                   0.0
                ],
                [  
                   1476759600000.0,
                   0.0
                ],
                [  
                   1476802800000.0,
                   0.0
                ],
                [  
                   1476846000000.0,
                   0.0
                ],
                [  
                   1476889200000.0,
                   0.0
                ],
                [  
                   1476932400000.0,
                   0.0
                ],
                [  
                   1476975600000.0,
                   0.0
                ],
                [  
                   1477018800000.0,
                   0.0
                ],
                [  
                   1477062000000.0,
                   0.0
                ],
                [  
                   1477105200000.0,
                   0.0
                ],
                [  
                   1477148400000.0,
                   0.0
                ],
                [  
                   1477191600000.0,
                   0.0
                ],
                [  
                   1477234800000.0,
                   0.0
                ],
                [  
                   1477278000000.0,
                   0.0
                ],
                [  
                   1477321200000.0,
                   0.0
                ],
                [  
                   1477364400000.0,
                   0.0
                ],
                [  
                   1477407600000.0,
                   0.0
                ],
                [  
                   1477450800000.0,
                   0.0
                ],
                [  
                   1477494000000.0,
                   0.0
                ],
                [  
                   1477537200000.0,
                   0.0
                ],
                [  
                   1477580400000.0,
                   0.0
                ],
                [  
                   1477623600000.0,
                   0.0
                ],
                [  
                   1477666800000.0,
                   0.0
                ],
                [  
                   1477710000000.0,
                   0.0
                ],
                [  
                   1477753200000.0,
                   0.0
                ],
                [  
                   1477796400000.0,
                   0.0
                ],
                [  
                   1477839600000.0,
                   0.0
                ],
                [  
                   1477882800000.0,
                   0.0
                ],
                [  
                   1477926000000.0,
                   0.0
                ]
             ],
             "https":[  
                [  
                   1475290800000.0,
                   0.0
                ],
                [  
                   1475334000000.0,
                   0.0
                ],
                [  
                   1475377200000.0,
                   0.0
                ],
                [  
                   1475420400000.0,
                   0.0
                ],
                [  
                   1475463600000.0,
                   0.0
                ],
                [  
                   1475506800000.0,
                   0.0
                ],
                [  
                   1475550000000.0,
                   0.0
                ],
                [  
                   1475593200000.0,
                   0.0
                ],
                [  
                   1475636400000.0,
                   0.0
                ],
                [  
                   1475679600000.0,
                   0.0
                ],
                [  
                   1475722800000.0,
                   0.0
                ],
                [  
                   1475766000000.0,
                   0.0
                ],
                [  
                   1475809200000.0,
                   0.0
                ],
                [  
                   1475852400000.0,
                   0.0
                ],
                [  
                   1475895600000.0,
                   0.0
                ],
                [  
                   1475938800000.0,
                   0.0
                ],
                [  
                   1475982000000.0,
                   0.0
                ],
                [  
                   1476025200000.0,
                   0.0
                ],
                [  
                   1476068400000.0,
                   0.0
                ],
                [  
                   1476111600000.0,
                   0.0
                ],
                [  
                   1476154800000.0,
                   0.0
                ],
                [  
                   1476198000000.0,
                   0.0
                ],
                [  
                   1476241200000.0,
                   0.0
                ],
                [  
                   1476284400000.0,
                   0.0
                ],
                [  
                   1476327600000.0,
                   0.0
                ],
                [  
                   1476370800000.0,
                   0.0
                ],
                [  
                   1476414000000.0,
                   0.0
                ],
                [  
                   1476457200000.0,
                   0.0
                ],
                [  
                   1476500400000.0,
                   0.0
                ],
                [  
                   1476543600000.0,
                   0.0
                ],
                [  
                   1476586800000.0,
                   0.0
                ],
                [  
                   1476630000000.0,
                   0.0
                ],
                [  
                   1476673200000.0,
                   0.0
                ],
                [  
                   1476716400000.0,
                   0.0
                ],
                [  
                   1476759600000.0,
                   0.0
                ],
                [  
                   1476802800000.0,
                   0.0
                ],
                [  
                   1476846000000.0,
                   0.0
                ],
                [  
                   1476889200000.0,
                   0.0
                ],
                [  
                   1476932400000.0,
                   0.0
                ],
                [  
                   1476975600000.0,
                   0.0
                ],
                [  
                   1477018800000.0,
                   0.0
                ],
                [  
                   1477062000000.0,
                   0.0
                ],
                [  
                   1477105200000.0,
                   0.0
                ],
                [  
                   1477148400000.0,
                   0.0
                ],
                [  
                   1477191600000.0,
                   0.0
                ],
                [  
                   1477234800000.0,
                   0.0
                ],
                [  
                   1477278000000.0,
                   0.0
                ],
                [  
                   1477321200000.0,
                   0.0
                ],
                [  
                   1477364400000.0,
                   0.0
                ],
                [  
                   1477407600000.0,
                   0.0
                ],
                [  
                   1477450800000.0,
                   0.0
                ],
                [  
                   1477494000000.0,
                   0.0
                ],
                [  
                   1477537200000.0,
                   0.0
                ],
                [  
                   1477580400000.0,
                   0.0
                ],
                [  
                   1477623600000.0,
                   0.0
                ],
                [  
                   1477666800000.0,
                   0.0
                ],
                [  
                   1477710000000.0,
                   0.0
                ],
                [  
                   1477753200000.0,
                   0.0
                ],
                [  
                   1477796400000.0,
                   0.0
                ],
                [  
                   1477839600000.0,
                   0.0
                ],
                [  
                   1477882800000.0,
                   0.0
                ],
                [  
                   1477926000000.0,
                   0.0
                ]
             ]
          }
       }
    }
}

6. Look up the historical data of a dimension for a metric for a setting

Return the historical data set of a dimension for a stored metric for a setting of the product.

GET /analytics/products/:prod_id/configurations/:conf_id/metrics/:metric_name/dimensions/:dim_name

Permission necessary: Analytics

Parameter Description Type of Parameter Type of Data
Authorization (mandatory) Authentication through the Token, previously created through the endpoint of Token Creation.

e.g.:

Authorization: Token
583f8a9ca8d6d5ff2cb50f1d3c4d35cb8939f1bf
header string
:prod_id (mandatory) ID of the product to be queried.

ContentDelivery: ID 1441740010
   


Cloud Storage: ID 1441740013

Image Optimization: ID 1441110021

Live Ingest: ID 1467740028

Media Packager: ID 1441740014
path number  
:conf_id (mandatory) ID of the setting of the product to be queried.

PTo get the ID of a setting, look up the Settings List
path number
:metric_name (mandatory) Name of the metric to be queried To get a list of stored metrics, you can look up the endpoint of Metrics and Dimensions. path string
:dim_name (mandatory) Name of the dimension for the metric to be queried To get a list of stored metrics, you can look up the endpoint of Metrics and Dimensions path string
date_from (mandatory) Date and time of the start of the query in the format “YYYY-MM-DDThh:mm” (Local Time) or “YYYY-MM-DDThh:mmZ” (UTC). You can also specify a duration by using one of the following values, in which case the date_to parameter is left out.

last-hour

last-3-hours
   


last-6-hours

last-24-hours

last-3-days

last-7-days

last-15-days

last-30-days
query string  
date_to (optional) Date and time of the end of the query in the format “YYYY-MM-DDThh:mm” (Local Time) or “YYYY-MM-DDThh:mmZ” (UTC). You can also specify a duration by using the value “now”, in the case of omission it will be considered the default value. query string

Example Request

GET /analytics/products/1441740010/configurations/1453750337/metrics/data_transferred/dimensions/total?date_from=2016-10-01T00%3A00Z&date_to=2016-11-01T00%3A00Z
Accept: application/json; version=1
Authorization: Token 583f8a9ca8d6d5ff2cb50f1d3c4d35cb8939f1bf

Example Response

HTTP/1.1 200 OK
{  
    "configurations":{  
       "1453750337":{  
          "data_transferred":{  
             "total":[  
                [  
                   1475290800000.0,
                   0.0
                ],
                [  
                   1475334000000.0,
                   0.0
                ],
                [  
                   1475377200000.0,
                   0.0
                ],
                [  
                   1475420400000.0,
                   0.0
                ],
                [  
                   1475463600000.0,
                   0.0
                ],
                [  
                   1475506800000.0,
                   0.0
                ],
                [  
                   1475550000000.0,
                   0.0
                ],
                [  
                   1475593200000.0,
                   0.0
                ],
                [  
                   1475636400000.0,
                   0.0
                ],
                [  
                   1475679600000.0,
                   0.0
                ],
                [  
                   1475722800000.0,
                   0.0
                ],
                [  
                   1475766000000.0,
                   0.0
                ],
                [  
                   1475809200000.0,
                   0.0
                ],
                [  
                   1475852400000.0,
                   0.0
                ],
                [  
                   1475895600000.0,
                   0.0
                ],
                [  
                   1475938800000.0,
                   0.0
                ],
                [  
                   1475982000000.0,
                   0.0
                ],
                [  
                   1476025200000.0,
                   0.0
                ],
                [  
                   1476068400000.0,
                   0.0
                ],
                [  
                   1476111600000.0,
                   0.0
                ],
                [  
                   1476154800000.0,
                   0.0
                ],
                [  
                   1476198000000.0,
                   0.0
                ],
                [  
                   1476241200000.0,
                   0.0
                ],
                [  
                   1476284400000.0,
                   0.0
                ],
                [  
                   1476327600000.0,
                   0.0
                ],
                [  
                   1476370800000.0,
                   0.0
                ],
                [  
                   1476414000000.0,
                   0.0
                ],
                [  
                   1476457200000.0,
                   0.0
                ],
                [  
                   1476500400000.0,
                   0.0
                ],
                [  
                   1476543600000.0,
                   0.0
                ],
                [  
                   1476586800000.0,
                   0.0
                ],
                [  
                   1476630000000.0,
                   0.0
                ],
                [  
                   1476673200000.0,
                   0.0
                ],
                [  
                   1476716400000.0,
                   0.0
                ],
                [  
                   1476759600000.0,
                   0.0
                ],
                [  
                   1476802800000.0,
                   0.0
                ],
                [  
                   1476846000000.0,
                   0.0
                ],
                [  
                   1476889200000.0,
                   0.0
                ],
                [  
                   1476932400000.0,
                   0.0
                ],
                [  
                   1476975600000.0,
                   0.0
                ],
                [  
                   1477018800000.0,
                   0.0
                ],
                [  
                   1477062000000.0,
                   0.0
                ],
                [  
                   1477105200000.0,
                   0.0
                ],
                [  
                   1477148400000.0,
                   0.0
                ],
                [  
                   1477191600000.0,
                   0.0
                ],
                [  
                   1477234800000.0,
                   0.0
                ],
                [  
                   1477278000000.0,
                   0.0
                ],
                [  
                   1477321200000.0,
                   0.0
                ],
                [  
                   1477364400000.0,
                   0.0
                ],
                [  
                   1477407600000.0,
                   0.0
                ],
                [  
                   1477450800000.0,
                   0.0
                ],
                [  
                   1477494000000.0,
                   0.0
                ],
                [  
                   1477537200000.0,
                   0.0
                ],
                [  
                   1477580400000.0,
                   0.0
                ],
                [  
                   1477623600000.0,
                   0.0
                ],
                [  
                   1477666800000.0,
                   0.0
                ],
                [  
                   1477710000000.0,
                   0.0
                ],
                [  
                   1477753200000.0,
                   0.0
                ],
                [  
                   1477796400000.0,
                   0.0
                ],
                [  
                   1477839600000.0,
                   0.0
                ],
                [  
                   1477882800000.0,
                   0.0
                ],
                [  
                   1477926000000.0,
                   0.0
                ]
             ]
          }
       }
    }
}

Didn’t find what you were looking for? Open a ticket.