import { ModelData, Model } from "@kubernetes-models/base"; /** * ReplaceStageSpec is a parsing stage that parses a log line using a regular * expression and replaces the log line. Named capture groups in the regex * allows for adding data into the extracted map. */ export interface IReplaceStageSpec { /** * RE2 regular expression. Each capture group MUST be named. Required. */ "expression": string; /** * Value to replace the captured group with. */ "replace"?: string; /** * Name from extracted data to parse. If empty, defaults to using the log * message. */ "source"?: string; } /** * ReplaceStageSpec is a parsing stage that parses a log line using a regular * expression and replaces the log line. Named capture groups in the regex * allows for adding data into the extracted map. */ export declare class ReplaceStageSpec extends Model implements IReplaceStageSpec { "expression": string; "replace"?: string; "source"?: string; constructor(data?: ModelData); } export type { IReplaceStageSpec as IComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1ReplaceStageSpec, ReplaceStageSpec as ComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1ReplaceStageSpec };