Skip to content
Closed

test #832

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions schemas/glean/glean/glean-min.1.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,25 @@
},
"type": "object"
},
"labeled_quantity": {
"additionalProperties": {
"additionalProperties": {
"type": "integer"
},
"propertyNames": {
"comment": "This must be at least the length of 'category.name' metric names to support error reporting",
"maxLength": 71,
"type": "string"
},
"type": "object"
},
"propertyNames": {
"maxLength": 111,
"pattern": "^[a-z_][a-z0-9_\\.]+$",
"type": "string"
},
"type": "object"
},
"labeled_rate": {
"additionalProperties": {
"additionalProperties": {
Expand Down
19 changes: 19 additions & 0 deletions schemas/glean/glean/glean.1.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,25 @@
},
"type": "object"
},
"labeled_quantity": {
"additionalProperties": {
"additionalProperties": {
"type": "integer"
},
"propertyNames": {
"comment": "This must be at least the length of 'category.name' metric names to support error reporting",
"maxLength": 71,
"type": "string"
},
"type": "object"
},
"propertyNames": {
"maxLength": 111,
"pattern": "^[a-z_][a-z0-9_\\.]+$",
"type": "string"
},
"type": "object"
},
"labeled_rate": {
"additionalProperties": {
"additionalProperties": {
Expand Down
2 changes: 2 additions & 0 deletions templates/include/glean/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Version 1

- New metric type `labeled_quantity` [Bug 1932210](https://bugzilla.mozilla.org/show_bug.cgi?id=1932210)

- Increase maximum character limit for metric labels from 61 to 71 [Bug 1929078](https://bugzilla.mozilla.org/show_bug.cgi?id=1929078)

- New metric types `labeled_{custom|memory|timing}_distribution` [bug 1657947](https://bugzilla.mozilla.org/show_bug.cgi?id=1657947).
Expand Down
7 changes: 7 additions & 0 deletions templates/include/glean/metrics.1.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@
@GLEAN_BASE_OBJECT_1_JSON@,
"additionalProperties": @GLEAN_QUANTITY_1_JSON@
},
"labeled_quantity": {
@GLEAN_BASE_OBJECT_1_JSON@,
"additionalProperties": {
@GLEAN_LABELED_GROUP_1_JSON@,
"additionalProperties": @GLEAN_QUANTITY_1_JSON@
}
},
"timespan": {
@GLEAN_BASE_OBJECT_1_JSON@,
"additionalProperties": @GLEAN_TIMESPAN_1_JSON@
Expand Down