Metrics
Time From Date
The time from a date to another date.
Basic usage
Save the last timestamp when an action was executed on a stub.
Parameters
optional string
category This is a grouping of metric within the stub.metrics
root.
required string
fieldname This is the fieldname to which the data will be written to in stub.metrics
.
optional string
time_unit This is the time unit to be used.
The following values are accepted: seconds
, minutes
, hours
, days
, weeks
, months
, years
.
Default: seconds
required string
from_date_field This is the date string to be used as the starting point for the calculation.
Default: now
optional string
to_date_field This is the date string to be used as the ending point for the calculation.
Default: now