Skip to content

Commit 1fa3c2e

Browse files
clarified the timestamp should be in nanoseconds
1 parent 9ab1ecd commit 1fa3c2e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

staging/src/k8s.io/cri-api/pkg/apis/runtime/v1/api.pb.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

staging/src/k8s.io/cri-api/pkg/apis/runtime/v1/api.proto

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ message PodSandboxStatusResponse {
601601
map<string, string> info = 2;
602602
// Container statuses
603603
repeated ContainerStatus containers_statuses = 3;
604-
// Timestamp at which container and pod statuses were recorded
604+
// Timestamp in nanoseconds at which container and pod statuses were recorded
605605
int64 timestamp = 4;
606606
}
607607

@@ -1344,7 +1344,7 @@ message ContainerResources {
13441344

13451345
message ContainerUser {
13461346
// User identities initially attached to first process in the Linux container.
1347-
// Note that the actual running identity can be changed if the process has enough privilege to do so.
1347+
// Note that the actual running identity can be changed if the process has enough privilege to do so.
13481348
LinuxContainerUser linux = 1;
13491349

13501350
// User identities initially attached to first process in the Windows container
@@ -1863,7 +1863,7 @@ message ContainerEventResponse {
18631863
// Type of the container event
18641864
ContainerEventType container_event_type = 2;
18651865

1866-
// Creation timestamp of this event
1866+
// Creation timestamp in nanoseconds of this event
18671867
int64 created_at = 3;
18681868

18691869
// Sandbox status
@@ -1927,7 +1927,7 @@ message Metric {
19271927
// otherwise, it will be ignored.
19281928
string name = 1;
19291929
// Timestamp should be 0 if the metric was gathered live.
1930-
// If it was cached, the Timestamp should reflect the time it was collected.
1930+
// If it was cached, the Timestamp should reflect the time in nanoseconds it was collected.
19311931
int64 timestamp = 2;
19321932
MetricType metric_type = 3;
19331933
// The corresponding LabelValues to the LabelKeys defined in the MetricDescriptor.

0 commit comments

Comments
 (0)