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 UnsafeUnpin 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