Class SyntheticsTestResultAssertionResult

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class SyntheticsTestResultAssertionResult extends Object
An individual assertion result from a Synthetic test.
  • Field Details

  • Constructor Details

    • SyntheticsTestResultAssertionResult

      public SyntheticsTestResultAssertionResult()
  • Method Details

    • actual

    • getActual

      @Nullable public Object getActual()
      Actual value observed during the test. Its type depends on the assertion type.
      Returns:
      actual
    • setActual

      public void setActual(Object actual)
    • errorMessage

      public SyntheticsTestResultAssertionResult errorMessage(String errorMessage)
    • getErrorMessage

      @Nullable public String getErrorMessage()
      Error message if the assertion failed.
      Returns:
      errorMessage
    • setErrorMessage

      public void setErrorMessage(String errorMessage)
    • expected

      public SyntheticsTestResultAssertionResult expected(Object expected)
    • getExpected

      @Nullable public Object getExpected()
      Expected value for the assertion. Its type depends on the assertion type.
      Returns:
      expected
    • setExpected

      public void setExpected(Object expected)
    • operator

      public SyntheticsTestResultAssertionResult operator(String operator)
    • getOperator

      @Nullable public String getOperator()
      Operator used for the assertion (for example, is, contains).
      Returns:
      operator
    • setOperator

      public void setOperator(String operator)
    • property

      public SyntheticsTestResultAssertionResult property(String property)
    • getProperty

      @Nullable public String getProperty()
      Property targeted by the assertion, when applicable.
      Returns:
      property
    • setProperty

      public void setProperty(String property)
    • target

    • getTarget

      @Nullable public Object getTarget()
      Target value for the assertion. Its type depends on the assertion type.
      Returns:
      target
    • setTarget

      public void setTarget(Object target)
    • targetPath

      public SyntheticsTestResultAssertionResult targetPath(String targetPath)
    • getTargetPath

      @Nullable public String getTargetPath()
      JSON path or XPath evaluated for the assertion.
      Returns:
      targetPath
    • setTargetPath

      public void setTargetPath(String targetPath)
    • targetPathOperator

      public SyntheticsTestResultAssertionResult targetPathOperator(String targetPathOperator)
    • getTargetPathOperator

      @Nullable public String getTargetPathOperator()
      Operator used for the target path assertion.
      Returns:
      targetPathOperator
    • setTargetPathOperator

      public void setTargetPathOperator(String targetPathOperator)
    • type

    • getType

      @Nullable public String getType()
      Type of the assertion (for example, responseTime, statusCode, body).
      Returns:
      type
    • setType

      public void setType(String type)
    • valid

    • getValid

      @Nullable public Boolean getValid()
      Whether the assertion passed.
      Returns:
      valid
    • setValid

      public void setValid(Boolean valid)
    • putAdditionalProperty

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