Insights

Get log of all messages passing through your flows and usage information.

get
Get Logs and Histogram

https://api.appmixer.com/logs
Get logs of a flow or all logs. Filtering and sorting supported. curl "https://api.appmixer.com/logs?from=0&size=30&sort=@timestamp:desc&query=@timestamp:[2019-03-04+TO+2019-03-08]+AND+%2BflowId:9c4673d7-a550-45a2-91c1-ad057fac0385" -H "Authorization: Bearer [ACCESS_TOKEN]" curl "https://api.appmixer.com/logs?from=0&size=30&sort=@timestamp:desc&query=@timestamp:[2019-03-04+TO+2019-03-08]" -H "Authorization: Bearer [ACCESS_TOKEN]"
Request
Response
Query Parameters
exclude
optional
string
A comma separated field names to exclude from the log objects returned.
query
optional
string
Query string. Uses the Lucene query syntax: https://lucene.apache.org/core/2_9_4/queryparsersyntax.html
sort
optional
string
A paramter to sort by. Optionally followed by ":desc" to change the order.
size
optional
number
Maximum number of logs returned. Useful for pagination.
from
optional
number
Index of the first log returned. Useful for pagination.
200: OK
{
"buckets": [
{
"key_as_string": "2018-04-16T00:00:00.000Z",
"key": 1523836800000,
"doc_count": 35
},
{
"key_as_string": "2018-04-17T00:00:00.000Z",
"key": 1523923200000,
"doc_count": 60
}
],
"hits": [
{
"severity": "info",
"componentType": "appmixer.slack.list.SendChannelMessage",
"componentId": "a1cda3ff-8e20-41df-8e7d-8e52419e6d17",
"portType": "in",
"senderId": "c062e744-2de1-4c80-afce-713be3145315",
"@timestamp": "2018-04-06T14:02:04.517Z",
"port": "message",
"senderType": "appmixer.utils.controls.OnStart",
"correlationId": "a5128135-3a23-4837-92f8-9dc099ff0700",
"id": "339d216c-48e0-4110-9210-a4c176b30f84:a1cda3ff-8e20-41df-8e7d-8e52419e6d17:input-queue",
"gridTimestamp": "2018-04-06T14:02:04.472Z",
"flowId": "339d216c-48e0-4110-9210-a4c176b30f84",
"entity": "input-queue",
"_id": "AWKbQ6Vr9I6rzDWu4NbG",
"_index": "appmixer-201804"
},
{
"severity": "info",
"componentType": "appmixer.slack.list.SendChannelMessage",
"componentId": "a1cda3ff-8e20-41df-8e7d-8e52419e6d17",
"portType": "in",
"senderId": "c062e744-2de1-4c80-afce-713be3145315",
"@timestamp": "2018-04-03T20:22:10.971Z",
"port": "message",
"senderType": "appmixer.utils.controls.OnStart",
"correlationId": "7ed0bbb4-0b05-4469-8168-401cd909e5d2",
"id": "339d216c-48e0-4110-9210-a4c176b30f84:a1cda3ff-8e20-41df-8e7d-8e52419e6d17:input-queue",
"gridTimestamp": "2018-04-03T20:22:10.927Z",
"flowId": "339d216c-48e0-4110-9210-a4c176b30f84",
"entity": "input-queue",
"_id": "AWKNLJEg9I6rzDWu3F8E",
"_index": "appmixer-201804"
}
]
}

get
Get Log Detail

https://api.appmixer.com/log/:logIndex/:logId
Get a detail of a log. Log detail gives you information on the actual data of the message between two components. curl "https://api.appmixer.com/log/93198d48-e680-49bb-855c-58c2c11d1857/appmixer-201804/AWKbQ6Vr9I6rzDWu4NbG" -H "Authorization: Bearer [ACCESS_TOKEN]"
Request
Response
Path Parameters
logId
required
string
Log ID. Use the "_id" property of the log object returned from flow logs.
logIndex
required
string
Log index. Use the "_index" property of the log object returned from flow logs.
200: OK
{
"_index": "appmixer-201804",
"_type": "engine",
"_id": "AWKbQ6Vr9I6rzDWu4NbG",
"_version": 1,
"_source": {
"severity": "info",
"msg": {
"text": "Hey Slack!"
},
"componentType": "appmixer.slack.list.SendChannelMessage",
"componentId": "a1cda3ff-8e20-41df-8e7d-8e52419e6d17",
"bundleId": "86a83327-1b13-4cab-a7cd-bbcce5f2402d",
"portType": "in",
"senderId": "c062e744-2de1-4c80-afce-713be3145315",
"@timestamp": "2018-04-06T14:02:04.517Z",
"port": "message",
"@version": "1",
"senderType": "appmixer.utils.controls.OnStart",
"correlationId": "a5128135-3a23-4837-92f8-9dc099ff0700",
"id": "339d216c-48e0-4110-9210-a4c176b30f84:a1cda3ff-8e20-41df-8e7d-8e52419e6d17:input-queue",
"gridTimestamp": "2018-04-06T14:02:04.472Z",
"flowId": "339d216c-48e0-4110-9210-a4c176b30f84"
}
}

get
Get Usage Information

https://api.appmixer.com/telemetry
Get usage information. curl "https://api.appmixer.com/telemetry?from=2018-03-17&to=2018-04-17" -H "Authorization: Bearer [ACCESS_TOKEN]"
Request
Response
Query Parameters
to
optional
string
To date.
from
optional
string
From date.
200: OK
{
"messageCounts": {
"from": "2018-03-17",
"to": "2018-04-17",
"count": 348,
"userId": "58593f07c3ee4f239dc69ff7"
},
"runningFlows": {
"userId": "58593f07c3ee4f239dc69ff7",
"count": 4
},
"activeConnectors": {
"userId": "58593f07c3ee4f239dc69ff7",
"count": 8
},
"usedApps": [
"appmixer.utils",
"appmixer.slack",
"appmixer.asana",
"appmixer.salesforce",
"appmixer.twilio"
]
}

‚Äč