Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Guidelines for monitoring of data provision and data access
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ACTRIS-DC
Guidelines for monitoring of data provision and data access
Commits
3377ded2
Commit
3377ded2
authored
2 years ago
by
Richard Olav Rud
Browse files
Options
Downloads
Patches
Plain Diff
Update api-specification.md
parent
180cbc61
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api-specification.md
+9
-7
9 additions, 7 deletions
api-specification.md
with
9 additions
and
7 deletions
api-specification.md
+
9
−
7
View file @
3377ded2
...
...
@@ -20,17 +20,17 @@ The aim is to provide information on the monthly download, plotting and inspecti
*
Monthly unique IPs
*
Download by country
**Filter by: Facility, country, productType, dateFrom, dateTo
**
**Filter by:
**
Facility, country, productType, dateFrom, dateTo
### GET /api/download/stats
Return download statistics based on the following query parameters:
*dimensions:*
Comma-separated list of dimensions. Supported combinations are yearMonth,downloads, yearMonth,uniqueIps and country,downloads.
*facility:*
(optional) Filter downloads based on measurement facility. See https://head-office.fi/api/facilities for available facilities.
*country:*
(optional) Filter downloads based on the country of measurement facility. The country is specified using ISO 3166-1 alpha-2 code.
*productTypes:*
(optional) Comma-separated list of product types. Supported values are observation, model and fundamentalParameter.
*downloadDateFrom:*
(optional) Include downloads on or after this date. Expects date in YYYY-MM-DD format.
*downloadDateTo:*
(optional) Include downloads on or before this date. Expects date in YYYY-MM-DD format.
*
*dimensions:*
*
Comma-separated list of dimensions. Supported combinations are yearMonth,downloads, yearMonth,uniqueIps and country,downloads.
*
*facility:*
*
(optional) Filter downloads based on measurement facility. See https://head-office.fi/api/facilities for available facilities.
*
*country:*
*
(optional) Filter downloads based on the country of measurement facility. The country is specified using ISO 3166-1 alpha-2 code.
*
*productTypes:*
*
(optional) Comma-separated list of product types. Supported values are observation, model and fundamentalParameter.
*
*downloadDateFrom:*
*
(optional) Include downloads on or after this date. Expects date in YYYY-MM-DD format.
*
*downloadDateTo:*
*
(optional) Include downloads on or before this date. Expects date in YYYY-MM-DD format.
### Examples from CLU:
...
...
@@ -38,11 +38,13 @@ curl -u user:pass 'https://cloudnet.fmi.fi/api/download/stats?dimensions=yearMon
Returns monthly download statistics of data from all sites in Finland:
'''
[
{ "yearMonth": "2021-02", "downloads": 0.08487337440109514 },
...
{ "yearMonth": "2022-11", "downloads": 26.00684462696783 }
]
'''
## ACTRIS Data provision
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment