Class FlakyTestAttributes

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class FlakyTestAttributes extends Object
Attributes of a flaky test.
  • Field Details

  • Constructor Details

    • FlakyTestAttributes

      public FlakyTestAttributes()
  • Method Details

    • attemptToFixId

      public FlakyTestAttributes attemptToFixId(String attemptToFixId)
    • getAttemptToFixId

      @Nullable public String getAttemptToFixId()
      Unique identifier for the attempt to fix this flaky test. Use this ID in the Git commit message in order to trigger the attempt to fix workflow.

      When the workflow is triggered the test is automatically retried by the tracer a certain number of configurable times. When all retries pass, the test is automatically marked as fixed in Flaky Test Management. Test runs are tagged with @test.test_management.attempt_to_fix_passed and @test.test_management.is_attempt_to_fix when the attempt to fix workflow is triggered.

      Returns:
      attemptToFixId
    • setAttemptToFixId

      public void setAttemptToFixId(String attemptToFixId)
    • codeowners

      public FlakyTestAttributes codeowners(List<String> codeowners)
    • addCodeownersItem

      public FlakyTestAttributes addCodeownersItem(String codeownersItem)
    • getCodeowners

      @Nullable public List<String> getCodeowners()
      The name of the test's code owners as inferred from the repository configuration.
      Returns:
      codeowners
    • setCodeowners

      public void setCodeowners(List<String> codeowners)
    • envs

      public FlakyTestAttributes envs(List<String> envs)
    • addEnvsItem

      public FlakyTestAttributes addEnvsItem(String envsItem)
    • getEnvs

      @Nullable public List<String> getEnvs()
      List of environments where this test has been flaky.
      Returns:
      envs
    • setEnvs

      public void setEnvs(List<String> envs)
    • firstFlakedBranch

      public FlakyTestAttributes firstFlakedBranch(String firstFlakedBranch)
    • getFirstFlakedBranch

      @Nullable public String getFirstFlakedBranch()
      The branch name where the test exhibited flakiness for the first time.
      Returns:
      firstFlakedBranch
    • setFirstFlakedBranch

      public void setFirstFlakedBranch(String firstFlakedBranch)
    • firstFlakedSha

      public FlakyTestAttributes firstFlakedSha(String firstFlakedSha)
    • getFirstFlakedSha

      @Nullable public String getFirstFlakedSha()
      The commit SHA where the test exhibited flakiness for the first time.
      Returns:
      firstFlakedSha
    • setFirstFlakedSha

      public void setFirstFlakedSha(String firstFlakedSha)
    • firstFlakedTs

      public FlakyTestAttributes firstFlakedTs(Long firstFlakedTs)
    • getFirstFlakedTs

      @Nullable public Long getFirstFlakedTs()
      Unix timestamp when the test exhibited flakiness for the first time.
      Returns:
      firstFlakedTs
    • setFirstFlakedTs

      public void setFirstFlakedTs(Long firstFlakedTs)
    • flakyCategory

      public FlakyTestAttributes flakyCategory(String flakyCategory)
    • getFlakyCategory

      @Nullable public String getFlakyCategory()
      The category of a flaky test.
      Returns:
      flakyCategory
    • getFlakyCategory_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getFlakyCategory_JsonNullable()
    • setFlakyCategory_JsonNullable

      public void setFlakyCategory_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> flakyCategory)
    • setFlakyCategory

      public void setFlakyCategory(String flakyCategory)
    • flakyState

      public FlakyTestAttributes flakyState(FlakyTestAttributesFlakyState flakyState)
    • getFlakyState

      @Nullable public FlakyTestAttributesFlakyState getFlakyState()
      The current state of the flaky test.
      Returns:
      flakyState
    • setFlakyState

      public void setFlakyState(FlakyTestAttributesFlakyState flakyState)
    • history

      public FlakyTestAttributes history(List<FlakyTestHistory> history)
    • addHistoryItem

      public FlakyTestAttributes addHistoryItem(FlakyTestHistory historyItem)
    • getHistory

      @Nullable public List<FlakyTestHistory> getHistory()
      Chronological history of status changes for this flaky test, ordered from most recent to oldest. Includes state transitions like new -> quarantined -> fixed, along with the associated commit SHA when available.
      Returns:
      history
    • setHistory

      public void setHistory(List<FlakyTestHistory> history)
    • impactLevel

      public FlakyTestAttributes impactLevel(FlakyTestImpactLevel impactLevel)
    • getImpactLevel

      @Nullable public FlakyTestImpactLevel getImpactLevel()
      The impact level of the flaky test, derived from its impact score.
      Returns:
      impactLevel
    • setImpactLevel

      public void setImpactLevel(FlakyTestImpactLevel impactLevel)
    • impactScore

      public FlakyTestAttributes impactScore(Double impactScore)
    • getImpactScore

      @Nullable public Double getImpactScore()
      A score from 0 to 1 indicating the impact of this flaky test, based on factors such as how often it fails and how many pipelines it affects. minimum: 0 maximum: 1
      Returns:
      impactScore
    • getImpactScore_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<Double> getImpactScore_JsonNullable()
    • setImpactScore_JsonNullable

      public void setImpactScore_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Double> impactScore)
    • setImpactScore

      public void setImpactScore(Double impactScore)
    • lastFlakedBranch

      public FlakyTestAttributes lastFlakedBranch(String lastFlakedBranch)
    • getLastFlakedBranch

      @Nullable public String getLastFlakedBranch()
      The branch name where the test exhibited flakiness for the last time.
      Returns:
      lastFlakedBranch
    • setLastFlakedBranch

      public void setLastFlakedBranch(String lastFlakedBranch)
    • lastFlakedSha

      public FlakyTestAttributes lastFlakedSha(String lastFlakedSha)
    • getLastFlakedSha

      @Nullable public String getLastFlakedSha()
      The commit SHA where the test exhibited flakiness for the last time.
      Returns:
      lastFlakedSha
    • setLastFlakedSha

      public void setLastFlakedSha(String lastFlakedSha)
    • lastFlakedTs

      public FlakyTestAttributes lastFlakedTs(Long lastFlakedTs)
    • getLastFlakedTs

      @Nullable public Long getLastFlakedTs()
      Unix timestamp when the test exhibited flakiness for the last time.
      Returns:
      lastFlakedTs
    • setLastFlakedTs

      public void setLastFlakedTs(Long lastFlakedTs)
    • module

      public FlakyTestAttributes module(String module)
    • getModule

      @Nullable public String getModule()
      The name of the test module. The definition of module changes slightly per language: - In .NET, a test module groups every test that is run under the same unit test project. - In Swift, a test module groups every test that is run for a given bundle. - In JavaScript, the test modules map one-to-one to test sessions. - In Java, a test module groups every test that is run by the same Maven Surefire/Failsafe or Gradle Test task execution. - In Python, a test module groups every test that is run under the same .py file as part of a test suite, which is typically managed by a framework like unittest or pytest. - In Ruby, a test module groups every test that is run within the same test file, which is typically managed by a framework like RSpec or Minitest.
      Returns:
      module
    • getModule_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getModule_JsonNullable()
    • setModule_JsonNullable

      public void setModule_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> module)
    • setModule

      public void setModule(String module)
    • name

      public FlakyTestAttributes name(String name)
    • getName

      @Nullable public String getName()
      The test name. A concise name for a test case. Defined in the test itself.
      Returns:
      name
    • setName

      public void setName(String name)
    • pipelineStats

      public FlakyTestAttributes pipelineStats(FlakyTestPipelineStats pipelineStats)
    • getPipelineStats

      @Nullable public FlakyTestPipelineStats getPipelineStats()
      CI pipeline related statistics for the flaky test. This information is only available if test runs are associated with CI pipeline events from CI Visibility.
      Returns:
      pipelineStats
    • setPipelineStats

      public void setPipelineStats(FlakyTestPipelineStats pipelineStats)
    • services

      public FlakyTestAttributes services(List<String> services)
    • addServicesItem

      public FlakyTestAttributes addServicesItem(String servicesItem)
    • getServices

      @Nullable public List<String> getServices()
      List of test service names where this test has been flaky.

      A test service is a group of tests associated with a project or repository. It contains all the individual tests for your code, optionally organized into test suites, which are like folders for your tests.

      Returns:
      services
    • setServices

      public void setServices(List<String> services)
    • suite

      public FlakyTestAttributes suite(String suite)
    • getSuite

      @Nullable public String getSuite()
      The name of the test suite. A group of tests exercising the same unit of code depending on your language and testing framework.
      Returns:
      suite
    • setSuite

      public void setSuite(String suite)
    • testRunMetadata

      public FlakyTestAttributes testRunMetadata(FlakyTestRunMetadata testRunMetadata)
    • getTestRunMetadata

      @Nullable public FlakyTestRunMetadata getTestRunMetadata()
      Metadata about the latest failed test run of the flaky test.
      Returns:
      testRunMetadata
    • setTestRunMetadata

      public void setTestRunMetadata(FlakyTestRunMetadata testRunMetadata)
    • testStats

      public FlakyTestAttributes testStats(FlakyTestStats testStats)
    • getTestStats

      @Nullable public FlakyTestStats getTestStats()
      Test statistics for the flaky test.
      Returns:
      testStats
    • setTestStats

      public void setTestStats(FlakyTestStats testStats)
    • putAdditionalProperty

      public FlakyTestAttributes 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:
      FlakyTestAttributes
    • 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 FlakyTestAttributes 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