List Streams
GET
https://api.lytics.io/v2/streamList all streams in the account
Hide Parameters
Query Parameters
account_idoptionalstringHeaders
AuthorizationoptionalstringSample Response
Status|200 OK
{
"_meta": {},
"data": [
{
"account_id": "string",
"aid": 0,
"anomaly_rule": {
"aid": 0,
"checks": [
{
"allowable_violations": 0,
"interval": "string",
"lookback_count": 0,
"max_threshold": 0,
"metric_type": "string",
"min_threshold": 0,
"type": "string",
"variance_pct": 0
}
],
"created": "string",
"id": "string",
"subject_id": "string",
"subject_type": "string",
"updated": "string"
},
"avg_event_size": 0,
"channel": "string",
"count": 0,
"created": "2019-08-24T14:15:22Z",
"description": "string",
"hidden": true,
"id": "string",
"internal": true,
"jobs": [
"string"
],
"label": "string",
"last_msg_ts": "2019-08-24T14:15:22Z",
"last_received_ts": "2019-08-24T14:15:22Z",
"last_update_ts": "2019-08-24T14:15:22Z",
"method": "string",
"name": "string",
"providers": [
"string"
],
"slug": "string",
"tables": [
"string"
],
"updated": "2019-08-24T14:15:22Z"
}
],
"request_id": "string",
"status": 0
}List Stream rules
GET
https://api.lytics.io/v2/stream/ruleList all stream rules in the account
Hide Parameters
Query Parameters
account_idoptionalstringHeaders
AuthorizationoptionalstringSample Response
Status
Create stream rule
POST
https://api.lytics.io/v2/stream/ruleGet Stream rule
GET
https://api.lytics.io/v2/stream/rule/{id}Get stream rule by id
Hide Parameters
URL Parameters
idrequiredstringQuery Parameters
account_idoptionalstringHeaders
AuthorizationoptionalstringSample Response
Status|
Update stream rule
POST
https://api.lytics.io/v2/stream/rule/{id}Update stream rule
PUT
https://api.lytics.io/v2/stream/rule/{id}Delete stream rule
DELETE
https://api.lytics.io/v2/stream/rule/{id}Delete stream rule by id
Hide Parameters
URL Parameters
idrequiredstringQuery Parameters
account_idoptionalstringHeaders
AuthorizationoptionalstringSample Response
Status|
Get Stream
GET
https://api.lytics.io/v2/stream/{name}Get Stream Events
GET
https://api.lytics.io/v2/stream/{name}/eventsGet a list of recent events in the stream
Hide Parameters
URL Parameters
namerequiredstringQuery Parameters
account_idoptionalstringHeaders
AuthorizationoptionalstringSample Response
Status|200 OK
{
"_meta": {},
"data": [
{}
],
"request_id": "string",
"status": 0
}Get Stream Stats
GET
https://api.lytics.io/v2/stream/{name}/statsGet stats for all fields in the stream
Hide Parameters
URL Parameters
namerequiredstringQuery Parameters
account_idoptionalstringHeaders
Authorizationoptionalstring