pub struct IncidentsClient { /* private fields */ }Expand description
IncidentsClient is a client for the Incidents API.
Implementations§
Source§impl IncidentsClient
impl IncidentsClient
Sourcepub async fn new(
auth_context: AuthContext,
region: CoralogixRegion,
) -> Result<Self, Box<dyn Error>>
pub async fn new( auth_context: AuthContext, region: CoralogixRegion, ) -> Result<Self, Box<dyn Error>>
Creates a new IncidentsClient.
§Arguments
auth_context- TheAuthContextto use for authentication.region- TheCoralogixRegionto connect to.
Sourcepub async fn get_incident(
&self,
id: &str,
) -> Result<GetIncidentResponse, Box<dyn Error>>
pub async fn get_incident( &self, id: &str, ) -> Result<GetIncidentResponse, Box<dyn Error>>
Sourcepub async fn batch_get_incident(
&self,
ids: Vec<String>,
) -> Result<BatchGetIncidentResponse, Box<dyn Error>>
pub async fn batch_get_incident( &self, ids: Vec<String>, ) -> Result<BatchGetIncidentResponse, Box<dyn Error>>
Sourcepub async fn list_incidents(
&self,
filter: Option<IncidentQueryFilter>,
pagination: Option<PaginationRequest>,
order_bys: Vec<OrderBy>,
) -> Result<ListIncidentsResponse, Box<dyn Error>>
pub async fn list_incidents( &self, filter: Option<IncidentQueryFilter>, pagination: Option<PaginationRequest>, order_bys: Vec<OrderBy>, ) -> Result<ListIncidentsResponse, Box<dyn Error>>
Lists incidents.
§Arguments
filter- TheIncidentQueryFilterto filter the incidents by.pagination- ThePaginationRequestto paginate the incidents.order_bys- TheOrderBys to order the incidents by.
Sourcepub async fn list_incident_aggregations(
&self,
filter: Option<IncidentQueryFilter>,
group_bys: Vec<GroupBy>,
pagination: Option<PaginationRequest>,
) -> Result<ListIncidentAggregationsResponse, Box<dyn Error>>
pub async fn list_incident_aggregations( &self, filter: Option<IncidentQueryFilter>, group_bys: Vec<GroupBy>, pagination: Option<PaginationRequest>, ) -> Result<ListIncidentAggregationsResponse, Box<dyn Error>>
Lists incident aggregations.
§Arguments
request- TheListIncidentAggregationsRequestto list the incident aggregations.
Sourcepub async fn get_filter_values(
&self,
filter: IncidentQueryFilter,
) -> Result<GetFilterValuesResponse, Box<dyn Error>>
pub async fn get_filter_values( &self, filter: IncidentQueryFilter, ) -> Result<GetFilterValuesResponse, Box<dyn Error>>
Gets the filter values for a given filter.
§Arguments
filter- TheIncidentQueryFilterto get the filter values for.
Sourcepub async fn assign_incidents(
&self,
incident_ids: Vec<String>,
assigned_to: Option<UserDetails>,
) -> Result<AssignIncidentsResponse, Box<dyn Error>>
pub async fn assign_incidents( &self, incident_ids: Vec<String>, assigned_to: Option<UserDetails>, ) -> Result<AssignIncidentsResponse, Box<dyn Error>>
Assigns incidents to a user.
§Arguments
incident_ids- The IDs of the incidents to assign.assigned_to- TheUserDetailsto assign the incidents to.
Sourcepub async fn unassign_incidents(
&self,
incident_ids: Vec<String>,
) -> Result<UnassignIncidentsResponse, Box<dyn Error>>
pub async fn unassign_incidents( &self, incident_ids: Vec<String>, ) -> Result<UnassignIncidentsResponse, Box<dyn Error>>
Sourcepub async fn acknowledge_incidents(
&self,
incident_ids: Vec<String>,
) -> Result<AcknowledgeIncidentsResponse, Box<dyn Error>>
pub async fn acknowledge_incidents( &self, incident_ids: Vec<String>, ) -> Result<AcknowledgeIncidentsResponse, Box<dyn Error>>
Sourcepub async fn close_incidents(
&self,
incident_ids: Vec<String>,
) -> Result<CloseIncidentsResponse, Box<dyn Error>>
pub async fn close_incidents( &self, incident_ids: Vec<String>, ) -> Result<CloseIncidentsResponse, Box<dyn Error>>
Sourcepub async fn get_incident_events(
&self,
incident_id: Option<String>,
) -> Result<GetIncidentEventsResponse, Box<dyn Error>>
pub async fn get_incident_events( &self, incident_id: Option<String>, ) -> Result<GetIncidentEventsResponse, Box<dyn Error>>
Gets the events for an incident.
§Arguments
incident_id- The ID of the incident to get the events for.
Sourcepub async fn resolve_incidents(
&self,
incident_ids: Vec<String>,
) -> Result<ResolveIncidentsResponse, Box<dyn Error>>
pub async fn resolve_incidents( &self, incident_ids: Vec<String>, ) -> Result<ResolveIncidentsResponse, Box<dyn Error>>
Sourcepub async fn get_incident_using_correlation_key(
&self,
correlation_key: String,
timestamp: OffsetDateTime,
) -> Result<GetIncidentUsingCorrelationKeyResponse, Box<dyn Error>>
pub async fn get_incident_using_correlation_key( &self, correlation_key: String, timestamp: OffsetDateTime, ) -> Result<GetIncidentUsingCorrelationKeyResponse, Box<dyn Error>>
Gets an incident by its correlation key and specific point in time.
§Arguments
correlation_key- The correlation key of the incident to get.timestamp- The timestamp to get the incident at.
Sourcepub async fn list_incident_events(
&self,
filter: Option<IncidentEventQueryFilter>,
pagination: Option<PaginationRequest>,
order_by: Option<ListIncidentEventRequestOrderBy>,
) -> Result<ListIncidentEventsResponse, Box<dyn Error>>
pub async fn list_incident_events( &self, filter: Option<IncidentEventQueryFilter>, pagination: Option<PaginationRequest>, order_by: Option<ListIncidentEventRequestOrderBy>, ) -> Result<ListIncidentEventsResponse, Box<dyn Error>>
Lists the events for an incident.
§Arguments
incident_id- The ID of the incident to get the events for.
Sourcepub async fn list_incident_events_total_count(
&self,
filter: Option<IncidentEventQueryFilter>,
) -> Result<ListIncidentEventsTotalCountResponse, Box<dyn Error>>
pub async fn list_incident_events_total_count( &self, filter: Option<IncidentEventQueryFilter>, ) -> Result<ListIncidentEventsTotalCountResponse, Box<dyn Error>>
Lists the total count of events for an incident.
§Arguments
incident_id- The ID of the incident to get the total count of events for.
Sourcepub async fn list_incident_events_filter_values(
&self,
filter: Option<IncidentEventQueryFilter>,
) -> Result<ListIncidentEventsFilterValuesResponse, Box<dyn Error>>
pub async fn list_incident_events_filter_values( &self, filter: Option<IncidentEventQueryFilter>, ) -> Result<ListIncidentEventsFilterValuesResponse, Box<dyn Error>>
Lists the filter values for an incident event.
§Arguments
filter- TheIncidentEventQueryFilterto get the filter values for.
Auto Trait Implementations§
impl !Freeze for IncidentsClient
impl !RefUnwindSafe for IncidentsClient
impl Send for IncidentsClient
impl Sync for IncidentsClient
impl Unpin for IncidentsClient
impl !UnwindSafe for IncidentsClient
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request