'interval':fields.String(description='Interval to use for upload time aggregation.',allow_null=True,skip_none=True),
'metrics':fields.List(fields.String,description=(
'Metrics to aggregate over all quantities and their values as comma separated list. '
'Possible values are %s.'%', '.join(search_extension.metrics.keys())),allow_null=True,skip_none=True),
'Possible values are %s.'%', '.join(search.metrics.keys())),allow_null=True,skip_none=True),
'statistics_required':fields.List(fields.String,description='Quantities for which to aggregate values and their metrics.',allow_null=True,skip_none=True),
'exclude':fields.List(fields.String,description='Excludes the given keys in the returned data.',allow_null=True,skip_none=True)
})
...
...
@@ -192,7 +191,7 @@ class RepoCalcsResource(Resource):
abort(400,message='bad parameters: %s'%str(e))
formetricinmetrics:
ifmetricnotinsearch_extension.metrics:
ifmetricnotinsearch.metrics:
abort(400,message='there is no metric %s'%metric)
search_request=search.SearchRequest()
...
...
@@ -214,7 +213,7 @@ class RepoCalcsResource(Resource):
@click.option('--threads',type=int,default=1,help='Number of threads to use.')
@click.option('--code',multiple=True,type=str,help='Index only calculcations of given codes.')
@click.option('--dry',is_flag=True,help='Do not index, just compute entries.')
@click.option('--in-place',is_flag=True,default=False,help='Perform indexing in the current elastic search index. Meant only for small reindex operations.')
@click.option('-n',type=int,default=None,help='Number of calculations to process. Leave undefined to process all calculations.')