def add_handlers(handler_list, subparsers):
 command_handlers = [ListCustomDescriptorsHandler('/stackdriver/list_descriptors', 'list_stackdriver', 'Get the JSON of all the Stackdriver Custom Metric Descriptors.'), ClearCustomDescriptorsHandler('/stackdriver/clear_descriptors', 'clear_stackdriver', 'Clear all the Stackdriver Custom Metrics'), UpsertCustomDescriptorsHandler(None, 'upsert_stackdriver_descriptors', 'Given a file of Stackdriver Custom Metric Desciptors, update the existing ones and add the new ones. WARNING: Historic time-series data may be lost on update.')]
 for handler in command_handlers:
  handler.add_argparser(subparsers)
  handler_list.append(handler)

def add_handlers ( handler_list , subparsers ) : command_handlers = [ ListCustomDescriptorsHandler ( '/stackdriver/list_descriptors' , 'list_stackdriver' , 'Get the JSON of all the Stackdriver Custom Metric Descriptors.' ) , ClearCustomDescriptorsHandler ( '/stackdriver/clear_descriptors' , 'clear_stackdriver' , 'Clear all the Stackdriver Custom Metrics' ) , UpsertCustomDescriptorsHandler ( None , 'upsert_stackdriver_descriptors' , 'Given a file of Stackdriver Custom Metric Desciptors, update the existing ones and add the new ones. WARNING: Historic time-series data may be lost on update.' ) ] for handler in command_handlers : handler . add_argparser ( subparsers ) handler_list . append ( handler )
registers all the commandhandlers for interacting with datadog .