gpt4 book ai didi

google-cloud-platform - 使用 Stackdriver 的 Google IOT 每设备心跳警报

转载 作者:行者123 更新时间:2023-12-03 05:18:18 25 4
gpt4 key购买 nike

我想就大量 Google IOT 核心设备中的任何一个缺少心跳(或接收到 0 字节)发出警报。我似乎无法在 Stackdriver 中执行此操作。相反,它似乎让我对整个设备注册表发出警报,但它没有提供我要查找的内容(我如何知道特定设备已断开连接?)

那么如何做到这一点呢?

最佳答案

我不知道为什么这个问题被否决为“太宽泛”。

事实是,Google IOT 没有针对每台设备的警报,而是仅针对整个设备注册表提供警报。如果这不是真的,请回复此帖子。明确说明这一点的页面 is here :

Cloud IoT Core exports usage metrics that can be monitored programmatically or accessed via Stackdriver Monitoring. These metrics are aggregated at the device registry level. You can use Stackdriver to create dashboards or set up alerts.

为每台设备提供警报的重要性已融入 this statement 中的 promise 中。 :

Operational information about the health and functioning of devices is important to ensure that your data-gathering fabric is healthy and performing well. Devices might be located in harsh environments or in hard-to-access locations. Monitoring operational intelligence for your IoT devices is key to preserving the business-relevant data stream.

因此,如果全局分散的许多设备中的一个失去连接,今天要收到警报并不容易。人们需要构建它,并且根据人们想要做什么,它会需要不同的解决方案。

就我而言,如果上次心跳时间或上次事件状态发布早于 5 分钟,我想发出警报。为此,我需要运行一个循环函数来扫描设备注册表并定期执行此操作。其他 SO 帖子中概述了此 API 的用法:Google iot core connection status

关于google-cloud-platform - 使用 Stackdriver 的 Google IOT 每设备心跳警报,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49329778/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com