import { ModelData, Model } from "@kubernetes-models/base"; /** * DropStageSpec is a filtering stage that lets you drop certain logs. */ export interface IDropStageSpec { /** * 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 "drop_stage". */ "dropCounterReason"?: string; /** * RE2 regular expression. * * If source is provided, the regex attempts * to match the source. * * If no source is provided, then the regex attempts * to attach the log line. * * If the provided regex matches the log line or a provided source, the * line is dropped. */ "expression"?: string; /** * LongerThan will drop a log line if it its content is longer than this * value (in bytes). Can be expressed as an integer (8192) or a number with a * suffix (8kb). */ "longerThan"?: string; /** * OlderThan will be parsed as a Go duration. If the log line's timestamp * is older than the current time minus the provided duration, it will be * dropped. */ "olderThan"?: string; /** * Name from the extract data to parse. If empty, uses the log message. */ "source"?: string; /** * Value can only be specified when source is specified. If the value * provided is an exact match for the given source then the line will be * dropped. * * Mutually exclusive with expression. */ "value"?: string; } /** * DropStageSpec is a filtering stage that lets you drop certain logs. */ export declare class DropStageSpec extends Model implements IDropStageSpec { "dropCounterReason"?: string; "expression"?: string; "longerThan"?: string; "olderThan"?: string; "source"?: string; "value"?: string; constructor(data?: ModelData); } export type { IDropStageSpec as IComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1DropStageSpec, DropStageSpec as ComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1DropStageSpec };