Skip to main content

Time Series API v1

Released stable version v1 of Time Series API - Supercharge your data exploration with advanced querying capabilities using PromQL!

Discover the power of our new Time Series REST API, your gateway to a wealth of machine insights and advanced sensor data. Designed to empower your exploration of time series data, our new API offers seamless access to endpoints that can be queried using PromQL.

Below a list of all available endpoints:

➕ GET: /time-series/v1/assets/{assetId}/prometheus/api/v1/query

Get for instant queries

➕ POST: /time-series/v1/assets/{assetId}/prometheus/api/v1/query

Post for instant queries

➕ GET: /time-series/v1/assets/{assetId}/prometheus/api/v1/query_range

Get for range queries

➕ POST: /time-series/v1/assets/{assetId}/prometheus/api/v1/query_range

Post for range queries

➕ GET: /time-series/v1/assets/{assetId}/metrics

Get metrics

GraphQL Asset Summary

Released asset summaries in the GraphQL API.

The new assetSummary field supports obtaining unique counts of commonly used asset fields like brand, model, criticality, types, etc. It accepts the same AssetFiltersInput as the assets search field, so they can easily be combined if needed.

➕ GQL: Query.assetSummary

See all relevant GQL documentation

trackunit/ui-icons v0.0.76 - new format for icons

[Breaking change] In this version of our App SDK a new format was introduced for icons, which require an update of jest configurations in extensions that use this library.

Extensions created with @trackunit/iris-app@0.0.366 should already have the required configuration.

Add the following entries to the moduleNameMapper array of jest.config.ts in all relevant libraries.

'@trackunit/ui-icons/icons-sprite-outline.svg': 'jest-transform-stub',
'@trackunit/ui-icons/icons-sprite-solid.svg': 'jest-transform-stub',

The end result should look like the following.

export default {
displayName: 'extension',
preset: '../../jest.preset.js',
transform: {
'^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': '@nx/react/plugins/jest',
'^.+\\.[tj]sx?$': ['babel-jest', { presets: ['@nx/react/babel'] }],
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../coverage/libs/extension',
moduleNameMapper: {
'@trackunit/css-core': 'jest-transform-stub',
'@trackunit/ui-icons/icons-sprite-outline.svg': 'jest-transform-stub',
'@trackunit/ui-icons/icons-sprite-solid.svg': 'jest-transform-stub',
},
};

trackunit/iris-app v0.0.367 - renamed publishApp to submitApp

[Breaking change] In this version of our App SDK we have renamed publishApp to submitApp to avoid confusion about when an app was actually made public. This change means that for existing apps you should open up the project.json file and change:

"publishApp": {
"executor": "@trackunit/iris-app:publish",

To now refer to the submit executor:

"submitApp": {
"executor": "@trackunit/iris-app:submit",

GraphQL API

Released stable version of GraphQL API.

The GraphQL API offers more flexible queries than the Trackunit REST APIs and only retrieves the data needed. Making it easier to quickly retrieve the data needed for your application. With GraphQL, you construct queries and mutations to fetch or modify data. Unlike REST APIs, which use multiple endpoints, GraphQL uses a single endpoint to handle all requests.

➕ Trackunit Iris GraphQL API

See all relevant GQL documentation

Locations API v1

Released stable version v1 of Location API.

Discover the power of our Location API, your key to effortlessly accessing and tracking real-time GPS coordinates for your entire fleet of connected assets. With two convenient endpoints at your disposal, you can choose to retrieve precise location snapshots for a specific asset or access a paginated list containing all your assets.

Below a list of all available endpoints:

➕ GET: /location/v1/locations/{assetId}

Get location

➕ GET: /location/v1/locations

Get locations

Assets API v1

Released stable version v1 of Assets API.

Discover the power of our Assets API, your key to manage the asset domain. By leveraging the Assets API, developers can easily onboard and offboard assets to Trackunit Iris and get all assets in a fleet as well as update specifications for an asset. This API also allows to manage assets across accounts by enabling the share, transfer, unshare and remove visibility actions. For more information, see the documentation of the endpoints.

Below a list of all available endpoints:

➕ GET: /asset/v1/assets

Get asset

➕ GET: /asset/v1/assets

Get assets

➕ POST: /asset/v1/assets/onboard

Onboard asset

➕ POST: /asset/v1/assets/{assetId}/offboard

Offboard asset

➕ PATCH: /asset/v1/assets/{assetId}

Update asset