Jav*_*een 9 logging amazon-web-services amazon-cloudwatch
在Cloudwatch事件的结构中:
'events': [
{
'logStreamName': 'string',
'timestamp': 123,
'message': 'string',
'ingestionTime': 123,
'eventId': 'string'
},
]
Run Code Online (Sandbox Code Playgroud)
摄入时间是什么意思?
他们在这份文件中说:
ingestionTime
Run Code Online (Sandbox Code Playgroud)The time the event was ingested.
我发现仍然不清楚.
这里有两个时间戳字段.
该timestamp
是时候该事件已经发生有人说,根据已发送到CloudWatch的消息.
这ingestionTime
是CloudWatch实际收到有关该事件的消息的时间.
两者之间的差异 - 假设所有时钟都是准确的 - 是事件发生时和CloudWatch接收和"摄取"(被馈送,吃掉,消耗)有关事件的消息之间的延迟.