Documentation

teams.message()函数

teams.message() 是一个由 包作者 维护的用户贡献的函数。

teams.message() 使用incoming webhook向Microsoft Teams频道发送单条消息。

函数类型签名
(text: string, title: A, url: string, ?summary: string) => int

有关更多信息,请参见 Function type signatures。

参数

网址

(必填) 传入的 Webhook URL。

标题

(必需) 消息卡片标题。

文本

(必填) 消息卡片文本。

总结

消息卡摘要。 默认值是 ""。

如果没有提供摘要,Flux将从消息文本生成摘要。

示例

将最后报告的状态发送到 Microsoft Teams 频道

import "contrib/sranka/teams"

lastReported =
    from(bucket: "example-bucket")
        |> range(start: -1m)
        |> filter(fn: (r) => r._measurement == "statuses")
        |> last()
        |> findRecord(fn: (key) => true, idx: 0)

teams.message(
    url: "https://outlook.office.com/webhook/example-webhook",
    title: "Disk Usage",
    text: "Disk usage is: *${lastReported.status}*.",
    summary: "Disk usage is ${lastReported.status}",
)


Flux的未来

Flux 正在进入维护模式。您可以像现在一样继续使用它,而无需对您的代码进行任何更改。

阅读更多

InfluxDB 3 开源版本现已公开Alpha测试

InfluxDB 3 Open Source is now available for alpha testing, licensed under MIT or Apache 2 licensing.

我们将发布两个产品作为测试版的一部分。

InfluxDB 3 核心,是我们新的开源产品。 它是一个用于时间序列和事件数据的实时数据引擎。 InfluxDB 3 企业版是建立在核心基础之上的商业版本,增加了历史查询能力、读取副本、高可用性、可扩展性和细粒度安全性。

有关如何开始的更多信息,请查看: