Skip to content

Commit a95c8c7

Browse files
leandrodamascenasinofseven
authored andcommitted
docs(api): migrating the metrics utility to mkdocstrings (aws-powertools#6022)
Mkdocstrings - Metrics
1 parent c4c00e8 commit a95c8c7

File tree

8 files changed

+23
-1
lines changed

8 files changed

+23
-1
lines changed

Diff for: aws_lambda_powertools/metrics/base.py

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
Metrics utility
3+
!!! abstract "Usage Documentation"
4+
[`Metrics`](../../core/metrics.md)
5+
"""
6+
17
from __future__ import annotations
28

39
import datetime

Diff for: aws_lambda_powertools/metrics/provider/cloudwatch_emf/cloudwatch.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def set_timestamp(self, timestamp: int | datetime.datetime):
330330
"""
331331
Set the timestamp for the metric.
332332
333-
Parameters:
333+
Parameters
334334
-----------
335335
timestamp: int | datetime.datetime
336336
The timestamp to create the metric.

Diff for: docs/api_doc/metrics/base.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<!-- markdownlint-disable MD043 MD041 -->
2+
::: aws_lambda_powertools.metrics.base

Diff for: docs/api_doc/metrics/exceptions.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<!-- markdownlint-disable MD043 MD041 -->
2+
::: aws_lambda_powertools.metrics.exceptions

Diff for: docs/api_doc/metrics/metrics.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<!-- markdownlint-disable MD043 MD041 -->
2+
::: aws_lambda_powertools.metrics.metrics

Diff for: docs/api_doc/metrics/provider_datadog.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<!-- markdownlint-disable MD043 MD041 -->
2+
::: aws_lambda_powertools.metrics.provider.datadog.datadog

Diff for: docs/api_doc/metrics/provider_emf.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<!-- markdownlint-disable MD043 MD041 -->
2+
::: aws_lambda_powertools.metrics.provider.cloudwatch_emf.cloudwatch

Diff for: mkdocs.yml

+6
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ nav:
9292
- Formatter: api_doc/logger/formatter.md
9393
- Lambda Context: api_doc/logger/lambda_context.md
9494
- Logger: api_doc/logger/logger.md
95+
- Metrics:
96+
- Base: api_doc/metrics/base.md
97+
- Exceptions: api_doc/metrics/exceptions.md
98+
- Providers:
99+
- EMF: api_doc/metrics/provider_emf.md
100+
- DataDog: api_doc/metrics/provider_datadog.md
95101
- Middleware Factory: api_doc/middleware_factory.md
96102
- Parameters:
97103
- Base: api_doc/parameters/base.md

0 commit comments

Comments
 (0)