Skip to content

Commit 10288a5

Browse files
Update: Document --expiration parameter in dotnet-monitor (Fixes #44948) (#44976)
1 parent c3734a5 commit 10288a5

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/core/diagnostics/dotnet-monitor.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: dotnet-monitor diagnostic tool - .NET
33
description: Learn how to install and use the dotnet-monitor tool to collect dumps, traces, logs, and metrics from applications in production environments.
4-
ms.date: 06/16/2022
4+
ms.date: 03/04/2025
55
ms.topic: reference
66
---
77
# Diagnostic monitoring and collection utility (dotnet-monitor)
@@ -183,12 +183,12 @@ dotnet-monitor config show [-h|--help] [-u|--urls] [-m|--metrics] [--metricUrls]
183183

184184
## dotnet-monitor generatekey
185185

186-
Generate an API key and hash for HTTP authentication.
186+
Generate an API key and hash for HTTP authentication.
187187

188188
### Synopsis
189189

190190
```console
191-
dotnet-monitor generatekey [-h|--help] [-o|--output]
191+
dotnet-monitor generatekey [-h|--help] [-o|--output] [-e|--expiration]
192192
```
193193

194194
### Options
@@ -209,6 +209,10 @@ dotnet-monitor generatekey [-h|--help] [-o|--output]
209209
- `Shell` - Outputs in a format usable in Linux shells such as Bash.
210210
- `Text` - Outputs in a format that is plain text.
211211

212-
## See Also
212+
- **`-e|--expiration <expiration>`**
213+
214+
The expiration time after which the generated API key will no longer be accepted. The value must be in <xref:System.TimeSpan> format (for example, "7.00:00:00" for 7 days). Default: "7.00:00:00" (7 days).
215+
216+
## See also
213217

214218
- [dotnet/dotnet-monitor](https://github.com/dotnet/dotnet-monitor/tree/main/documentation)

0 commit comments

Comments
 (0)