ComputeInstanceGroupFailurePolicyByCount¶
- class oci.devops.models.ComputeInstanceGroupFailurePolicyByCount(**kwargs)¶
Bases:
ComputeInstanceGroupFailurePolicySpecifies a failure policy by count for a compute instance group rolling deployment stage.
Attributes:
A constant which can be used with the policy_type property of a ComputeInstanceGroupFailurePolicy.
POLICY_TYPE_COMPUTE_INSTANCE_GROUP_FAILURE_POLICY_BY_PERCENTAGEA constant which can be used with the policy_type property of a ComputeInstanceGroupFailurePolicy.
[Required] Gets the failure_count of this ComputeInstanceGroupFailurePolicyByCount.
[Required] Gets the policy_type of this ComputeInstanceGroupFailurePolicy.
Methods:
__init__(**kwargs)Initializes a new ComputeInstanceGroupFailurePolicyByCount object with values from keyword arguments.
get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- POLICY_TYPE_COMPUTE_INSTANCE_GROUP_FAILURE_POLICY_BY_COUNT = 'COMPUTE_INSTANCE_GROUP_FAILURE_POLICY_BY_COUNT'¶
A constant which can be used with the policy_type property of a ComputeInstanceGroupFailurePolicy. This constant has a value of “COMPUTE_INSTANCE_GROUP_FAILURE_POLICY_BY_COUNT”
- POLICY_TYPE_COMPUTE_INSTANCE_GROUP_FAILURE_POLICY_BY_PERCENTAGE = 'COMPUTE_INSTANCE_GROUP_FAILURE_POLICY_BY_PERCENTAGE'¶
A constant which can be used with the policy_type property of a ComputeInstanceGroupFailurePolicy. This constant has a value of “COMPUTE_INSTANCE_GROUP_FAILURE_POLICY_BY_PERCENTAGE”
- __init__(**kwargs)¶
Initializes a new ComputeInstanceGroupFailurePolicyByCount object with values from keyword arguments. The default value of the
policy_typeattribute of this class isCOMPUTE_INSTANCE_GROUP_FAILURE_POLICY_BY_COUNTand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
policy_type (str) – The value to assign to the policy_type property of this ComputeInstanceGroupFailurePolicyByCount. Allowed values for this property are: “COMPUTE_INSTANCE_GROUP_FAILURE_POLICY_BY_COUNT”, “COMPUTE_INSTANCE_GROUP_FAILURE_POLICY_BY_PERCENTAGE”
failure_count (int) – The value to assign to the failure_count property of this ComputeInstanceGroupFailurePolicyByCount.
- property failure_count¶
[Required] Gets the failure_count of this ComputeInstanceGroupFailurePolicyByCount. The threshold count of failed instances in the group, which when reached or exceeded sets the stage as Failed.
- Returns
The failure_count of this ComputeInstanceGroupFailurePolicyByCount.
- Return type
int
- static get_subtype(object_dictionary)¶
Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- property policy_type¶
[Required] Gets the policy_type of this ComputeInstanceGroupFailurePolicy. Specifies if the failure instance size is given by absolute number or by percentage.
Allowed values for this property are: “COMPUTE_INSTANCE_GROUP_FAILURE_POLICY_BY_COUNT”, “COMPUTE_INSTANCE_GROUP_FAILURE_POLICY_BY_PERCENTAGE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The policy_type of this ComputeInstanceGroupFailurePolicy.
- Return type
str