Skip to main content

Nimbit Query Engine (1.0)

Download OpenAPI specification:Download

Nimbit support: iot@nimbit.de URL: https://www.nimbit.de License: Apache 2.0

Nimbit IoT query engine.

Geo

Device Geo position

GetForRange geo position for all devices

query Parameters
measurement
string

measurement

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Device Geo position

GetForRange geo position for device

path Parameters
id
required
string

id

query Parameters
measurement
string

measurement

fields
string

Comma separated list of fields(will limit the response)

reverse
boolean

Geo reverse

lang
string

Address language

Responses

Response samples

Content type
application/json
{
  • "altitude": 0,
  • "distanceTraveled": 0,
  • "geoReverse": {
    },
  • "heading": 0,
  • "id": "string",
  • "lastUpdate": 0,
  • "lat": 0,
  • "lon": 0,
  • "measurement": "string",
  • "online": true,
  • "speed": 0,
  • "tags": { },
  • "time": 0
}

Geo Path

Geo Path

path Parameters
id
required
string

id

query Parameters
measurement
string

measurement

start
required
integer

Start time Epoch in miliseconds

end
required
integer

End time Epoch in miliseconds

limit
integer

End time Epoch in miliseconds

meters
integer

Used to filter most relevant data points representing movement. Only values where a move greater or equal to the desired meters will be shown

includeCurrentPosition
boolean

Used to filter most relevant data points representing movement. Only values where a move greater or equal to the desired meters will be shown

Responses

Response samples

Content type
application/json
{
  • "currentPosition": {
    },
  • "points": [
    ],
  • "totalPoints": 0
}

Geo Reverse

Geo Reverse (address)

path Parameters
id
required
string

id

query Parameters
measurement
string

measurement

lang
string

Address language

Responses

Response samples

Content type
application/json
{
  • "city": "string",
  • "country": "string",
  • "countryCode": "string",
  • "fullAddress": "string",
  • "houseNumber": "string",
  • "id": "string",
  • "lat": 0,
  • "lon": 0,
  • "measurement": "string",
  • "postalCode": "string",
  • "street": "string",
  • "time": 0
}

Count devices with geo position

Count devices with geo position

query Parameters
measurement
string

measurement

Responses

Hearbeat

View Heartbeat

View Hearbeat for all devices

query Parameters
measurement
string

measurement

Responses

Response samples

Content type
application/json
[
  • {
    }
]

View Heartbeat

View Hearbeat for all device

path Parameters
id
required
string

id

query Parameters
measurement
string

measurement

Responses

Response samples

Content type
application/json
{
  • "geo": {
    },
  • "id": "string",
  • "lastUpdate": 0,
  • "measurement": "string",
  • "online": true
}

Count Devices with a heartbeat

Count Devices with a heartbeat

query Parameters
measurement
string

measurement

Responses

Jobs

List jobs by type

List all background jobs of a specific type

query Parameters
type
required
string
Enum: "correlation_update" "quantile_update"

job type

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Get job status

Get status of a background job

path Parameters
id
required
string

job ID

Responses

Response samples

Content type
application/json
{
  • "completed_at": "string",
  • "created_at": "string",
  • "error_message": "string",
  • "id": "string",
  • "measurement": "string",
  • "processed_rows": 0,
  • "progress": 0,
  • "schema": "string",
  • "started_at": "string",
  • "status": "pending",
  • "total_rows": 0,
  • "type": "correlation_update",
  • "updated_at": "string"
}

Delete job

Delete a background job

path Parameters
id
required
string

job ID

Responses

Response samples

Content type
application/json
"string"

Metering

Returns the approximate count of the data points for a specific measurement and its aggregates

Returns the approximate count of the data points for a specific measurement and its aggregates

path Parameters
measurement
required
string

measurement

query Parameters
startDate
string

Start Date

endDate
string

End Date

Responses

Response samples

Content type
application/json
{
  • "aggregations": [
    ],
  • "byteSize": 0,
  • "date": {
    },
  • "name": "string",
  • "rowCount": 0,
  • "tenant": "string"
}

