Add a sample to the metric. Internal-only, do not use.
(self, name: str, labels: Dict[str, str], value: float, timestamp: Optional[Union[Timestamp, float]] = None, exemplar: Optional[Exemplar] = None, native_histogram: Optional[NativeHistogram] = None)
| 33 | self.samples: List[Sample] = [] |
| 34 | |
| 35 | def add_sample(self, name: str, labels: Dict[str, str], value: float, timestamp: Optional[Union[Timestamp, float]] = None, exemplar: Optional[Exemplar] = None, native_histogram: Optional[NativeHistogram] = None) -> None: |
| 36 | """Add a sample to the metric. |
| 37 | |
| 38 | Internal-only, do not use.""" |
| 39 | self.samples.append(Sample(name, labels, value, timestamp, exemplar, native_histogram)) |
| 40 | |
| 41 | def __eq__(self, other: object) -> bool: |
| 42 | return (isinstance(other, Metric) |