On 2021-06-24, Larry Martell wrote:
> On Wed, Jun 23, 2021 at 7:05 PM Dennis Lee Bieber
> wrote:
>>
>> On Wed, 23 Jun 2021 10:42:42 -0700, Larry Martell
>> declaimed the following:
>>
>> >def _decode(data):
>> >compressed_payload = b64decode(data)
>> >json_payload = zlib.decompress(comp
On Thu, Jun 24, 2021 at 10:38 AM Larry Martell wrote:
>
> On Thu, Jun 24, 2021 at 12:20 AM Peter Otten <__pete...@web.de> wrote:
> >
> > On 23/06/2021 19:42, Larry Martell wrote:
> > > When an AWS cloudwatch event is passed to a consumer it looks like this:
> > >
> > > {
> > > "awslogs": {
>
On Thu, Jun 24, 2021 at 12:20 AM Peter Otten <__pete...@web.de> wrote:
>
> On 23/06/2021 19:42, Larry Martell wrote:
> > When an AWS cloudwatch event is passed to a consumer it looks like this:
> >
> > {
> > "awslogs": {
> > "data": "ewogICAgIm1l..."
> > }
> > }
> >
> > To get
On 23/06/2021 19:42, Larry Martell wrote:
When an AWS cloudwatch event is passed to a consumer it looks like this:
{
"awslogs": {
"data": "ewogICAgIm1l..."
}
}
To get the actual message I do this:
def _decode(data):
compressed_payload = b64decode(data)
json_paylo
On Wed, Jun 23, 2021 at 7:05 PM Dennis Lee Bieber wrote:
>
> On Wed, 23 Jun 2021 10:42:42 -0700, Larry Martell
> declaimed the following:
>
> >def _decode(data):
> >compressed_payload = b64decode(data)
> >json_payload = zlib.decompress(compressed_payload, 16+zlib.MAX_WBITS)
> >return
When an AWS cloudwatch event is passed to a consumer it looks like this:
{
"awslogs": {
"data": "ewogICAgIm1l..."
}
}
To get the actual message I do this:
def _decode(data):
compressed_payload = b64decode(data)
json_payload = zlib.decompress(compressed_payload, 16+zlib.