a dynamic selector defines how datapoint(s) are fetched within a query.
It corresponds to a request to fetch datapoints dynamically based on metadata criteria. It must be used on a twin-based query.
Attributes
| Name | Type | Description |
|---|---|---|
| category | str | filter datapoints by unit category name. |
| unit | str | filter datapoints by unit name. |
| twin_type | str | filter datapoints by twin type. |
| agg_method | str | aggregation method to use for selected datapoints. |
| rename | str | rename the selected datapoints column in the output. |
| business_type | str | filter datapoints by BusinessType. |
| datapoints | list | resolved list of datapoints (populated after selection). |
Methods
from_dict()
create a DynamicSelector from a dictionary.
| Name | Type | Default | Description |
|---|---|---|---|
| obj | dict | dictionary representation. |
from_json()
load the selector from a dict originating of a JSON format.
| Name | Type | Default | Description |
|---|---|---|---|
| obj | object to load information from. |
to_json()
convert the selector to a JSON-compatible dictionary.
return: dict representation.