pub enum DakeraEvent {
NamespaceCreated {
namespace: String,
dimension: usize,
},
NamespaceDeleted {
namespace: String,
},
OperationProgress {
operation_id: String,
namespace: Option<String>,
op_type: String,
progress: u8,
status: OpStatus,
message: Option<String>,
updated_at: u64,
},
JobProgress {
job_id: String,
job_type: String,
namespace: Option<String>,
progress: u8,
status: String,
},
VectorsMutated {
namespace: String,
op: VectorMutationOp,
count: usize,
},
StreamLagged {
dropped: u64,
hint: String,
},
Connected {
timestamp: u64,
},
}Expand description
An event received from a Dakera SSE stream.
Mirrors the server-side DakeraEvent enum. Events are delivered over
GET /v1/namespaces/:ns/events (namespace-scoped, Read scope) or
GET /ops/events (global, Admin scope).
Use [DakeraClient::stream_namespace_events] or
[DakeraClient::stream_global_events] to subscribe.
Variants§
NamespaceCreated
A new namespace was created.
NamespaceDeleted
A namespace was deleted.
OperationProgress
Progress update for a long-running operation (progress: 0–100).
Fields
JobProgress
A background job changed status.
VectorsMutated
Vectors were upserted or deleted in bulk (threshold: >100 vectors).
StreamLagged
Subscriber fell too far behind — some events were dropped. Reconnect to resume the stream.
Connected
Emitted immediately on stream subscription to confirm the connection is live.
Clients can use this to distinguish connected-and-idle from not-yet-connected.
Implementations§
Source§impl DakeraEvent
impl DakeraEvent
Sourcepub fn event_type(&self) -> &'static str
pub fn event_type(&self) -> &'static str
Returns the SSE event type string for this event variant.
Trait Implementations§
Source§impl Clone for DakeraEvent
impl Clone for DakeraEvent
Source§fn clone(&self) -> DakeraEvent
fn clone(&self) -> DakeraEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more