pubsub namespace
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
功能
功能 | 描述 |
---|
時間表(時間表) | 註冊雲函數以在指定時間運行。 |
主題(主題) | 註冊 Google Cloud Pub/Sub 訊息傳送到指定主題時觸發的 Cloud Function。 |
課程
班級 | 描述 |
---|
訊息 | 表示 Google Cloud Pub/Sub 訊息的介面。 |
時間表產生器 | 計劃功能的建構器,由 Google Pub/Sub 和 Cloud Scheduler 提供支援。描述部署以按提供的頻率觸發計劃功能的 Cloud Scheduler 作業。有關更多信息,請參閱[計劃函數](/docs/functions/schedule-functions)。透過functions.pubsub.schedule() 存取。 |
主題生成器 | Google Cloud Pub/Sub 主題產生器。透過functions.pubsub.topic() 存取。 |
pubsub.schedule()
註冊雲函數以在指定時間運行。
簽名:
export declare function schedule(schedule: string): ScheduleBuilder;
參數
範圍 | 類型 | 描述 |
---|
行程 | 細繩 | 時間表,採用 Unix Crontab 或 AppEngine 語法。 |
返回:
時間表產生器
ScheduleBuilder 介面。
pubsub.topic()
註冊 Google Cloud Pub/Sub 訊息傳送到指定主題時觸發的 Cloud Function。
簽名:
export declare function topic(topic: string): TopicBuilder;
參數
範圍 | 類型 | 描述 |
---|
話題 | 細繩 | 用於監控訊息事件的 Pub/Sub 主題。 |
返回:
主題生成器
Pub/Sub 主題生成器介面。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-12-01 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]