Skip to content

Commit

Permalink
feat: add 'itunes' ratings histogram
Browse files Browse the repository at this point in the history
  • Loading branch information
jerome-fox committed Jan 25, 2021
1 parent 8c41736 commit 2085342
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/config/metrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,32 @@
"ratings": {
"name": "appstores_ratings_total",
"help": "App ratings since the launch of the app",
"compatibility": ["gplay"]
"compatibility": ["itunes", "gplay"]
},
"ratings1": {
"name": "appstores_ratings_1_total",
"help": "App ratings with 1 star since the launch of the app",
"compatibility": ["gplay"]
"compatibility": ["itunes", "gplay"]
},
"ratings2": {
"name": "appstores_ratings_2_total",
"help": "App ratings with 2 stars since the launch of the app",
"compatibility": ["gplay"]
"compatibility": ["itunes", "gplay"]
},
"ratings3": {
"name": "appstores_ratings_3_total",
"help": "App ratings with 3 stars since the launch of the app",
"compatibility": ["gplay"]
"compatibility": ["itunes", "gplay"]
},
"ratings4": {
"name": "appstores_ratings_4_total",
"help": "App ratings with 4 stars since the launch of the app",
"compatibility": ["gplay"]
"compatibility": ["itunes", "gplay"]
},
"ratings5": {
"name": "appstores_ratings_5_total",
"help": "App ratings with 5 stars since the launch of the app",
"compatibility": ["gplay"]
"compatibility": ["itunes", "gplay"]
},
"currentVersionScore": {
"name": "appstores_current_version_score_total",
Expand Down
1 change: 1 addition & 0 deletions src/lib/prometheus.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ function getAppData(store, opt) {
itunes.app({
appId: opt.appId,
country: opt.country, // TODO: Support more countries
ratings: true,
})
.then((data) => {
setMetrics(store, opt.country, data) // TODO: Support more countries
Expand Down

0 comments on commit 2085342

Please sign in to comment.