Package app.ductape.sdk.database.types
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 Summary
ConstructorsConstructorDescriptionDatabaseDashboardMetrics(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 aDatabaseDashboardMetricsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactivityTimelinerecord component.Returns the value of theavgExecutionTimerecord component.dau()Returns the value of thedaurecord component.Returns the value of theenvironmentBreakdownrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefailedOperationsrecord component.final inthashCode()Returns a hash code value for this object.mau()Returns the value of themaurecord component.Returns the value of themethodBreakdownrecord component.intReturns the value of thenewOperationsThisWeekrecord component.Returns the value of thepeakHoursrecord component.intReturns the value of thesuccessfulOperationsrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalOperationsrecord component.wau()Returns the value of thewaurecord component.
-
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 aDatabaseDashboardMetricsrecord class.- Parameters:
dau- the value for thedaurecord componentwau- the value for thewaurecord componentmau- the value for themaurecord componenttotalOperations- the value for thetotalOperationsrecord componentsuccessfulOperations- the value for thesuccessfulOperationsrecord componentfailedOperations- the value for thefailedOperationsrecord componentnewOperationsThisWeek- the value for thenewOperationsThisWeekrecord componentavgExecutionTime- the value for theavgExecutionTimerecord componentactivityTimeline- the value for theactivityTimelinerecord componentpeakHours- the value for thepeakHoursrecord componentenvironmentBreakdown- the value for theenvironmentBreakdownrecord componentmethodBreakdown- the value for themethodBreakdownrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
dau
Returns the value of thedaurecord component.- Returns:
- the value of the
daurecord component
-
wau
Returns the value of thewaurecord component.- Returns:
- the value of the
waurecord component
-
mau
Returns the value of themaurecord component.- Returns:
- the value of the
maurecord component
-
totalOperations
public int totalOperations()Returns the value of thetotalOperationsrecord component.- Returns:
- the value of the
totalOperationsrecord component
-
successfulOperations
public int successfulOperations()Returns the value of thesuccessfulOperationsrecord component.- Returns:
- the value of the
successfulOperationsrecord component
-
failedOperations
public int failedOperations()Returns the value of thefailedOperationsrecord component.- Returns:
- the value of the
failedOperationsrecord component
-
newOperationsThisWeek
public int newOperationsThisWeek()Returns the value of thenewOperationsThisWeekrecord component.- Returns:
- the value of the
newOperationsThisWeekrecord component
-
avgExecutionTime
Returns the value of theavgExecutionTimerecord component.- Returns:
- the value of the
avgExecutionTimerecord component
-
activityTimeline
Returns the value of theactivityTimelinerecord component.- Returns:
- the value of the
activityTimelinerecord component
-
peakHours
Returns the value of thepeakHoursrecord component.- Returns:
- the value of the
peakHoursrecord component
-
environmentBreakdown
Returns the value of theenvironmentBreakdownrecord component.- Returns:
- the value of the
environmentBreakdownrecord component
-
methodBreakdown
Returns the value of themethodBreakdownrecord component.- Returns:
- the value of the
methodBreakdownrecord component
-