Skip to content
tristanls edited this page Feb 17, 2013 · 4 revisions

GET https://telemetry.api.worker.crxtalk.com/account

Retrieve latest telemetry for authorized account (up to 200 events).

HTTP method GET
Requires login true
Since Version 0.2.0

Request Headers

x-crosstalk-auth-token 5uua22922ausllwibb1amms7a761n23n4nasAJFDUA17711 required Crosstalk authorization token (from login)

Query Parameters

None.

Response fields

Response

count 2 Number of events returned
telemetry [ EVENT, EVENT ] An array of telemetry events (JSON objects)

Error

message Service Unavailable Error message

Example

GET https://telemetry.worker.crxtalk.com/account

// Request Headers
{ 'x-crosstalk-auth-token' : '5uua22922ausllwibb1amms7a761n23n4nasAJFDUA17711' }

Response:

200 OK

{
  "response" : {
    "count" : 2,
    "telemetry" : [{
      "_entity" : "crosstalk-drone-worker-1b7ccf50-4d25-11e2-9019-315587d9d78d",
      "_event" : "emit",
      "_timestamp" : "2013-02-04T01:45:00.355Z",
      "_uuid" : "a60359b1-6f6d-4f40-b05e-0d97e05ad40b",
      "_worker" : "[email protected]",
      "account" : "@tristan",
      "address" : "~crosstalk",
      "message" : "api.subdomain.authorize",
      "organization" : "~crosstalk",
      "userDataBytesSent" : 40
    },{
      "_entity" : "crosstalk-drone-worker-27a75110-370f-11e2-83f1-497b8454a70d",
      "_event" : "receive",
      "_timestamp" : "2013-02-04T01:45:00.464Z",
      "_uuid" : "3b0578b2-4266-4519-81f1-93145306cd42",
      "_worker" : "[email protected]",
      "emitAccount" : "@tristan",
      "emitOrganization" : "~crosstalk",
      "message" : "api.aws.signature.version4",
      "receiveAccount" : "@tristan",
      "receiveOrganization" : "~crosstalk"
    }]
  }
}

Error:

503 Service Unavailable

{
  "error" : {
    "message" : "Service Unavailable"
  }
}
Clone this wiki locally