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

In Azure central IoT API Query GROUP BY with local time zone feature #2788

Open
electro89 opened this issue Mar 22, 2024 · 4 comments
Open
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@electro89
Copy link

In Azure central IoT API , how to use Query to get records with WHERE 24 hour window and GROUP BY 1 hour with local time zone ? Without local time zone , it returns unwanted time ranges.

@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Mar 22, 2024
@vaavva
Copy link
Member

vaavva commented Mar 26, 2024

Hello @electro89! Could you provide some more details on what you're using to try to accomplish this and what you've tried? What API call are you using? Are you basing this off of a sample (if so, which one)?

@vaavva vaavva added needs-author-feedback More information is needed from author to address the issue. and removed needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Mar 26, 2024
Copy link

Hi @electro89. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

Copy link

github-actions bot commented Apr 2, 2024

Hi @electro89, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

@github-actions github-actions bot added the no-recent-activity There has been no recent activity on this issue. label Apr 2, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 17, 2024
@electro89
Copy link
Author

electro89 commented Apr 22, 2024

@vaavva , Platform is Azure central IoT, and it has API Query method to get IoT telemetry data with a query. Here is the documentation https://learn.microsoft.com/en-us/azure/iot-central/core/howto-query-with-rest-api , but it always return results in UTC , I need to get 24 hour window data and they should be GROUP BY 1 hour according to the local time zone,
For example if I need to get sum of the telemetry value hourly values for a given day:
I get sum from 12:30am - 1:30am,1:30am - 2:30am, ...
But I need sum from 12:00am - 1:00am,1:00am - 2:00am, ...

Please support by giving any other documentation regarding time zone.

@github-actions github-actions bot reopened this Apr 22, 2024
@github-actions github-actions bot added needs-team-attention This issue needs attention from Azure service team or SDK team and removed needs-author-feedback More information is needed from author to address the issue. no-recent-activity There has been no recent activity on this issue. labels Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

2 participants