Adds versions to analytics collectors and manifest file.

- adds 'query_info.json' to contain collection metadata
  - adds 'manifest.json' to contain collection file version info
This commit is contained in:
Christian Adams
2019-08-22 13:37:01 -04:00
committed by Christian Adams
parent 9baa9eee96
commit 78c0d531bc
5 changed files with 62 additions and 22 deletions

View File

@@ -9,17 +9,17 @@ from django.conf import settings
from awx.main.analytics import gather, register
@register('example')
@register('example', '1.0')
def example(since):
return {'awx': 123}
@register('bad_json')
@register('bad_json', '1.0')
def bad_json(since):
return set()
@register('throws_error')
@register('throws_error', '1.0')
def throws_error(since):
raise ValueError()