'Generates a Monitor Descriptor file.'

def handle_noargs(self, **options):

    registry = global_registry()
    definitions = []
    for schema in registry.schemas:
        definitions.extend(schema.to_json())
    definitions.sort((lambda a, b: cmp(a['context'], b['context'])))
    d = {'name': 'HUE', 'nameForCrossEntityAggregateMetrics': 'hues', 'version': 1, 'metricDefinitions': [], 'roles': [{'name': 'HUE_SERVER', 'nameForCrossEntityAggregateMetrics': 'hue_servers', 'metricDefinitions': definitions}]}
    print json.dumps(d)
