generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 174
Closed
Labels
bugSomething isn't workingSomething isn't workingcompletedThis item is complete and has been merged/shippedThis item is complete and has been merged/shippedmetricsThis item relates to the Metrics UtilityThis item relates to the Metrics Utility
Milestone
Description
This changes should be in:
- Code
- Unit test
- Doc
- Example
Example code
metrics.addMetric(name="successfulBooking", unit=MetricUnit.Count, value=1)
metrics.addMetric(name="successfulBooking", unit=MetricUnit.Count, value=2)
Expected result
{
"_aws": {
"Timestamp": 1641204548165,
"CloudWatchMetrics": [
{
"Namespace": "DummyNameSpace",
"Dimensions": [
[
"service"
]
],
"Metrics": [
{
"Name": "successfulBooking",
"Unit": "Count"
}
]
}
]
},
"service": "Dummy",
"successfulBooking": [
1.0,
2.0
]
}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcompletedThis item is complete and has been merged/shippedThis item is complete and has been merged/shippedmetricsThis item relates to the Metrics UtilityThis item relates to the Metrics Utility