Submitting a Metric

This endpoint will update the metrics sent to it which will update in real time through TelemetryTV's display applications (notably the Boards).

post/metrics

Request

  • Base URL
    https://metrics.telemetrytv.com
  • URL
    https://metrics.telemetrytv.com/metrics
  • Auth
    API key in header Authorization

Request body

keystring required

The key of the metric to update

bucket_sizeinteger

Size of the bucket, in seconds

rangeinteger

The number of buckets to keep

timestampstring date-time

UNIX epoch timestamp

folderstring

The name of the folder

Response

200

account_idstring
bucket_sizeinteger
countinteger
created_atnumber
folder_idstring
idstring
kindstring
maxinteger
metricstring
mininteger
rangeinteger
real_timestampnumber
sourcestring
suminteger
timestampnumber
updated_atnumber
valueinteger

Example response

{
  "account_id": "5dba92731b5d034f7d8dca3d",
  "bucket_size": 1111,
  "count": 2,
  "created_at": 1574856145.772,
  "folder_id": "5dbac436f8a1296337b89197",
  "id": "5dde65d1f8a1296337ec4f71",
  "kind": "number",
  "max": 2222,
  "metric": "active_number",
  "min": 22,
  "range": 22,
  "real_timestamp": 1639488524.308,
  "source": "api",
  "sum": 2244,
  "timestamp": 1639488524.308,
  "updated_at": 1639488524.308,
  "value": 22
}

Changes

No recorded changes to this operation across all 1 revision of this API.