kubernetes-models
Version:
50 lines (49 loc) • 1.7 kB
TypeScript
import { IIoK8sApimachineryPkgApisMetaV1Time } from "@kubernetes-models/apimachinery/apis/meta/v1/Time";
import { ModelData, Model } from "@kubernetes-models/base";
/**
* ContainerStateTerminated is a terminated state of a container.
*/
export interface IContainerStateTerminated {
/**
* Container's ID in the format '<type>://<container_id>'
*/
"containerID"?: string;
/**
* Exit status from the last termination of the container
*/
"exitCode": number;
/**
* Time at which the container last terminated
*/
"finishedAt"?: IIoK8sApimachineryPkgApisMetaV1Time;
/**
* Message regarding the last termination of the container
*/
"message"?: string;
/**
* (brief) reason from the last termination of the container
*/
"reason"?: string;
/**
* Signal from the last termination of the container
*/
"signal"?: number;
/**
* Time at which previous execution of the container started
*/
"startedAt"?: IIoK8sApimachineryPkgApisMetaV1Time;
}
/**
* ContainerStateTerminated is a terminated state of a container.
*/
export declare class ContainerStateTerminated extends Model<IContainerStateTerminated> implements IContainerStateTerminated {
"containerID"?: string;
"exitCode": number;
"finishedAt"?: IIoK8sApimachineryPkgApisMetaV1Time;
"message"?: string;
"reason"?: string;
"signal"?: number;
"startedAt"?: IIoK8sApimachineryPkgApisMetaV1Time;
constructor(data?: ModelData<IContainerStateTerminated>);
}
export { IContainerStateTerminated as IIoK8sApiCoreV1ContainerStateTerminated, ContainerStateTerminated as IoK8sApiCoreV1ContainerStateTerminated };