Enum Class QueryStatus

java.lang.Object
java.lang.Enum<QueryStatus>
codes.grow.packages.cloudwatchlogs.QueryStatus
All Implemented Interfaces:
Serializable, Comparable<QueryStatus>, Constable

public enum QueryStatus extends Enum<QueryStatus>
Logs Insights query status.
  • Enum Constant Details

    • SCHEDULED

      public static final QueryStatus SCHEDULED
      Waiting to run.
    • RUNNING

      public static final QueryStatus RUNNING
      Running (AWS may return partial rows).
    • COMPLETE

      public static final QueryStatus COMPLETE
      Finished successfully.
    • FAILED

      public static final QueryStatus FAILED
      Failed in the service.
    • CANCELLED

      public static final QueryStatus CANCELLED
      Stopped with StopQuery.
    • TIMEOUT

      public static final QueryStatus TIMEOUT
      Timed out in the service.
    • UNKNOWN

      public static final QueryStatus UNKNOWN
      Unknown status.
  • Method Details

    • values

      public static QueryStatus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static QueryStatus valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • wireValue

      public String wireValue()
      Returns the AWS name (Complete, Running, …).
      Returns:
      the wire value
    • isTerminal

      public boolean isTerminal()
      Returns whether the query has ended (anything but scheduled or running).
      Returns:
      true when terminal
    • parse

      public static QueryStatus parse(String value)
      Parses an AWS status; unknown or null values give UNKNOWN.
      Parameters:
      value - AWS status text
      Returns:
      the status