Create a Dataset
Create a Dataset in the environment associated with your API key. If a Dataset already exists by that name (or slug), then the existing dataset will be returned.
Authorizations
Authenticate using a Honeycomb Configuration Key.
Pass the Token in the X-Honeycomb-Team header:
X-Honeycomb-Team: 1234567890123456789012If you created your key using the API, use data.attributes.secret; this is the same value as the Token in the UI.
To learn how to create a Configuration Key, visit Manage Environment API Keys. To learn more about authenticating requests, visit API Authentication.
Body
The dataset will be created within the environment associated with your API key.
an object to send to the Dataset API via PUT
The name of the dataset.
1 - 255A description for the dataset.
1024"A nice description of my dataset"
The maximum unpacking depth of nested JSON fields.
0 <= x <= 103
Response
OK - Dataset already exists
Datasets are a collection of events from a specific source or related source.
The name of the dataset.
1 - 255"My Dataset!"
A description for the dataset.
1024"A nice description of my dataset"
The maximum unpacking depth of nested JSON fields.
0 <= x <= 103
The 'slug' of the dataset to be used in URLs.
"my-dataset-"
The total number of unique fields for this Dataset. The value will be null if the dataset does not contain any fields yet.
100
The ISO8601-formatted time when the dataset last received event data. The value will be null if no data has been received yet.
"2022-07-21T18:39:23Z"
The ISO8601-formatted time when the dataset was created.
"2022-09-22T17:32:11Z"
The type of data contained in the dataset. Only present for time-series metrics datasets.
metrics "metrics"