Live Models¶
Get Live Models List¶
Gets the Live Job list. This API can be used to get the id of the desired Live Model.
Note
Jobs with testLive
as false
and type
as LIVE
are the Live Jobs for Common Model (i.e. M[0]).
Query Parameters¶
?type=
: Filter the Jobs by type. Set this toLIVE
.?status=
: Filter the Jobs by status. Set this toRUNNING
.?offset=
: Index to start for the next paginated request. Default value is0
.?limit=
: Number of items to include in each page result. There could be fewer items remaining than the specified value.?sort=
: Sort the items by time. Set this to-createTime
to get latest item first.
cURL request**¶
$ curl -H "Authorization: Bearer <token>" \
"<https://app3.falkonry.ai/api/1.2/accounts/xxxxxxxxxxxxxxx/jobs?type=LIVE&status=RUNNING&offset=0&limit=1000>"
Python¶
import requests
URL = 'https://app3.falkonry.ai/api/1.2/accounts/xxxxxxxxxxxxxxx/jobs?type=LIVE&status=RUNNING&offset=0&limit=1000'
TOKEN = '<token>'
HEADERS = {'Authorization': f'Bearer {TOKEN}'}
response = requests.get(URL, headers=HEADERS)
print(response.json())
Example response
[
{
"id": "828301734731530240",
"type": "entities.job",
"jobType": "LIVE",
"status": "RUNNING",
"tenant": "xxxxxxxxxxxxxxx",
"datastream": "yyyyyyyyyyyy",
"assessment": "zzzzzzzzzzzz",
"model": "mmmmmmmmmmmmmmm",
"baseTimeUnit": "nanos",
"spec": {
"assessment": "zzzzzzzzzzzz",
"datastream": "yyyyyyyyyyyy",
"model": "mmmmmmmmmmmmmmm",
"inputList": [
{
"id": "806836500704530433",
"key": "ml5p13e93q",
"name": "sensor1"
}
],
"outputList": [
{
"id": "821438338742902784",
"key": "explanations-ml5p13e93q",
"name": "Explanation-sensor1"
},
{
"id": "821438338835177472",
"key": "predictions",
"name": "Predictions"
},
{
"id": "821438338864537600",
"key": "confidences",
"name": "Confidences"
},
{
"id": "821438338931646464",
"key": "episodes",
"name": "Episodes"
}
]
},
"createTime": 1617552922662,
"updateTime": 1617552949478,
"createdBy": "740153935079641088",
"updatedBy": "740153935079641088",
"testLive": true,
"messages": [],
"currentState": {},
"transitions": [],
"links": []
}
]