pub enum CoreEvent {
Show 27 variants
ProvidersChanged,
PipelineViewsChanged,
PipelinesUpdated {
pipelines: Vec<Pipeline>,
provider_id: i64,
timestamp: i64,
},
PipelineStatusChanged {
pipeline_ids: Vec<String>,
},
PipelinesFailed {
pipelines: Vec<Pipeline>,
},
RunTriggered {
workflow_id: String,
},
RunCancelled {
pipeline_id: String,
},
MetricsGenerated {
pipeline_id: String,
},
MetricsGlobalConfigChanged,
MetricsConfigChanged {
pipeline_id: String,
},
MetricsFlushed {
pipeline_id: Option<String>,
},
ProviderStatusUpdated {
provider: ProviderSummary,
},
ProviderHealthAlert {
alert_id: String,
alert_key: String,
notification_key: String,
provider_ids: Vec<i64>,
level: HealthLevel,
title: String,
body: String,
link: Option<AlertLink>,
recovered: bool,
},
MigrationProgress {
step: String,
step_index: usize,
total_steps: usize,
message: String,
},
MigrationComplete {
success: bool,
summary: String,
},
ProviderAdded {
provider: ProviderSummary,
timestamp: i64,
},
ProviderUpdated {
provider: ProviderSummary,
timestamp: i64,
},
ProviderRemoved {
provider: ProviderSummary,
timestamp: i64,
},
PipelineCacheInvalidated {
provider_id: Option<i64>,
reason: CacheInvalidationReason,
},
RunHistoryCacheInvalidated {
pipeline_id: Option<String>,
},
VaultUnlocked,
VaultLocked,
RunLogProgress {
pipeline_id: String,
run_number: i64,
node_id: String,
received_bytes: u64,
},
RunLogReady {
pipeline_id: String,
run_number: i64,
node_id: String,
revision: i64,
},
RunLogFailed {
pipeline_id: String,
run_number: i64,
node_id: String,
message: String,
},
RunLogTreeChanged {
pipeline_id: String,
run_number: i64,
},
RunUpdated {
pipeline_id: String,
run_number: i64,
run: PipelineRun,
},
}Variants§
ProvidersChanged
PipelineViewsChanged
PipelinesUpdated
PipelineStatusChanged
PipelinesFailed
RunTriggered
RunCancelled
MetricsGenerated
MetricsGlobalConfigChanged
MetricsConfigChanged
MetricsFlushed
ProviderStatusUpdated
Fields
§
provider: ProviderSummaryProviderHealthAlert
Fields
§
level: HealthLevelMigrationProgress
MigrationComplete
ProviderAdded
ProviderUpdated
ProviderRemoved
PipelineCacheInvalidated
RunHistoryCacheInvalidated
VaultUnlocked
VaultLocked
RunLogProgress
RunLogReady
RunLogFailed
RunLogTreeChanged
RunUpdated
Implementations§
Source§impl CoreEvent
impl CoreEvent
pub fn event_name(&self) -> &'static str
pub fn to_json_payload(&self) -> Value
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CoreEvent
impl<'de> Deserialize<'de> for CoreEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CoreEvent
impl RefUnwindSafe for CoreEvent
impl Send for CoreEvent
impl Sync for CoreEvent
impl Unpin for CoreEvent
impl UnsafeUnpin for CoreEvent
impl UnwindSafe for CoreEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FromResponse for Twhere
T: DeserializeOwned,
impl<T> FromResponse for Twhere
T: DeserializeOwned,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more