public class Event extends AbstractModel
Constructor and Description |
---|
Event() |
Event(Event source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getData()
Get 事件数据,内容由创建事件的系统来控制,当前datacontenttype仅支持application/json;charset=utf-8,所以该字段是json字符串
|
String |
getSource()
Get 事件源的信息,新产品上报必须符合EB的规范
|
String |
getSubject()
Get 事件来源详细描述,可自定义,选填。云服务默认为标准qcs资源表示语法:qcs::dts:ap-guangzhou:appid/uin:xxx
|
Long |
getTime()
Get 事件发生的毫秒时间戳,
time.Now().UnixNano()/1e6
|
String |
getType()
Get 事件类型,可自定义,选填。云服务默认写 COS:Created:PostObject,用“:”分割类型字段
|
void |
setData(String Data)
Set 事件数据,内容由创建事件的系统来控制,当前datacontenttype仅支持application/json;charset=utf-8,所以该字段是json字符串
|
void |
setSource(String Source)
Set 事件源的信息,新产品上报必须符合EB的规范
|
void |
setSubject(String Subject)
Set 事件来源详细描述,可自定义,选填。云服务默认为标准qcs资源表示语法:qcs::dts:ap-guangzhou:appid/uin:xxx
|
void |
setTime(Long Time)
Set 事件发生的毫秒时间戳,
time.Now().UnixNano()/1e6
|
void |
setType(String Type)
Set 事件类型,可自定义,选填。云服务默认写 COS:Created:PostObject,用“:”分割类型字段
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public Event()
public Event(Event source)
public String getSource()
public void setSource(String Source)
Source
- 事件源的信息,新产品上报必须符合EB的规范public String getData()
public void setData(String Data)
Data
- 事件数据,内容由创建事件的系统来控制,当前datacontenttype仅支持application/json;charset=utf-8,所以该字段是json字符串public String getType()
public void setType(String Type)
Type
- 事件类型,可自定义,选填。云服务默认写 COS:Created:PostObject,用“:”分割类型字段public String getSubject()
public void setSubject(String Subject)
Subject
- 事件来源详细描述,可自定义,选填。云服务默认为标准qcs资源表示语法:qcs::dts:ap-guangzhou:appid/uin:xxxpublic Long getTime()
public void setTime(Long Time)
Time
- 事件发生的毫秒时间戳,
time.Now().UnixNano()/1e6Copyright © 2022. All rights reserved.