v20220613

package
v1.0.935 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = "2022-06-13"

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchContent

type BatchContent struct {
	// 消息体
	Body *string `json:"Body,omitnil,omitempty" name:"Body"`

	// 消息的键名
	Key *string `json:"Key,omitnil,omitempty" name:"Key"`
}

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL