Skip to main content
axiom.listDatasetFields lists fields for an events, logs, or traces dataset. Each item includes its name and type plus visibility, description, and unit when configured.
automations/axiom-list-dataset-fields.automation.ts

Input

datasetName is required and accepts an events, logs, or traces dataset name or ID. Metrics datasets use the metric-discovery actions instead.

Output

Returns an array of field definitions. Each item contains name and type, with hidden, description, and unit when configured. A dataset with no discovered fields returns [].

Permission and failures

The API token needs the organization-level datasets|read capability and access to the target dataset. Axiom returns an error for missing, inaccessible, or unsupported dataset kinds.