Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Ley
synapse
Commits
d7bf3a68
Commit
d7bf3a68
authored
7 years ago
by
Erik Johnston
Browse files
Options
Downloads
Patches
Plain Diff
s/list/tuple
parent
f67e906e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/metrics/metric.py
+2
-2
2 additions, 2 deletions
synapse/metrics/metric.py
with
2 additions
and
2 deletions
synapse/metrics/metric.py
+
2
−
2
View file @
d7bf3a68
...
...
@@ -115,7 +115,7 @@ class CounterMetric(BaseMetric):
# dict[list[str]]: value for each set of label values. the keys are the
# label values, in the same order as the labels in self.labels.
#
# (if the metric is a scalar, the (single) key is the empty
list
).
# (if the metric is a scalar, the (single) key is the empty
tuple
).
self
.
counts
=
{}
# Scalar metrics are never empty
...
...
@@ -155,7 +155,7 @@ class GaugeMetric(BaseMetric):
# dict[list[str]]: value for each set of label values. the keys are the
# label values, in the same order as the labels in self.labels.
#
# (if the metric is a scalar, the (single) key is the empty
list
).
# (if the metric is a scalar, the (single) key is the empty
tuple
).
self
.
guages
=
{}
def
set
(
self
,
v
,
*
values
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment