View Source Zexbox.Metrics.ControllerSeries (Zexbox v1.4.0)
This module defines generic controller metrics.
The fields captured are:
- duration_ms - The time taken to process the request in milliseconds
- success - Whether the request was successful (1.0) or not (0.0)
- path - The path of the request
- http_referer - The referer of the request
- count - The number of requests
- request_id - The request ID of the request
The tags allowed are:
- controller - The name of the controller
- action - The name of the action
- method - The HTTP method of the request
- format - The format of the request
- status - The status of the request
Summary
Types
@type t() :: %Zexbox.Metrics.ControllerSeries{ fields: %Zexbox.Metrics.ControllerSeries.Fields{ count: term(), duration_ms: term(), http_referer: term(), path: term(), request_id: term(), success: term(), trace_id: term() }, tags: %Zexbox.Metrics.ControllerSeries.Tags{ action: term(), controller: term(), format: term(), method: term(), status: term() }, timestamp: non_neg_integer() | binary() | nil }