AgentLaunchEvent

代理程式啟動狀態變更時發生的事件。

代理程式從 Pub/Sub 訂閱項目收到的「message」物件的「data」欄位中,會顯示 AgentLaunchEvent。「data」欄位是 Base64 編碼的字串,代理程式必須解碼才能符合 PartnerEvent 結構。

JSON 表示法
{
  "eventId": string,
  "agentId": string,
  "botDisplayName": string,
  "brandId": string,
  "brandDisplayName": string,
  "regionId": string,
  "oldLaunchState": enum (AgentLaunchEvent.LaunchState),
  "newLaunchState": enum (AgentLaunchEvent.LaunchState),
  "actingParty": string,
  "comment": string,
  "sendTime": string
}
欄位
eventId

string

指派給活動例項的專屬活動 ID。

agentId

string

代理程式的專屬 ID。由 RCS Business Messaging 設定。

botDisplayName

string

代理的顯示名稱。

brandId

string

品牌的專屬 ID。

brandDisplayName

string

品牌的顯示名稱。

regionId

string

代理程式啟動狀態變更的區域 ID。格式為「/v1/regions/{regionId}」。例如「/v1/regions/fi-rcs」。

oldLaunchState

enum (AgentLaunchEvent.LaunchState)

僅供輸出。新的發布狀態類型。

newLaunchState

enum (AgentLaunchEvent.LaunchState)

僅供輸出。目前的推出狀態類型。

actingParty

string

代理人。

comment

string

變更註解。

sendTime

string (Timestamp format)

僅供輸出。伺服器傳送事件的時間。

使用 RFC 3339,產生的輸出內容一律會經過 Z 標準化,並使用 0、3、6 或 9 個小數位數。系統也接受「Z」以外的偏移量。例如:"2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z""2014-10-02T15:01:23+05:30"