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 This API is used to report data to DIP via SDK.
func (*Client) SendMessageWithContext ¶
func (c *Client) SendMessageWithContext(ctx context.Context, request *SendMessageRequest) (response *SendMessageResponse, err error)
SendMessage This API is used to report data to DIP via SDK.
type SendMessageRequest ¶
type SendMessageRequest struct { *tchttp.BaseRequest // ID of the integrated resource DataHubId *string `json:"DataHubId,omitempty" name:"DataHubId"` // A batch of messages Message []*BatchContent `json:"Message,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 of the integrated resource DataHubId *string `json:"DataHubId,omitempty" name:"DataHubId"` // A batch of messages Message []*BatchContent `json:"Message,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 { // Message ID MessageId []*string `json:"MessageId,omitempty" name:"MessageId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
Click to show internal directories.
Click to hide internal directories.