-
Story
-
Resolution: Done
-
Major
-
None
-
None
-
False
-
-
False
-
Unset
-
CRCPLAN-154 - HCC Export Service for Reporting
-
No
-
-
-
Platform Pipeline Sprint 64, Platform Pipeline Sprint 65
Right now the export service sends the Kafka events as regular events. The platform has defined a console.redhat.com CloudEvents specification which complies with the cloudevents specification.
The request of this story is to make the export-service comply with sending the events in that format. A sample Cloud Event for the export-service could look like this:
{ "id": "2356aad8-de45-4ba0-80bd-4637763ad115", "source": "urn:redhat:source:export-service", "subject": "urn:redhat:subject:export-service:b24c269d-33d6-410e-8808-c71c9635e84f", "specversion": "1.0", "type": "com.redhat.console.export-service.request", "time": "2023-01-01T00:00:00Z", "redhatorgid": "org-id-123", "dataschema": "https://console.redhat.com/api/schemas/apps/export-service/v1/export-request.json", "data": { "uuid": "afebabe-cafe-babe-cafe-babecafebabe", "application": "maybe use a urn of the kind urn:redhat:target:<application>?", "format": "(csv|json)", "resource": "applicationResource", "x-rh-identity": "base64encodedidheader", "filters": { } } }
In order for this Cloud Event to be valid, a new schema definition must be created in the event-schemas/schemas/apps repository.