Package com.datadog.api.client.v2.model
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCodeownersItem(String codeownersItem) addEnvsItem(String envsItem) addHistoryItem(FlakyTestHistory historyItem) addServicesItem(String servicesItem) attemptToFixId(String attemptToFixId) codeowners(List<String> codeowners) booleanReturn true if this FlakyTestAttributes object is equal to o.firstFlakedBranch(String firstFlakedBranch) firstFlakedSha(String firstFlakedSha) firstFlakedTs(Long firstFlakedTs) flakyCategory(String flakyCategory) flakyState(FlakyTestAttributesFlakyState flakyState) Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Unique identifier for the attempt to fix this flaky test.The name of the test's code owners as inferred from the repository configuration.getEnvs()List of environments where this test has been flaky.The branch name where the test exhibited flakiness for the first time.The commit SHA where the test exhibited flakiness for the first time.Unix timestamp when the test exhibited flakiness for the first time.The category of a flaky test.org.openapitools.jackson.nullable.JsonNullable<String>The current state of the flaky test.Chronological history of status changes for this flaky test, ordered from most recent to oldest.The impact level of the flaky test, derived from its impact score.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.org.openapitools.jackson.nullable.JsonNullable<Double>The branch name where the test exhibited flakiness for the last time.The commit SHA where the test exhibited flakiness for the last time.Unix timestamp when the test exhibited flakiness for the last time.The name of the test module.org.openapitools.jackson.nullable.JsonNullable<String>getName()The test name.CI pipeline related statistics for the flaky test.List of test service names where this test has been flaky.getSuite()The name of the test suite.Metadata about the latest failed test run of the flaky test.Test statistics for the flaky test.inthashCode()history(List<FlakyTestHistory> history) impactLevel(FlakyTestImpactLevel impactLevel) impactScore(Double impactScore) lastFlakedBranch(String lastFlakedBranch) lastFlakedSha(String lastFlakedSha) lastFlakedTs(Long lastFlakedTs) pipelineStats(FlakyTestPipelineStats pipelineStats) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAttemptToFixId(String attemptToFixId) voidsetCodeowners(List<String> codeowners) voidvoidsetFirstFlakedBranch(String firstFlakedBranch) voidsetFirstFlakedSha(String firstFlakedSha) voidsetFirstFlakedTs(Long firstFlakedTs) voidsetFlakyCategory(String flakyCategory) voidsetFlakyCategory_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> flakyCategory) voidsetFlakyState(FlakyTestAttributesFlakyState flakyState) voidsetHistory(List<FlakyTestHistory> history) voidsetImpactLevel(FlakyTestImpactLevel impactLevel) voidsetImpactScore(Double impactScore) voidsetImpactScore_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Double> impactScore) voidsetLastFlakedBranch(String lastFlakedBranch) voidsetLastFlakedSha(String lastFlakedSha) voidsetLastFlakedTs(Long lastFlakedTs) voidvoidsetModule_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> module) voidvoidsetPipelineStats(FlakyTestPipelineStats pipelineStats) voidsetServices(List<String> services) voidvoidsetTestRunMetadata(FlakyTestRunMetadata testRunMetadata) voidsetTestStats(FlakyTestStats testStats) testRunMetadata(FlakyTestRunMetadata testRunMetadata) testStats(FlakyTestStats testStats) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ATTEMPT_TO_FIX_ID
- See Also:
-
JSON_PROPERTY_CODEOWNERS
- See Also:
-
JSON_PROPERTY_ENVS
- See Also:
-
JSON_PROPERTY_FIRST_FLAKED_BRANCH
- See Also:
-
JSON_PROPERTY_FIRST_FLAKED_SHA
- See Also:
-
JSON_PROPERTY_FIRST_FLAKED_TS
- See Also:
-
JSON_PROPERTY_FLAKY_CATEGORY
- See Also:
-
JSON_PROPERTY_FLAKY_STATE
- See Also:
-
JSON_PROPERTY_HISTORY
- See Also:
-
JSON_PROPERTY_IMPACT_LEVEL
- See Also:
-
JSON_PROPERTY_IMPACT_SCORE
- See Also:
-
JSON_PROPERTY_LAST_FLAKED_BRANCH
- See Also:
-
JSON_PROPERTY_LAST_FLAKED_SHA
- See Also:
-
JSON_PROPERTY_LAST_FLAKED_TS
- See Also:
-
JSON_PROPERTY_MODULE
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_PIPELINE_STATS
- See Also:
-
JSON_PROPERTY_SERVICES
- See Also:
-
JSON_PROPERTY_SUITE
- See Also:
-
JSON_PROPERTY_TEST_RUN_METADATA
- See Also:
-
JSON_PROPERTY_TEST_STATS
- See Also:
-
-
Constructor Details
-
FlakyTestAttributes
public FlakyTestAttributes()
-
-
Method Details
-
attemptToFixId
-
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
-
codeowners
-
addCodeownersItem
-
getCodeowners
The name of the test's code owners as inferred from the repository configuration.- Returns:
- codeowners
-
setCodeowners
-
envs
-
addEnvsItem
-
getEnvs
List of environments where this test has been flaky.- Returns:
- envs
-
setEnvs
-
firstFlakedBranch
-
getFirstFlakedBranch
The branch name where the test exhibited flakiness for the first time.- Returns:
- firstFlakedBranch
-
setFirstFlakedBranch
-
firstFlakedSha
-
getFirstFlakedSha
The commit SHA where the test exhibited flakiness for the first time.- Returns:
- firstFlakedSha
-
setFirstFlakedSha
-
firstFlakedTs
-
getFirstFlakedTs
Unix timestamp when the test exhibited flakiness for the first time.- Returns:
- firstFlakedTs
-
setFirstFlakedTs
-
flakyCategory
-
getFlakyCategory
The category of a flaky test.- Returns:
- flakyCategory
-
getFlakyCategory_JsonNullable
-
setFlakyCategory_JsonNullable
public void setFlakyCategory_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> flakyCategory) -
setFlakyCategory
-
flakyState
-
getFlakyState
The current state of the flaky test.- Returns:
- flakyState
-
setFlakyState
-
history
-
addHistoryItem
-
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
-
impactLevel
-
getImpactLevel
The impact level of the flaky test, derived from its impact score.- Returns:
- impactLevel
-
setImpactLevel
-
impactScore
-
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
-
setImpactScore_JsonNullable
public void setImpactScore_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Double> impactScore) -
setImpactScore
-
lastFlakedBranch
-
getLastFlakedBranch
The branch name where the test exhibited flakiness for the last time.- Returns:
- lastFlakedBranch
-
setLastFlakedBranch
-
lastFlakedSha
-
getLastFlakedSha
The commit SHA where the test exhibited flakiness for the last time.- Returns:
- lastFlakedSha
-
setLastFlakedSha
-
lastFlakedTs
-
getLastFlakedTs
Unix timestamp when the test exhibited flakiness for the last time.- Returns:
- lastFlakedTs
-
setLastFlakedTs
-
module
-
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.pyfile as part of a test suite, which is typically managed by a framework likeunittestorpytest. - In Ruby, a test module groups every test that is run within the same test file, which is typically managed by a framework likeRSpecorMinitest.- Returns:
- module
-
getModule_JsonNullable
-
setModule_JsonNullable
-
setModule
-
name
-
getName
The test name. A concise name for a test case. Defined in the test itself.- Returns:
- name
-
setName
-
pipelineStats
-
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
-
services
-
addServicesItem
-
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
-
suite
-
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
-
testRunMetadata
-
getTestRunMetadata
Metadata about the latest failed test run of the flaky test.- Returns:
- testRunMetadata
-
setTestRunMetadata
-
testStats
-
getTestStats
Test statistics for the flaky test.- Returns:
- testStats
-
setTestStats
-
putAdditionalProperty
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:
- FlakyTestAttributes
-
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 FlakyTestAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-