Enforce source-time provenance across ingest
This commit is contained in:
@@ -260,6 +260,7 @@ func (a *app) events(ctx context.Context, args []string) error {
|
||||
streamID := fs.String("stream-id", "", "stream id")
|
||||
sourceRef := fs.String("source-ref", "", "source reference")
|
||||
eventType := fs.String("event-type", "inference", "event type")
|
||||
occurredAt := fs.String("occurred-at", "", "source timestamp (RFC3339, defaults to current runtime time)")
|
||||
payloadFile := fs.String("payload-file", "", "JSON payload file")
|
||||
metadataFile := fs.String("metadata-file", "", "JSON metadata file")
|
||||
if err := fs.Parse(args[1:]); err != nil {
|
||||
@@ -273,7 +274,7 @@ func (a *app) events(ctx context.Context, args []string) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
receipt, err := client.LogEvent(ctx, *streamID, attesto.EventInput{SourceRef: *sourceRef, EventType: *eventType, Payload: payload, Metadata: metadata})
|
||||
receipt, err := client.LogEvent(ctx, *streamID, attesto.EventInput{SourceRef: *sourceRef, EventType: *eventType, OccurredAt: *occurredAt, Payload: payload, Metadata: metadata})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user