Class TaskGraphLog


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2022-09-14T18:46:41.869452+03:00[Europe/Athens]")
    public class TaskGraphLog
    extends java.lang.Object
    Logging information about the execution of a task graph.
    • Field Detail

      • SERIALIZED_NAME_UUID

        public static final java.lang.String SERIALIZED_NAME_UUID
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_NAMESPACE

        public static final java.lang.String SERIALIZED_NAME_NAMESPACE
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_CREATED_BY

        public static final java.lang.String SERIALIZED_NAME_CREATED_BY
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_NAME

        public static final java.lang.String SERIALIZED_NAME_NAME
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_CREATED_AT

        public static final java.lang.String SERIALIZED_NAME_CREATED_AT
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_START_TIME

        public static final java.lang.String SERIALIZED_NAME_START_TIME
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_END_TIME

        public static final java.lang.String SERIALIZED_NAME_END_TIME
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_STATUS

        public static final java.lang.String SERIALIZED_NAME_STATUS
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_TOTAL_COST

        public static final java.lang.String SERIALIZED_NAME_TOTAL_COST
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_ACCESS_COST

        public static final java.lang.String SERIALIZED_NAME_ACCESS_COST
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_EGRESS_COST

        public static final java.lang.String SERIALIZED_NAME_EGRESS_COST
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_EXECUTION_TIME

        public static final java.lang.String SERIALIZED_NAME_EXECUTION_TIME
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_STATUS_COUNT

        public static final java.lang.String SERIALIZED_NAME_STATUS_COUNT
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_NODES

        public static final java.lang.String SERIALIZED_NAME_NODES
        See Also:
        Constant Field Values
      • openapiFields

        public static java.util.HashSet<java.lang.String> openapiFields
      • openapiRequiredFields

        public static java.util.HashSet<java.lang.String> openapiRequiredFields
    • Constructor Detail

      • TaskGraphLog

        public TaskGraphLog()
      • TaskGraphLog

        public TaskGraphLog​(java.lang.String uuid,
                            java.lang.String createdBy,
                            java.time.OffsetDateTime createdAt,
                            java.time.OffsetDateTime startTime,
                            java.time.OffsetDateTime endTime)
    • Method Detail

      • getUuid

        @Nullable
        public java.lang.String getUuid()
        The server-generated UUID of the task graph.
        Returns:
        uuid
      • namespace

        public TaskGraphLog namespace​(java.lang.String namespace)
      • getNamespace

        @Nullable
        public java.lang.String getNamespace()
        The namespace that owns this task graph log. When creating a task graph log, this is used as the namespace to create the log in; thereafter it is read-only.
        Returns:
        namespace
      • setNamespace

        public void setNamespace​(java.lang.String namespace)
      • getCreatedBy

        @Nullable
        public java.lang.String getCreatedBy()
        The name of the user who created this task graph log.
        Returns:
        createdBy
      • name

        public TaskGraphLog name​(java.lang.String name)
      • getName

        @Nullable
        public java.lang.String getName()
        A name for this task graph log, displayed in the UI. Does not need to be unique.
        Returns:
        name
      • setName

        public void setName​(java.lang.String name)
      • getCreatedAt

        @Nullable
        public java.time.OffsetDateTime getCreatedAt()
        The date/time when this task graph log was originally created. This is distinct from the execution start_time.
        Returns:
        createdAt
      • getStartTime

        @Nullable
        public java.time.OffsetDateTime getStartTime()
        The start time of the task graph, recorded when the server starts executing the first node.
        Returns:
        startTime
      • getEndTime

        @Nullable
        public java.time.OffsetDateTime getEndTime()
        The end time of the task graph, recorded when the client reports completion.
        Returns:
        endTime
      • totalCost

        public TaskGraphLog totalCost​(java.math.BigDecimal totalCost)
      • getTotalCost

        @Nullable
        public java.math.BigDecimal getTotalCost()
        If present, the total cost of executing all nodes in this task graph.
        Returns:
        totalCost
      • setTotalCost

        public void setTotalCost​(java.math.BigDecimal totalCost)
      • accessCost

        public TaskGraphLog accessCost​(java.math.BigDecimal accessCost)
      • getAccessCost

        @Nullable
        public java.math.BigDecimal getAccessCost()
        If present, the total cost of access from execution of the nodes in this task graph.
        Returns:
        accessCost
      • setAccessCost

        public void setAccessCost​(java.math.BigDecimal accessCost)
      • egressCost

        public TaskGraphLog egressCost​(java.math.BigDecimal egressCost)
      • getEgressCost

        @Nullable
        public java.math.BigDecimal getEgressCost()
        If present, the total cost of access from execution of the nodes in this task graph.
        Returns:
        egressCost
      • setEgressCost

        public void setEgressCost​(java.math.BigDecimal egressCost)
      • executionTime

        public TaskGraphLog executionTime​(java.lang.String executionTime)
      • getExecutionTime

        @Nullable
        public java.lang.String getExecutionTime()
        The total execution time of all the nodes in this graph, in ISO 8601 format with hours, minutes, and seconds.
        Returns:
        executionTime
      • setExecutionTime

        public void setExecutionTime​(java.lang.String executionTime)
      • statusCount

        public TaskGraphLog statusCount​(java.util.Map<java.lang.String,​java.math.BigDecimal> statusCount)
      • putStatusCountItem

        public TaskGraphLog putStatusCountItem​(java.lang.String key,
                                               java.math.BigDecimal statusCountItem)
      • getStatusCount

        @Nullable
        public java.util.Map<java.lang.String,​java.math.BigDecimal> getStatusCount()
        A mapping from `ArrayTaskStatus` string value to the number of nodes in this graph that are in that status.
        Returns:
        statusCount
      • setStatusCount

        public void setStatusCount​(java.util.Map<java.lang.String,​java.math.BigDecimal> statusCount)
      • getNodes

        @Nullable
        public java.util.List<TaskGraphNodeMetadata> getNodes()
        The structure of the graph. This is provided by the client when first setting up the task graph. Thereafter, it is read-only. This must be topographically sorted; that is, each node must appear after all nodes that it depends upon.
        Returns:
        nodes
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws java.io.IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        java.io.IOException - if the JSON Object is invalid with respect to TaskGraphLog
      • fromJson

        public static TaskGraphLog fromJson​(java.lang.String jsonString)
                                     throws java.io.IOException
        Create an instance of TaskGraphLog given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of TaskGraphLog
        Throws:
        java.io.IOException - if the JSON string is invalid with respect to TaskGraphLog
      • toJson

        public java.lang.String toJson()
        Convert an instance of TaskGraphLog to an JSON string
        Returns:
        JSON string