Skip to content

Commit 22c0b4a

Browse files
add microsec precision for Entity timestamps (#105)
1 parent b2964c0 commit 22c0b4a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

api/v1/qdrantentity_types.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ type QdrantEntitySpec struct {
2525
// +optional
2626
ClusterId string `json:"clusterId,omitempty"`
2727
// Timestamp when the entity was created.
28-
CreatedAt metav1.Time `json:"createdAt,omitempty"`
28+
CreatedAt metav1.MicroTime `json:"createdAt,omitempty"`
2929
// Timestamp when the entity was last updated.
30-
LastUpdatedAt metav1.Time `json:"lastUpdatedAt,omitempty"`
30+
LastUpdatedAt metav1.MicroTime `json:"lastUpdatedAt,omitempty"`
3131
// Timestamp when the entity was deleted (or is started to be deleting).
3232
// If not set the entity is not deleted
33-
DeletedAt metav1.Time `json:"deletedAt,omitempty"`
33+
DeletedAt metav1.MicroTime `json:"deletedAt,omitempty"`
3434
// Generic payload for this entity
3535
Payload apiextensions.JSON `json:"payload,omitempty"`
3636
}
@@ -75,7 +75,7 @@ type QdrantEntityStatus struct {
7575
// Result is the last result from the invocation to a manager
7676
Result QdrantEntityStatusResult `json:"result,omitempty"`
7777
// Timestamp when the status was last updated.
78-
LastUpdatedAt metav1.Time `json:"lastUpdatedAt,omitempty"`
78+
LastUpdatedAt metav1.MicroTime `json:"lastUpdatedAt,omitempty"`
7979
}
8080

8181
// EntityResult is the last result from the invocation to a manager

docs/api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -883,9 +883,9 @@ _Appears in:_
883883
| `id` _string_ | The unique identifier of the entity (in UUID format). | | |
884884
| `entityType` _string_ | The type of the entity. | | |
885885
| `clusterId` _string_ | The optional cluster identifier | | |
886-
| `createdAt` _[Time](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#time-v1-meta)_ | Timestamp when the entity was created. | | |
887-
| `lastUpdatedAt` _[Time](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#time-v1-meta)_ | Timestamp when the entity was last updated. | | |
888-
| `deletedAt` _[Time](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#time-v1-meta)_ | Timestamp when the entity was deleted (or is started to be deleting).<br />If not set the entity is not deleted | | |
886+
| `createdAt` _[MicroTime](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#microtime-v1-meta)_ | Timestamp when the entity was created. | | |
887+
| `lastUpdatedAt` _[MicroTime](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#microtime-v1-meta)_ | Timestamp when the entity was last updated. | | |
888+
| `deletedAt` _[MicroTime](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#microtime-v1-meta)_ | Timestamp when the entity was deleted (or is started to be deleting).<br />If not set the entity is not deleted | | |
889889
| `payload` _[JSON](#json)_ | Generic payload for this entity | | |
890890

891891

0 commit comments

Comments
 (0)