import { ModelData, Model } from "@kubernetes-models/base"; /** * The limit stage is a rate-limiting stage that throttles logs based on * several options. */ export interface ILimitStageSpec { /** * The cap in the quantity of burst lines that Promtail will push to Loki. */ "burst"?: number; /** * When drop is true, log lines that exceed the current rate limit are discarded. * When drop is false, log lines that exceed the current rate limit wait * to enter the back pressure mode. * * Defaults to false. */ "drop"?: boolean; /** * The rate limit in lines per second that Promtail will push to Loki. */ "rate"?: number; } /** * The limit stage is a rate-limiting stage that throttles logs based on * several options. */ export declare class LimitStageSpec extends Model implements ILimitStageSpec { "burst"?: number; "drop"?: boolean; "rate"?: number; constructor(data?: ModelData); } export type { ILimitStageSpec as IComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1LimitStageSpec, LimitStageSpec as ComGithubGrafanaAgentPkgOperatorApisMonitoringV1alpha1LimitStageSpec };