@kubernetes-models/argo-rollouts
Version:
56 lines (55 loc) • 2.24 kB
TypeScript
import { IComGithubArgoprojArgoRolloutsPkgApisRolloutsV1alpha1Authentication } from "./Authentication.js";
import { IComGithubArgoprojArgoRolloutsPkgApisRolloutsV1alpha1WebMetricHeader } from "./WebMetricHeader.js";
import { IComGithubArgoprojArgoRolloutsPkgApisRolloutsV1alpha1WebMetricMethod } from "./WebMetricMethod.js";
import { ModelData, Model } from "@kubernetes-models/base";
export interface IWebMetric {
/**
* Authentication details
*/
"authentication"?: IComGithubArgoprojArgoRolloutsPkgApisRolloutsV1alpha1Authentication;
/**
* Body is the body of the web metric (must be POST/PUT)
*/
"body"?: string;
/**
* Headers are optional HTTP headers to use in the request
*/
"headers"?: Array<IComGithubArgoprojArgoRolloutsPkgApisRolloutsV1alpha1WebMetricHeader>;
/**
* Insecure skips host TLS verification
*/
"insecure"?: boolean;
/**
* JSONBody is the body of the web metric in a json format (method must be POST/PUT)
*/
"jsonBody"?: {};
/**
* JSONPath is a JSON Path to use as the result variable (default: "{$}")
*/
"jsonPath"?: string;
/**
* Method is the method of the web metric (empty defaults to GET)
*/
"method"?: IComGithubArgoprojArgoRolloutsPkgApisRolloutsV1alpha1WebMetricMethod;
/**
* TimeoutSeconds is the timeout for the request in seconds (default: 10)
*/
"timeoutSeconds"?: number;
/**
* URL is the address of the web metric
*/
"url": string;
}
export declare class WebMetric extends Model<IWebMetric> implements IWebMetric {
"authentication"?: IComGithubArgoprojArgoRolloutsPkgApisRolloutsV1alpha1Authentication;
"body"?: string;
"headers"?: Array<IComGithubArgoprojArgoRolloutsPkgApisRolloutsV1alpha1WebMetricHeader>;
"insecure"?: boolean;
"jsonBody"?: {};
"jsonPath"?: string;
"method"?: IComGithubArgoprojArgoRolloutsPkgApisRolloutsV1alpha1WebMetricMethod;
"timeoutSeconds"?: number;
"url": string;
constructor(data?: ModelData<IWebMetric>);
}
export type { IWebMetric as IComGithubArgoprojArgoRolloutsPkgApisRolloutsV1alpha1WebMetric, WebMetric as ComGithubArgoprojArgoRolloutsPkgApisRolloutsV1alpha1WebMetric };