Cumulocity CLI 2.22.0
Changelog
Note
For more details/examples on the features click on the PR links
Features
Added public api for DataHub commands (#235)
c8y datahub query
- High Performance API
$ c8y datahub query --sql "SELECT * FROM myTenantIdDataLake.Dremio.myTenantId.alarms"
Get a list of alarms from datahub
$ c8y datahub query --sql "SELECT * FROM myTenantIdDataLake.Dremio.myTenantId.alarms" --limit 2000
Get a list of alarms from datahub with custom limit
$ c8y datahub query --sql "SELECT * FROM myTenantIdDataLake.Dremio.myTenantId.alarms" --format PANDAS --raw
Get a list of alarms from datahub using the PANDAS format (note the raw format is necessary here)
c8y datahub jobs
- Standard DataHub API
c8y datahub jobs
Cumulocity IoT Data Hub api
Usage:
c8y datahub jobs [command]
Available Commands:
cancel Cancel a query job given the ID of the Dremio job executing the query
create Submit a SQL query and retrieve the ID of the Dremio job executing this query
get Retrieve the status of a query job
listResults Retrieve the query results given the ID of the Dremio job that has executed the query
Fixes
c8y sessions set
/set-session
ignore .git directories when looking for session files (#236)c8y sessions set
/set-session
clear existing token when using BASIC loginType (#237)
Build
- strip path information from build (#232)
- use github token to avoid api rate limiting during build
- upgrade to golang 1.20 (#231)
Full Changelog: v2.21.0...v2.22.0