Records

Trace records

GEThttps://cloud-api.calyptia.com/v1/trace_sessions/{sessionID}/records
Authorization
Path parameters
sessionID*string (uuid)
Response

OK

Headers
Body
id*string (uuid)
sessionID*string (uuid)
type*TraceRecordKind (enum)
1234
trace_id*string
Example: "trace.5"
start_time*integer (int64)

Unix timestamp with seconds precision.

Example: 1658953439
end_time*integer (int64)

Unix timestamp with seconds precision.

Example: 1658953439
plugin_instance*string
Example: "nest.2"
plugin_alias*string
Example: "nest_2"
return_code*integer
records*array of object
createdAt*string (date-time)
Request
const response = await fetch('https://cloud-api.calyptia.com/v1/trace_sessions/{sessionID}/records', {
    method: 'GET',
    headers: {
      "Authorization": "Bearer <token>"
    },
});
const data = await response.json();
Response
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "sessionID": "123e4567-e89b-12d3-a456-426614174000",
    "type": 1,
    "trace_id": "trace.5",
    "start_time": 1658953439,
    "end_time": 1658953439,
    "plugin_instance": "nest.2",
    "plugin_alias": "nest_2",
    "records": [
      {
        "timestamp": 1658953439,
        "record": "{\n  \"dummy\": \"dummy_0\",\n  \"powered_by\": \"calyptia\",\n  \"data\": {\n    \"key_name\": \"foo\",\n    \"key_cnt\": \"1\"\n  }\n}"
      }
    ],
    "createdAt": "2024-10-06T10:23:29.990Z"
  }
]