pub struct LogsArchiveClient { /* private fields */ }
Expand description
The logs archive API client. Read more at https://coralogix.com/docs/archive-s3-bucket-forever/
Implementations§
source§impl LogsArchiveClient
impl LogsArchiveClient
sourcepub fn new(region: CoralogixRegion, auth_context: AuthContext) -> Result<Self>
pub fn new(region: CoralogixRegion, auth_context: AuthContext) -> Result<Self>
Creates a new client for the Logs Archive API.
§Arguments
auth_context
- The to use for authentication.region
- The region to connect to.
sourcepub async fn get_target(&self) -> Result<GetTargetResponse>
pub async fn get_target(&self) -> Result<GetTargetResponse>
Retrieves the current target configuration.
sourcepub async fn set_target(
&self,
is_active: bool,
target_spec: TargetSpec,
) -> Result<SetTargetResponse>
pub async fn set_target( &self, is_active: bool, target_spec: TargetSpec, ) -> Result<SetTargetResponse>
Sets the target configuration.
§Arguments
is_active
- Whether the target should be active.target_spec
- The target configuration.
sourcepub async fn validate_target(
&self,
is_active: bool,
target_spec: TargetSpecValidation,
) -> Result<()>
pub async fn validate_target( &self, is_active: bool, target_spec: TargetSpecValidation, ) -> Result<()>
Validates a target configuration.
§Arguments
is_active
- Whether the target should be active.target_spec
- The target configuration to validate.
Auto Trait Implementations§
impl !Freeze for LogsArchiveClient
impl !RefUnwindSafe for LogsArchiveClient
impl Send for LogsArchiveClient
impl Sync for LogsArchiveClient
impl Unpin for LogsArchiveClient
impl !UnwindSafe for LogsArchiveClient
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