Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mtojek committed Jan 18, 2021
1 parent 1471713 commit f5191cb
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 143 deletions.
114 changes: 43 additions & 71 deletions test/packages/aws/data_stream/sns/sample_event.json
Original file line number Diff line number Diff line change
@@ -1,81 +1,53 @@
{
"_index": "metrics-aws.sns-default-000001",
"_id": "Ds9vXHIBpGMSUzkZmyod",
"_version": 1,
"_score": null,
"_source": {
"@timestamp": "2020-05-28T17:58:27.154Z",
"service": {
"type": "aws"
},
"stream": {
"dataset": "aws.sns",
"namespace": "default",
"type": "metrics"
},
"ecs": {
"version": "1.5.0"
"@timestamp": "2020-05-28T17:58:27.154Z",
"data_stream": {
"dataset": "aws.sns",
"namespace": "default",
"type": "metrics"
},
"aws": {
"dimensions": {
"TopicName": "test-sns-ks"
},
"aws": {
"cloudwatch": {
"namespace": "AWS/SNS"
},
"dimensions": {
"TopicName": "test-sns-ks"
},
"sns": {
"metrics": {
"NumberOfMessagesPublished": {
"sum": 1
},
"NumberOfNotificationsFailed": {
"sum": 1
},
"PublishSize": {
"avg": 5
}
"sns": {
"metrics": {
"NumberOfMessagesPublished": {
"sum": 1
},
"NumberOfNotificationsFailed": {
"sum": 1
},
"PublishSize": {
"avg": 5
}
},
"tags": {
"created-by": "ks"
}
},
"event": {
"dataset": "aws.sns",
"module": "aws",
"duration": 10418157072
},
"metricset": {
"period": 60000,
"name": "sns"
},
"cloud": {
"region": "us-west-2",
"account": {
"name": "elastic-beats",
"id": "428152502467"
},
"provider": "aws"
},
"agent": {
"version": "8.0.0",
"ephemeral_id": "17803f33-b617-4ce9-a9ac-e218c02aeb4b",
"id": "12f376ef-5186-4e8b-a175-70f1140a8f30",
"name": "MacBook-Elastic.local",
"type": "metricbeat"
"tags": {
"created-by": "ks"
}
},
"fields": {
"@timestamp": [
"2020-05-28T17:58:27.154Z"
]
"event": {
"dataset": "aws.sns",
"module": "aws",
"duration": 10418157072
},
"highlight": {
"event.dataset": [
"@[email protected]@/kibana-highlighted-field@"
]
"metricset": {
"period": 60000,
"name": "sns"
},
"cloud": {
"region": "us-west-2",
"account": {
"name": "elastic-beats",
"id": "428152502467"
},
"provider": "aws"
},
"sort": [
1590688707154
]
"agent": {
"version": "8.0.0",
"ephemeral_id": "17803f33-b617-4ce9-a9ac-e218c02aeb4b",
"id": "12f376ef-5186-4e8b-a175-70f1140a8f30",
"name": "MacBook-Elastic.local",
"type": "metricbeat"
}
}
116 changes: 44 additions & 72 deletions test/packages/aws/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2429,85 +2429,57 @@ An example event for `sns` looks as following:

```$json
{
"_index": "metrics-aws.sns-default-000001",
"_id": "Ds9vXHIBpGMSUzkZmyod",
"_version": 1,
"_score": null,
"_source": {
"@timestamp": "2020-05-28T17:58:27.154Z",
"service": {
"type": "aws"
},
"stream": {
"dataset": "aws.sns",
"namespace": "default",
"type": "metrics"
},
"ecs": {
"version": "1.5.0"
},
"aws": {
"cloudwatch": {
"namespace": "AWS/SNS"
},
"dimensions": {
"TopicName": "test-sns-ks"
},
"sns": {
"metrics": {
"NumberOfMessagesPublished": {
"sum": 1
},
"NumberOfNotificationsFailed": {
"sum": 1
},
"PublishSize": {
"avg": 5
}
"@timestamp": "2020-05-28T17:58:27.154Z",
"data_stream": {
"dataset": "aws.sns",
"namespace": "default",
"type": "metrics"
},
"aws": {
"dimensions": {
"TopicName": "test-sns-ks"
},
"sns": {
"metrics": {
"NumberOfMessagesPublished": {
"sum": 1
},
"NumberOfNotificationsFailed": {
"sum": 1
},
"PublishSize": {
"avg": 5
}
},
"tags": {
"created-by": "ks"
}
},
"event": {
"dataset": "aws.sns",
"module": "aws",
"duration": 10418157072
},
"metricset": {
"period": 60000,
"name": "sns"
},
"cloud": {
"region": "us-west-2",
"account": {
"name": "elastic-beats",
"id": "428152502467"
},
"provider": "aws"
},
"agent": {
"version": "8.0.0",
"ephemeral_id": "17803f33-b617-4ce9-a9ac-e218c02aeb4b",
"id": "12f376ef-5186-4e8b-a175-70f1140a8f30",
"name": "MacBook-Elastic.local",
"type": "metricbeat"
"tags": {
"created-by": "ks"
}
},
"fields": {
"@timestamp": [
"2020-05-28T17:58:27.154Z"
]
"event": {
"dataset": "aws.sns",
"module": "aws",
"duration": 10418157072
},
"highlight": {
"event.dataset": [
"@[email protected]@/kibana-highlighted-field@"
]
"metricset": {
"period": 60000,
"name": "sns"
},
"sort": [
1590688707154
]
"cloud": {
"region": "us-west-2",
"account": {
"name": "elastic-beats",
"id": "428152502467"
},
"provider": "aws"
},
"agent": {
"version": "8.0.0",
"ephemeral_id": "17803f33-b617-4ce9-a9ac-e218c02aeb4b",
"id": "12f376ef-5186-4e8b-a175-70f1140a8f30",
"name": "MacBook-Elastic.local",
"type": "metricbeat"
}
}
```

Expand Down

0 comments on commit f5191cb

Please sign in to comment.