agent-substrate / agent-substrate/substrate

Add time metadata to actors

Aperta
#277 3 commenti 1 reazione 0 assegnatari Vedi su GitHub
area/api area/api-machinery kind/feature
Lingua principale
Go
Stelle
1.8k
Fork
316
Merge medio
2g 43m
PR unite (30g)
287

Descrizione

In many cases it's useful to have some time metadata for actors (e.g. created / updated time). Today there are no fields to track this.

- `create_time`: Timestamp when actor is created. Immutable.
- `update_time`: Last time the actor was modified in any way (suspended, resumed, updated, etcCanc).
- `last_resume_time`: Timestamp of the most recent transition into RUNNING.
- `total_running_duration`: Cumulative time the actor spent running, since creation. Never resets. (this could be tricky to get right with high resolution if ate-apiservers have some clock skew)

The https://google.aip.dev/142 has some guidelines on how to deal with times in gRPC APIs. We should probably use the `google.protobuf.Timestamp` and `google.protobuf.Duration` well-known protos.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.