Documentation ¶
Index ¶
Constants ¶
View Source
const APIVersion = "2022-06-13"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchContent ¶
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) SendMessage ¶
func (c *Client) SendMessage(request *SendMessageRequest) (response *SendMessageResponse, err error)
SendMessage 使用SDK将数据上报到DIP
func (*Client) SendMessageWithContext ¶
func (c *Client) SendMessageWithContext(ctx context.Context, request *SendMessageRequest) (response *SendMessageResponse, err error)
SendMessage 使用SDK将数据上报到DIP
type SendMessageRequest ¶
type SendMessageRequest struct { *tchttp.BaseRequest // 接入资源ID DataHubId *string `json:"DataHubId,omitnil,omitempty" name:"DataHubId"` // 批量消息 Message []*BatchContent `json:"Message,omitnil,omitempty" name:"Message"` }
func NewSendMessageRequest ¶
func NewSendMessageRequest() (request *SendMessageRequest)
func (*SendMessageRequest) FromJsonString ¶
func (r *SendMessageRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SendMessageRequest) ToJsonString ¶
func (r *SendMessageRequest) ToJsonString() string
type SendMessageRequestParams ¶
type SendMessageRequestParams struct { // 接入资源ID DataHubId *string `json:"DataHubId,omitnil,omitempty" name:"DataHubId"` // 批量消息 Message []*BatchContent `json:"Message,omitnil,omitempty" name:"Message"` }
Predefined struct for user
type SendMessageResponse ¶
type SendMessageResponse struct { *tchttp.BaseResponse Response *SendMessageResponseParams `json:"Response"` }
func NewSendMessageResponse ¶
func NewSendMessageResponse() (response *SendMessageResponse)
func (*SendMessageResponse) FromJsonString ¶
func (r *SendMessageResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SendMessageResponse) ToJsonString ¶
func (r *SendMessageResponse) ToJsonString() string
type SendMessageResponseParams ¶
type SendMessageResponseParams struct { // 消息ID MessageId []*string `json:"MessageId,omitnil,omitempty" name:"MessageId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
Click to show internal directories.
Click to hide internal directories.