ci: set timestamp format correctly for opensearch (#1335)

This commit is contained in:
Moritz Eckert 2023-03-03 13:47:25 +01:00 committed by GitHub
parent 2e73e0aa18
commit ac127db79e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,13 +68,17 @@ def main() -> None:
knb_results = knb.evaluate(knb_path)
fio_results = fio.evaluate(fio_path)
# Get timestamp
now = datetime.now()
timestamp = now.strftime("%Y-%m-%dT%H:%M:%S.%fZ")
combined_results = {'metadata': {
'github.sha': commit_hash,
'github.ref-name': commit_ref,
'github.actor': actor,
'github.workflow': workflow,
'created': str(datetime.now()),
},
'@timestamp': str(timestamp),
'provider': ext_provider_name,
'fio': {},
'knb': {}}