package
0.0.0-20240821020240-4b34f726d022
Repository: https://github.com/redhatinsights/insights-results-aggregator-mock.git
Documentation: pkg.go.dev

# Constants

DBDriverGeneral general sql(used for mock now).
DBDriverPostgres shows that db driver is postgres.
DBDriverSQLite3 shows that db driver is sqlite.
UserVoteDislike shows user's dislike.
UserVoteLike shows user's like.
UserVoteNone shows no vote from user.

# Variables

ErrOldReport is an error returned if a more recent already exists on the storage while attempting to write a report for a cluster.

# Structs

Acknowledge represents user acknowledgement of given rule.
AcknowledgementJustification data structure represents body of request with specified justification of given acknowledgement.
AcknowledgementRuleSelectorJustification data structure represents body of request with specified rule selector and justification of given acknowledgement.
AcknowledgementsMetadata contains metadata about list of acknowledgements.
AcknowledgementsResponse is structure returned to client in JSON serialization format.
Alert data structure representing a single alert.
ClusterUpgradeRiskPrediction data structure represents body of the reponse for a multi-cluster upgrade-risk-prediction request.
DisabledRuleResponse represents a single disabled rule displaying only identifying information.
DVOWorkload structure represents one item for DVO recommendation for any cluster.
OperatorCondition data structure representing a single operator condition.
ReportResponse represents the response of /report endpoint.
ReportResponseMeta contains metadata about the report.
ReportRules is a helper struct for easy JSON unmarshalling of string encoded report.
Rule represents the content of rule table.
RuleContentResponse represents a single rule in the response of /report endpoint.
RuleErrorKey represents the content of rule_error_key table.
RuleHit represents one rule hit for one defined cluster.
RuleOnReport represents a single (hit) rule of the string encoded report.
RuleWithContent represents a rule with content, basically the mix of rule and rule_error_key tables' content.
SimplifiedReport is structure returned by the service to IO to handle On Demand Data Gathering.
SimplifiedRuleHit structure represents one simplified rule hit for On Demand Data Gathering.
UpgradeRiskPrediction data structure represents body of the response for an upgrade-risk-predictions request.
UpgradeRisksPredictors data structure represents the alerts and conditions that are contained in an upgrade-risk-predictions response.

# Type aliases

ClusterName represents name of cluster in format c8590f31-e97e-4b85-b506-c45ce1911a12.
ClusterReport represents cluster report.
Component represent name of component (of rule).
DBDriver type for db driver enum.
ErrorKey represents type for error key.
KafkaOffset type for kafka offset.
OrgID represents organization ID.
RequestID is used to store the request ID supplied in input Kafka records as a unique identifier of payloads.
RuleID represents type for rule id.
RuleSelector represents component + error key.
Timestamp represents any timestamp in a form gathered from database TODO: need to be improved.
UserID represents type for user id.
UserVote is a type for user's vote.