> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Metrics For User From Last Hour

Get login metrics from the last hour for a given user.

<Note>
  Please note that the data returned is coordinates on a diagram, the X value represents the timestamp and the Y value represents the number of occurrences.
</Note>

<Note>
  External Documentation

  To learn more, visit the [Authentik documentation](https://docs.goauthentik.io/docs/developer-docs/api/reference/core-users-metrics-retrieve).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter | Description                                                     |
  | --------- | --------------------------------------------------------------- |
  | User ID   | The ID of the user. Can be obtained by the `List Users` action. |
</div>

## Example Output

```json theme={"dark"}
{
	"logins": [
		{
			"x_cord": 3311067841727,
			"y_cord": 2
		},
		{
			"x_cord": 2121277762042,
			"y_cord": 2
		}
	],
	"logins_failed": [
		{
			"x_cord": 488394544812,
			"y_cord": 1
		},
		{
			"x_cord": 2665371658846,
			"y_cord": 2
		}
	],
	"authorizations": [
		{
			"x_cord": 2784351190440,
			"y_cord": 1
		},
		{
			"x_cord": 2192040600382,
			"y_cord": 2
		}
	]
}
```

## Workflow Library Example

[Get Metrics for User from Last Hour with Authentik and Send Results Via Email](https://library.blinkops.com/workflows/get-metrics-for-user-from-last-hour-with-authentik-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/get-metrics-for-user-from-last-hour-with-authentik-and-send-results-via-email/canvas" />
</div>
