Class ProfileData

java.lang.Object
org.tasktide.core.model.job_env.metrics.ProfileData

@Embeddable public class ProfileData extends Object
Holds a collection of MetricData observed over a time-period, for embedding into MetricProfile
  • Constructor Details

    • ProfileData

      public ProfileData()
      Null constructor
    • ProfileData

      public ProfileData(String id, Map<String, MetricData> metricProfile)
      Construct with all args JSON-B SERDE
      Parameters:
      id -
      metricProfile -
  • Method Details

    • populateStateMap

      public void populateStateMap()
      JPA PostLoad method for populating MetricData
    • toJson

      public String toJson()
      Represent as JSON-B string
      Returns:
      String
    • toJsonDoc

      public String toJsonDoc()
      Represent as JSON-B Document
      Returns:
      String
    • getId

      public String getId()
      Get profile id
      Returns:
      String
    • setId

      public void setId(String id)
      Set profile Id
      Parameters:
      id -
    • getMetricProfile

      public Map<String, MetricData> getMetricProfile()
      Get metric profile
      Returns:
      Map-String, MetricData
    • setMetricProfile

      public void setMetricProfile(Map<String, MetricData> metricProfile)
      Set metric profile
      Parameters:
      metricProfile -
    • toString

      public String toString()
      Represent as String
      Overrides:
      toString in class Object
      Returns:
      String