Class OccMetricAlarmClient
Service client instance for OccMetricAlarm.
Implements
Inherited Members
Namespace: Oci.DemandsignalService
Assembly: OCI.DotNetSDK.Demandsignal.dll
Syntax
public class OccMetricAlarmClient : RegionalClientBase, IDisposable
Constructors
OccMetricAlarmClient(IBasicAuthenticationDetailsProvider, ClientConfiguration, string)
Creates a new service instance using the given authentication provider and/or client configuration and/or endpoint. A client configuration can also be provided optionally to adjust REST client behaviors.
Declaration
public OccMetricAlarmClient(IBasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration clientConfiguration = null, string endpoint = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IBasicAuthenticationDetailsProvider | authenticationDetailsProvider | The authentication details provider. Required. |
| ClientConfiguration | clientConfiguration | The client configuration that contains settings to adjust REST client behaviors. Optional. |
| string | endpoint | The endpoint of the service. If not provided and the client is a regional client, the endpoint will be constructed based on region information. Optional. |
Properties
Paginators
Declaration
public OccMetricAlarmPaginators Paginators { get; }
Property Value
| Type | Description |
|---|---|
| OccMetricAlarmPaginators |
Waiters
Declaration
public OccMetricAlarmWaiters Waiters { get; }
Property Value
| Type | Description |
|---|---|
| OccMetricAlarmWaiters |
Methods
CreateOccMetricAlarm(CreateOccMetricAlarmRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Creates a new OccMetricAlarm resource in the specified compartment with the provided configuration details.
Declaration
public Task<CreateOccMetricAlarmResponse> CreateOccMetricAlarm(CreateOccMetricAlarmRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateOccMetricAlarmRequest | request | The request object containing the details to send. Required. |
| RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
| CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
| HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
| Type | Description |
|---|---|
| Task<CreateOccMetricAlarmResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use CreateOccMetricAlarm API.
DeleteOccMetricAlarm(DeleteOccMetricAlarmRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Deletes the specified OccMetricAlarm resource.
Declaration
public Task<DeleteOccMetricAlarmResponse> DeleteOccMetricAlarm(DeleteOccMetricAlarmRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteOccMetricAlarmRequest | request | The request object containing the details to send. Required. |
| RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
| CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
| HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
| Type | Description |
|---|---|
| Task<DeleteOccMetricAlarmResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use DeleteOccMetricAlarm API.
GetOccMetricAlarm(GetOccMetricAlarmRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Retrieves the specified OccMetricAlarm resource based on its identifier.
Declaration
public Task<GetOccMetricAlarmResponse> GetOccMetricAlarm(GetOccMetricAlarmRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
| Type | Name | Description |
|---|---|---|
| GetOccMetricAlarmRequest | request | The request object containing the details to send. Required. |
| RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
| CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
| HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
| Type | Description |
|---|---|
| Task<GetOccMetricAlarmResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use GetOccMetricAlarm API.
ListOccMetricAlarms(ListOccMetricAlarmsRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Gets a list of OccMetricAlarms.
Declaration
public Task<ListOccMetricAlarmsResponse> ListOccMetricAlarms(ListOccMetricAlarmsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
| Type | Name | Description |
|---|---|---|
| ListOccMetricAlarmsRequest | request | The request object containing the details to send. Required. |
| RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
| CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
| HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
| Type | Description |
|---|---|
| Task<ListOccMetricAlarmsResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use ListOccMetricAlarms API.
UpdateOccMetricAlarm(UpdateOccMetricAlarmRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Updates an existing OccMetricAlarm resource with new or modified configuration details.
Declaration
public Task<UpdateOccMetricAlarmResponse> UpdateOccMetricAlarm(UpdateOccMetricAlarmRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateOccMetricAlarmRequest | request | The request object containing the details to send. Required. |
| RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
| CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
| HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
| Type | Description |
|---|---|
| Task<UpdateOccMetricAlarmResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use UpdateOccMetricAlarm API.