跳到内容

计时器源

IntegrationSource 通过其 timer 属性支持 Timer Kamelet,用于生成具有自定义有效载荷的周期性消息。

计时器源示例

生成带有自定义有效负载的周期性消息。

apiVersion: sources.knative.dev/v1alpha1
kind: IntegrationSource
metadata:
  name: integration-source-timer
  namespace: knative-samples
spec:
  timer:
    period: 2000
    message: "Hello, Eventing Core"
  sink:
    ref:
      apiVersion: eventing.knative.dev/v1
      kind: Broker
      name: default

timer 对象内部,我们定义 period 以及发送到引用的 sink 的消息。

有关 Apache Camel Kamelet timer-source 的更多详细信息。

我们使用分析和 cookie 来了解网站流量。有关您使用我们网站的信息会与 Google 共享以达到此目的。了解更多。