pub struct MetricsArchiveInternalClient { /* private fields */ }
Expand description
A service client for the internal metrics archive API. It’s only for Coralogix internal use.
Implementations§
source§impl MetricsArchiveInternalClient
impl MetricsArchiveInternalClient
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 internal Metrics Archive API.
§Arguments
auth_context
- The to use for authentication.region
- The region to connect to.
sourcepub async fn get_tenant_config(
&self,
tenant_id: u32,
) -> Result<GetTenantConfigResponse>
pub async fn get_tenant_config( &self, tenant_id: u32, ) -> Result<GetTenantConfigResponse>
Gets the tenant configuration.
§Arguments
tenant_id
- The ID of the tenant to get the configuration for.
sourcepub async fn list_tenant_configs(&self) -> Result<ListTenantConfigsResponse>
pub async fn list_tenant_configs(&self) -> Result<ListTenantConfigsResponse>
Lists the tenant configurations.
sourcepub async fn list_hot_store_configs(
&self,
) -> Result<ListHotStoreConfigsResponse>
pub async fn list_hot_store_configs( &self, ) -> Result<ListHotStoreConfigsResponse>
Lists the hot store configurations.
sourcepub async fn migrate_tenant(&self, tenant_id: u32) -> Result<()>
pub async fn migrate_tenant(&self, tenant_id: u32) -> Result<()>
Auto Trait Implementations§
impl !Freeze for MetricsArchiveInternalClient
impl !RefUnwindSafe for MetricsArchiveInternalClient
impl Send for MetricsArchiveInternalClient
impl Sync for MetricsArchiveInternalClient
impl Unpin for MetricsArchiveInternalClient
impl !UnwindSafe for MetricsArchiveInternalClient
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