| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 [ | 5 [ |
| 6 { | 6 { |
| 7 "namespace": "metricsPrivate", | 7 "namespace": "metricsPrivate", |
| 8 "nodoc": true, | 8 "description": "none", |
| 9 "types": [ | 9 "types": [ |
| 10 { | 10 { |
| 11 "id": "MetricType", | 11 "id": "MetricType", |
| 12 "type": "object", | 12 "type": "object", |
| 13 "description": "Describes the type of metric that is to be collected.", | 13 "description": "Describes the type of metric that is to be collected.", |
| 14 "properties": { | 14 "properties": { |
| 15 "metricName": {"type": "string", "description": "A unique name within
the extension for the metric."}, | 15 "metricName": {"type": "string", "description": "A unique name within
the extension for the metric."}, |
| 16 "type": { | 16 "type": { |
| 17 "type": "string", | 17 "type": "string", |
| 18 "enum": ["histogram-log", "histogram-linear"], | 18 "enum": ["histogram-log", "histogram-linear"], |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 "description": "Adds a value to the given metric.", | 117 "description": "Adds a value to the given metric.", |
| 118 "parameters": [ | 118 "parameters": [ |
| 119 {"name": "metric", "$ref": "MetricType"}, | 119 {"name": "metric", "$ref": "MetricType"}, |
| 120 {"name": "value", "type": "integer"} | 120 {"name": "value", "type": "integer"} |
| 121 ] | 121 ] |
| 122 } | 122 } |
| 123 ], | 123 ], |
| 124 "events": [] | 124 "events": [] |
| 125 } | 125 } |
| 126 ] | 126 ] |
| OLD | NEW |