Record Class DashboardTypes.DatabaseDashboardMetrics

java.lang.Object
java.lang.Record
app.ductape.sdk.database.types.DashboardTypes.DatabaseDashboardMetrics
Enclosing class:
DashboardTypes

public static record DashboardTypes.DatabaseDashboardMetrics(DashboardTypes.MetricWindow dau, DashboardTypes.MetricWindow wau, DashboardTypes.MetricWindow mau, int totalOperations, int successfulOperations, int failedOperations, int newOperationsThisWeek, DashboardTypes.MetricStringWindow avgExecutionTime, List<DashboardTypes.ActivityPoint> activityTimeline, List<DashboardTypes.PeakHour> peakHours, List<DashboardTypes.EnvironmentBreakdown> environmentBreakdown, List<DashboardTypes.MethodBreakdown> methodBreakdown) extends Record
  • Constructor Details

    • DatabaseDashboardMetrics

      public DatabaseDashboardMetrics(DashboardTypes.MetricWindow dau, DashboardTypes.MetricWindow wau, DashboardTypes.MetricWindow mau, int totalOperations, int successfulOperations, int failedOperations, int newOperationsThisWeek, DashboardTypes.MetricStringWindow avgExecutionTime, List<DashboardTypes.ActivityPoint> activityTimeline, List<DashboardTypes.PeakHour> peakHours, List<DashboardTypes.EnvironmentBreakdown> environmentBreakdown, List<DashboardTypes.MethodBreakdown> methodBreakdown)
      Creates an instance of a DatabaseDashboardMetrics record class.
      Parameters:
      dau - the value for the dau record component
      wau - the value for the wau record component
      mau - the value for the mau record component
      totalOperations - the value for the totalOperations record component
      successfulOperations - the value for the successfulOperations record component
      failedOperations - the value for the failedOperations record component
      newOperationsThisWeek - the value for the newOperationsThisWeek record component
      avgExecutionTime - the value for the avgExecutionTime record component
      activityTimeline - the value for the activityTimeline record component
      peakHours - the value for the peakHours record component
      environmentBreakdown - the value for the environmentBreakdown record component
      methodBreakdown - the value for the methodBreakdown record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • dau

      Returns the value of the dau record component.
      Returns:
      the value of the dau record component
    • wau

      Returns the value of the wau record component.
      Returns:
      the value of the wau record component
    • mau

      Returns the value of the mau record component.
      Returns:
      the value of the mau record component
    • totalOperations

      public int totalOperations()
      Returns the value of the totalOperations record component.
      Returns:
      the value of the totalOperations record component
    • successfulOperations

      public int successfulOperations()
      Returns the value of the successfulOperations record component.
      Returns:
      the value of the successfulOperations record component
    • failedOperations

      public int failedOperations()
      Returns the value of the failedOperations record component.
      Returns:
      the value of the failedOperations record component
    • newOperationsThisWeek

      public int newOperationsThisWeek()
      Returns the value of the newOperationsThisWeek record component.
      Returns:
      the value of the newOperationsThisWeek record component
    • avgExecutionTime

      public DashboardTypes.MetricStringWindow avgExecutionTime()
      Returns the value of the avgExecutionTime record component.
      Returns:
      the value of the avgExecutionTime record component
    • activityTimeline

      public List<DashboardTypes.ActivityPoint> activityTimeline()
      Returns the value of the activityTimeline record component.
      Returns:
      the value of the activityTimeline record component
    • peakHours

      public List<DashboardTypes.PeakHour> peakHours()
      Returns the value of the peakHours record component.
      Returns:
      the value of the peakHours record component
    • environmentBreakdown

      public List<DashboardTypes.EnvironmentBreakdown> environmentBreakdown()
      Returns the value of the environmentBreakdown record component.
      Returns:
      the value of the environmentBreakdown record component
    • methodBreakdown

      public List<DashboardTypes.MethodBreakdown> methodBreakdown()
      Returns the value of the methodBreakdown record component.
      Returns:
      the value of the methodBreakdown record component