ocp_rules_consumer.go | |
---|---|
|
|
Package consumer contains interface for any consumer that is able to process messages. It also contains implementation of Kafka consumer. It is expected that consumed messages are generated by ccx-data-pipeline based on OCP rules framework. The report generated by the framework are enhanced with more context information taken from different sources, like the organization ID, account number, unique cluster name, and the LastChecked timestamp (taken from the incoming Kafka record containing the URL to the archive). It is also expected that consumed messages contains one INFO rule hit that contains cluster version. That rule hit is produced by special rule used only in external data pipeline: "versioninfo|CLUSTERVERSION_INFO" |
|
NewOCPRulesConsumer constructs new implementation of Consumer interface |
|