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
category optional string
This is a grouping of metric within the stub.metrics root.
fieldname required string
This is the fieldname to which the data will be written to in stub.metrics.
time_unit optional string
This is the time unit to be used.
The following values are accepted: seconds, minutes, hours, days, weeks, months, years.
Default: seconds
from_date_field required string
This is the date string to be used as the starting point for the calculation.
Default: now
to_date_field optional string
This is the date string to be used as the ending point for the calculation.
Default: now