Skip to content

Commit

Permalink
Fix aws.billing.EstimatedCharges field name (elastic#1606)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiyan-sheng authored Sep 9, 2021
1 parent 56f6d49 commit d8242d5
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 23 deletions.
5 changes: 5 additions & 0 deletions packages/aws/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "0.10.6"
changes:
- description: Fix aws.billing.EstimatedCharges field name
type: bugfix
link: https://github.com/elastic/integrations/pull/1606
- version: "0.10.5"
changes:
- description: Add event.created field
Expand Down
2 changes: 1 addition & 1 deletion packages/aws/data_stream/billing/fields/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- name: billing
type: group
fields:
- name: EstimatedCharges.max
- name: EstimatedCharges
type: long
description: Maximum estimated charges for AWS acccount.
- name: Currency
Expand Down
32 changes: 22 additions & 10 deletions packages/aws/data_stream/billing/sample_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,29 @@
},
"aws": {
"billing": {
"metrics": {
"EstimatedCharges": {
"max": 1625.41
}
"Currency": "USD",
"EstimatedCharges": 39.26,
"ServiceName": "AmazonEKS",
"AmortizedCost": {
"amount": 51.6,
"unit": "USD"
},
"BlendedCost": {
"amount": 51.6,
"unit": "USD"
},
"NormalizedUsageAmount": {
"amount": 672,
"unit": "N/A"
},
"UnblendedCost": {
"amount": 51.6,
"unit": "USD"
},
"UsageQuantity": {
"amount": 168,
"unit": "N/A"
}
},
"cloudwatch": {
"namespace": "AWS/Billing"
},
"dimensions": {
"Currency": "USD"
}
},
"service": {
Expand Down
34 changes: 23 additions & 11 deletions packages/aws/docs/billing.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,29 @@ An example event for `billing` looks as following:
},
"aws": {
"billing": {
"metrics": {
"EstimatedCharges": {
"max": 1625.41
}
"Currency": "USD",
"EstimatedCharges": 39.26,
"ServiceName": "AmazonEKS",
"AmortizedCost": {
"amount": 51.6,
"unit": "USD"
},
"BlendedCost": {
"amount": 51.6,
"unit": "USD"
},
"NormalizedUsageAmount": {
"amount": 672,
"unit": "N/A"
},
"UnblendedCost": {
"amount": 51.6,
"unit": "USD"
},
"UsageQuantity": {
"amount": 168,
"unit": "N/A"
}
},
"cloudwatch": {
"namespace": "AWS/Billing"
},
"dimensions": {
"Currency": "USD"
}
},
"service": {
Expand All @@ -66,7 +78,7 @@ An example event for `billing` looks as following:
| aws.billing.BlendedCost.amount | Blended cost amount. | double |
| aws.billing.BlendedCost.unit | Blended cost unit. | keyword |
| aws.billing.Currency | Currency name. | keyword |
| aws.billing.EstimatedCharges.max | Maximum estimated charges for AWS acccount. | long |
| aws.billing.EstimatedCharges | Maximum estimated charges for AWS acccount. | long |
| aws.billing.NormalizedUsageAmount.amount | Normalized usage amount. | double |
| aws.billing.NormalizedUsageAmount.unit | Normalized usage amount unit. | keyword |
| aws.billing.ServiceName | AWS service name. | keyword |
Expand Down
2 changes: 1 addition & 1 deletion packages/aws/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 1.0.0
name: aws
title: AWS
version: 0.10.5
version: 0.10.6
license: basic
description: This integration collects logs and metrics from Amazon Web Services (AWS)
type: integration
Expand Down

0 comments on commit d8242d5

Please sign in to comment.