class
MetricsController::Chart
- MetricsController::Chart
- Reference
- Object
Defined in:
controllers/metrics.crConstructors
Class Method Summary
- .labels(begin _begin, end _end, granularity : Granularity = Granularity::Daily)
-
.safe_at_beginning_of_week(time : Time, start_day : Time::DayOfWeek = :monday) : Time
Returns a copy of
time
representing the beginning of the week.
Instance Method Summary
- #data(begin _begin, end _end, granularity : Granularity = Granularity::Daily, predicate : Predicate = Predicate::Summate)
- #name : String
- #name=(name : String)
- #points : Array(Point)
- #points=(points : Array(Point))
Constructor Detail
Class Method Detail
def self.safe_at_beginning_of_week(time : Time, start_day : Time::DayOfWeek = :monday) : Time
#
Returns a copy of time
representing the beginning of the week.
This implementation is DST-safe. See: https://github.com/crystal-lang/crystal/issues/16112
Instance Method Detail
def data(begin _begin, end _end, granularity : Granularity = Granularity::Daily, predicate : Predicate = Predicate::Summate)
#