OccMetricAlarmClientCompositeOperations¶
- class oci.demand_signal.OccMetricAlarmClientCompositeOperations(client, **kwargs)¶
This class provides a wrapper around
OccMetricAlarmClientand offers convenience methods for operations that would otherwise need to be chained together. For example, instead of performing an action on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource to enter a given state, you can call a single method in this class to accomplish the same functionalityMethods:
__init__(client, **kwargs)Creates a new OccMetricAlarmClientCompositeOperations object
Calls
create_occ_metric_alarm()and waits for theOccMetricAlarmacted upon to enter the given state(s).Calls
delete_occ_metric_alarm()and waits for theOccMetricAlarmacted upon to enter the given state(s).Calls
update_occ_metric_alarm()and waits for theOccMetricAlarmacted upon to enter the given state(s).- __init__(client, **kwargs)¶
Creates a new OccMetricAlarmClientCompositeOperations object
- Parameters
client (OccMetricAlarmClient) – The service client which will be wrapped by this object
- create_occ_metric_alarm_and_wait_for_state(create_occ_metric_alarm_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})¶
Calls
create_occ_metric_alarm()and waits for theOccMetricAlarmacted upon to enter the given state(s).- Parameters
create_occ_metric_alarm_details (oci.demand_signal.models.CreateOccMetricAlarmDetails) – (required) The details for creating a new OccMetricAlarm.
wait_for_states (list[str]) – An array of states to wait on. These should be valid values for
lifecycle_stateoperation_kwargs (dict) – A dictionary of keyword arguments to pass to
create_occ_metric_alarm()waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the
oci.wait_until()function. For example, you could passmax_interval_secondsormax_interval_secondsas dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
- delete_occ_metric_alarm_and_wait_for_state(occ_metric_alarm_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})¶
Calls
delete_occ_metric_alarm()and waits for theOccMetricAlarmacted upon to enter the given state(s).- Parameters
occ_metric_alarm_id (str) –
(required) The OCID of the OccMetricAlarm.
wait_for_states (list[str]) – An array of states to wait on. These should be valid values for
lifecycle_stateoperation_kwargs (dict) – A dictionary of keyword arguments to pass to
delete_occ_metric_alarm()waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the
oci.wait_until()function. For example, you could passmax_interval_secondsormax_interval_secondsas dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
- update_occ_metric_alarm_and_wait_for_state(occ_metric_alarm_id, update_occ_metric_alarm_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})¶
Calls
update_occ_metric_alarm()and waits for theOccMetricAlarmacted upon to enter the given state(s).- Parameters
occ_metric_alarm_id (str) –
(required) The OCID of the OccMetricAlarm.
update_occ_metric_alarm_details (oci.demand_signal.models.UpdateOccMetricAlarmDetails) – (required) The details to update the specified OccMetricAlarm.
wait_for_states (list[str]) – An array of states to wait on. These should be valid values for
lifecycle_stateoperation_kwargs (dict) – A dictionary of keyword arguments to pass to
update_occ_metric_alarm()waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the
oci.wait_until()function. For example, you could passmax_interval_secondsormax_interval_secondsas dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait