Getting all the newest events of each time series - azure-timeseries-insights

What is the most efficient way to get just the latest event of each time series to display the current values of all stored time series?

TSI does support Aggregation as described here https://learn.microsoft.com/en-in/rest/api/time-series-insights/dataaccess(preview)/query/execute#aggregateseries.
I did try to put an example on how to use that here:
https://github.com/zainuvk/AzureIoTSamples/blob/master/AzureTSI_WebAPI/AzureTSI_WebAPI/Controllers/ValuesController.cs
Hope this helps.

Related

Tableau Server hourly google analytics updates

I'm setting up a Dashboard on Tableau Server and with a data source extract from Google Analytics.
I need it to refresh hourly.
When publishing the data source I have selected Fixed start and incremental refresh, and i can see that the end date is hardcoded to yesterday and I can only schedule update once a day.
This means that my Dashboard will only have data for the previous day. Is this a known limitation? Is there a way to achieve hourly automated data refreshes?
I thought of three possible solutions:
1) Using command line data extract update, but I don't see any parameter that allows me to control date range, so the end date would always be hardcoded to yesterday (?)
2) Using Tableau API. But again, my extract will only refresh to latest day yesterday.
3) Setting up a separate process to download the data into a database and then connect to it with Tableau. Not sure if in this case I will be able to incrementally update the extract or if I have to reload the entire extract all the time.
Any help would be much appreciated!!

Can see Real-Time Data, but can't see data in a report

I can see my real-time event data as I post it.
However, when switching to my dashboard or a report, no data appears.
Do you have to wait a day to see the data in a report that is not real-time?
Thank you in advance,
Karl
See Confuzing response.
It can take up to 48hrs to see data in analytics, although in my experience I have never had it take more than 4hrs. Also make sure you are selecting todays date in the date range as it doesn't automatically include the current date in the range.

Compare value at t and t-7days

To get some "visual alerting", I'd like to draw simultaneously two curves on the same graph in Grafana:
current time-window graph
same graph but with 7 days ago data
The idea is to be able to compare data evolution on the same day in the previous week.
I could not find a Graphite function for that (but I may have missed something in the doc).
Is there a way to do it?
You can use timeShift to make a metric in grafana with your series shifted back a week.
This kind of thing is also a good application for series-specific display overrides in grafana, so you can make the shifted series display differently from the current data.

Specifying time duration for query?

I want to create a dashboard that shows me how many clicks I had today vs how many clicks I had on the exact same day last week.
From the docs, the diffSeries function can subtract a series from another but how do I get the timeseries of previous week?
It's look like you need timeShift function.

Need daily totals via web app date range query

Newbie Question! I'm using the web api I'm able to get the entire totals over a date range, but I want the daily totals too! Sounds simple enough, but I can't get it. Trying
https://www.googleapis.com/analytics/v3/data/ga?ids=ga:AAAAAAA&start-date=2013-09-20&end-date=2013-09-30&metrics=ga:visitors,ga:visits,ga:bounces,ga:newVisits,ga:entrances,ga:pageviews,ga:uniquePageviews,ga:timeOnPage,ga:exits,ga:timeOnSite&query(start-date,end-date)&access_token=XXXXX
I can see in the console that I have data on more than one day during this range.
It appears you can add a "dimension" of ga:date (or week or year) that will return that granularity of detail to the queries.

Resources