#NEWLINE# def __init__( self , name , documentation , value = None , labels = None ) : #NEWLINE# #INDENT# Metric . __init__ ( self , name , documentation , 'counter' ) #NEWLINE# if ( ( labels is not None ) and ( value is not None ) ) : #NEWLINE# #INDENT# raise ValueError ( 'Can only specify at most one of value and labels.' ) #NEWLINE# #UNINDENT# if ( labels is None ) : #NEWLINE# #INDENT# labels = [ ] #NEWLINE# #UNINDENT# self . _labelnames = labels #NEWLINE# if ( value is not None ) : #NEWLINE# #INDENT# self . add_metric ( [ ] , value )