Exemple #1
0
 def distribution(
     self,
     key: str,
     value: NUM_TYPE,
     sample_rate: Union[int, float, None] = None,
     tag_dict: Optional[dict] = None,
 ) -> None:
     protocol: "DogStatsdProtocol" = DogStatsdProtocol().distribution(key, value, tag_dict)
     self.send_dog_statsd(protocol, sample_rate)
Exemple #2
0
 def set(
     self,
     key: str,
     value: Union[int, float],
     sample_rate: Union[int, float, None] = None,
     tag_dict: Optional[dict] = None,
 ) -> NoReturn:
     protocol: "DogStatsdProtocol" = DogStatsdProtocol().set(key, value, tag_dict)
     self.send_dog_statsd(protocol, sample_rate)
Exemple #3
0
 def decrement(
     self, key: str, value: int, sample_rate: Union[int, float, None] = None, tag_dict: Optional[dict] = None
 ) -> None:
     protocol: "DogStatsdProtocol" = DogStatsdProtocol().decrement(key, value, tag_dict)
     self.send_dog_statsd(protocol, sample_rate)