API Endpoints
RestAPI publisher transport provides a number of endpoints to access data ingested and processed within the Joule process. Raw and processed events are stored within the internal SQL database which are then made accessible to users via rest endpoints.
Swagger Support
All endpoints have OpenAPI support via swagger docs url
Driver details
Supported endpoints
Oveview of supported rest endpoints. All data is returned as Json StreamEvents with the exception of export endpoint which is user definable.
List available queries
Get a list of available query tables.
Endpoint
Query table
Query an internal SQL table with or without a date time range based of ingestTime constraint. The returned query resultset is constrainted to a specified page size.
Endpoint
Parameters
Attribute | Description | Type | Required |
---|---|---|---|
schema | Database schema is use | Path | |
table | Table to export from | Path | |
from | DateTime format e.g. YYYY-MM-dd hh:mm:ss | Query | |
to | DateTime e.g. YYYY-MM-dd hh:mm:ss | Query | |
offset | Event page offset | Integer | |
pageSize | Number of events to return per page Default: 1000 | Integer |
Export data
Export event data to a typed file using a date time range constraint, uses ingestTime field to restrict the query result. Parquet and CSV files are generated based upon user request parameter.
Endpoint
Parameters
Attribute | Description | Type | Required |
---|---|---|---|
schema | Database schema is use | Path | |
table | Table to export from | Path | |
type | Options: parquet, csv | Query | |
from | DateTime format e.g. YYYY-MM-dd hh:mm:ss | Query | |
to | DateTime e.g. YYYY-MM-dd hh:mm:ss | Query | |
path | Destination directory and file name e.g. /tmp/events.parquet | Query |
Delete data
Delete event data from an internal database table using a date time crirtera. The query uses ingestTime field to restrict the data deleted.
Endpoint
Parameters
Attribute | Description | Type | Required |
---|---|---|---|
schema | Database schema is use | Path | |
table | Table to export from | Path | |
from | DateTime format e.g. YYYY-MM-dd hh:mm:ss | Query | |
to | DateTime e.g. YYYY-MM-dd hh:mm:ss | Query |
Default configuration
Last updated