Real-Time Analytics

Através da API do Analytics você pode consultar dados históricos de monitoramento de indicadores coletados a partir do tráfego de seu conteúdo e aplicações pela Azion.

Os dados estão agrupados de acordo com Produto, Configuração, Métrica e Dimensão.


1. Consulta lista de métricas e dimensões monitoradas

Consulta lista de nomes de métricas e respectivas dimensões para serem utilizadas como parâmetros nos demais endpoints de consulta de dados históricos do Analytics.

GET /analytics/metadata

Permissão necessária: Analytics

Parâmetro Descrição Tipo de Parâmetro Tipo de Dado
Authorization

(obrigatório)
A autenticação por Token previamente criado através do endpoint de Criação de Token.

ex.:

Authorization:
583f8a9ca8d6d5ff2cb50f1d3c4d35cb8939f1bf
header string

Exemplo de Requisição

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

Exemplo de Resposta

HTTP/2 200
{  
   "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. Consulta dados históricos agregados de uma métrica

Retorna a série histórica de dados de uma métrica coletados para todas as configurações agregadas do produto.

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

Permissão necessária: Analytics

Parâmetro Descrição Tipo de Parâmetro Tipo de Dado
Authorization

(obrigatório)
A autenticação por Token previamente criado através do endpoint de Criação de Token.

ex.:

Authorization:
583f8a9ca8d6d5ff2cb50f1d3c4d35cb8939f1bf
header string
:prod_id

(obrigatório)
ID do produto para ser consultado.
  • Content Delivery: ID 1441740010
  • Cloud Storage: ID 1441740013
  • Image Optimization: ID 1441110021
  • Live Ingest: ID 1467740028
  • Media Packager: ID 1441740014
path number
:metric_name

(obrigatório)
Nome da métrica que se deseja consultar. Para obter a lista de métricas coletadas, você pode consultar o endpoint de Métricas e Dimensões. path string
date_from

(obrigatório)
Data e horário de início da consulta no formato “YYYY-MM-DDThh:mm” (Local Time) ou “YYYY-MM-DDThh:mmZ” (UTC). Também poderá ser especificado duração utilizando um dos seguintes valores, sendo que nesse caso o parâmetro date_to deverá ser omitido:
  • 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

(opcional)
Data e horário de final da consulta no formato “YYYY-MM-DDThh:mm” (Local Time) ou “YYYY-MM-DDThh:mmZ” (UTC). Também poderá ser especificado duração utilizando o valor “now”, sendo que em caso de omissão será considerado como o valor default. query string

Exemplo de Requisição

GET /analytics/products/1441740010/aggregate/metrics/data_transferred?date_from=2016-10-01T00%3A00Z&date_to=2016-11-01T00%3A00Z
Accept: application/json; version=2
Authorization: Token 583f8a9ca8d6d5ff2cb50f1d3c4d35cb8939f1bf
HTTP/2 200
{  
   "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. Consulta dados históricos agregados de uma dimensão de uma métrica

Retorna a série histórica de dados de uma dimensão de uma métrica coletada para todas as configurações agregadas do produto.

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

Permissão necessária: Analytics

Parâmetro Descrição Tipo de Parâmetro Tipo de Dado
Authorization

(obrigatório)
A autenticação por Token previamente criado através do endpoint de Criação de Token.

ex.:

Authorization:
583f8a9ca8d6d5ff2cb50f1d3c4d35cb8939f1bf
header string
:prod_id

(obrigatório)
ID do produto para ser consultado.
  • Content Delivery: ID 1441740010
  • Cloud Storage: ID 1441740013
  • Image Optimization: ID 1441110021
  • Live Ingest: ID 1467740028
  • Media Packager: ID 1441740014
path number
:metric_name

(obrigatório)
Nome da métrica que se deseja consultar. Para obter a lista de métricas coletadas, você pode consultar o endpoint de Métricas e Dimensões. path string
:dim_name

(obrigatório)
Nome da dimensão da métrica que se deseja consultar. Para obter a lista de dimensões de cada métrica, você pode consultar o endpoint de Métricas e Dimensões. path string
date_from

(obrigatório)
Data e horário de início da consulta no formato “YYYY-MM-DDThh:mm” (Local Time) ou “YYYY-MM-DDThh:mmZ” (UTC). Também poderá ser especificado duração utilizando um dos seguintes valores, sendo que nesse caso o parâmetro date_to deverá ser omitido:
  • 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

(opcional)
Data e horário de final da consulta no formato “YYYY-MM-DDThh:mm” (Local Time) ou “YYYY-MM-DDThh:mmZ” (UTC). Também poderá ser especificado duração utilizando o valor “now”, sendo que em caso de omissão será considerado como o valor default. query string

Exemplo de Requisição

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=2
Authorization: Token 583f8a9ca8d6d5ff2cb50f1d3c4d35cb8939f1bf

Exemplo de Resposta

HTTP/2 200
{  
   "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. Consulta lista de configurações monitoradas

Retorna a lista de configurações monitoradas pelo Analytics, para ser utilizada nos demais endpoints.

GET /analytics/products/:prod_id/configurations

Permissão necessária: Analytics

Parâmetro Descrição Tipo de Parâmetro Tipo de Dado
Authorization

(obrigatório)
A autenticação por Token previamente criado através do endpoint de Criação de Token.

ex.:

Authorization:
583f8a9ca8d6d5ff2cb50f1d3c4d35cb8939f1bf
header string
:prod_id

(obrigatório)
ID do produto para ser consultado.
  • Content Delivery: ID 1441740010
  • Cloud Storage: ID 1441740013
  • Image Optimization: ID 1441110021
  • Live Ingest: ID 1467740028
  • Media Packager: ID 1441740014
path number

Exemplo de Requisição

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

5. Consulta dados históricos de uma métrica para uma configuração

Retorna a série histórica de dados de uma métrica coletados para uma configuração do produto.

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

Permissão necessária: Analytics

Parâmetro Descrição Tipo de Parâmetro Tipo de Dado
Authorization

(obrigatório)
A autenticação por Token previamente criado através do endpoint de Criação de Token.

ex.:

Authorization:
583f8a9ca8d6d5ff2cb50f1d3c4d35cb8939f1bf
header string
:prod_id

(obrigatório)
ID do produto para ser consultado.
  • Content Delivery: ID 1441740010
  • Cloud Storage: ID 1441740013
  • Image Optimization: ID 1441110021
  • Live Ingest: ID 1467740028
  • Media Packager: ID 1441740014
path number
:conf_id

(obrigatório)
ID da configuração do produto a ser consultado.

Para obter o ID de uma configuração, consulte a Lista de Configurações.
path number
:metric_name

(obrigatório)
Nome da métrica que se deseja consultar. Para obter a lista de métricas coletadas, você pode consultar o endpoint de Métricas e Dimensões. path string
date_from

(obrigatório)
Data e horário de início da consulta no formato “YYYY-MM-DDThh:mm” (Local Time) ou “YYYY-MM-DDThh:mmZ” (UTC). Também poderá ser especificado duração utilizando um dos seguintes valores, sendo que nesse caso o parâmetro date_to deverá ser omitido:
  • 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

(opcional)
Data e horário de final da consulta no formato “YYYY-MM-DDThh:mm” (Local Time) ou “YYYY-MM-DDThh:mmZ” (UTC). Também poderá ser especificado duração utilizando o valor “now”, sendo que em caso de omissão será considerado como o valor default. query string

Exemplo de Requisição

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=2
Authorization: Token 583f8a9ca8d6d5ff2cb50f1d3c4d35cb8939f1bf

Exemplo de Resposta

HTTP/2 200
{  
   "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. Consulta dados históricos de uma dimensão de uma métrica para uma configuração

Retorna a série histórica de dados de uma dimensão de uma métrica coletada para uma configuração do produto.

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

Permissão necessária: Analytics

Parâmetro Descrição Tipo de Parâmetro Tipo de Dado
Authorization

(obrigatório)
A autenticação por Token previamente criado através do endpoint de Criação de Token.

ex.:

Authorization:
583f8a9ca8d6d5ff2cb50f1d3c4d35cb8939f1bf
header string
:prod_id

(obrigatório)
ID do produto para ser consultado.
  • Content Delivery: ID 1441740010
  • Cloud Storage: ID 1441740013
  • Image Optimization: ID 1441110021
  • Live Ingest: ID 1467740028
  • Media Packager: ID 1441740014
path number
:conf_id

(obrigatório)
ID da configuração do produto a ser consultado.

Para obter o ID de uma configuração, consulte a Lista de Configurações.
path number
:metric_name

(obrigatório)
Nome da métrica que se deseja consultar. Para obter a lista de métricas coletadas, você pode consultar o endpoint de Métricas e Dimensões. path string
:dim_name

(obrigatório)
Nome da métrica que se deseja consultar. Para obter a lista de métricas coletadas, você pode consultar o endpoint de Métricas e Dimensões. path string
date_from

(obrigatório)
Data e horário de início da consulta no formato “YYYY-MM-DDThh:mm” (Local Time) ou “YYYY-MM-DDThh:mmZ” (UTC). Também poderá ser especificado duração utilizando um dos seguintes valores, sendo que nesse caso o parâmetro date_to deverá ser omitido:
  • 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

(opcional)
Data e horário de final da consulta no formato “YYYY-MM-DDThh:mm” (Local Time) ou “YYYY-MM-DDThh:mmZ” (UTC). Também poderá ser especificado duração utilizando o valor “now”, sendo que em caso de omissão será considerado como o valor default. query string

Exemplo de Requisição

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=2
Authorization: Token 583f8a9ca8d6d5ff2cb50f1d3c4d35cb8939f1bf

Exemplo de Resposta

HTTP/2 200
{  
   "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
               ]
            ]
         }
      }
   }
}

Não encontrou o que procurava? Abra um ticket.