Telemetry
Report runtime usage
Deliver one sealed usage batch from an installed runtime (CLI credential; a condition of the SimForge account and download terms). A v2 batch is refused unless its agreementVersion is the account’s latest accepted agreement and lists the v2 records
POST
/
api
/
v1
/
telemetry
Report runtime usage
curl --request POST \
--url https://dev.simforge.ai/api/v1/telemetry \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"schema": "simforge.usage-batch/v1",
"batchId": "<string>",
"sealedAt": "<string>",
"accountId": "<string>",
"installId": "<string>",
"machine": {
"os": "<string>",
"arch": "<string>",
"gpus": [
{
"model": "<string>",
"vramMib": 500000000000,
"driver": "<string>"
}
],
"gpuCount": 8
},
"droppedEvents": 500000000000,
"events": [
{
"eventId": "<string>",
"finishedAt": "<string>",
"runtimeVersion": "<string>",
"cliVersion": "<string>",
"command": "<string>",
"sensors": 500000000000,
"frames": 500000000000,
"wallSeconds": 50000000,
"gpuBusySeconds": 50000000,
"errorCode": "<string>",
"episodes": 500000000000,
"envSteps": 500000000000,
"sessionId": "<string>"
}
]
}
'import requests
url = "https://dev.simforge.ai/api/v1/telemetry"
payload = {
"schema": "simforge.usage-batch/v1",
"batchId": "<string>",
"sealedAt": "<string>",
"accountId": "<string>",
"installId": "<string>",
"machine": {
"os": "<string>",
"arch": "<string>",
"gpus": [
{
"model": "<string>",
"vramMib": 500000000000,
"driver": "<string>"
}
],
"gpuCount": 8
},
"droppedEvents": 500000000000,
"events": [
{
"eventId": "<string>",
"finishedAt": "<string>",
"runtimeVersion": "<string>",
"cliVersion": "<string>",
"command": "<string>",
"sensors": 500000000000,
"frames": 500000000000,
"wallSeconds": 50000000,
"gpuBusySeconds": 50000000,
"errorCode": "<string>",
"episodes": 500000000000,
"envSteps": 500000000000,
"sessionId": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
schema: 'simforge.usage-batch/v1',
batchId: '<string>',
sealedAt: '<string>',
accountId: '<string>',
installId: '<string>',
machine: {
os: '<string>',
arch: '<string>',
gpus: [{model: '<string>', vramMib: 500000000000, driver: '<string>'}],
gpuCount: 8
},
droppedEvents: 500000000000,
events: [
{
eventId: '<string>',
finishedAt: '<string>',
runtimeVersion: '<string>',
cliVersion: '<string>',
command: '<string>',
sensors: 500000000000,
frames: 500000000000,
wallSeconds: 50000000,
gpuBusySeconds: 50000000,
errorCode: '<string>',
episodes: 500000000000,
envSteps: 500000000000,
sessionId: '<string>'
}
]
})
};
fetch('https://dev.simforge.ai/api/v1/telemetry', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"schema": "simforge.usage-receipt/v1",
"batchId": "<string>",
"firstDelivery": true,
"accepted": 1
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}Authorizations
A sfc_at_… access token from simforge login, or an sfk_… API key. An operation's security lists the scopes the credential must hold.
Body
application/json
- Option 1
- Option 2
Available options:
simforge.usage-batch/v1 Pattern:
^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$Pattern:
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$Required string length:
1 - 128Pattern:
^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$Show child attributes
Show child attributes
Required range:
0 <= x <= 1000000000000Required array length:
1 - 500 elementsShow child attributes
Show child attributes
Response
Stored, or already stored under this batch ID.
⌘I
Report runtime usage
curl --request POST \
--url https://dev.simforge.ai/api/v1/telemetry \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"schema": "simforge.usage-batch/v1",
"batchId": "<string>",
"sealedAt": "<string>",
"accountId": "<string>",
"installId": "<string>",
"machine": {
"os": "<string>",
"arch": "<string>",
"gpus": [
{
"model": "<string>",
"vramMib": 500000000000,
"driver": "<string>"
}
],
"gpuCount": 8
},
"droppedEvents": 500000000000,
"events": [
{
"eventId": "<string>",
"finishedAt": "<string>",
"runtimeVersion": "<string>",
"cliVersion": "<string>",
"command": "<string>",
"sensors": 500000000000,
"frames": 500000000000,
"wallSeconds": 50000000,
"gpuBusySeconds": 50000000,
"errorCode": "<string>",
"episodes": 500000000000,
"envSteps": 500000000000,
"sessionId": "<string>"
}
]
}
'import requests
url = "https://dev.simforge.ai/api/v1/telemetry"
payload = {
"schema": "simforge.usage-batch/v1",
"batchId": "<string>",
"sealedAt": "<string>",
"accountId": "<string>",
"installId": "<string>",
"machine": {
"os": "<string>",
"arch": "<string>",
"gpus": [
{
"model": "<string>",
"vramMib": 500000000000,
"driver": "<string>"
}
],
"gpuCount": 8
},
"droppedEvents": 500000000000,
"events": [
{
"eventId": "<string>",
"finishedAt": "<string>",
"runtimeVersion": "<string>",
"cliVersion": "<string>",
"command": "<string>",
"sensors": 500000000000,
"frames": 500000000000,
"wallSeconds": 50000000,
"gpuBusySeconds": 50000000,
"errorCode": "<string>",
"episodes": 500000000000,
"envSteps": 500000000000,
"sessionId": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
schema: 'simforge.usage-batch/v1',
batchId: '<string>',
sealedAt: '<string>',
accountId: '<string>',
installId: '<string>',
machine: {
os: '<string>',
arch: '<string>',
gpus: [{model: '<string>', vramMib: 500000000000, driver: '<string>'}],
gpuCount: 8
},
droppedEvents: 500000000000,
events: [
{
eventId: '<string>',
finishedAt: '<string>',
runtimeVersion: '<string>',
cliVersion: '<string>',
command: '<string>',
sensors: 500000000000,
frames: 500000000000,
wallSeconds: 50000000,
gpuBusySeconds: 50000000,
errorCode: '<string>',
episodes: 500000000000,
envSteps: 500000000000,
sessionId: '<string>'
}
]
})
};
fetch('https://dev.simforge.ai/api/v1/telemetry', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"schema": "simforge.usage-receipt/v1",
"batchId": "<string>",
"firstDelivery": true,
"accepted": 1
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}