Gilles has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/130323

Change subject: Add percentile data to the maps
......................................................................

Add percentile data to the maps

Change-Id: Ib1d7dcf40615f1144c082d731757fe013870fc27
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/506
---
M datasources/mmv_performance_country_api.json
M datasources/mmv_performance_country_image.json
M graphs/mmv_performance_country_api.json
M graphs/mmv_performance_country_image.json
4 files changed, 150 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/analytics/multimedia/config 
refs/changes/23/130323/1

diff --git a/datasources/mmv_performance_country_api.json 
b/datasources/mmv_performance_country_api.json
index 1e6cdcf..ac63fad 100644
--- a/datasources/mmv_performance_country_api.json
+++ b/datasources/mmv_performance_country_api.json
@@ -26,6 +26,26 @@
             "id": "sample_size",
             "label": "Sample size",
             "type": "float"
+        },
+        {
+            "id": "1st_percentile",
+            "label": "1st percently",
+            "type": "float"
+        },
+        {
+            "id": "50th_percentile",
+            "label": "50th percentile",
+            "type": "float"
+        },
+        {
+            "id": "90th_percentile",
+            "label": "90th percentile",
+            "type": "float"
+        },
+        {
+            "id": "99th_percentile",
+            "label": "99th percentile",
+            "type": "float"
         }
     ]
 }
\ No newline at end of file
diff --git a/datasources/mmv_performance_country_image.json 
b/datasources/mmv_performance_country_image.json
index 543b325..6c3479f 100644
--- a/datasources/mmv_performance_country_image.json
+++ b/datasources/mmv_performance_country_image.json
@@ -26,6 +26,26 @@
             "id": "sample_size",
             "label": "Sample size",
             "type": "float"
+        },
+        {
+            "id": "1st_percentile",
+            "label": "1st percently",
+            "type": "float"
+        },
+        {
+            "id": "50th_percentile",
+            "label": "50th percentile",
+            "type": "float"
+        },
+        {
+            "id": "90th_percentile",
+            "label": "90th percentile",
+            "type": "float"
+        },
+        {
+            "id": "99th_percentile",
+            "label": "99th percentile",
+            "type": "float"
         }
     ]
 }
\ No newline at end of file
diff --git a/graphs/mmv_performance_country_api.json 
b/graphs/mmv_performance_country_api.json
index dc05580..a2ed42d 100644
--- a/graphs/mmv_performance_country_api.json
+++ b/graphs/mmv_performance_country_api.json
@@ -32,10 +32,49 @@
                             "type": "Number"
                         },
                         "options": {
-                            "label": "Mean",
-                            "scale": "log",
+                            "label": "Geometric mean",
+                            "valueFormat": ",.3r",
+                            "valueUnitSuffix": "ms"
+                        }
+                    },
+                    {
+                        "nodeType": "geo-feature",
+                        "metric": {
+                            "source_id": "mmv_performance_country_api",
+                            "source_col": "1st_percentile",
+                            "type": "Number"
+                        },
+                        "options": {
+                            "label": "1st percentile",
+                            "valueFormat": ",.3r",
+                            "valueUnitSuffix": "ms"
+                        }
+                    },
+                    {
+                        "nodeType": "geo-feature",
+                        "metric": {
+                            "source_id": "mmv_performance_country_api",
+                            "source_col": "50th_percentile",
+                            "type": "Number"
+                        },
+                        "options": {
+                            "label": "50th percentile",
+                            "valueFormat": ",.3r",
+                            "valueUnitSuffix": "ms"
+                        }
+                    },
+                    {
+                        "nodeType": "geo-feature",
+                        "metric": {
+                            "source_id": "mmv_performance_country_api",
+                            "source_col": "90th_percentile",
+                            "type": "Number"
+                        },
+                        "options": {
+                            "label": "90th percentile",
                             "valueFormat": ",.3r",
                             "valueUnitSuffix": "ms",
+                            "scale": "log",
                             "fill": [
                                 "#00FF00",
                                 "#FF0000"
@@ -54,11 +93,24 @@
                         "nodeType": "geo-feature",
                         "metric": {
                             "source_id": "mmv_performance_country_api",
+                            "source_col": "99th_percentile",
+                            "type": "Number"
+                        },
+                        "options": {
+                            "label": "99th percentile",
+                            "valueFormat": ",.3r",
+                            "valueUnitSuffix": "ms"
+                        }
+                    },
+                    {
+                        "nodeType": "geo-feature",
+                        "metric": {
+                            "source_id": "mmv_performance_country_api",
                             "source_col": "std",
                             "type": "Number"
                         },
                         "options": {
-                            "label": "Standard deviation",
+                            "label": "Geometric standard deviation",
                             "valueFormat": ",.3r",
                             "valueUnitSuffix": "ms"
                         }
diff --git a/graphs/mmv_performance_country_image.json 
b/graphs/mmv_performance_country_image.json
index e3c4e45..9081646 100644
--- a/graphs/mmv_performance_country_image.json
+++ b/graphs/mmv_performance_country_image.json
@@ -32,10 +32,49 @@
                             "type": "Number"
                         },
                         "options": {
-                            "label": "Mean",
-                            "scale": "log",
+                            "label": "Geometric mean",
+                            "valueFormat": ",.3r",
+                            "valueUnitSuffix": "ms"
+                        }
+                    },
+                    {
+                        "nodeType": "geo-feature",
+                        "metric": {
+                            "source_id": "mmv_performance_country_api",
+                            "source_col": "1st_percentile",
+                            "type": "Number"
+                        },
+                        "options": {
+                            "label": "1st percentile",
+                            "valueFormat": ",.3r",
+                            "valueUnitSuffix": "ms"
+                        }
+                    },
+                    {
+                        "nodeType": "geo-feature",
+                        "metric": {
+                            "source_id": "mmv_performance_country_api",
+                            "source_col": "50th_percentile",
+                            "type": "Number"
+                        },
+                        "options": {
+                            "label": "50th percentile",
+                            "valueFormat": ",.3r",
+                            "valueUnitSuffix": "ms"
+                        }
+                    },
+                    {
+                        "nodeType": "geo-feature",
+                        "metric": {
+                            "source_id": "mmv_performance_country_api",
+                            "source_col": "90th_percentile",
+                            "type": "Number"
+                        },
+                        "options": {
+                            "label": "90th percentile",
                             "valueFormat": ",.3r",
                             "valueUnitSuffix": "ms",
+                            "scale": "log",
                             "fill": [
                                 "#00FF00",
                                 "#FF0000"
@@ -53,12 +92,25 @@
                     {
                         "nodeType": "geo-feature",
                         "metric": {
+                            "source_id": "mmv_performance_country_api",
+                            "source_col": "99th_percentile",
+                            "type": "Number"
+                        },
+                        "options": {
+                            "label": "99th percentile",
+                            "valueFormat": ",.3r",
+                            "valueUnitSuffix": "ms"
+                        }
+                    },
+                    {
+                        "nodeType": "geo-feature",
+                        "metric": {
                             "source_id": "mmv_performance_country_image",
                             "source_col": "std",
                             "type": "Number"
                         },
                         "options": {
-                            "label": "Standard deviation",
+                            "label": "Geometric standard deviation",
                             "valueFormat": ",.3r",
                             "valueUnitSuffix": "ms"
                         }

-- 
To view, visit https://gerrit.wikimedia.org/r/130323
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib1d7dcf40615f1144c082d731757fe013870fc27
Gerrit-PatchSet: 1
Gerrit-Project: analytics/multimedia/config
Gerrit-Branch: master
Gerrit-Owner: Gilles <gdu...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to