Python module that provides helpers for functional testing of metrics with testsuite; see Functional service tests (testsuite) for an introduction. 
 
◆ _diff_metric_snapshots()
  
  
      
        
          |  str pytest_userver.metrics._diff_metric_snapshots  | 
          ( | 
          _FlattenedSnapshot |           lhs,  | 
         
        
           | 
           | 
          _FlattenedSnapshot |           rhs,  | 
         
        
           | 
           | 
          bool |           ignore_zeros ) | 
         
       
   | 
  
protected   | 
  
 
 
◆ _do_compute_percentile()
  
  
      
        
          |  float pytest_userver.metrics._do_compute_percentile  | 
          ( | 
          Histogram |           hist,  | 
         
        
           | 
           | 
          float |           percent ) | 
         
       
   | 
  
protected   | 
  
 
 
◆ _flatten_snapshot()
  
  
      
        
          |  _FlattenedSnapshot pytest_userver.metrics._flatten_snapshot  | 
          ( | 
           |           values,  | 
         
        
           | 
           | 
          bool |           ignore_zeros ) | 
         
       
   | 
  
protected   | 
  
 
 
◆ _get_labels_tuple()
  
  
      
        
          |  typing.Tuple pytest_userver.metrics._get_labels_tuple  | 
          ( | 
          Metric |           metric | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Returns labels as a tuple of sorted items. 
Definition at line 382 of file metrics.py.
 
 
◆ _parse_metric_value()
  
  
      
        
          |  MetricValue pytest_userver.metrics._parse_metric_value  | 
          ( | 
          typing.Any |           value | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ _type_eq()
  
  
      
        
          |  bool pytest_userver.metrics._type_eq  | 
          ( | 
          MetricType |           lhs,  | 
         
        
           | 
           | 
          MetricType |           rhs ) | 
         
       
   | 
  
protected   | 
  
 
 
◆ _FlattenedSnapshot
  
  
      
        
          | pytest_userver.metrics._FlattenedSnapshot = typing.Set[typing.Tuple[str, Metric]] | 
         
       
   | 
  
protected   | 
  
 
 
◆ MetricValue
      
        
          | pytest_userver.metrics.MetricValue = typing.Union[float, Histogram] |