Returns current tenant size ( number of data points, disk size )

Returns the approximate count of the data points and disk size the current tenant

query Parameters
startDate
string

Start Date

endDate
string

End Date

Responses

Response samples

Content type
application/json
{
  • "byteSize": 0,
  • "date": {
    },
  • "measurements": [
    ],
  • "rowCount": 0,
  • "tenant": "string"
}

SmartInsights

Get latest correlation profile

Get latest correlation profile

path Parameters
measurement
required
string

measurement

Responses

Response samples

Content type
application/json
{
  • "correlations": [
    ],
  • "measures": [
    ],
  • "sampleCounts": [
    ]
}

Update correlation profile

Trigger correlation profile update

path Parameters
measurement
required
string

measurement

Responses

Response samples

Content type
application/json
"string"

Get latest quantile profile

Get latest quantile profile

path Parameters
measurement
required
string

measurement

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Tags

Find tags

Find Tag by Tag ID

query Parameters
measurement
string

measurement

limit
integer

Page limit default 200

page
integer

Page number

tags
string

Tag values (key-value pairs)

Responses

Response samples

Content type
application/json
{
  • "count": 1000,
  • "data": [
    ],
  • "limit": 0,
  • "page": 0,
  • "pageCount": 0
}

Find by device id

Find Tag by device id

path Parameters
id
required
string

Device id

query Parameters
tags
string

Tag values (key-value pairs)

limit
integer

Page limit default 200

page
integer

Page number

Responses

Response samples

Content type
application/json
{
  • "count": 1000,
  • "data": [
    ],
  • "limit": 0,
  • "page": 0,
  • "pageCount": 0
}

Find Tag by TagId

Find Tag by Tag ID

path Parameters
tag_id
required
integer

Tag ID

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "measurement": "string",
  • "tagId": "string",
  • "tags": {
    }
}

Timeseries

Read a device Snapshot values (last values)

The snapshot endpoint will per default return the last value for all properties available for a thing. Use the fields parameter to send a comma separated list of fields of only specific fields are required.

Request Body schema: application/json
required

Timeseries Query

gapFill
string
Enum: "none" "time" "locf" "interpolate"
required
Array of objects (nbq_internal_models.Query)
useRaw
boolean
Default: false
required
object (nbq_internal_models.Window)

Responses

Request samples

Content type
application/json
{
  • "gapFill": { },
  • "queries": [
    ],
  • "useRaw": false,
  • "window": {
    }
}

Response samples

Content type
application/json
[
  • {
    }
]

Snapshots

Snapshot query for multiple ids

An array if queries can be provided containing the desired id measurement and snapshot fields if the measure and id are found the values are returned

Request Body schema: application/json
required

Snapshot Query

Array
id
string
measurement
string
measures
Array of strings
queryId
string
object
type
string
updatesOnly
boolean
version
string

Responses

Request samples

Content type
application/json
[
  • {
    }
]

Response samples

Content type
application/json
[
  • {
    }
]

Read a device Snapshot values (last values)

The snapshot endpoint will per default return the last value for all properties available for a thing. Use the fields parameter to send a comma separated list of fields of only specific fields are required.

path Parameters
id
required
string

Device id

query Parameters
measurement
string

measurement name

fields
string

comma separated list of fields

tags
string

Tag values (key-value pairs)

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "lastUpdate": 0,
  • "measurement": "string",
  • "online": true,
  • "tagId": "string",
  • "values": [
    ]
}

Read a device Snapshot values (last values)

The snapshot endpoint will per default return the last value for all properties available for a thing. Use the fields parameter to send a comma separated list of fields of only specific fields are required.

path Parameters
ids
required
string

Device ids (comma separated)

query Parameters
measurement
string

measurement name

fields
string

comma separated list of fields

tags
string

Tag values (key-value pairs)

Responses

Response samples

Content type
application/json
[
  • {
    }
]