Skip to main content

stats

What an EHR connection counts, and the name its requests are timed under.

Classes​

EHRServiceStats​

class EHRServiceStats(    forbidden_by_resource_type: Mapping[str, int] = {},    requests_timed: int = 0,    request_seconds: tuple[float, float] | None = None,):

Counts from one EHR connection, as they stood when read.

Arguments

  • forbidden_by_resource_type: HTTP 403 responses per resource type since the connection was built, cumulative over every step of the run that shares it; a caller wanting one step's share takes the difference across it.
  • requests_timed: How many EHR requests this process has timed under EHR_REQUEST_TIMER_NAME, on every connection.
  • request_seconds: The mean and standard deviation of those requests' durations, in seconds, or None before the first.

Variables​

  • forbidden_by_resource_type : Mapping[str, int]
  • request_seconds : tuple[float, float] | None
  • requests_timed : int