import { ModelData, Model } from "@kubernetes-models/base"; /** * MatchStageSpec is a filtering stage that conditionally applies a set of * stages or drop entries when a log entry matches a configurable LogQL stream * selector and filter expressions. */ export interface IMatchStageSpec { /** * Determines what action is taken when the selector matches the log line. * Can be keep or drop. Defaults to keep. When set to drop, entries are * dropped and no later metrics are recorded. * Stages must be empty when dropping metrics. */ "action"?: string; /** * Every time a log line is dropped, the metric logentry_dropped_lines_total * is incremented. A "reason" label is added, and can be customized by * providing a custom value here. Defaults to "match_stage." */ "dropCounterReason"?: string; /** * Names the pipeline. When defined, creates an additional label * in the pipeline_duration_seconds histogram, where the value is * concatenated with job_name using an underscore. */ "pipelineName"?: string; /** * LogQL stream selector and filter expressions. Required. */ "selector": string; /** * Nested set of pipeline stages to execute when action is keep and the log * line matches selector. * * An example value for stages may be: * * stages: | * - json: {} * - labelAllow: [foo, bar] * * Note that stages is a string because SIG API Machinery does not * support recursive types, and so it cannot be validated for correctness. Be * careful not to mistype anything. */ "stages"?: string; } /** * MatchStageSpec is a filtering stage that conditionally applies a set of * stages or drop entries when a log entry matches a configurable LogQL stream * selector and filter expressions. */ export declare class MatchStageSpec extends Model implements IMatchStageSpec { "action"?: string; "dropCounterReason"?: string; "pipelineName"?: string; "selector": string; "stages"?: string; constructor(data?: ModelData); } export type { IMatchStageSpec as IComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1MatchStageSpec, MatchStageSpec as ComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1MatchStageSpec };