Grafana Cloud Enterprise Open source
Last reviewed: August 20, 2026

AWS IoT TwinMaker query editor

This document explains how to use the AWS IoT TwinMaker query editor to query data from your TwinMaker workspace in dashboard panels and Explore.

Before you begin

Key concepts

If you’re new to AWS IoT TwinMaker, these terms are used throughout the query editor.

TermDescription
EntityA digital representation of a real-world object, such as a piece of equipment.
ComponentA named part of an entity that provides data, such as a sensor or an alarm.
Component typeA reusable definition that components inherit from, such as the base alarm type com.amazon.iottwinmaker.alarm.basic.
PropertyA data field on a component, which can be a time series or a single value.
SceneA 3D visualization of your workspace, composed in the AWS IoT TwinMaker console.

Query types

Select a query type from the Query Type drop-down. New queries default to Get Alarms. The editor supports the following query types.

Query typeDescription
Get Property Value History by EntityGets the history of a component’s property for a specific entity.
Get Property Value History by Component TypeGets the history of a property within a component of a specific component type.
Get AlarmsGets the alarms within a workspace.
Get Property ValueGets the value of a non-time series property within a component.
List WorkspacesRetrieves the list of workspaces.
List ScenesRetrieves the list of scenes associated with a workspace.
List EntitiesRetrieves the list of entities associated with a workspace.
Get EntityGets an entity within a workspace.

Get Property Value History by Entity

Use this query type to graph time series property values for a single entity.

FieldDescription
EntityThe entity to query. Select from the list, type an entity ID, or use a template variable.
Component NameThe component on the entity that contains the properties.
Selected PropertiesOne or more time series properties to return.
FilterOptional property filters. Each filter has a property, an operator, and a value. The operator defaults to =, and the value is interpreted according to the property’s data type, such as string, Boolean, integer, or double.
OrderSort results in ASC or DESC time order.

Get Property Value History by Component Type

Use this query type to graph time series property values across all entities that share a component type. The Component Type drop-down only lists component types with time series properties.

FieldDescription
Component TypeThe component type to query. When the type has a single time series property, the editor selects it automatically.
Selected PropertiesOne or more time series properties to return.
FilterOptional property filters.
OrderSort results in ASC or DESC time order.

Get Alarms

Use this query type to list alarms in the workspace, typically in a table panel. When you switch to this query type, the editor adds a default filter of alarm_status = ACTIVE.

FieldDescription
FilterFilter alarms by status: ACTIVE, SNOOZE_DISABLED, ACKNOWLEDGED, or NORMAL. Clear the filter to return alarms with any status.
Max. AlarmsThe maximum number of alarms to return. Defaults to 50. Leave the field blank to return all results.

Get Property Value

Use this query type to read the current value of non-time series properties.

FieldDescription
EntityThe entity to query.
Component NameThe component that contains the properties.
Selected PropertiesOne or more properties to return.

Query tabular data from an Athena connector

If the selected component uses the Athena tabular data connector, the editor shows additional fields for tabular queries.

FieldDescription
Property GroupThe property group defined on the component. Select a group to load its properties.
FilterTabular property filters applied as query conditions.
Order BySort the tabular results by one or more properties in ascending or descending order.

List and get queries

The remaining query types return workspace metadata, which is useful in table panels and for exploring your workspace.

  • List Workspaces and List Scenes require no additional fields.
  • List Entities accepts an optional Component Type filter to list only entities that include a component of that type.
  • Get Entity requires an Entity and returns its full definition, including its components.

Query examples

The following examples use the Cookie Factory sample workspace from the AWS IoT TwinMaker samples GitHub repository. Substitute your own entity, component, and property names.

Graph the temperature history of a mixer

Use this pattern with a time series panel to graph a sensor property over the dashboard time range.

FieldValue
Query TypeGet Property Value History by Entity
EntityMixer_1
Component NameMixerComponent
Selected PropertiesTemperature
OrderASC

List the active alarms in a workspace

Use this pattern with a table panel to build an alarm list. To let users select an alarm by clicking a row, attach the register links transformation to the panel.

FieldValue
Query TypeGet Alarms
FilterACTIVE
Max. AlarmsLeave blank to return all alarms, or set a limit such as 50

Provide alarm data to every tag in a scene

Use this pattern on a Scene Viewer panel to fetch alarm status for all entities that share an alarm component type, so tags in the scene change icons based on the latest value. Set Order to DESC because the Scene Viewer matches the most recent value against tag rules.

FieldValue
Query TypeGet Property Value History by Component Type
Component Typecom.example.cookiefactory.alarm
Selected Propertiesalarm_status
Filteralarm_status = ACTIVE
OrderDESC

Follow the dashboard selection with template variables

Use this pattern with a state timeline panel to show the alarm history for whichever alarm the user selects in an alarm list or 3D scene. The pre-built dashboards use this exact query. The panel shows an error until the variables have values, which is expected.

FieldValue
Query TypeGet Property Value History by Entity
Entity${sel_entity}
Component Name${sel_comp}
Selected Propertiesalarm_status

For more information about setting variable values from panel selections, refer to Template variables.

Stream data with Grafana Live

The history and alarm query types support streaming updates through Grafana Live. The streaming fields only appear when your Grafana instance has Grafana Live enabled and connected.

FieldDescription
StreamToggle on to poll for new data on an interval and push updates to the panel.
IntervalThe polling interval in seconds. The minimum is 5 and the default is 30.

Next steps