Package com.datadog.api.client.v2.model
Class TestOptimizationFlakyTestsManagementPoliciesDisabledFailureRateRule
java.lang.Object
com.datadog.api.client.v2.model.TestOptimizationFlakyTestsManagementPoliciesDisabledFailureRateRule
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class TestOptimizationFlakyTestsManagementPoliciesDisabledFailureRateRule
extends Object
Failure-rate-based rule for the disabled policy.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddBranchesItem(String branchesItem) booleanReturn true if this TestOptimizationFlakyTestsManagementPoliciesDisabledFailureRateRule object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.List of branches to which this rule applies.Whether this failure rate rule is enabled.Minimum number of runs required before the rule is evaluated.Test status that the disable policy applies to.Failure rate threshold (0.0–1.0) above which the rule triggers.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetBranches(List<String> branches) voidsetEnabled(Boolean enabled) voidsetMinRuns(Long minRuns) voidvoidsetThreshold(Double threshold) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_BRANCHES
- See Also:
-
JSON_PROPERTY_ENABLED
- See Also:
-
JSON_PROPERTY_MIN_RUNS
- See Also:
-
JSON_PROPERTY_STATUS
- See Also:
-
JSON_PROPERTY_THRESHOLD
- See Also:
-
-
Constructor Details
-
TestOptimizationFlakyTestsManagementPoliciesDisabledFailureRateRule
public TestOptimizationFlakyTestsManagementPoliciesDisabledFailureRateRule()
-
-
Method Details
-
branches
public TestOptimizationFlakyTestsManagementPoliciesDisabledFailureRateRule branches(List<String> branches) -
addBranchesItem
public TestOptimizationFlakyTestsManagementPoliciesDisabledFailureRateRule addBranchesItem(String branchesItem) -
getBranches
List of branches to which this rule applies.- Returns:
- branches
-
setBranches
-
enabled
-
getEnabled
Whether this failure rate rule is enabled.- Returns:
- enabled
-
setEnabled
-
minRuns
-
getMinRuns
Minimum number of runs required before the rule is evaluated. Must be greater than or equal to 0.- Returns:
- minRuns
-
setMinRuns
-
status
-
getStatus
Test status that the disable policy applies to. Must be eitheractiveorquarantined.- Returns:
- status
-
setStatus
-
threshold
public TestOptimizationFlakyTestsManagementPoliciesDisabledFailureRateRule threshold(Double threshold) -
getThreshold
Failure rate threshold (0.0–1.0) above which the rule triggers.- Returns:
- threshold
-
setThreshold
-
putAdditionalProperty
public TestOptimizationFlakyTestsManagementPoliciesDisabledFailureRateRule putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- The arbitrary key to setvalue- The associated value- Returns:
- TestOptimizationFlakyTestsManagementPoliciesDisabledFailureRateRule
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- The arbitrary key to get- Returns:
- The specific additional property for the given key
-
equals
Return true if this TestOptimizationFlakyTestsManagementPoliciesDisabledFailureRateRule object is equal to o. -
hashCode
public int hashCode() -
toString
-