@luminati-io/kubernetes-models-fluent-operator
Version:
Models for https://github.com/fluent/fluent-operator
110 lines (109 loc) • 3.86 kB
TypeScript
import { IObjectMeta } from "@kubernetes-models/apimachinery/apis/meta/v1/ObjectMeta";
import { Model, ModelData } from "@kubernetes-models/base";
/**
* ClusterParser is the Schema for the cluster-level parsers API
*/
export interface IClusterParser {
/**
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
*/
"apiVersion": "fluentbit.fluent.io/v1alpha2";
/**
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
*/
"kind": "ClusterParser";
"metadata"?: IObjectMeta;
/**
* ParserSpec defines the desired state of ClusterParser
*/
"spec"?: {
/**
* Decoders are a built-in feature available through the Parsers file, each Parser definition can optionally set one or multiple decoders. There are two type of decoders type: Decode_Field and Decode_Field_As.
*/
"decoders"?: Array<{
/**
* If the content can be decoded in a structured message, append that structure message (keys and values) to the original log message.
*/
"decodeField"?: string;
/**
* Any content decoded (unstructured or structured) will be replaced in the same key/value, no extra keys are added.
*/
"decodeFieldAs"?: string;
}>;
/**
* JSON defines json parser configuration.
*/
"json"?: {
/**
* Time_Format, eg. %Y-%m-%dT%H:%M:%S %z
*/
"timeFormat"?: string;
/**
* Time_Keep
*/
"timeKeep"?: boolean;
/**
* Time_Key
*/
"timeKey"?: string;
};
/**
* Logfmt defines logfmt parser configuration.
*/
"logfmt"?: {};
/**
* LTSV defines ltsv parser configuration.
*/
"ltsv"?: {
/**
* Time_Format, eg. %Y-%m-%dT%H:%M:%S %z
*/
"timeFormat"?: string;
/**
* Time_Keep
*/
"timeKeep"?: boolean;
/**
* Time_Key
*/
"timeKey"?: string;
"types"?: string;
};
/**
* Regex defines regex parser configuration.
*/
"regex"?: {
"regex"?: string;
/**
* Time_Format, eg. %Y-%m-%dT%H:%M:%S %z
*/
"timeFormat"?: string;
/**
* Time_Keep
*/
"timeKeep"?: boolean;
/**
* Time_Key
*/
"timeKey"?: string;
/**
* Time_Offset, eg. +0200
*/
"timeOffset"?: string;
"types"?: string;
};
};
}
/**
* ClusterParser is the Schema for the cluster-level parsers API
*/
export declare class ClusterParser extends Model<IClusterParser> implements IClusterParser {
"apiVersion": IClusterParser["apiVersion"];
"kind": IClusterParser["kind"];
"metadata"?: IClusterParser["metadata"];
"spec"?: IClusterParser["spec"];
static apiVersion: IClusterParser["apiVersion"];
static kind: IClusterParser["kind"];
static is: import("@kubernetes-models/base").TypeMetaGuard<IClusterParser>;
constructor(data?: ModelData<IClusterParser>);
}