import { ModelData, Model } from "@kubernetes-models/base"; /** * JSONStageSpec is a parsing stage that reads the log line as JSON and accepts * JMESPath expressions to extract data. */ export interface IJSONStageSpec { /** * Set of the key/value pairs of JMESPath expressions. The key will be the * key in the extracted data while the expression will be the value, * evaluated as a JMESPath from the source data. * * Literal JMESPath expressions can be used by wrapping a key in double * quotes, which then must be wrapped again in single quotes in YAML * so they get passed to the JMESPath parser. */ "expressions"?: { [key: string]: string; }; /** * Name from the extracted data to parse as JSON. If empty, uses entire log * message. */ "source"?: string; } /** * JSONStageSpec is a parsing stage that reads the log line as JSON and accepts * JMESPath expressions to extract data. */ export declare class JSONStageSpec extends Model implements IJSONStageSpec { "expressions"?: { [key: string]: string; }; "source"?: string; constructor(data?: ModelData); } export type { IJSONStageSpec as IComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1JSONStageSpec, JSONStageSpec as ComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1JSONStageSpec };