package
0.0.0-20250402025314-898447b66097
Repository: https://github.com/openshift/insights-operator.git
Documentation: pkg.go.dev

# Functions

New creates a new instance of conditional gatherer with the appropriate configs.

# Constants

AlertIsFiring is a condition to check that alert is firing the params are in the field `alert`.
ClusterVersionMatches is a condition to check that the current cluster version matches the provided semantic versioning expression.
GatherAPIRequestCounts is a function collecting api request counts for the resources read from the corresponding alert See file gather_api_requests_count.go.
GatherContainersLogs is a function that collects logs from pod's containers See file gather_containers_logs.go.
GatherImageStreamsOfNamespace is a function collecting image streams of the provided namespace.
GatherLogsOfNamespace is a function collecting logs of the provided namespace.
GatherPodDefinition is a function that collects the pod definitions See file gather_pod_definition.go.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

AlertConditionParams is a type holding params for alert_is_firing condition.
APIRequestCount defines a type used when marshaling into JSON.
ClusterVersionMatchesConditionParams is a type holding params for cluster_version_matches condition.
ConditionWithParams is a type holding a condition with its params.
ContainerLogRequest is a type representing concrete and unique container log request.
GatherAPIRequestCountsParams defines parameters for api_request_counts gatherer.
GatherContainersLogsParams defines parameters for container_logs gatherer.
Gatherer implements the conditional gatherer.
GatherImageStreamsOfNamespaceParams defines parameters for image streams of namespace gatherer.
GatheringRule is a rule consisting of conditions and gathering functions to run if all conditions are met, gathering_rule.schema.json describes valid values for this struct.
GatheringRuleMetadata stores metadata about a gathering rule.
GatheringRulesMetadata stores metadata about gathering rules.
GatherLogsOfNamespaceParams defines parameters for logs of namespace gatherer.
GatherPodDefinitionParams defines parameters for pod_definition gatherer.
LogRequest is a "sanitized" type, because there can be various requests for the same namespace and this type helps prevent duplicate Pod name regular expressions and duplicate messages.
PodNameRegexPrevious is a helper struct storing the Pod name regular expression value together with a flag saying whether it is for previous container log or not.
RawLogRequest is type used to unmarshal the remote configuration JSON.
RemoteConfiguration is a structure to hold gathering rules with their version.

# Interfaces

No description provided by the author

# Type aliases

AlertLabels defines alert labels as a string key/value pairs.
ConditionType defines conditions to check.
GathererFunctionBuilderPtr defines a pointer to a gatherer function builder.
GatheringFunctionName defines functions of conditional gatherer.
GatheringFunctions is a type to map gathering function name to its params.