import { ModelData, Model } from "@kubernetes-models/base"; /** * TimestampStageSpec is an action stage that can change the timestamp of a log * line before it is sent to Loki. */ export interface ITimestampStageSpec { /** * Action to take when the timestamp can't be extracted or parsed. * Can be skip or fudge. Defaults to fudge. */ "actionOnFailure"?: string; /** * Fallback formats to try if format fails. */ "fallbackFormats"?: Array; /** * Determines format of the time string. Required. Can be one of: * ANSIC, UnixDate, RubyDate, RFC822, RFC822Z, RFC850, RFC1123, RFC1123Z, * RFC3339, RFC3339Nano, Unix, UnixMs, UnixUs, UnixNs. */ "format": string; /** * IANA Timezone Database string. */ "location"?: string; /** * Name from extracted data to use as the timestamp. Required. */ "source": string; } /** * TimestampStageSpec is an action stage that can change the timestamp of a log * line before it is sent to Loki. */ export declare class TimestampStageSpec extends Model implements ITimestampStageSpec { "actionOnFailure"?: string; "fallbackFormats"?: Array; "format": string; "location"?: string; "source": string; constructor(data?: ModelData); } export type { ITimestampStageSpec as IComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1TimestampStageSpec, TimestampStageSpec as ComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1TimestampStageSpec };