GET
/
fastedge
/
v1
/
stats
/
app_duration
Python
from datetime import datetime
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
response = client.fastedge.statistics.get_duration_series(
    from_=datetime.fromisoformat("2019-12-27T18:11:19.117"),
    step=0,
    to=datetime.fromisoformat("2019-12-27T18:11:19.117"),
)
print(response.stats)
{
  "stats": [
    {
      "time": "2023-11-07T05:31:56Z",
      "min": 123,
      "max": 123,
      "avg": 123,
      "median": 123,
      "perc75": 123,
      "perc90": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Query Parameters

id
integer

App ID

from
string<date-time>
required

Reporting period start time, RFC3339 format

to
string<date-time>
required

Reporting period end time (not included into reporting period), RFC3339 format

step
integer
default:60
required

Reporting granularity, in seconds

network
string<string>

Network name

Response

200
application/json

Ok

The response is of type object.