Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

SQL
rowStylesbackground:#B8D1F3,background:#DAE5F4,background:#B8D1F3
noDataErrortrue
enableSortingfalse
columnStylesfont-size: 1.0em
rowOrientationhorizontal
expandArrayfalse
stylefumble:0
convertNullfalse
idmydata3
class@default testing
dataSourcemars_apistats
enableHighlightingfalse
retainRowStyleOrderfalse
SELECT to_char(sum(fields),'FM999,999,999,999,999')  as "Total retrieved fields", to_char(sum(requests), 'FM999,999,999,999,999') as "Total user requests", to_char(sum(delivered/1024^4), 'FM999.999') as "Delivered volume [TB]"
FROM  datasets_stats_monthly
WHERE datasets_stats_monthly.dataset='uerra' and datasets_stats_monthly.month>=date'2017010120160101';

Monthly sums

Delivered volume [TB]

Chart
3Dtrue
showShapesfalse
timePeriodQuarter
width1200
categoryLabelPositionup45
dataOrientationvertical
typebar
yLabelTB
height400


SQL
idmydata
dataSourcemars_apistats
select  to_char(month, 'MM/YYYY') as monthyear, CAST(delivered AS FLOAT)/1024^4 as "data volume" from datasets_stats_monthly where dataset='uerra' and month>=date'2017010120160101' order by month


User requests

...

Chart
3Dtrue
showShapesfalse
width1200
categoryLabelPositionup45
dataOrientationvertical
typebar
yLabelNr of requests
height400


SQL
idmydata
dataSourcemars_apistats
select  to_char(month, 'MM/YYYY') as monthyear, requests from datasets_stats_monthly where dataset='uerra' and month>=date'2017010120160101' order by month;


Fields retrieved

...

Chart
3Dtrue
showShapesfalse
width1200
categoryLabelPositionup45
dataOrientationvertical
typebar
yLabelNr of fields
height400


SQL
idmydata
dataSourcemars_apistats
select  to_char(month, 'MM/YYYY') as monthyear, fields from datasets_stats_monthly where dataset='uerra' and month>=date'2017010120160101' order by month


Users

(Users at least with 3 requests ever since)

Chart
3Dtrue
showShapesfalse
width1200
categoryLabelPositionup45
dataOrientationvertical
typebar
yLabelNr of users
height400


SQL
idmydata
dataSourcemars_apistats
SELECT to_char(month, 'MM/YYYY') as monthyear, count(DISTINCT username)as "active users"
FROM  users_stats_monthly 
WHERE dataset='uerra' AND month>=date'2017010120160101' 
AND username IN (
      SELECT username                        
      FROM  users_stats_monthly
      WHERE dataset='uerra'
      GROUP BY username
      HAVING sum(requests) >= 3
      )
GROUP BY month
ORDER BY month;


...

Chart
3Dtrue
stackedtrue
width1200
dataOrientationvertical
opacity75
height1200


SQL
idmydata
dataSourcemars_apistats
SELECT profile_country.name, count(DISTINCT auth_user.username) as total_users
    FROM  profile_country
         RIGHT JOIN profile_profile ON profile_profile.country_id = profile_country.id
         RIGHT JOIN auth_user ON auth_user.id = profile_profile.user_id
         RIGHT JOIN users_stats_monthly ON users_stats_monthly.username = auth_user.username
    WHERE users_stats_monthly.dataset='uerra' and users_stats_monthly.month>=date'2017010120160101'
GROUP BY profile_country.name
ORDER BY total_users DESC;


...