pub struct NotificationsClient { /* private fields */ }
Expand description
A client for interacting with the Coralogix Notification Center APIs.
Implementations§
source§impl NotificationsClient
impl NotificationsClient
sourcepub fn new(auth_context: AuthContext, region: CoralogixRegion) -> Result<Self>
pub fn new(auth_context: AuthContext, region: CoralogixRegion) -> Result<Self>
Creates a new client for the Notification Center.
§Arguments
auth_context
- TheAuthContext
to use for authentication.region
- TheCoralogixRegion
to connect to.
sourcepub async fn get_connector(
&self,
connector_id: String,
) -> Result<GetConnectorResponse>
pub async fn get_connector( &self, connector_id: String, ) -> Result<GetConnectorResponse>
sourcepub async fn list_connectors(
&self,
connector_type: ConnectorType,
order_bys: Vec<OrderBy>,
entity_type: String,
) -> Result<ListConnectorsResponse>
pub async fn list_connectors( &self, connector_type: ConnectorType, order_bys: Vec<OrderBy>, entity_type: String, ) -> Result<ListConnectorsResponse>
List all connectors.
§Arguments
connector_type
- TheConnectorType
to filter by.order_bys
- TheOrderBy
s to use for sorting.entity_type
- The entity type to filter by.
sourcepub async fn create_connector(
&self,
connector: Connector,
) -> Result<CreateConnectorResponse>
pub async fn create_connector( &self, connector: Connector, ) -> Result<CreateConnectorResponse>
sourcepub async fn replace_connector(
&self,
connector: Connector,
) -> Result<ReplaceConnectorResponse>
pub async fn replace_connector( &self, connector: Connector, ) -> Result<ReplaceConnectorResponse>
sourcepub async fn delete_connector(
&self,
connector_id: String,
) -> Result<DeleteConnectorResponse>
pub async fn delete_connector( &self, connector_id: String, ) -> Result<DeleteConnectorResponse>
sourcepub async fn batch_get_connectors(
&self,
connector_ids: Vec<String>,
) -> Result<BatchGetConnectorsResponse>
pub async fn batch_get_connectors( &self, connector_ids: Vec<String>, ) -> Result<BatchGetConnectorsResponse>
sourcepub async fn get_connector_type_summaries(
&self,
) -> Result<GetConnectorTypeSummariesResponse>
pub async fn get_connector_type_summaries( &self, ) -> Result<GetConnectorTypeSummariesResponse>
Get summaries of connector types.
sourcepub async fn create_custom_preset(
&self,
preset: Preset,
) -> Result<CreateCustomPresetResponse>
pub async fn create_custom_preset( &self, preset: Preset, ) -> Result<CreateCustomPresetResponse>
sourcepub async fn replace_custom_preset(
&self,
preset: Preset,
) -> Result<ReplaceCustomPresetResponse>
pub async fn replace_custom_preset( &self, preset: Preset, ) -> Result<ReplaceCustomPresetResponse>
sourcepub async fn delete_custom_preset(
&self,
preset_id: String,
) -> Result<DeleteCustomPresetResponse>
pub async fn delete_custom_preset( &self, preset_id: String, ) -> Result<DeleteCustomPresetResponse>
sourcepub async fn set_custom_preset_as_default(
&self,
preset_id: String,
) -> Result<SetCustomPresetAsDefaultResponse>
pub async fn set_custom_preset_as_default( &self, preset_id: String, ) -> Result<SetCustomPresetAsDefaultResponse>
Set a custom preset as the default.
§Arguments
preset_id
- The ID of the preset to set as the default.
sourcepub async fn get_preset(&self, preset_id: String) -> Result<GetPresetResponse>
pub async fn get_preset(&self, preset_id: String) -> Result<GetPresetResponse>
sourcepub async fn list_preset_summaries(
&self,
connector_type: ConnectorType,
entity_type: String,
order_bys: Vec<OrderBy>,
) -> Result<ListPresetSummariesResponse>
pub async fn list_preset_summaries( &self, connector_type: ConnectorType, entity_type: String, order_bys: Vec<OrderBy>, ) -> Result<ListPresetSummariesResponse>
List summaries of presets.
§Arguments
connector_type
- TheConnectorType
to list presets for.entity_type
- The entity type to list presets for.order_bys
- TheOrderBy
s to use for sorting.
sourcepub async fn batch_get_presets(
&self,
preset_ids: Vec<String>,
) -> Result<BatchGetPresetsResponse>
pub async fn batch_get_presets( &self, preset_ids: Vec<String>, ) -> Result<BatchGetPresetsResponse>
sourcepub async fn get_default_preset_summary(
&self,
connector_type: ConnectorType,
entity_type: String,
) -> Result<GetDefaultPresetSummaryResponse>
pub async fn get_default_preset_summary( &self, connector_type: ConnectorType, entity_type: String, ) -> Result<GetDefaultPresetSummaryResponse>
Get the default preset summary.
§Arguments
connector_type
- TheConnectorType
to get the default preset summary for.entity_type
- The entity type to get the default preset summary for.
sourcepub async fn get_system_default_preset_summary(
&self,
connector_type: ConnectorType,
entity_type: String,
) -> Result<GetSystemDefaultPresetSummaryResponse>
pub async fn get_system_default_preset_summary( &self, connector_type: ConnectorType, entity_type: String, ) -> Result<GetSystemDefaultPresetSummaryResponse>
Get the system default preset summary.
§Arguments
connector_type
- TheConnectorType
to get the system default preset summary for.entity_type
- The entity type to get the system default preset summary for.
sourcepub async fn test_connector_config(
&self,
connector_type: ConnectorType,
output_schema_id: String,
connector_config_fields: Vec<ConnectorConfigField>,
entity_type: String,
) -> Result<TestConnectorConfigResponse>
pub async fn test_connector_config( &self, connector_type: ConnectorType, output_schema_id: String, connector_config_fields: Vec<ConnectorConfigField>, entity_type: String, ) -> Result<TestConnectorConfigResponse>
Test a connector configuration.
§Arguments
connector_type
- TheConnectorType
to test.output_schema_id
- The ID of the output schema to test with.connector_config_fields
- The ConnectorConfigFields to test with.entity_type
- The entity type to test with.
sourcepub async fn test_existing_connector(
&self,
connector_id: String,
output_schema_id: String,
) -> Result<TestExistingConnectorResponse>
pub async fn test_existing_connector( &self, connector_id: String, output_schema_id: String, ) -> Result<TestExistingConnectorResponse>
Test an existing connector.
§Arguments
connector_id
- The ID of the connector to test.output_schema_id
- The ID of the output schema to test with.
sourcepub async fn test_preset_config(
&self,
params: TestPresetConfigParams,
) -> Result<TestPresetConfigResponse>
pub async fn test_preset_config( &self, params: TestPresetConfigParams, ) -> Result<TestPresetConfigResponse>
Test a preset configuration.
§Arguments
params
- The parameters for testing the preset configuration.
sourcepub async fn test_template_render(
&self,
entity_type: String,
entity_sub_type: Option<String>,
template: String,
) -> Result<TestTemplateRenderResponse>
pub async fn test_template_render( &self, entity_type: String, entity_sub_type: Option<String>, template: String, ) -> Result<TestTemplateRenderResponse>
Test rendering a template.
§Arguments
entity_type
- The entity type to test with.entity_sub_type
- The entity sub type to test with.template
- The template to render.
Auto Trait Implementations§
impl !Freeze for NotificationsClient
impl !RefUnwindSafe for NotificationsClient
impl Send for NotificationsClient
impl Sync for NotificationsClient
impl Unpin for NotificationsClient
impl !UnwindSafe for NotificationsClient
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