Time Series of API Calls Counts

Get Historical Data

GET call-counts/historical/

Note

Authorized Roles: root, manager

It returns historical data by organization in a time period. When the amount of data found is greater than 100 points, it will be aggregated into 100 buckets.

Query Parameters
  • start_timestamp (float64) – Optional. Start timestamp

  • end_timestamp (float64) – Optional. End timestamp

EXAMPLE QUERY PARAMS
  ?start_timestamp=1616962929.0&end_timestamp=1635452529.0
Response JSON Object
  • timestamps (list-of-float64) – Timestamps

  • counts (list-of-uint64) – Counts array

EXAMPLE RESPONSE
  {
      "timestamps": [1616962929.0, 1616963929.0, 1616964929.0, 1635452529.0],
      "counts": [78, 0, 15, 40]
  }

Get Historical Data By Count Type

GET call-counts/historical/<str:count_type>/

Note

Authorized Roles: root, manager

It returns historical data by organization and count type in a time period. When the amount of data found is greater than 100 points, it will be aggregated into 100 buckets. The count types are: ACCOUNTS, ENDPOINTS or DBS.

The keys are:

  • ACCOUNTS: emails or names, depending on the type of account.

  • ENDPOINTS: names of endpoint groups and they are defined internally. The names will always be returned based on the samples found in the search.

  • DBS: db names created or deleted.

Query Parameters
  • timestamps (list-of-float64) – Timestamps

  • counts (list-of-uint64) – Counts array

EXAMPLE QUERY PARAMS
  ?start_timestamp=1616962929.0&end_timestamp=1635452529.0
Response JSON Object
  • timestamps (list-of-float64) – Timestamps

  • series (list-of-object) –

    Series

    Inner fields:

    • key (string) – Key

    • counts (list-of-uint64) – Counts

EXAMPLE RESPONSE
  {
      "timestamps": [1616962929.0, 1616963929.0, 1635452529.0],
      "series": [
          {
              "key": "USERINTERACTION",
              "counts": [78, 0, 40]
          },
          {
              "key": "USERRATING",
              "counts": [2, 45, 3]
          },
      ]
  }