Elastic Data Tools
Query custom elastic datasets — user-defined data structures with flexible schemas for tracking any type of operational data beyond the standard emission categories. Each dataset has its own field definitions and records, and can optionally extend a native Dcycle entity (facilities, vehicles, etc.).list_datasets
List all elastic datasets for the organization.
Parameters:
Example response:
get_dataset
Get a dataset by ID with its full field definitions (schema).
Parameters:
Example response:
Field data types
Field data types
query_dataset
Query records from a dataset with pagination, optional sorting, and optional filtering.
Parameters:
Filter syntax (field_key:op:value)
Filter syntax (field_key:op:value)
Each
filters item is field_key:op:value. Operators allowed depend on the field’s data_type:Value encoding:
- Scalar ops:
amount:gt:100,status:eq:open bt/nb: JSON 2-array →amount:bt:[100,200]in/ni: JSON array →status:in:["open","closed"]- Shortcut
field_key:value(no op) = contains for text, exact otherwise *:value= free-text search across all fields
get_dataset first so you use real field keys and valid operators.Records are stored as JSONB — the
data object uses the field key values from the dataset schema. Call get_dataset first to understand what fields exist and their types. Reference-field cells hold the target record’s UUID (a refs map in the response resolves them to display text when present).get_dataset_record
Get a single record from a dataset by its ID (use query_dataset to find record IDs first).
Parameters:
Example response:
list_dataset_groups
List the organization’s dataset groups (folders that organize datasets in the UI).
Parameters:
Example response:
list_project_datasets
List the elastic datasets associated with a specific project.
Parameters:
Example response:
Workflow
- Discover datasets —
list_datasets(orlist_project_datasetsfor a project) to see available datasets and record counts;list_dataset_groupsfor how they’re organized - Understand schema —
get_datasetto see fieldkeys,data_types, and options (needed to build filters/sort) - Query records —
query_datasetwithfilters/sortto retrieve and narrow the data; useget_dataset_recordfor a single record by ID - Cross-reference — If
entity_typeis set, use the corresponding tool (e.g.list_facilities) to link records to native entities
Related
Custom KPIs
KPI definitions that can be built on elastic datasets
Files
File uploads that can populate elastic datasets