Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: squash
-
Labels:None
-
Story Points:1.4
-
Epic Link:
-
Team:SQuaRE
Description
This is required in order to update metric definitions and specifications using the SQuaSH REST API.
Updating a metric definition
metric = {'name': 'validate_drp.PA1',
'description': 'The maximum rms of the unresolved source magnitude distribution around the mean value.',
'unit': 'mmag',
'tags': ['photometry'],
'reference': {'doc': 'LPM-17', 'page': 21, 'url': 'http://ls.st/lpm-17'}}
r = requests.put(SQUASH_API_URL + "/metric/{}".format(metric['name']), json=metric, headers=headers)
r.json()
{'name': 'validate_drp.PA1',
'package': 'validate_drp',
'display_name': 'PA1',
'description': 'The maximum rms of the unresolved source magnitude distribution around the mean value.',
'unit': 'mmag',
'tags': ['photometry'],
'reference': {'doc': 'LPM-17', 'url': 'http://ls.st/lpm-17', 'page': 21}}