Class FlakyTestHistoryPolicyMetaConfig

java.lang.Object
com.datadog.api.client.v2.model.FlakyTestHistoryPolicyMetaConfig

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class FlakyTestHistoryPolicyMetaConfig extends Object
Configuration parameters of the policy that triggered this status change.
  • Field Details

  • Constructor Details

    • FlakyTestHistoryPolicyMetaConfig

      public FlakyTestHistoryPolicyMetaConfig()
  • Method Details

    • branches

      public FlakyTestHistoryPolicyMetaConfig branches(List<String> branches)
    • addBranchesItem

      public FlakyTestHistoryPolicyMetaConfig addBranchesItem(String branchesItem)
    • getBranches

      @Nullable public List<String> getBranches()
      The branches considered by the policy.
      Returns:
      branches
    • getBranches_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<List<String>> getBranches_JsonNullable()
    • setBranches_JsonNullable

      public void setBranches_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<String>> branches)
    • setBranches

      public void setBranches(List<String> branches)
    • daysActive

      public FlakyTestHistoryPolicyMetaConfig daysActive(Integer daysActive)
    • getDaysActive

      @Nullable public Integer getDaysActive()
      The number of days a test must have been active for the policy to trigger. maximum: 2147483647
      Returns:
      daysActive
    • getDaysActive_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<Integer> getDaysActive_JsonNullable()
    • setDaysActive_JsonNullable

      public void setDaysActive_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Integer> daysActive)
    • setDaysActive

      public void setDaysActive(Integer daysActive)
    • failureRate

      public FlakyTestHistoryPolicyMetaConfig failureRate(Double failureRate)
    • getFailureRate

      @Nullable public Double getFailureRate()
      The failure rate threshold for the policy to trigger. minimum: 0 maximum: 1
      Returns:
      failureRate
    • getFailureRate_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<Double> getFailureRate_JsonNullable()
    • setFailureRate_JsonNullable

      public void setFailureRate_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Double> failureRate)
    • setFailureRate

      public void setFailureRate(Double failureRate)
    • forgetBranches

      public FlakyTestHistoryPolicyMetaConfig forgetBranches(List<String> forgetBranches)
    • addForgetBranchesItem

      public FlakyTestHistoryPolicyMetaConfig addForgetBranchesItem(String forgetBranchesItem)
    • getForgetBranches

      @Nullable public List<String> getForgetBranches()
      Branches excluded from the policy evaluation.
      Returns:
      forgetBranches
    • getForgetBranches_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<List<String>> getForgetBranches_JsonNullable()
    • setForgetBranches_JsonNullable

      public void setForgetBranches_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<String>> forgetBranches)
    • setForgetBranches

      public void setForgetBranches(List<String> forgetBranches)
    • requiredRuns

      public FlakyTestHistoryPolicyMetaConfig requiredRuns(Integer requiredRuns)
    • getRequiredRuns

      @Nullable public Integer getRequiredRuns()
      The minimum number of test runs required for the policy to trigger. maximum: 2147483647
      Returns:
      requiredRuns
    • getRequiredRuns_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<Integer> getRequiredRuns_JsonNullable()
    • setRequiredRuns_JsonNullable

      public void setRequiredRuns_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Integer> requiredRuns)
    • setRequiredRuns

      public void setRequiredRuns(Integer requiredRuns)
    • state

    • getState

      @Nullable public String getState()
      The target state the policy transitions the test from.
      Returns:
      state
    • getState_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getState_JsonNullable()
    • setState_JsonNullable

      public void setState_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> state)
    • setState

      public void setState(String state)
    • testServices

      public FlakyTestHistoryPolicyMetaConfig testServices(List<String> testServices)
    • addTestServicesItem

      public FlakyTestHistoryPolicyMetaConfig addTestServicesItem(String testServicesItem)
    • getTestServices

      @Nullable public List<String> getTestServices()
      Test services excluded from the policy evaluation.
      Returns:
      testServices
    • getTestServices_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<List<String>> getTestServices_JsonNullable()
    • setTestServices_JsonNullable

      public void setTestServices_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<String>> testServices)
    • setTestServices

      public void setTestServices(List<String> testServices)
    • putAdditionalProperty

      public FlakyTestHistoryPolicyMetaConfig 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 set
      value - The associated value
      Returns:
      FlakyTestHistoryPolicyMetaConfig
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      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

      public boolean equals(Object o)
      Return true if this FlakyTestHistoryPolicyMetaConfig object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object