Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] Batch API: Return multiple assets from a query #115

Closed
tracy-french opened this issue Mar 1, 2022 · 5 comments · Fixed by #153
Closed

[Request] Batch API: Return multiple assets from a query #115

tracy-french opened this issue Mar 1, 2022 · 5 comments · Fixed by #153
Labels
enhancement New feature or request prio/med

Comments

@tracy-french
Copy link
Collaborator

Is it possible for a query to return multiple assets? Can the asset variable be a multiselect?

@taleena
Copy link
Collaborator

taleena commented Mar 10, 2022

Desired functionality:
We want to be able to request several properties in a single query. This is useful everywhere but is especially important in annotations

Suggested solution:
Select multiple properties in the annotations query (like aggregates in panel query)

Existing workaround:
In panels we can write multiple queries. In annotations there is no workaround. We can annotate the timestamp and display the data field. We cannot map anything else

This is 4th in the list of nice to haves.

@taleena taleena added enhancement New feature or request prio/med labels Mar 10, 2022
@ryantxu
Copy link
Member

ryantxu commented Apr 5, 2022

Is there an API to return multiple assets? We are calling:
https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_GetAssetPropertyValue.html

To get multiple assets, we can just add multiple queries -- or am I missing something?

@jake-bierman
Copy link

Currently having the same problem, We are wanting to show a table with info from multiple assets, but having to create a fixed query for each. using a variable is great when doing templating as we only have one assetid in the variable, but when trying to query for a list of assets dynamically this does not seem possible at the moment.
Since the list of assets will vary over time, the hope is to have a dash variable which will return a list of asset ids, then we could use this variable in the sitewise query to query the property for all assets in one query.

@nyamad
Copy link

nyamad commented May 25, 2022

Hello,

AWS has released 3 new BatchGetAssetProperty* APIs in 9th of this month.
Announcing three new APIs for batch data retrieval in AWS IoT SiteWise

BatchGetAssetPropertyValue seems to be suitable for explained use cases.

I'd appreciate it if you will support those APIs for query functions.

Thanks,

@taleena
Copy link
Collaborator

taleena commented Nov 2, 2022

We have documentation on the Batch API. Updating title to better reflect. We still need to scope this effort.

@taleena taleena changed the title Return multiple assets from a query Batch API: Return multiple assets from a query Nov 2, 2022
@taleena taleena changed the title Batch API: Return multiple assets from a query [Request] Batch API: Return multiple assets from a query Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request prio/med
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants