aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/telemetry/metrics.py
diff options
context:
space:
mode:
authorViliam Luc <vluc@cisco.com>2022-03-18 14:02:44 +0100
committerPeter Mikus <pmikus@cisco.com>2022-03-31 08:50:23 +0000
commite2b220824914769fd9f4b245038cc31fb8425b18 (patch)
tree33a096dd9b6c9ecd0f85d10be11d835388f133a7 /resources/tools/telemetry/metrics.py
parent58a35815c1b68fc5b9590aad0d5942b0508a63d4 (diff)
telemetry: error message handling
Change-Id: I3bc07072337d45ff24acfbb75cced3b0b052b6f5 Signed-off-by: Viliam Luc <vluc@cisco.com>
Diffstat (limited to 'resources/tools/telemetry/metrics.py')
-rw-r--r--resources/tools/telemetry/metrics.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/resources/tools/telemetry/metrics.py b/resources/tools/telemetry/metrics.py
index 281760183b..7a22acfd1b 100644
--- a/resources/tools/telemetry/metrics.py
+++ b/resources/tools/telemetry/metrics.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2021 Cisco and/or its affiliates.
+# Copyright (c) 2022 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
@@ -340,7 +340,7 @@ class MetricBase:
def samples(self):
"""
- Returns samples wheter an object is parent or child.
+ Returns samples whether an object is parent or child.
:returns: List of Metric objects with values.
:rtype: list
@@ -602,9 +602,9 @@ class Info(MetricBase):
"""
Set info to the given value.
- :param amount: Value to set.
- :type amount: int or float
- :raises ValueError: If lables are overlapping.
+ :param value: Value to set.
+ :type value: int or float
+ :raises ValueError: If labels are overlapping.
"""
if self._labelname_set.intersection(value.keys()):
raise ValueError(