pub struct SemanticIncident {Show 23 fields
pub id: String,
pub workspace_id: Option<String>,
pub endpoint: String,
pub method: String,
pub semantic_change_type: SemanticChangeType,
pub severity: IncidentSeverity,
pub status: IncidentStatus,
pub semantic_confidence: f64,
pub soft_breaking_score: f64,
pub llm_analysis: Value,
pub before_semantic_state: Value,
pub after_semantic_state: Value,
pub details: Value,
pub related_drift_incident_id: Option<String>,
pub contract_diff_id: Option<String>,
pub external_ticket_id: Option<String>,
pub external_ticket_url: Option<String>,
pub detected_at: i64,
pub created_at: i64,
pub acknowledged_at: Option<i64>,
pub resolved_at: Option<i64>,
pub closed_at: Option<i64>,
pub updated_at: i64,
}Expand description
Semantic drift incident
Fields§
§id: StringUnique identifier
workspace_id: Option<String>Workspace ID
endpoint: StringEndpoint path
method: StringHTTP method
semantic_change_type: SemanticChangeTypeSemantic change type
severity: IncidentSeveritySeverity
status: IncidentStatusStatus
semantic_confidence: f64Semantic confidence score (0.0-1.0)
soft_breaking_score: f64Soft-breaking score (0.0-1.0)
llm_analysis: ValueFull LLM analysis
before_semantic_state: ValueBefore semantic state
after_semantic_state: ValueAfter semantic state
details: ValueAdditional details
Link to related structural drift incident
contract_diff_id: Option<String>Contract diff ID that triggered this
external_ticket_id: Option<String>External ticket tracking
external_ticket_url: Option<String>External ticket URL (e.g., Jira, GitHub issue)
detected_at: i64Timestamps
created_at: i64Creation timestamp
acknowledged_at: Option<i64>Acknowledgment timestamp
resolved_at: Option<i64>Resolution timestamp
closed_at: Option<i64>Closure timestamp
updated_at: i64Last update timestamp
Implementations§
Source§impl SemanticIncident
impl SemanticIncident
Sourcepub fn from_drift_result(
result: &SemanticDriftResult,
endpoint: String,
method: String,
workspace_id: Option<String>,
related_drift_incident_id: Option<String>,
contract_diff_id: Option<String>,
) -> Self
pub fn from_drift_result( result: &SemanticDriftResult, endpoint: String, method: String, workspace_id: Option<String>, related_drift_incident_id: Option<String>, contract_diff_id: Option<String>, ) -> Self
Create a new semantic incident from a semantic drift result
Sourcepub fn acknowledge(&mut self)
pub fn acknowledge(&mut self)
Mark the incident as acknowledged
Trait Implementations§
Source§impl Clone for SemanticIncident
impl Clone for SemanticIncident
Source§fn clone(&self) -> SemanticIncident
fn clone(&self) -> SemanticIncident
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SemanticIncident
impl Debug for SemanticIncident
Source§impl<'de> Deserialize<'de> for SemanticIncident
impl<'de> Deserialize<'de> for SemanticIncident
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 SemanticIncident
impl RefUnwindSafe for SemanticIncident
impl Send for SemanticIncident
impl Sync for SemanticIncident
impl Unpin for SemanticIncident
impl UnwindSafe for SemanticIncident
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more