Skip to content

Commit 5c630b1

Browse files
author
Beatriz Rizental
authored
Bug 1719315 - Add support for the URL metric type (#361)
* Add support for the URL metric type * Update CHANGELOG.md
1 parent 3087302 commit 5c630b1

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased
44

55
- New lint: Check for redundant words in ping names ([#355](https://github.com/mozilla/glean_parser/pull/355))
6+
- Add support for URL metric type ([#361](https://github.com/mozilla/glean_parser/pull/361))
67

78
## 3.6.0 (2021-06-11)
89

glean_parser/metrics.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,10 @@ class Uuid(Metric):
338338
typename = "uuid"
339339

340340

341+
class Url(Metric):
342+
typename = "url"
343+
344+
341345
class Jwe(Metric):
342346
typename = "jwe"
343347

glean_parser/schemas/metrics.2-0-0.schema.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ definitions:
9494
9595
- `uuid`: Record a UUID v4.
9696
97+
- `url`: Record a valid URL string.
98+
9799
- `memory_distribution`: A histogram for recording memory usage
98100
values. Additional properties: `memory_unit`.
99101
@@ -129,6 +131,7 @@ definitions:
129131
- memory_distribution
130132
- datetime
131133
- uuid
134+
- url
132135
- jwe
133136
- labeled_boolean
134137
- labeled_string

0 commit comments

Comments
 (0)