grafana / iot-sitewise-datasource

IoT Sitewise
Apache License 2.0
19 stars 9 forks source link

List Associated Assets supports hierarchyId, not property alias #334

Open hwandersman opened 1 week ago

hwandersman commented 1 week ago

What happened: The List Associated Assets query has a field for Property Alias but this is not supported in the API.

What you expected to happen: This query should instead have a field for 'Hierarchy ID` as supported by the SiteWise.ListAssociatedAssets API.

The Asset field should be marked as required, with the optional field to specify a hierarchyId. We should list available hierarchies for the specified asset.

How to reproduce it (as minimally and precisely as possible):

  1. Add a List associated assets query in the query editor
  2. Try to set the property alias
  3. The asset field disappears and running the query leads to an error: failed to fetch query data: InvalidParameter: 1 validation error(s) found. - missing required field, ListAssociatedAssetsInput.AssetId.

Screenshots

Anything else we need to know?:

Environment: