Datasets

List datasets

get

Retrieves a list of datasets

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
Query parameters
pageintegerOptional

The page number to be returned, must be greater than zero. Defaults to 1.

Example: 1
pageSizeintegerRequired

The elements amount on a single page, must be greater than zero.

Example: 25
querystringOptional

A search keyword to match dataset, fields and description against.

Example: name
connectionsstring[]Optional

A list of connection names to filter by. All connections will be included when no value is supplied.

tagsstring[]Optional

A list of tag names to filter by. All tags will be included when no value is supplied.

sortBystring · enumOptional

The field to sort results by

Possible values:
sortingOrderstring · enumOptional

Sorting order. Defaults to ascending

Possible values:
includeSystemEntitiesbooleanOptional

A flag to include in the search also system entities (e.g. Kafka's __consumer_offsets topic).

includeMetadatabooleanOptional

Whether to search only by table name, or also to include field names/documentation (defaults to true)

formatstring[]Optional

Schema format. Relevant only when sourceType is SchemaRegistrySubject

hasRecordsbooleanOptional

Filter based on whether the dataset has records

compactedbooleanOptional

Filter based on compacted. Relevant only when sourceType is Kafka

Responses
get
/api/v1/environments/{environment}/proxy/api/v1/datasets

Bulk delete datasets

post

Deletes multiple datasets at once

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
Body
Responses
post
/api/v1/environments/{environment}/proxy/api/v1/bulk/datasets/delete

Set dataset description

put

Sets a dataset description. Will respond with a bad request if a blank description is supplied

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
connectionstringRequiredExample: kafka
datasetNamestringRequiredExample: user_details
Body
descriptionstringOptional
Responses
put
/api/v1/environments/{environment}/proxy/api/v1/datasets/{connection}/{datasetName}/description

No content

Set dataset tags

put

Add one or more tags to a dataset

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
connectionstringRequiredExample: kafka
datasetNamestringRequiredExample: user_details
Body
Responses
put
/api/v1/environments/{environment}/proxy/api/v1/datasets/{connection}/{datasetName}/tags

No content

Get dataset details

get

Get a single dataset by connection/name. While information mastered externally might be a few second out of sync with their respective sources (e.g. JMX metadata, etc), information mastered in Lenses's db is guaranteed to be up to date (e.g. tags, descriptions).

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
connectionstringRequiredExample: kafka
datasetstringRequiredExample: customer-positions
Responses
get
/api/v1/environments/{environment}/proxy/api/v1/datasets/{connection}/{dataset}

Get dataset tags

get

Get tags sorted by dataset count

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
Query parameters
querystringOptional

Match tag by keyword

Example: user
Responses
get
/api/v1/environments/{environment}/proxy/api/v1/datasets/tags

Get dataset connections

get

Get a list of available dataset connections

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
Query parameters
querystringOptional

Match connection by keyword

Example: kafka
perPageintegerOptional

Number of results to be returned. Defaults to 25 if not supplied

Example: 50
Responses
get
/api/v1/environments/{environment}/proxy/api/v1/datasets/connections

Get dataset ranged metrics

get

get ranged metrics for requested dataset

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
entityNamestringRequired

Dataset's entity name

Example: topic
Responses
get
/api/v1/environments/{environment}/proxy/api/v1/datasets/kafka/{entityName}/messages/metrics

Last updated

Was this helpful?