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

client = Gcore(
    api_key="My API Key",
)
response = client.fastedge.statistics.get_call_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",
      "count_by_status": [
        {
          "status": 123,
          "count": 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

from
string
required

Reporting period start time, RFC3339 format

to
string
required

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

step
integer
default:60
required

Reporting granularity, in seconds

id
integer

App ID

network
string

Network name

Response

200
application/json

Ok

The response is of type object.