from miru_server_sdk import Miru
client = Miru(
api_key="My API Key",
)
releases = client.releases.list()
print(releases){
"object": "list",
"total_count": 123,
"limit": 10,
"offset": 0,
"has_more": false,
"data": [
{
"object": "release",
"id": "rls_123",
"version": "v1.0.0",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z",
"config_schemas": []
}
]
}List releases.
from miru_server_sdk import Miru
client = Miru(
api_key="My API Key",
)
releases = client.releases.list()
print(releases){
"object": "list",
"total_count": 123,
"limit": 10,
"offset": 0,
"has_more": false,
"data": [
{
"object": "release",
"id": "rls_123",
"version": "v1.0.0",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z",
"config_schemas": []
}
]
}The API key to use for authentication. Retrieve your API key from the Miru dashboard.
The offset of the items to return. An offset of 10 with a limit of 10 returns items 11-20.
x >= 0The maximum number of items to return. A limit of 15 with an offset of 0 returns items 1-15.
1 <= x <= 100The order to sort the releases.
id:asc, id:desc, created_at:desc, created_at:asc The fields to expand in the releases list.
total_count, config_schemas The release ID to filter by.
"rls_123"
The release version to filter by.
"v1.0.0"
Successfully listed the releases.
list "list"
The total number of items in the list. By default the total count is not returned. The total count must be expanded (using expand[]=total_count) to get the total number of items in the list.
The maximum number of items to return. A limit of 15 with an offset of 0 returns items 1-15.
1 <= x <= 100The offset of the items to return. An offset of 10 with a limit of 10 returns items 11-20.
x >= 0True if there are more items in the list to return. False if there are no more items to return.
false
Hide child attributes
release "release"
ID of the release.
"rls_123"
The version of the release.
"v1.0.0"
Timestamp of when the release was created.
"2024-01-01T00:00:00Z"
Timestamp of when the release was last updated.
"2024-01-01T00:00:00Z"
Expand the config schemas using 'expand[]=config_schemas' in the query string.
Hide child attributes
config_schema "config_schema"
ID of the config schema.
"cfg_sch_123"
Config schema version for the config type.
2
Hash of the config schema contents.
"1234567890"
The file path to deploy the config instance relative to /srv/miru/config_instances. v1/motion-control.json would deploy to /srv/miru/config_instances/v1/motion-control.json.
"/v1/motion-control.json"
Timestamp of when the config schema was created.
"2021-01-01T00:00:00Z"
Timestamp of when the config schema was last updated.
"2021-01-01T00:00:00Z"
ID of the config type.
"cfg_typ_123"
The config schema's JSON Schema definition.
{
"title": "Robot Features",
"type": "object",
"properties": {
"enable_autonomy": { "type": "boolean", "default": true },
"enable_remote_control": { "type": "boolean", "default": true },
"max_payload_kg": {
"type": "number",
"minimum": 0,
"maximum": 99,
"default": 10
},
"preferred_speed_mode": {
"type": "string",
"enum": ["slow", "normal", "fast"],
"default": "normal"
},
"emergency_stop_sensitivity": {
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 0.8
},
"telemetry": {
"type": "object",
"properties": {
"upload_interval_sec": {
"type": "integer",
"minimum": 10,
"maximum": 600,
"default": 60
},
"heartbeat_interval_sec": {
"type": "integer",
"minimum": 1,
"maximum": 60,
"default": 10
}
},
"required": [
"upload_interval_sec",
"heartbeat_interval_sec"
]
}
},
"required": [
"enable_autonomy",
"enable_remote_control",
"max_payload_kg",
"preferred_speed_mode",
"emergency_stop_sensitivity",
"telemetry"
]
}Expand the config type using 'expand[]=config_type' in the query string.
Hide child attributes
config_type "config_type"
ID of the config type.
"cfg_123"
Name of the config type.
"My Config Type"
An immutable, code-friendly name for the config type.
"my-config-type"
Timestamp of when the config type was created.
"2021-01-01T00:00:00Z"
Timestamp of when the config type was last updated.
"2021-01-01T00:00:00Z"
null
[]