mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
clarified the timestamp should be in nanoseconds
This commit is contained in:
parent
9ab1ecd686
commit
1fa3c2e472
@ -2217,7 +2217,7 @@ type PodSandboxStatusResponse struct {
|
||||
Info map[string]string `protobuf:"bytes,2,rep,name=info,proto3" json:"info,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
// Container statuses
|
||||
ContainersStatuses []*ContainerStatus `protobuf:"bytes,3,rep,name=containers_statuses,json=containersStatuses,proto3" json:"containers_statuses,omitempty"`
|
||||
// Timestamp at which container and pod statuses were recorded
|
||||
// Timestamp in nanoseconds at which container and pod statuses were recorded
|
||||
Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
@ -9600,7 +9600,7 @@ type ContainerEventResponse struct {
|
||||
ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
|
||||
// Type of the container event
|
||||
ContainerEventType ContainerEventType `protobuf:"varint,2,opt,name=container_event_type,json=containerEventType,proto3,enum=runtime.v1.ContainerEventType" json:"container_event_type,omitempty"`
|
||||
// Creation timestamp of this event
|
||||
// Creation timestamp in nanoseconds of this event
|
||||
CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
||||
// Sandbox status
|
||||
PodSandboxStatus *PodSandboxStatus `protobuf:"bytes,4,opt,name=pod_sandbox_status,json=podSandboxStatus,proto3" json:"pod_sandbox_status,omitempty"`
|
||||
@ -10027,7 +10027,7 @@ type Metric struct {
|
||||
// otherwise, it will be ignored.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// Timestamp should be 0 if the metric was gathered live.
|
||||
// If it was cached, the Timestamp should reflect the time it was collected.
|
||||
// If it was cached, the Timestamp should reflect the time in nanoseconds it was collected.
|
||||
Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
||||
MetricType MetricType `protobuf:"varint,3,opt,name=metric_type,json=metricType,proto3,enum=runtime.v1.MetricType" json:"metric_type,omitempty"`
|
||||
// The corresponding LabelValues to the LabelKeys defined in the MetricDescriptor.
|
||||
|
@ -601,7 +601,7 @@ message PodSandboxStatusResponse {
|
||||
map<string, string> info = 2;
|
||||
// Container statuses
|
||||
repeated ContainerStatus containers_statuses = 3;
|
||||
// Timestamp at which container and pod statuses were recorded
|
||||
// Timestamp in nanoseconds at which container and pod statuses were recorded
|
||||
int64 timestamp = 4;
|
||||
}
|
||||
|
||||
@ -1344,7 +1344,7 @@ message ContainerResources {
|
||||
|
||||
message ContainerUser {
|
||||
// User identities initially attached to first process in the Linux container.
|
||||
// Note that the actual running identity can be changed if the process has enough privilege to do so.
|
||||
// Note that the actual running identity can be changed if the process has enough privilege to do so.
|
||||
LinuxContainerUser linux = 1;
|
||||
|
||||
// User identities initially attached to first process in the Windows container
|
||||
@ -1863,7 +1863,7 @@ message ContainerEventResponse {
|
||||
// Type of the container event
|
||||
ContainerEventType container_event_type = 2;
|
||||
|
||||
// Creation timestamp of this event
|
||||
// Creation timestamp in nanoseconds of this event
|
||||
int64 created_at = 3;
|
||||
|
||||
// Sandbox status
|
||||
@ -1927,7 +1927,7 @@ message Metric {
|
||||
// otherwise, it will be ignored.
|
||||
string name = 1;
|
||||
// Timestamp should be 0 if the metric was gathered live.
|
||||
// If it was cached, the Timestamp should reflect the time it was collected.
|
||||
// If it was cached, the Timestamp should reflect the time in nanoseconds it was collected.
|
||||
int64 timestamp = 2;
|
||||
MetricType metric_type = 3;
|
||||
// The corresponding LabelValues to the LabelKeys defined in the MetricDescriptor.
|
||||
|
Loading…
Reference in New Issue
Block a user