Просмотр исходного кода

ONS SDK Auto Released By wenting.ywt,Version:1.52.0

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 6 лет назад
Родитель
Сommit
be0b50fe35
98 измененных файлов с 5822 добавлено и 0 удалено
  1. 5 0
      ChangeLog.txt
  2. 81 0
      services/ons/client.go
  3. 108 0
      services/ons/ons_consumer_accumulate.go
  4. 107 0
      services/ons/ons_consumer_get_connection.go
  5. 109 0
      services/ons/ons_consumer_reset_offset.go
  6. 109 0
      services/ons/ons_consumer_status.go
  7. 108 0
      services/ons/ons_consumer_time_span.go
  8. 107 0
      services/ons/ons_group_consumer_update.go
  9. 107 0
      services/ons/ons_group_create.go
  10. 106 0
      services/ons/ons_group_delete.go
  11. 107 0
      services/ons/ons_group_list.go
  12. 106 0
      services/ons/ons_instance_base_info.go
  13. 107 0
      services/ons/ons_instance_create.go
  14. 105 0
      services/ons/ons_instance_delete.go
  15. 105 0
      services/ons/ons_instance_in_service_list.go
  16. 107 0
      services/ons/ons_instance_update.go
  17. 108 0
      services/ons/ons_message_get_by_key.go
  18. 108 0
      services/ons/ons_message_get_by_msg_id.go
  19. 112 0
      services/ons/ons_message_page_query_by_topic.go
  20. 109 0
      services/ons/ons_message_push.go
  21. 110 0
      services/ons/ons_message_send.go
  22. 108 0
      services/ons/ons_message_trace.go
  23. 107 0
      services/ons/ons_mqtt_group_id_create.go
  24. 106 0
      services/ons/ons_mqtt_group_id_delete.go
  25. 106 0
      services/ons/ons_mqtt_group_id_list.go
  26. 107 0
      services/ons/ons_mqtt_query_client_by_client_id.go
  27. 107 0
      services/ons/ons_mqtt_query_client_by_group_id.go
  28. 108 0
      services/ons/ons_mqtt_query_client_by_topic.go
  29. 109 0
      services/ons/ons_mqtt_query_history_online.go
  30. 114 0
      services/ons/ons_mqtt_query_msg_trans_trend.go
  31. 105 0
      services/ons/ons_region_list.go
  32. 108 0
      services/ons/ons_topic_create.go
  33. 106 0
      services/ons/ons_topic_delete.go
  34. 107 0
      services/ons/ons_topic_list.go
  35. 107 0
      services/ons/ons_topic_status.go
  36. 107 0
      services/ons/ons_topic_update.go
  37. 106 0
      services/ons/ons_trace_get_result.go
  38. 110 0
      services/ons/ons_trace_query_by_msg_id.go
  39. 110 0
      services/ons/ons_trace_query_by_msg_key.go
  40. 112 0
      services/ons/ons_trend_group_output_tps.go
  41. 111 0
      services/ons/ons_trend_topic_input_tps.go
  42. 113 0
      services/ons/ons_warn_create.go
  43. 107 0
      services/ons/ons_warn_delete.go
  44. 21 0
      services/ons/struct_client_list.go
  45. 24 0
      services/ons/struct_connection_do.go
  46. 21 0
      services/ons/struct_connection_list.go
  47. 21 0
      services/ons/struct_connection_set.go
  48. 32 0
      services/ons/struct_consumer_connection_info_do.go
  49. 21 0
      services/ons/struct_consumer_connection_info_list.go
  50. 26 0
      services/ons/struct_consumer_running_data_do.go
  51. 56 0
      services/ons/struct_data.go
  52. 21 0
      services/ons/struct_data_in_ons_group_list.go
  53. 21 0
      services/ons/struct_data_in_ons_instance_in_service_list.go
  54. 21 0
      services/ons/struct_data_in_ons_message_get_by_key.go
  55. 21 0
      services/ons/struct_data_in_ons_message_trace.go
  56. 21 0
      services/ons/struct_data_in_ons_mqtt_group_id_list.go
  57. 21 0
      services/ons/struct_data_in_ons_region_list.go
  58. 21 0
      services/ons/struct_data_in_ons_topic_list.go
  59. 24 0
      services/ons/struct_detail_in_topic_do.go
  60. 21 0
      services/ons/struct_detail_in_topic_list_in_ons_consumer_accumulate.go
  61. 21 0
      services/ons/struct_detail_in_topic_list_in_ons_consumer_status.go
  62. 24 0
      services/ons/struct_endpoints.go
  63. 26 0
      services/ons/struct_instance_base_info.go
  64. 25 0
      services/ons/struct_instance_vo.go
  65. 21 0
      services/ons/struct_jstack.go
  66. 22 0
      services/ons/struct_message_property.go
  67. 24 0
      services/ons/struct_message_track.go
  68. 25 0
      services/ons/struct_mqtt_client_info_do.go
  69. 22 0
      services/ons/struct_mqtt_client_set_do.go
  70. 30 0
      services/ons/struct_mqtt_group_id_do.go
  71. 24 0
      services/ons/struct_msg_found_do.go
  72. 21 0
      services/ons/struct_msg_found_list.go
  73. 34 0
      services/ons/struct_ons_rest_message_do.go
  74. 21 0
      services/ons/struct_property_list_in_ons_message_get_by_key.go
  75. 21 0
      services/ons/struct_property_list_in_ons_message_get_by_msg_id.go
  76. 21 0
      services/ons/struct_property_list_in_ons_message_page_query_by_topic.go
  77. 29 0
      services/ons/struct_publish_info_do.go
  78. 21 0
      services/ons/struct_records_in_ons_mqtt_query_history_online.go
  79. 21 0
      services/ons/struct_records_in_ons_mqtt_query_msg_trans_trend.go
  80. 21 0
      services/ons/struct_records_in_ons_trend_group_output_tps.go
  81. 21 0
      services/ons/struct_records_in_ons_trend_topic_input_tps.go
  82. 27 0
      services/ons/struct_region_do.go
  83. 21 0
      services/ons/struct_running_data_list.go
  84. 22 0
      services/ons/struct_stats_data_do.go
  85. 26 0
      services/ons/struct_sub_client_info_do.go
  86. 21 0
      services/ons/struct_sub_list.go
  87. 24 0
      services/ons/struct_sub_map_do.go
  88. 21 0
      services/ons/struct_sub_scripton_data.go
  89. 26 0
      services/ons/struct_subscribe_info_do.go
  90. 24 0
      services/ons/struct_subscription_data.go
  91. 23 0
      services/ons/struct_subscription_do.go
  92. 21 0
      services/ons/struct_subscription_set.go
  93. 21 0
      services/ons/struct_tags_set.go
  94. 22 0
      services/ons/struct_thread_track_do.go
  95. 30 0
      services/ons/struct_trace_data.go
  96. 21 0
      services/ons/struct_trace_list.go
  97. 30 0
      services/ons/struct_trace_map_do.go
  98. 21 0
      services/ons/struct_track_list.go

+ 5 - 0
ChangeLog.txt

@@ -1,3 +1,8 @@
+2019-02-18 Version: 1.52.0
+1, Instantiation: adding the property of instance.
+2, Replace the "ProducerId" and "ConsumerId" properties with "GROUP_ID".
+3, Remove parameter OnsRegionId to simplified usage.
+
 2019-02-18 Version: 1.51.28
 1, industrial-brain release.
 2, publish SDK to public package stores.

+ 81 - 0
services/ons/client.go

@@ -0,0 +1,81 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth"
+)
+
+// Client is the sdk client struct, each func corresponds to an OpenAPI
+type Client struct {
+	sdk.Client
+}
+
+// NewClient creates a sdk client with environment variables
+func NewClient() (client *Client, err error) {
+	client = &Client{}
+	err = client.Init()
+	return
+}
+
+// NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential
+// this is the common api to create a sdk client
+func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithOptions(regionId, config, credential)
+	return
+}
+
+// NewClientWithAccessKey is a shortcut to create sdk client with accesskey
+// usage: https://help.aliyun.com/document_detail/66217.html
+func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret)
+	return
+}
+
+// NewClientWithStsToken is a shortcut to create sdk client with sts token
+// usage: https://help.aliyun.com/document_detail/66222.html
+func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken)
+	return
+}
+
+// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn
+// usage: https://help.aliyun.com/document_detail/66222.html
+func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName)
+	return
+}
+
+// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role
+// usage: https://help.aliyun.com/document_detail/66223.html
+func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithEcsRamRole(regionId, roleName)
+	return
+}
+
+// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair
+// attention: rsa key pair auth is only Japan regions available
+func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration)
+	return
+}

+ 108 - 0
services/ons/ons_consumer_accumulate.go

@@ -0,0 +1,108 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsConsumerAccumulate invokes the ons.OnsConsumerAccumulate API synchronously
+// api document: https://help.aliyun.com/api/ons/onsconsumeraccumulate.html
+func (client *Client) OnsConsumerAccumulate(request *OnsConsumerAccumulateRequest) (response *OnsConsumerAccumulateResponse, err error) {
+	response = CreateOnsConsumerAccumulateResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsConsumerAccumulateWithChan invokes the ons.OnsConsumerAccumulate API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsconsumeraccumulate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsConsumerAccumulateWithChan(request *OnsConsumerAccumulateRequest) (<-chan *OnsConsumerAccumulateResponse, <-chan error) {
+	responseChan := make(chan *OnsConsumerAccumulateResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsConsumerAccumulate(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsConsumerAccumulateWithCallback invokes the ons.OnsConsumerAccumulate API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsconsumeraccumulate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsConsumerAccumulateWithCallback(request *OnsConsumerAccumulateRequest, callback func(response *OnsConsumerAccumulateResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsConsumerAccumulateResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsConsumerAccumulate(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsConsumerAccumulateRequest is the request struct for api OnsConsumerAccumulate
+type OnsConsumerAccumulateRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	GroupId      string           `position:"Query" name:"GroupId"`
+	Detail       requests.Boolean `position:"Query" name:"Detail"`
+}
+
+// OnsConsumerAccumulateResponse is the response struct for api OnsConsumerAccumulate
+type OnsConsumerAccumulateResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string `json:"HelpUrl" xml:"HelpUrl"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateOnsConsumerAccumulateRequest creates a request to invoke OnsConsumerAccumulate API
+func CreateOnsConsumerAccumulateRequest() (request *OnsConsumerAccumulateRequest) {
+	request = &OnsConsumerAccumulateRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsConsumerAccumulate", "ons", "openAPI")
+	return
+}
+
+// CreateOnsConsumerAccumulateResponse creates a response to parse from OnsConsumerAccumulate response
+func CreateOnsConsumerAccumulateResponse() (response *OnsConsumerAccumulateResponse) {
+	response = &OnsConsumerAccumulateResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/ons/ons_consumer_get_connection.go

@@ -0,0 +1,107 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsConsumerGetConnection invokes the ons.OnsConsumerGetConnection API synchronously
+// api document: https://help.aliyun.com/api/ons/onsconsumergetconnection.html
+func (client *Client) OnsConsumerGetConnection(request *OnsConsumerGetConnectionRequest) (response *OnsConsumerGetConnectionResponse, err error) {
+	response = CreateOnsConsumerGetConnectionResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsConsumerGetConnectionWithChan invokes the ons.OnsConsumerGetConnection API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsconsumergetconnection.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsConsumerGetConnectionWithChan(request *OnsConsumerGetConnectionRequest) (<-chan *OnsConsumerGetConnectionResponse, <-chan error) {
+	responseChan := make(chan *OnsConsumerGetConnectionResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsConsumerGetConnection(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsConsumerGetConnectionWithCallback invokes the ons.OnsConsumerGetConnection API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsconsumergetconnection.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsConsumerGetConnectionWithCallback(request *OnsConsumerGetConnectionRequest, callback func(response *OnsConsumerGetConnectionResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsConsumerGetConnectionResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsConsumerGetConnection(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsConsumerGetConnectionRequest is the request struct for api OnsConsumerGetConnection
+type OnsConsumerGetConnectionRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	GroupId      string           `position:"Query" name:"GroupId"`
+}
+
+// OnsConsumerGetConnectionResponse is the response struct for api OnsConsumerGetConnection
+type OnsConsumerGetConnectionResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string `json:"HelpUrl" xml:"HelpUrl"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateOnsConsumerGetConnectionRequest creates a request to invoke OnsConsumerGetConnection API
+func CreateOnsConsumerGetConnectionRequest() (request *OnsConsumerGetConnectionRequest) {
+	request = &OnsConsumerGetConnectionRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsConsumerGetConnection", "ons", "openAPI")
+	return
+}
+
+// CreateOnsConsumerGetConnectionResponse creates a response to parse from OnsConsumerGetConnection response
+func CreateOnsConsumerGetConnectionResponse() (response *OnsConsumerGetConnectionResponse) {
+	response = &OnsConsumerGetConnectionResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 109 - 0
services/ons/ons_consumer_reset_offset.go

@@ -0,0 +1,109 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsConsumerResetOffset invokes the ons.OnsConsumerResetOffset API synchronously
+// api document: https://help.aliyun.com/api/ons/onsconsumerresetoffset.html
+func (client *Client) OnsConsumerResetOffset(request *OnsConsumerResetOffsetRequest) (response *OnsConsumerResetOffsetResponse, err error) {
+	response = CreateOnsConsumerResetOffsetResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsConsumerResetOffsetWithChan invokes the ons.OnsConsumerResetOffset API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsconsumerresetoffset.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsConsumerResetOffsetWithChan(request *OnsConsumerResetOffsetRequest) (<-chan *OnsConsumerResetOffsetResponse, <-chan error) {
+	responseChan := make(chan *OnsConsumerResetOffsetResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsConsumerResetOffset(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsConsumerResetOffsetWithCallback invokes the ons.OnsConsumerResetOffset API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsconsumerresetoffset.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsConsumerResetOffsetWithCallback(request *OnsConsumerResetOffsetRequest, callback func(response *OnsConsumerResetOffsetResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsConsumerResetOffsetResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsConsumerResetOffset(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsConsumerResetOffsetRequest is the request struct for api OnsConsumerResetOffset
+type OnsConsumerResetOffsetRequest struct {
+	*requests.RpcRequest
+	PreventCache   requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId     string           `position:"Query" name:"InstanceId"`
+	GroupId        string           `position:"Query" name:"GroupId"`
+	Topic          string           `position:"Query" name:"Topic"`
+	ResetTimestamp requests.Integer `position:"Query" name:"ResetTimestamp"`
+	Type           requests.Integer `position:"Query" name:"Type"`
+}
+
+// OnsConsumerResetOffsetResponse is the response struct for api OnsConsumerResetOffset
+type OnsConsumerResetOffsetResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string `json:"HelpUrl" xml:"HelpUrl"`
+}
+
+// CreateOnsConsumerResetOffsetRequest creates a request to invoke OnsConsumerResetOffset API
+func CreateOnsConsumerResetOffsetRequest() (request *OnsConsumerResetOffsetRequest) {
+	request = &OnsConsumerResetOffsetRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsConsumerResetOffset", "ons", "openAPI")
+	return
+}
+
+// CreateOnsConsumerResetOffsetResponse creates a response to parse from OnsConsumerResetOffset response
+func CreateOnsConsumerResetOffsetResponse() (response *OnsConsumerResetOffsetResponse) {
+	response = &OnsConsumerResetOffsetResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 109 - 0
services/ons/ons_consumer_status.go

@@ -0,0 +1,109 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsConsumerStatus invokes the ons.OnsConsumerStatus API synchronously
+// api document: https://help.aliyun.com/api/ons/onsconsumerstatus.html
+func (client *Client) OnsConsumerStatus(request *OnsConsumerStatusRequest) (response *OnsConsumerStatusResponse, err error) {
+	response = CreateOnsConsumerStatusResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsConsumerStatusWithChan invokes the ons.OnsConsumerStatus API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsconsumerstatus.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsConsumerStatusWithChan(request *OnsConsumerStatusRequest) (<-chan *OnsConsumerStatusResponse, <-chan error) {
+	responseChan := make(chan *OnsConsumerStatusResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsConsumerStatus(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsConsumerStatusWithCallback invokes the ons.OnsConsumerStatus API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsconsumerstatus.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsConsumerStatusWithCallback(request *OnsConsumerStatusRequest, callback func(response *OnsConsumerStatusResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsConsumerStatusResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsConsumerStatus(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsConsumerStatusRequest is the request struct for api OnsConsumerStatus
+type OnsConsumerStatusRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	NeedJstack   requests.Boolean `position:"Query" name:"NeedJstack"`
+	GroupId      string           `position:"Query" name:"GroupId"`
+	Detail       requests.Boolean `position:"Query" name:"Detail"`
+}
+
+// OnsConsumerStatusResponse is the response struct for api OnsConsumerStatus
+type OnsConsumerStatusResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string `json:"HelpUrl" xml:"HelpUrl"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateOnsConsumerStatusRequest creates a request to invoke OnsConsumerStatus API
+func CreateOnsConsumerStatusRequest() (request *OnsConsumerStatusRequest) {
+	request = &OnsConsumerStatusRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsConsumerStatus", "ons", "openAPI")
+	return
+}
+
+// CreateOnsConsumerStatusResponse creates a response to parse from OnsConsumerStatus response
+func CreateOnsConsumerStatusResponse() (response *OnsConsumerStatusResponse) {
+	response = &OnsConsumerStatusResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 108 - 0
services/ons/ons_consumer_time_span.go

@@ -0,0 +1,108 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsConsumerTimeSpan invokes the ons.OnsConsumerTimeSpan API synchronously
+// api document: https://help.aliyun.com/api/ons/onsconsumertimespan.html
+func (client *Client) OnsConsumerTimeSpan(request *OnsConsumerTimeSpanRequest) (response *OnsConsumerTimeSpanResponse, err error) {
+	response = CreateOnsConsumerTimeSpanResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsConsumerTimeSpanWithChan invokes the ons.OnsConsumerTimeSpan API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsconsumertimespan.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsConsumerTimeSpanWithChan(request *OnsConsumerTimeSpanRequest) (<-chan *OnsConsumerTimeSpanResponse, <-chan error) {
+	responseChan := make(chan *OnsConsumerTimeSpanResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsConsumerTimeSpan(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsConsumerTimeSpanWithCallback invokes the ons.OnsConsumerTimeSpan API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsconsumertimespan.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsConsumerTimeSpanWithCallback(request *OnsConsumerTimeSpanRequest, callback func(response *OnsConsumerTimeSpanResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsConsumerTimeSpanResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsConsumerTimeSpan(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsConsumerTimeSpanRequest is the request struct for api OnsConsumerTimeSpan
+type OnsConsumerTimeSpanRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	GroupId      string           `position:"Query" name:"GroupId"`
+	Topic        string           `position:"Query" name:"Topic"`
+}
+
+// OnsConsumerTimeSpanResponse is the response struct for api OnsConsumerTimeSpan
+type OnsConsumerTimeSpanResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string `json:"HelpUrl" xml:"HelpUrl"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateOnsConsumerTimeSpanRequest creates a request to invoke OnsConsumerTimeSpan API
+func CreateOnsConsumerTimeSpanRequest() (request *OnsConsumerTimeSpanRequest) {
+	request = &OnsConsumerTimeSpanRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsConsumerTimeSpan", "ons", "openAPI")
+	return
+}
+
+// CreateOnsConsumerTimeSpanResponse creates a response to parse from OnsConsumerTimeSpan response
+func CreateOnsConsumerTimeSpanResponse() (response *OnsConsumerTimeSpanResponse) {
+	response = &OnsConsumerTimeSpanResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/ons/ons_group_consumer_update.go

@@ -0,0 +1,107 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsGroupConsumerUpdate invokes the ons.OnsGroupConsumerUpdate API synchronously
+// api document: https://help.aliyun.com/api/ons/onsgroupconsumerupdate.html
+func (client *Client) OnsGroupConsumerUpdate(request *OnsGroupConsumerUpdateRequest) (response *OnsGroupConsumerUpdateResponse, err error) {
+	response = CreateOnsGroupConsumerUpdateResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsGroupConsumerUpdateWithChan invokes the ons.OnsGroupConsumerUpdate API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsgroupconsumerupdate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsGroupConsumerUpdateWithChan(request *OnsGroupConsumerUpdateRequest) (<-chan *OnsGroupConsumerUpdateResponse, <-chan error) {
+	responseChan := make(chan *OnsGroupConsumerUpdateResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsGroupConsumerUpdate(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsGroupConsumerUpdateWithCallback invokes the ons.OnsGroupConsumerUpdate API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsgroupconsumerupdate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsGroupConsumerUpdateWithCallback(request *OnsGroupConsumerUpdateRequest, callback func(response *OnsGroupConsumerUpdateResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsGroupConsumerUpdateResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsGroupConsumerUpdate(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsGroupConsumerUpdateRequest is the request struct for api OnsGroupConsumerUpdate
+type OnsGroupConsumerUpdateRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	ReadEnable   requests.Boolean `position:"Query" name:"ReadEnable"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	GroupId      string           `position:"Query" name:"GroupId"`
+}
+
+// OnsGroupConsumerUpdateResponse is the response struct for api OnsGroupConsumerUpdate
+type OnsGroupConsumerUpdateResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string `json:"HelpUrl" xml:"HelpUrl"`
+}
+
+// CreateOnsGroupConsumerUpdateRequest creates a request to invoke OnsGroupConsumerUpdate API
+func CreateOnsGroupConsumerUpdateRequest() (request *OnsGroupConsumerUpdateRequest) {
+	request = &OnsGroupConsumerUpdateRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsGroupConsumerUpdate", "ons", "openAPI")
+	return
+}
+
+// CreateOnsGroupConsumerUpdateResponse creates a response to parse from OnsGroupConsumerUpdate response
+func CreateOnsGroupConsumerUpdateResponse() (response *OnsGroupConsumerUpdateResponse) {
+	response = &OnsGroupConsumerUpdateResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/ons/ons_group_create.go

@@ -0,0 +1,107 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsGroupCreate invokes the ons.OnsGroupCreate API synchronously
+// api document: https://help.aliyun.com/api/ons/onsgroupcreate.html
+func (client *Client) OnsGroupCreate(request *OnsGroupCreateRequest) (response *OnsGroupCreateResponse, err error) {
+	response = CreateOnsGroupCreateResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsGroupCreateWithChan invokes the ons.OnsGroupCreate API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsgroupcreate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsGroupCreateWithChan(request *OnsGroupCreateRequest) (<-chan *OnsGroupCreateResponse, <-chan error) {
+	responseChan := make(chan *OnsGroupCreateResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsGroupCreate(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsGroupCreateWithCallback invokes the ons.OnsGroupCreate API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsgroupcreate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsGroupCreateWithCallback(request *OnsGroupCreateRequest, callback func(response *OnsGroupCreateResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsGroupCreateResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsGroupCreate(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsGroupCreateRequest is the request struct for api OnsGroupCreate
+type OnsGroupCreateRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	GroupId      string           `position:"Query" name:"GroupId"`
+	Remark       string           `position:"Query" name:"Remark"`
+}
+
+// OnsGroupCreateResponse is the response struct for api OnsGroupCreate
+type OnsGroupCreateResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string `json:"HelpUrl" xml:"HelpUrl"`
+}
+
+// CreateOnsGroupCreateRequest creates a request to invoke OnsGroupCreate API
+func CreateOnsGroupCreateRequest() (request *OnsGroupCreateRequest) {
+	request = &OnsGroupCreateRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsGroupCreate", "ons", "openAPI")
+	return
+}
+
+// CreateOnsGroupCreateResponse creates a response to parse from OnsGroupCreate response
+func CreateOnsGroupCreateResponse() (response *OnsGroupCreateResponse) {
+	response = &OnsGroupCreateResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/ons/ons_group_delete.go

@@ -0,0 +1,106 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsGroupDelete invokes the ons.OnsGroupDelete API synchronously
+// api document: https://help.aliyun.com/api/ons/onsgroupdelete.html
+func (client *Client) OnsGroupDelete(request *OnsGroupDeleteRequest) (response *OnsGroupDeleteResponse, err error) {
+	response = CreateOnsGroupDeleteResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsGroupDeleteWithChan invokes the ons.OnsGroupDelete API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsgroupdelete.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsGroupDeleteWithChan(request *OnsGroupDeleteRequest) (<-chan *OnsGroupDeleteResponse, <-chan error) {
+	responseChan := make(chan *OnsGroupDeleteResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsGroupDelete(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsGroupDeleteWithCallback invokes the ons.OnsGroupDelete API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsgroupdelete.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsGroupDeleteWithCallback(request *OnsGroupDeleteRequest, callback func(response *OnsGroupDeleteResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsGroupDeleteResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsGroupDelete(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsGroupDeleteRequest is the request struct for api OnsGroupDelete
+type OnsGroupDeleteRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	GroupId      string           `position:"Query" name:"GroupId"`
+}
+
+// OnsGroupDeleteResponse is the response struct for api OnsGroupDelete
+type OnsGroupDeleteResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string `json:"HelpUrl" xml:"HelpUrl"`
+}
+
+// CreateOnsGroupDeleteRequest creates a request to invoke OnsGroupDelete API
+func CreateOnsGroupDeleteRequest() (request *OnsGroupDeleteRequest) {
+	request = &OnsGroupDeleteRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsGroupDelete", "ons", "openAPI")
+	return
+}
+
+// CreateOnsGroupDeleteResponse creates a response to parse from OnsGroupDelete response
+func CreateOnsGroupDeleteResponse() (response *OnsGroupDeleteResponse) {
+	response = &OnsGroupDeleteResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/ons/ons_group_list.go

@@ -0,0 +1,107 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsGroupList invokes the ons.OnsGroupList API synchronously
+// api document: https://help.aliyun.com/api/ons/onsgrouplist.html
+func (client *Client) OnsGroupList(request *OnsGroupListRequest) (response *OnsGroupListResponse, err error) {
+	response = CreateOnsGroupListResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsGroupListWithChan invokes the ons.OnsGroupList API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsgrouplist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsGroupListWithChan(request *OnsGroupListRequest) (<-chan *OnsGroupListResponse, <-chan error) {
+	responseChan := make(chan *OnsGroupListResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsGroupList(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsGroupListWithCallback invokes the ons.OnsGroupList API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsgrouplist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsGroupListWithCallback(request *OnsGroupListRequest, callback func(response *OnsGroupListResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsGroupListResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsGroupList(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsGroupListRequest is the request struct for api OnsGroupList
+type OnsGroupListRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	GroupId      string           `position:"Query" name:"GroupId"`
+}
+
+// OnsGroupListResponse is the response struct for api OnsGroupList
+type OnsGroupListResponse struct {
+	*responses.BaseResponse
+	RequestId string             `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string             `json:"HelpUrl" xml:"HelpUrl"`
+	Data      DataInOnsGroupList `json:"Data" xml:"Data"`
+}
+
+// CreateOnsGroupListRequest creates a request to invoke OnsGroupList API
+func CreateOnsGroupListRequest() (request *OnsGroupListRequest) {
+	request = &OnsGroupListRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsGroupList", "ons", "openAPI")
+	return
+}
+
+// CreateOnsGroupListResponse creates a response to parse from OnsGroupList response
+func CreateOnsGroupListResponse() (response *OnsGroupListResponse) {
+	response = &OnsGroupListResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/ons/ons_instance_base_info.go

@@ -0,0 +1,106 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsInstanceBaseInfo invokes the ons.OnsInstanceBaseInfo API synchronously
+// api document: https://help.aliyun.com/api/ons/onsinstancebaseinfo.html
+func (client *Client) OnsInstanceBaseInfo(request *OnsInstanceBaseInfoRequest) (response *OnsInstanceBaseInfoResponse, err error) {
+	response = CreateOnsInstanceBaseInfoResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsInstanceBaseInfoWithChan invokes the ons.OnsInstanceBaseInfo API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsinstancebaseinfo.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsInstanceBaseInfoWithChan(request *OnsInstanceBaseInfoRequest) (<-chan *OnsInstanceBaseInfoResponse, <-chan error) {
+	responseChan := make(chan *OnsInstanceBaseInfoResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsInstanceBaseInfo(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsInstanceBaseInfoWithCallback invokes the ons.OnsInstanceBaseInfo API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsinstancebaseinfo.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsInstanceBaseInfoWithCallback(request *OnsInstanceBaseInfoRequest, callback func(response *OnsInstanceBaseInfoResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsInstanceBaseInfoResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsInstanceBaseInfo(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsInstanceBaseInfoRequest is the request struct for api OnsInstanceBaseInfo
+type OnsInstanceBaseInfoRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+}
+
+// OnsInstanceBaseInfoResponse is the response struct for api OnsInstanceBaseInfo
+type OnsInstanceBaseInfoResponse struct {
+	*responses.BaseResponse
+	RequestId        string           `json:"RequestId" xml:"RequestId"`
+	HelpUrl          string           `json:"HelpUrl" xml:"HelpUrl"`
+	InstanceBaseInfo InstanceBaseInfo `json:"InstanceBaseInfo" xml:"InstanceBaseInfo"`
+}
+
+// CreateOnsInstanceBaseInfoRequest creates a request to invoke OnsInstanceBaseInfo API
+func CreateOnsInstanceBaseInfoRequest() (request *OnsInstanceBaseInfoRequest) {
+	request = &OnsInstanceBaseInfoRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsInstanceBaseInfo", "ons", "openAPI")
+	return
+}
+
+// CreateOnsInstanceBaseInfoResponse creates a response to parse from OnsInstanceBaseInfo response
+func CreateOnsInstanceBaseInfoResponse() (response *OnsInstanceBaseInfoResponse) {
+	response = &OnsInstanceBaseInfoResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/ons/ons_instance_create.go

@@ -0,0 +1,107 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsInstanceCreate invokes the ons.OnsInstanceCreate API synchronously
+// api document: https://help.aliyun.com/api/ons/onsinstancecreate.html
+func (client *Client) OnsInstanceCreate(request *OnsInstanceCreateRequest) (response *OnsInstanceCreateResponse, err error) {
+	response = CreateOnsInstanceCreateResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsInstanceCreateWithChan invokes the ons.OnsInstanceCreate API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsinstancecreate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsInstanceCreateWithChan(request *OnsInstanceCreateRequest) (<-chan *OnsInstanceCreateResponse, <-chan error) {
+	responseChan := make(chan *OnsInstanceCreateResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsInstanceCreate(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsInstanceCreateWithCallback invokes the ons.OnsInstanceCreate API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsinstancecreate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsInstanceCreateWithCallback(request *OnsInstanceCreateRequest, callback func(response *OnsInstanceCreateResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsInstanceCreateResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsInstanceCreate(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsInstanceCreateRequest is the request struct for api OnsInstanceCreate
+type OnsInstanceCreateRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceName string           `position:"Query" name:"InstanceName"`
+	Remark       string           `position:"Query" name:"Remark"`
+}
+
+// OnsInstanceCreateResponse is the response struct for api OnsInstanceCreate
+type OnsInstanceCreateResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string `json:"HelpUrl" xml:"HelpUrl"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateOnsInstanceCreateRequest creates a request to invoke OnsInstanceCreate API
+func CreateOnsInstanceCreateRequest() (request *OnsInstanceCreateRequest) {
+	request = &OnsInstanceCreateRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsInstanceCreate", "ons", "openAPI")
+	return
+}
+
+// CreateOnsInstanceCreateResponse creates a response to parse from OnsInstanceCreate response
+func CreateOnsInstanceCreateResponse() (response *OnsInstanceCreateResponse) {
+	response = &OnsInstanceCreateResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/ons/ons_instance_delete.go

@@ -0,0 +1,105 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsInstanceDelete invokes the ons.OnsInstanceDelete API synchronously
+// api document: https://help.aliyun.com/api/ons/onsinstancedelete.html
+func (client *Client) OnsInstanceDelete(request *OnsInstanceDeleteRequest) (response *OnsInstanceDeleteResponse, err error) {
+	response = CreateOnsInstanceDeleteResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsInstanceDeleteWithChan invokes the ons.OnsInstanceDelete API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsinstancedelete.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsInstanceDeleteWithChan(request *OnsInstanceDeleteRequest) (<-chan *OnsInstanceDeleteResponse, <-chan error) {
+	responseChan := make(chan *OnsInstanceDeleteResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsInstanceDelete(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsInstanceDeleteWithCallback invokes the ons.OnsInstanceDelete API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsinstancedelete.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsInstanceDeleteWithCallback(request *OnsInstanceDeleteRequest, callback func(response *OnsInstanceDeleteResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsInstanceDeleteResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsInstanceDelete(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsInstanceDeleteRequest is the request struct for api OnsInstanceDelete
+type OnsInstanceDeleteRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+}
+
+// OnsInstanceDeleteResponse is the response struct for api OnsInstanceDelete
+type OnsInstanceDeleteResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string `json:"HelpUrl" xml:"HelpUrl"`
+}
+
+// CreateOnsInstanceDeleteRequest creates a request to invoke OnsInstanceDelete API
+func CreateOnsInstanceDeleteRequest() (request *OnsInstanceDeleteRequest) {
+	request = &OnsInstanceDeleteRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsInstanceDelete", "ons", "openAPI")
+	return
+}
+
+// CreateOnsInstanceDeleteResponse creates a response to parse from OnsInstanceDelete response
+func CreateOnsInstanceDeleteResponse() (response *OnsInstanceDeleteResponse) {
+	response = &OnsInstanceDeleteResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/ons/ons_instance_in_service_list.go

@@ -0,0 +1,105 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsInstanceInServiceList invokes the ons.OnsInstanceInServiceList API synchronously
+// api document: https://help.aliyun.com/api/ons/onsinstanceinservicelist.html
+func (client *Client) OnsInstanceInServiceList(request *OnsInstanceInServiceListRequest) (response *OnsInstanceInServiceListResponse, err error) {
+	response = CreateOnsInstanceInServiceListResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsInstanceInServiceListWithChan invokes the ons.OnsInstanceInServiceList API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsinstanceinservicelist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsInstanceInServiceListWithChan(request *OnsInstanceInServiceListRequest) (<-chan *OnsInstanceInServiceListResponse, <-chan error) {
+	responseChan := make(chan *OnsInstanceInServiceListResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsInstanceInServiceList(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsInstanceInServiceListWithCallback invokes the ons.OnsInstanceInServiceList API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsinstanceinservicelist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsInstanceInServiceListWithCallback(request *OnsInstanceInServiceListRequest, callback func(response *OnsInstanceInServiceListResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsInstanceInServiceListResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsInstanceInServiceList(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsInstanceInServiceListRequest is the request struct for api OnsInstanceInServiceList
+type OnsInstanceInServiceListRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+}
+
+// OnsInstanceInServiceListResponse is the response struct for api OnsInstanceInServiceList
+type OnsInstanceInServiceListResponse struct {
+	*responses.BaseResponse
+	RequestId string                         `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string                         `json:"HelpUrl" xml:"HelpUrl"`
+	Data      DataInOnsInstanceInServiceList `json:"Data" xml:"Data"`
+}
+
+// CreateOnsInstanceInServiceListRequest creates a request to invoke OnsInstanceInServiceList API
+func CreateOnsInstanceInServiceListRequest() (request *OnsInstanceInServiceListRequest) {
+	request = &OnsInstanceInServiceListRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsInstanceInServiceList", "ons", "openAPI")
+	return
+}
+
+// CreateOnsInstanceInServiceListResponse creates a response to parse from OnsInstanceInServiceList response
+func CreateOnsInstanceInServiceListResponse() (response *OnsInstanceInServiceListResponse) {
+	response = &OnsInstanceInServiceListResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/ons/ons_instance_update.go

@@ -0,0 +1,107 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsInstanceUpdate invokes the ons.OnsInstanceUpdate API synchronously
+// api document: https://help.aliyun.com/api/ons/onsinstanceupdate.html
+func (client *Client) OnsInstanceUpdate(request *OnsInstanceUpdateRequest) (response *OnsInstanceUpdateResponse, err error) {
+	response = CreateOnsInstanceUpdateResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsInstanceUpdateWithChan invokes the ons.OnsInstanceUpdate API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsinstanceupdate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsInstanceUpdateWithChan(request *OnsInstanceUpdateRequest) (<-chan *OnsInstanceUpdateResponse, <-chan error) {
+	responseChan := make(chan *OnsInstanceUpdateResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsInstanceUpdate(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsInstanceUpdateWithCallback invokes the ons.OnsInstanceUpdate API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsinstanceupdate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsInstanceUpdateWithCallback(request *OnsInstanceUpdateRequest, callback func(response *OnsInstanceUpdateResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsInstanceUpdateResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsInstanceUpdate(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsInstanceUpdateRequest is the request struct for api OnsInstanceUpdate
+type OnsInstanceUpdateRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceName string           `position:"Query" name:"InstanceName"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	Remark       string           `position:"Query" name:"Remark"`
+}
+
+// OnsInstanceUpdateResponse is the response struct for api OnsInstanceUpdate
+type OnsInstanceUpdateResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string `json:"HelpUrl" xml:"HelpUrl"`
+}
+
+// CreateOnsInstanceUpdateRequest creates a request to invoke OnsInstanceUpdate API
+func CreateOnsInstanceUpdateRequest() (request *OnsInstanceUpdateRequest) {
+	request = &OnsInstanceUpdateRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsInstanceUpdate", "ons", "openAPI")
+	return
+}
+
+// CreateOnsInstanceUpdateResponse creates a response to parse from OnsInstanceUpdate response
+func CreateOnsInstanceUpdateResponse() (response *OnsInstanceUpdateResponse) {
+	response = &OnsInstanceUpdateResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 108 - 0
services/ons/ons_message_get_by_key.go

@@ -0,0 +1,108 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsMessageGetByKey invokes the ons.OnsMessageGetByKey API synchronously
+// api document: https://help.aliyun.com/api/ons/onsmessagegetbykey.html
+func (client *Client) OnsMessageGetByKey(request *OnsMessageGetByKeyRequest) (response *OnsMessageGetByKeyResponse, err error) {
+	response = CreateOnsMessageGetByKeyResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsMessageGetByKeyWithChan invokes the ons.OnsMessageGetByKey API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsmessagegetbykey.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsMessageGetByKeyWithChan(request *OnsMessageGetByKeyRequest) (<-chan *OnsMessageGetByKeyResponse, <-chan error) {
+	responseChan := make(chan *OnsMessageGetByKeyResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsMessageGetByKey(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsMessageGetByKeyWithCallback invokes the ons.OnsMessageGetByKey API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsmessagegetbykey.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsMessageGetByKeyWithCallback(request *OnsMessageGetByKeyRequest, callback func(response *OnsMessageGetByKeyResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsMessageGetByKeyResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsMessageGetByKey(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsMessageGetByKeyRequest is the request struct for api OnsMessageGetByKey
+type OnsMessageGetByKeyRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	Topic        string           `position:"Query" name:"Topic"`
+	Key          string           `position:"Query" name:"Key"`
+}
+
+// OnsMessageGetByKeyResponse is the response struct for api OnsMessageGetByKey
+type OnsMessageGetByKeyResponse struct {
+	*responses.BaseResponse
+	RequestId string                   `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string                   `json:"HelpUrl" xml:"HelpUrl"`
+	Data      DataInOnsMessageGetByKey `json:"Data" xml:"Data"`
+}
+
+// CreateOnsMessageGetByKeyRequest creates a request to invoke OnsMessageGetByKey API
+func CreateOnsMessageGetByKeyRequest() (request *OnsMessageGetByKeyRequest) {
+	request = &OnsMessageGetByKeyRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsMessageGetByKey", "ons", "openAPI")
+	return
+}
+
+// CreateOnsMessageGetByKeyResponse creates a response to parse from OnsMessageGetByKey response
+func CreateOnsMessageGetByKeyResponse() (response *OnsMessageGetByKeyResponse) {
+	response = &OnsMessageGetByKeyResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 108 - 0
services/ons/ons_message_get_by_msg_id.go

@@ -0,0 +1,108 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsMessageGetByMsgId invokes the ons.OnsMessageGetByMsgId API synchronously
+// api document: https://help.aliyun.com/api/ons/onsmessagegetbymsgid.html
+func (client *Client) OnsMessageGetByMsgId(request *OnsMessageGetByMsgIdRequest) (response *OnsMessageGetByMsgIdResponse, err error) {
+	response = CreateOnsMessageGetByMsgIdResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsMessageGetByMsgIdWithChan invokes the ons.OnsMessageGetByMsgId API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsmessagegetbymsgid.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsMessageGetByMsgIdWithChan(request *OnsMessageGetByMsgIdRequest) (<-chan *OnsMessageGetByMsgIdResponse, <-chan error) {
+	responseChan := make(chan *OnsMessageGetByMsgIdResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsMessageGetByMsgId(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsMessageGetByMsgIdWithCallback invokes the ons.OnsMessageGetByMsgId API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsmessagegetbymsgid.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsMessageGetByMsgIdWithCallback(request *OnsMessageGetByMsgIdRequest, callback func(response *OnsMessageGetByMsgIdResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsMessageGetByMsgIdResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsMessageGetByMsgId(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsMessageGetByMsgIdRequest is the request struct for api OnsMessageGetByMsgId
+type OnsMessageGetByMsgIdRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	MsgId        string           `position:"Query" name:"MsgId"`
+	Topic        string           `position:"Query" name:"Topic"`
+}
+
+// OnsMessageGetByMsgIdResponse is the response struct for api OnsMessageGetByMsgId
+type OnsMessageGetByMsgIdResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string `json:"HelpUrl" xml:"HelpUrl"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateOnsMessageGetByMsgIdRequest creates a request to invoke OnsMessageGetByMsgId API
+func CreateOnsMessageGetByMsgIdRequest() (request *OnsMessageGetByMsgIdRequest) {
+	request = &OnsMessageGetByMsgIdRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsMessageGetByMsgId", "ons", "openAPI")
+	return
+}
+
+// CreateOnsMessageGetByMsgIdResponse creates a response to parse from OnsMessageGetByMsgId response
+func CreateOnsMessageGetByMsgIdResponse() (response *OnsMessageGetByMsgIdResponse) {
+	response = &OnsMessageGetByMsgIdResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 112 - 0
services/ons/ons_message_page_query_by_topic.go

@@ -0,0 +1,112 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsMessagePageQueryByTopic invokes the ons.OnsMessagePageQueryByTopic API synchronously
+// api document: https://help.aliyun.com/api/ons/onsmessagepagequerybytopic.html
+func (client *Client) OnsMessagePageQueryByTopic(request *OnsMessagePageQueryByTopicRequest) (response *OnsMessagePageQueryByTopicResponse, err error) {
+	response = CreateOnsMessagePageQueryByTopicResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsMessagePageQueryByTopicWithChan invokes the ons.OnsMessagePageQueryByTopic API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsmessagepagequerybytopic.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsMessagePageQueryByTopicWithChan(request *OnsMessagePageQueryByTopicRequest) (<-chan *OnsMessagePageQueryByTopicResponse, <-chan error) {
+	responseChan := make(chan *OnsMessagePageQueryByTopicResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsMessagePageQueryByTopic(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsMessagePageQueryByTopicWithCallback invokes the ons.OnsMessagePageQueryByTopic API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsmessagepagequerybytopic.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsMessagePageQueryByTopicWithCallback(request *OnsMessagePageQueryByTopicRequest, callback func(response *OnsMessagePageQueryByTopicResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsMessagePageQueryByTopicResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsMessagePageQueryByTopic(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsMessagePageQueryByTopicRequest is the request struct for api OnsMessagePageQueryByTopic
+type OnsMessagePageQueryByTopicRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	PageSize     requests.Integer `position:"Query" name:"PageSize"`
+	Topic        string           `position:"Query" name:"Topic"`
+	EndTime      requests.Integer `position:"Query" name:"EndTime"`
+	BeginTime    requests.Integer `position:"Query" name:"BeginTime"`
+	CurrentPage  requests.Integer `position:"Query" name:"CurrentPage"`
+	TaskId       string           `position:"Query" name:"TaskId"`
+}
+
+// OnsMessagePageQueryByTopicResponse is the response struct for api OnsMessagePageQueryByTopic
+type OnsMessagePageQueryByTopicResponse struct {
+	*responses.BaseResponse
+	RequestId  string     `json:"RequestId" xml:"RequestId"`
+	HelpUrl    string     `json:"HelpUrl" xml:"HelpUrl"`
+	MsgFoundDo MsgFoundDo `json:"MsgFoundDo" xml:"MsgFoundDo"`
+}
+
+// CreateOnsMessagePageQueryByTopicRequest creates a request to invoke OnsMessagePageQueryByTopic API
+func CreateOnsMessagePageQueryByTopicRequest() (request *OnsMessagePageQueryByTopicRequest) {
+	request = &OnsMessagePageQueryByTopicRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsMessagePageQueryByTopic", "ons", "openAPI")
+	return
+}
+
+// CreateOnsMessagePageQueryByTopicResponse creates a response to parse from OnsMessagePageQueryByTopic response
+func CreateOnsMessagePageQueryByTopicResponse() (response *OnsMessagePageQueryByTopicResponse) {
+	response = &OnsMessagePageQueryByTopicResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 109 - 0
services/ons/ons_message_push.go

@@ -0,0 +1,109 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsMessagePush invokes the ons.OnsMessagePush API synchronously
+// api document: https://help.aliyun.com/api/ons/onsmessagepush.html
+func (client *Client) OnsMessagePush(request *OnsMessagePushRequest) (response *OnsMessagePushResponse, err error) {
+	response = CreateOnsMessagePushResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsMessagePushWithChan invokes the ons.OnsMessagePush API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsmessagepush.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsMessagePushWithChan(request *OnsMessagePushRequest) (<-chan *OnsMessagePushResponse, <-chan error) {
+	responseChan := make(chan *OnsMessagePushResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsMessagePush(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsMessagePushWithCallback invokes the ons.OnsMessagePush API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsmessagepush.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsMessagePushWithCallback(request *OnsMessagePushRequest, callback func(response *OnsMessagePushResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsMessagePushResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsMessagePush(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsMessagePushRequest is the request struct for api OnsMessagePush
+type OnsMessagePushRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	ClientId     string           `position:"Query" name:"ClientId"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	GroupId      string           `position:"Query" name:"GroupId"`
+	MsgId        string           `position:"Query" name:"MsgId"`
+	Topic        string           `position:"Query" name:"Topic"`
+}
+
+// OnsMessagePushResponse is the response struct for api OnsMessagePush
+type OnsMessagePushResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string `json:"HelpUrl" xml:"HelpUrl"`
+}
+
+// CreateOnsMessagePushRequest creates a request to invoke OnsMessagePush API
+func CreateOnsMessagePushRequest() (request *OnsMessagePushRequest) {
+	request = &OnsMessagePushRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsMessagePush", "ons", "openAPI")
+	return
+}
+
+// CreateOnsMessagePushResponse creates a response to parse from OnsMessagePush response
+func CreateOnsMessagePushResponse() (response *OnsMessagePushResponse) {
+	response = &OnsMessagePushResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 110 - 0
services/ons/ons_message_send.go

@@ -0,0 +1,110 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsMessageSend invokes the ons.OnsMessageSend API synchronously
+// api document: https://help.aliyun.com/api/ons/onsmessagesend.html
+func (client *Client) OnsMessageSend(request *OnsMessageSendRequest) (response *OnsMessageSendResponse, err error) {
+	response = CreateOnsMessageSendResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsMessageSendWithChan invokes the ons.OnsMessageSend API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsmessagesend.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsMessageSendWithChan(request *OnsMessageSendRequest) (<-chan *OnsMessageSendResponse, <-chan error) {
+	responseChan := make(chan *OnsMessageSendResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsMessageSend(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsMessageSendWithCallback invokes the ons.OnsMessageSend API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsmessagesend.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsMessageSendWithCallback(request *OnsMessageSendRequest, callback func(response *OnsMessageSendResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsMessageSendResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsMessageSend(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsMessageSendRequest is the request struct for api OnsMessageSend
+type OnsMessageSendRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	Topic        string           `position:"Query" name:"Topic"`
+	Tag          string           `position:"Query" name:"Tag"`
+	Message      string           `position:"Query" name:"Message"`
+	Key          string           `position:"Query" name:"Key"`
+}
+
+// OnsMessageSendResponse is the response struct for api OnsMessageSend
+type OnsMessageSendResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string `json:"HelpUrl" xml:"HelpUrl"`
+	Data      string `json:"Data" xml:"Data"`
+}
+
+// CreateOnsMessageSendRequest creates a request to invoke OnsMessageSend API
+func CreateOnsMessageSendRequest() (request *OnsMessageSendRequest) {
+	request = &OnsMessageSendRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsMessageSend", "ons", "openAPI")
+	return
+}
+
+// CreateOnsMessageSendResponse creates a response to parse from OnsMessageSend response
+func CreateOnsMessageSendResponse() (response *OnsMessageSendResponse) {
+	response = &OnsMessageSendResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 108 - 0
services/ons/ons_message_trace.go

@@ -0,0 +1,108 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsMessageTrace invokes the ons.OnsMessageTrace API synchronously
+// api document: https://help.aliyun.com/api/ons/onsmessagetrace.html
+func (client *Client) OnsMessageTrace(request *OnsMessageTraceRequest) (response *OnsMessageTraceResponse, err error) {
+	response = CreateOnsMessageTraceResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsMessageTraceWithChan invokes the ons.OnsMessageTrace API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsmessagetrace.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsMessageTraceWithChan(request *OnsMessageTraceRequest) (<-chan *OnsMessageTraceResponse, <-chan error) {
+	responseChan := make(chan *OnsMessageTraceResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsMessageTrace(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsMessageTraceWithCallback invokes the ons.OnsMessageTrace API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsmessagetrace.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsMessageTraceWithCallback(request *OnsMessageTraceRequest, callback func(response *OnsMessageTraceResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsMessageTraceResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsMessageTrace(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsMessageTraceRequest is the request struct for api OnsMessageTrace
+type OnsMessageTraceRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	Topic        string           `position:"Query" name:"Topic"`
+	MsgId        string           `position:"Query" name:"MsgId"`
+}
+
+// OnsMessageTraceResponse is the response struct for api OnsMessageTrace
+type OnsMessageTraceResponse struct {
+	*responses.BaseResponse
+	RequestId string                `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string                `json:"HelpUrl" xml:"HelpUrl"`
+	Data      DataInOnsMessageTrace `json:"Data" xml:"Data"`
+}
+
+// CreateOnsMessageTraceRequest creates a request to invoke OnsMessageTrace API
+func CreateOnsMessageTraceRequest() (request *OnsMessageTraceRequest) {
+	request = &OnsMessageTraceRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsMessageTrace", "ons", "openAPI")
+	return
+}
+
+// CreateOnsMessageTraceResponse creates a response to parse from OnsMessageTrace response
+func CreateOnsMessageTraceResponse() (response *OnsMessageTraceResponse) {
+	response = &OnsMessageTraceResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/ons/ons_mqtt_group_id_create.go

@@ -0,0 +1,107 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsMqttGroupIdCreate invokes the ons.OnsMqttGroupIdCreate API synchronously
+// api document: https://help.aliyun.com/api/ons/onsmqttgroupidcreate.html
+func (client *Client) OnsMqttGroupIdCreate(request *OnsMqttGroupIdCreateRequest) (response *OnsMqttGroupIdCreateResponse, err error) {
+	response = CreateOnsMqttGroupIdCreateResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsMqttGroupIdCreateWithChan invokes the ons.OnsMqttGroupIdCreate API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsmqttgroupidcreate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsMqttGroupIdCreateWithChan(request *OnsMqttGroupIdCreateRequest) (<-chan *OnsMqttGroupIdCreateResponse, <-chan error) {
+	responseChan := make(chan *OnsMqttGroupIdCreateResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsMqttGroupIdCreate(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsMqttGroupIdCreateWithCallback invokes the ons.OnsMqttGroupIdCreate API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsmqttgroupidcreate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsMqttGroupIdCreateWithCallback(request *OnsMqttGroupIdCreateRequest, callback func(response *OnsMqttGroupIdCreateResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsMqttGroupIdCreateResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsMqttGroupIdCreate(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsMqttGroupIdCreateRequest is the request struct for api OnsMqttGroupIdCreate
+type OnsMqttGroupIdCreateRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	GroupId      string           `position:"Query" name:"GroupId"`
+	Topic        string           `position:"Query" name:"Topic"`
+}
+
+// OnsMqttGroupIdCreateResponse is the response struct for api OnsMqttGroupIdCreate
+type OnsMqttGroupIdCreateResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string `json:"HelpUrl" xml:"HelpUrl"`
+}
+
+// CreateOnsMqttGroupIdCreateRequest creates a request to invoke OnsMqttGroupIdCreate API
+func CreateOnsMqttGroupIdCreateRequest() (request *OnsMqttGroupIdCreateRequest) {
+	request = &OnsMqttGroupIdCreateRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsMqttGroupIdCreate", "ons", "openAPI")
+	return
+}
+
+// CreateOnsMqttGroupIdCreateResponse creates a response to parse from OnsMqttGroupIdCreate response
+func CreateOnsMqttGroupIdCreateResponse() (response *OnsMqttGroupIdCreateResponse) {
+	response = &OnsMqttGroupIdCreateResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/ons/ons_mqtt_group_id_delete.go

@@ -0,0 +1,106 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsMqttGroupIdDelete invokes the ons.OnsMqttGroupIdDelete API synchronously
+// api document: https://help.aliyun.com/api/ons/onsmqttgroupiddelete.html
+func (client *Client) OnsMqttGroupIdDelete(request *OnsMqttGroupIdDeleteRequest) (response *OnsMqttGroupIdDeleteResponse, err error) {
+	response = CreateOnsMqttGroupIdDeleteResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsMqttGroupIdDeleteWithChan invokes the ons.OnsMqttGroupIdDelete API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsmqttgroupiddelete.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsMqttGroupIdDeleteWithChan(request *OnsMqttGroupIdDeleteRequest) (<-chan *OnsMqttGroupIdDeleteResponse, <-chan error) {
+	responseChan := make(chan *OnsMqttGroupIdDeleteResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsMqttGroupIdDelete(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsMqttGroupIdDeleteWithCallback invokes the ons.OnsMqttGroupIdDelete API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsmqttgroupiddelete.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsMqttGroupIdDeleteWithCallback(request *OnsMqttGroupIdDeleteRequest, callback func(response *OnsMqttGroupIdDeleteResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsMqttGroupIdDeleteResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsMqttGroupIdDelete(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsMqttGroupIdDeleteRequest is the request struct for api OnsMqttGroupIdDelete
+type OnsMqttGroupIdDeleteRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	GroupId      string           `position:"Query" name:"GroupId"`
+}
+
+// OnsMqttGroupIdDeleteResponse is the response struct for api OnsMqttGroupIdDelete
+type OnsMqttGroupIdDeleteResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string `json:"HelpUrl" xml:"HelpUrl"`
+}
+
+// CreateOnsMqttGroupIdDeleteRequest creates a request to invoke OnsMqttGroupIdDelete API
+func CreateOnsMqttGroupIdDeleteRequest() (request *OnsMqttGroupIdDeleteRequest) {
+	request = &OnsMqttGroupIdDeleteRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsMqttGroupIdDelete", "ons", "openAPI")
+	return
+}
+
+// CreateOnsMqttGroupIdDeleteResponse creates a response to parse from OnsMqttGroupIdDelete response
+func CreateOnsMqttGroupIdDeleteResponse() (response *OnsMqttGroupIdDeleteResponse) {
+	response = &OnsMqttGroupIdDeleteResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/ons/ons_mqtt_group_id_list.go

@@ -0,0 +1,106 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsMqttGroupIdList invokes the ons.OnsMqttGroupIdList API synchronously
+// api document: https://help.aliyun.com/api/ons/onsmqttgroupidlist.html
+func (client *Client) OnsMqttGroupIdList(request *OnsMqttGroupIdListRequest) (response *OnsMqttGroupIdListResponse, err error) {
+	response = CreateOnsMqttGroupIdListResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsMqttGroupIdListWithChan invokes the ons.OnsMqttGroupIdList API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsmqttgroupidlist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsMqttGroupIdListWithChan(request *OnsMqttGroupIdListRequest) (<-chan *OnsMqttGroupIdListResponse, <-chan error) {
+	responseChan := make(chan *OnsMqttGroupIdListResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsMqttGroupIdList(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsMqttGroupIdListWithCallback invokes the ons.OnsMqttGroupIdList API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsmqttgroupidlist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsMqttGroupIdListWithCallback(request *OnsMqttGroupIdListRequest, callback func(response *OnsMqttGroupIdListResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsMqttGroupIdListResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsMqttGroupIdList(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsMqttGroupIdListRequest is the request struct for api OnsMqttGroupIdList
+type OnsMqttGroupIdListRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+}
+
+// OnsMqttGroupIdListResponse is the response struct for api OnsMqttGroupIdList
+type OnsMqttGroupIdListResponse struct {
+	*responses.BaseResponse
+	RequestId string                   `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string                   `json:"HelpUrl" xml:"HelpUrl"`
+	Data      DataInOnsMqttGroupIdList `json:"Data" xml:"Data"`
+}
+
+// CreateOnsMqttGroupIdListRequest creates a request to invoke OnsMqttGroupIdList API
+func CreateOnsMqttGroupIdListRequest() (request *OnsMqttGroupIdListRequest) {
+	request = &OnsMqttGroupIdListRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsMqttGroupIdList", "ons", "openAPI")
+	return
+}
+
+// CreateOnsMqttGroupIdListResponse creates a response to parse from OnsMqttGroupIdList response
+func CreateOnsMqttGroupIdListResponse() (response *OnsMqttGroupIdListResponse) {
+	response = &OnsMqttGroupIdListResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/ons/ons_mqtt_query_client_by_client_id.go

@@ -0,0 +1,107 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsMqttQueryClientByClientId invokes the ons.OnsMqttQueryClientByClientId API synchronously
+// api document: https://help.aliyun.com/api/ons/onsmqttqueryclientbyclientid.html
+func (client *Client) OnsMqttQueryClientByClientId(request *OnsMqttQueryClientByClientIdRequest) (response *OnsMqttQueryClientByClientIdResponse, err error) {
+	response = CreateOnsMqttQueryClientByClientIdResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsMqttQueryClientByClientIdWithChan invokes the ons.OnsMqttQueryClientByClientId API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsmqttqueryclientbyclientid.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsMqttQueryClientByClientIdWithChan(request *OnsMqttQueryClientByClientIdRequest) (<-chan *OnsMqttQueryClientByClientIdResponse, <-chan error) {
+	responseChan := make(chan *OnsMqttQueryClientByClientIdResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsMqttQueryClientByClientId(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsMqttQueryClientByClientIdWithCallback invokes the ons.OnsMqttQueryClientByClientId API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsmqttqueryclientbyclientid.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsMqttQueryClientByClientIdWithCallback(request *OnsMqttQueryClientByClientIdRequest, callback func(response *OnsMqttQueryClientByClientIdResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsMqttQueryClientByClientIdResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsMqttQueryClientByClientId(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsMqttQueryClientByClientIdRequest is the request struct for api OnsMqttQueryClientByClientId
+type OnsMqttQueryClientByClientIdRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	ClientId     string           `position:"Query" name:"ClientId"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+}
+
+// OnsMqttQueryClientByClientIdResponse is the response struct for api OnsMqttQueryClientByClientId
+type OnsMqttQueryClientByClientIdResponse struct {
+	*responses.BaseResponse
+	RequestId        string           `json:"RequestId" xml:"RequestId"`
+	HelpUrl          string           `json:"HelpUrl" xml:"HelpUrl"`
+	MqttClientInfoDo MqttClientInfoDo `json:"MqttClientInfoDo" xml:"MqttClientInfoDo"`
+}
+
+// CreateOnsMqttQueryClientByClientIdRequest creates a request to invoke OnsMqttQueryClientByClientId API
+func CreateOnsMqttQueryClientByClientIdRequest() (request *OnsMqttQueryClientByClientIdRequest) {
+	request = &OnsMqttQueryClientByClientIdRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsMqttQueryClientByClientId", "ons", "openAPI")
+	return
+}
+
+// CreateOnsMqttQueryClientByClientIdResponse creates a response to parse from OnsMqttQueryClientByClientId response
+func CreateOnsMqttQueryClientByClientIdResponse() (response *OnsMqttQueryClientByClientIdResponse) {
+	response = &OnsMqttQueryClientByClientIdResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/ons/ons_mqtt_query_client_by_group_id.go

@@ -0,0 +1,107 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsMqttQueryClientByGroupId invokes the ons.OnsMqttQueryClientByGroupId API synchronously
+// api document: https://help.aliyun.com/api/ons/onsmqttqueryclientbygroupid.html
+func (client *Client) OnsMqttQueryClientByGroupId(request *OnsMqttQueryClientByGroupIdRequest) (response *OnsMqttQueryClientByGroupIdResponse, err error) {
+	response = CreateOnsMqttQueryClientByGroupIdResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsMqttQueryClientByGroupIdWithChan invokes the ons.OnsMqttQueryClientByGroupId API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsmqttqueryclientbygroupid.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsMqttQueryClientByGroupIdWithChan(request *OnsMqttQueryClientByGroupIdRequest) (<-chan *OnsMqttQueryClientByGroupIdResponse, <-chan error) {
+	responseChan := make(chan *OnsMqttQueryClientByGroupIdResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsMqttQueryClientByGroupId(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsMqttQueryClientByGroupIdWithCallback invokes the ons.OnsMqttQueryClientByGroupId API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsmqttqueryclientbygroupid.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsMqttQueryClientByGroupIdWithCallback(request *OnsMqttQueryClientByGroupIdRequest, callback func(response *OnsMqttQueryClientByGroupIdResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsMqttQueryClientByGroupIdResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsMqttQueryClientByGroupId(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsMqttQueryClientByGroupIdRequest is the request struct for api OnsMqttQueryClientByGroupId
+type OnsMqttQueryClientByGroupIdRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	GroupId      string           `position:"Query" name:"GroupId"`
+}
+
+// OnsMqttQueryClientByGroupIdResponse is the response struct for api OnsMqttQueryClientByGroupId
+type OnsMqttQueryClientByGroupIdResponse struct {
+	*responses.BaseResponse
+	RequestId       string          `json:"RequestId" xml:"RequestId"`
+	HelpUrl         string          `json:"HelpUrl" xml:"HelpUrl"`
+	MqttClientSetDo MqttClientSetDo `json:"MqttClientSetDo" xml:"MqttClientSetDo"`
+}
+
+// CreateOnsMqttQueryClientByGroupIdRequest creates a request to invoke OnsMqttQueryClientByGroupId API
+func CreateOnsMqttQueryClientByGroupIdRequest() (request *OnsMqttQueryClientByGroupIdRequest) {
+	request = &OnsMqttQueryClientByGroupIdRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsMqttQueryClientByGroupId", "ons", "openAPI")
+	return
+}
+
+// CreateOnsMqttQueryClientByGroupIdResponse creates a response to parse from OnsMqttQueryClientByGroupId response
+func CreateOnsMqttQueryClientByGroupIdResponse() (response *OnsMqttQueryClientByGroupIdResponse) {
+	response = &OnsMqttQueryClientByGroupIdResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 108 - 0
services/ons/ons_mqtt_query_client_by_topic.go

@@ -0,0 +1,108 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsMqttQueryClientByTopic invokes the ons.OnsMqttQueryClientByTopic API synchronously
+// api document: https://help.aliyun.com/api/ons/onsmqttqueryclientbytopic.html
+func (client *Client) OnsMqttQueryClientByTopic(request *OnsMqttQueryClientByTopicRequest) (response *OnsMqttQueryClientByTopicResponse, err error) {
+	response = CreateOnsMqttQueryClientByTopicResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsMqttQueryClientByTopicWithChan invokes the ons.OnsMqttQueryClientByTopic API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsmqttqueryclientbytopic.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsMqttQueryClientByTopicWithChan(request *OnsMqttQueryClientByTopicRequest) (<-chan *OnsMqttQueryClientByTopicResponse, <-chan error) {
+	responseChan := make(chan *OnsMqttQueryClientByTopicResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsMqttQueryClientByTopic(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsMqttQueryClientByTopicWithCallback invokes the ons.OnsMqttQueryClientByTopic API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsmqttqueryclientbytopic.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsMqttQueryClientByTopicWithCallback(request *OnsMqttQueryClientByTopicRequest, callback func(response *OnsMqttQueryClientByTopicResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsMqttQueryClientByTopicResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsMqttQueryClientByTopic(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsMqttQueryClientByTopicRequest is the request struct for api OnsMqttQueryClientByTopic
+type OnsMqttQueryClientByTopicRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	ParentTopic  string           `position:"Query" name:"ParentTopic"`
+	SubTopic     string           `position:"Query" name:"SubTopic"`
+}
+
+// OnsMqttQueryClientByTopicResponse is the response struct for api OnsMqttQueryClientByTopic
+type OnsMqttQueryClientByTopicResponse struct {
+	*responses.BaseResponse
+	RequestId       string          `json:"RequestId" xml:"RequestId"`
+	HelpUrl         string          `json:"HelpUrl" xml:"HelpUrl"`
+	MqttClientSetDo MqttClientSetDo `json:"MqttClientSetDo" xml:"MqttClientSetDo"`
+}
+
+// CreateOnsMqttQueryClientByTopicRequest creates a request to invoke OnsMqttQueryClientByTopic API
+func CreateOnsMqttQueryClientByTopicRequest() (request *OnsMqttQueryClientByTopicRequest) {
+	request = &OnsMqttQueryClientByTopicRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsMqttQueryClientByTopic", "ons", "openAPI")
+	return
+}
+
+// CreateOnsMqttQueryClientByTopicResponse creates a response to parse from OnsMqttQueryClientByTopic response
+func CreateOnsMqttQueryClientByTopicResponse() (response *OnsMqttQueryClientByTopicResponse) {
+	response = &OnsMqttQueryClientByTopicResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 109 - 0
services/ons/ons_mqtt_query_history_online.go

@@ -0,0 +1,109 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsMqttQueryHistoryOnline invokes the ons.OnsMqttQueryHistoryOnline API synchronously
+// api document: https://help.aliyun.com/api/ons/onsmqttqueryhistoryonline.html
+func (client *Client) OnsMqttQueryHistoryOnline(request *OnsMqttQueryHistoryOnlineRequest) (response *OnsMqttQueryHistoryOnlineResponse, err error) {
+	response = CreateOnsMqttQueryHistoryOnlineResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsMqttQueryHistoryOnlineWithChan invokes the ons.OnsMqttQueryHistoryOnline API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsmqttqueryhistoryonline.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsMqttQueryHistoryOnlineWithChan(request *OnsMqttQueryHistoryOnlineRequest) (<-chan *OnsMqttQueryHistoryOnlineResponse, <-chan error) {
+	responseChan := make(chan *OnsMqttQueryHistoryOnlineResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsMqttQueryHistoryOnline(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsMqttQueryHistoryOnlineWithCallback invokes the ons.OnsMqttQueryHistoryOnline API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsmqttqueryhistoryonline.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsMqttQueryHistoryOnlineWithCallback(request *OnsMqttQueryHistoryOnlineRequest, callback func(response *OnsMqttQueryHistoryOnlineResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsMqttQueryHistoryOnlineResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsMqttQueryHistoryOnline(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsMqttQueryHistoryOnlineRequest is the request struct for api OnsMqttQueryHistoryOnline
+type OnsMqttQueryHistoryOnlineRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	GroupId      string           `position:"Query" name:"GroupId"`
+	EndTime      requests.Integer `position:"Query" name:"EndTime"`
+	BeginTime    requests.Integer `position:"Query" name:"BeginTime"`
+}
+
+// OnsMqttQueryHistoryOnlineResponse is the response struct for api OnsMqttQueryHistoryOnline
+type OnsMqttQueryHistoryOnlineResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string `json:"HelpUrl" xml:"HelpUrl"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateOnsMqttQueryHistoryOnlineRequest creates a request to invoke OnsMqttQueryHistoryOnline API
+func CreateOnsMqttQueryHistoryOnlineRequest() (request *OnsMqttQueryHistoryOnlineRequest) {
+	request = &OnsMqttQueryHistoryOnlineRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsMqttQueryHistoryOnline", "ons", "openAPI")
+	return
+}
+
+// CreateOnsMqttQueryHistoryOnlineResponse creates a response to parse from OnsMqttQueryHistoryOnline response
+func CreateOnsMqttQueryHistoryOnlineResponse() (response *OnsMqttQueryHistoryOnlineResponse) {
+	response = &OnsMqttQueryHistoryOnlineResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 114 - 0
services/ons/ons_mqtt_query_msg_trans_trend.go

@@ -0,0 +1,114 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsMqttQueryMsgTransTrend invokes the ons.OnsMqttQueryMsgTransTrend API synchronously
+// api document: https://help.aliyun.com/api/ons/onsmqttquerymsgtranstrend.html
+func (client *Client) OnsMqttQueryMsgTransTrend(request *OnsMqttQueryMsgTransTrendRequest) (response *OnsMqttQueryMsgTransTrendResponse, err error) {
+	response = CreateOnsMqttQueryMsgTransTrendResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsMqttQueryMsgTransTrendWithChan invokes the ons.OnsMqttQueryMsgTransTrend API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsmqttquerymsgtranstrend.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsMqttQueryMsgTransTrendWithChan(request *OnsMqttQueryMsgTransTrendRequest) (<-chan *OnsMqttQueryMsgTransTrendResponse, <-chan error) {
+	responseChan := make(chan *OnsMqttQueryMsgTransTrendResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsMqttQueryMsgTransTrend(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsMqttQueryMsgTransTrendWithCallback invokes the ons.OnsMqttQueryMsgTransTrend API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsmqttquerymsgtranstrend.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsMqttQueryMsgTransTrendWithCallback(request *OnsMqttQueryMsgTransTrendRequest, callback func(response *OnsMqttQueryMsgTransTrendResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsMqttQueryMsgTransTrendResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsMqttQueryMsgTransTrend(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsMqttQueryMsgTransTrendRequest is the request struct for api OnsMqttQueryMsgTransTrend
+type OnsMqttQueryMsgTransTrendRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	Qos          requests.Integer `position:"Query" name:"Qos"`
+	TransType    string           `position:"Query" name:"TransType"`
+	EndTime      requests.Integer `position:"Query" name:"EndTime"`
+	BeginTime    requests.Integer `position:"Query" name:"BeginTime"`
+	TpsType      string           `position:"Query" name:"TpsType"`
+	ParentTopic  string           `position:"Query" name:"ParentTopic"`
+	MsgType      string           `position:"Query" name:"MsgType"`
+	SubTopic     string           `position:"Query" name:"SubTopic"`
+}
+
+// OnsMqttQueryMsgTransTrendResponse is the response struct for api OnsMqttQueryMsgTransTrend
+type OnsMqttQueryMsgTransTrendResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string `json:"HelpUrl" xml:"HelpUrl"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateOnsMqttQueryMsgTransTrendRequest creates a request to invoke OnsMqttQueryMsgTransTrend API
+func CreateOnsMqttQueryMsgTransTrendRequest() (request *OnsMqttQueryMsgTransTrendRequest) {
+	request = &OnsMqttQueryMsgTransTrendRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsMqttQueryMsgTransTrend", "ons", "openAPI")
+	return
+}
+
+// CreateOnsMqttQueryMsgTransTrendResponse creates a response to parse from OnsMqttQueryMsgTransTrend response
+func CreateOnsMqttQueryMsgTransTrendResponse() (response *OnsMqttQueryMsgTransTrendResponse) {
+	response = &OnsMqttQueryMsgTransTrendResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/ons/ons_region_list.go

@@ -0,0 +1,105 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsRegionList invokes the ons.OnsRegionList API synchronously
+// api document: https://help.aliyun.com/api/ons/onsregionlist.html
+func (client *Client) OnsRegionList(request *OnsRegionListRequest) (response *OnsRegionListResponse, err error) {
+	response = CreateOnsRegionListResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsRegionListWithChan invokes the ons.OnsRegionList API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsregionlist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsRegionListWithChan(request *OnsRegionListRequest) (<-chan *OnsRegionListResponse, <-chan error) {
+	responseChan := make(chan *OnsRegionListResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsRegionList(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsRegionListWithCallback invokes the ons.OnsRegionList API asynchronously
+// api document: https://help.aliyun.com/api/ons/onsregionlist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsRegionListWithCallback(request *OnsRegionListRequest, callback func(response *OnsRegionListResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsRegionListResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsRegionList(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsRegionListRequest is the request struct for api OnsRegionList
+type OnsRegionListRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+}
+
+// OnsRegionListResponse is the response struct for api OnsRegionList
+type OnsRegionListResponse struct {
+	*responses.BaseResponse
+	RequestId string              `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string              `json:"HelpUrl" xml:"HelpUrl"`
+	Data      DataInOnsRegionList `json:"Data" xml:"Data"`
+}
+
+// CreateOnsRegionListRequest creates a request to invoke OnsRegionList API
+func CreateOnsRegionListRequest() (request *OnsRegionListRequest) {
+	request = &OnsRegionListRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsRegionList", "ons", "openAPI")
+	return
+}
+
+// CreateOnsRegionListResponse creates a response to parse from OnsRegionList response
+func CreateOnsRegionListResponse() (response *OnsRegionListResponse) {
+	response = &OnsRegionListResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 108 - 0
services/ons/ons_topic_create.go

@@ -0,0 +1,108 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsTopicCreate invokes the ons.OnsTopicCreate API synchronously
+// api document: https://help.aliyun.com/api/ons/onstopiccreate.html
+func (client *Client) OnsTopicCreate(request *OnsTopicCreateRequest) (response *OnsTopicCreateResponse, err error) {
+	response = CreateOnsTopicCreateResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsTopicCreateWithChan invokes the ons.OnsTopicCreate API asynchronously
+// api document: https://help.aliyun.com/api/ons/onstopiccreate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsTopicCreateWithChan(request *OnsTopicCreateRequest) (<-chan *OnsTopicCreateResponse, <-chan error) {
+	responseChan := make(chan *OnsTopicCreateResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsTopicCreate(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsTopicCreateWithCallback invokes the ons.OnsTopicCreate API asynchronously
+// api document: https://help.aliyun.com/api/ons/onstopiccreate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsTopicCreateWithCallback(request *OnsTopicCreateRequest, callback func(response *OnsTopicCreateResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsTopicCreateResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsTopicCreate(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsTopicCreateRequest is the request struct for api OnsTopicCreate
+type OnsTopicCreateRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	MessageType  requests.Integer `position:"Query" name:"MessageType"`
+	Topic        string           `position:"Query" name:"Topic"`
+	Remark       string           `position:"Query" name:"Remark"`
+}
+
+// OnsTopicCreateResponse is the response struct for api OnsTopicCreate
+type OnsTopicCreateResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string `json:"HelpUrl" xml:"HelpUrl"`
+}
+
+// CreateOnsTopicCreateRequest creates a request to invoke OnsTopicCreate API
+func CreateOnsTopicCreateRequest() (request *OnsTopicCreateRequest) {
+	request = &OnsTopicCreateRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsTopicCreate", "ons", "openAPI")
+	return
+}
+
+// CreateOnsTopicCreateResponse creates a response to parse from OnsTopicCreate response
+func CreateOnsTopicCreateResponse() (response *OnsTopicCreateResponse) {
+	response = &OnsTopicCreateResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/ons/ons_topic_delete.go

@@ -0,0 +1,106 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsTopicDelete invokes the ons.OnsTopicDelete API synchronously
+// api document: https://help.aliyun.com/api/ons/onstopicdelete.html
+func (client *Client) OnsTopicDelete(request *OnsTopicDeleteRequest) (response *OnsTopicDeleteResponse, err error) {
+	response = CreateOnsTopicDeleteResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsTopicDeleteWithChan invokes the ons.OnsTopicDelete API asynchronously
+// api document: https://help.aliyun.com/api/ons/onstopicdelete.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsTopicDeleteWithChan(request *OnsTopicDeleteRequest) (<-chan *OnsTopicDeleteResponse, <-chan error) {
+	responseChan := make(chan *OnsTopicDeleteResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsTopicDelete(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsTopicDeleteWithCallback invokes the ons.OnsTopicDelete API asynchronously
+// api document: https://help.aliyun.com/api/ons/onstopicdelete.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsTopicDeleteWithCallback(request *OnsTopicDeleteRequest, callback func(response *OnsTopicDeleteResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsTopicDeleteResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsTopicDelete(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsTopicDeleteRequest is the request struct for api OnsTopicDelete
+type OnsTopicDeleteRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	Topic        string           `position:"Query" name:"Topic"`
+}
+
+// OnsTopicDeleteResponse is the response struct for api OnsTopicDelete
+type OnsTopicDeleteResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string `json:"HelpUrl" xml:"HelpUrl"`
+}
+
+// CreateOnsTopicDeleteRequest creates a request to invoke OnsTopicDelete API
+func CreateOnsTopicDeleteRequest() (request *OnsTopicDeleteRequest) {
+	request = &OnsTopicDeleteRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsTopicDelete", "ons", "openAPI")
+	return
+}
+
+// CreateOnsTopicDeleteResponse creates a response to parse from OnsTopicDelete response
+func CreateOnsTopicDeleteResponse() (response *OnsTopicDeleteResponse) {
+	response = &OnsTopicDeleteResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/ons/ons_topic_list.go

@@ -0,0 +1,107 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsTopicList invokes the ons.OnsTopicList API synchronously
+// api document: https://help.aliyun.com/api/ons/onstopiclist.html
+func (client *Client) OnsTopicList(request *OnsTopicListRequest) (response *OnsTopicListResponse, err error) {
+	response = CreateOnsTopicListResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsTopicListWithChan invokes the ons.OnsTopicList API asynchronously
+// api document: https://help.aliyun.com/api/ons/onstopiclist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsTopicListWithChan(request *OnsTopicListRequest) (<-chan *OnsTopicListResponse, <-chan error) {
+	responseChan := make(chan *OnsTopicListResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsTopicList(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsTopicListWithCallback invokes the ons.OnsTopicList API asynchronously
+// api document: https://help.aliyun.com/api/ons/onstopiclist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsTopicListWithCallback(request *OnsTopicListRequest, callback func(response *OnsTopicListResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsTopicListResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsTopicList(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsTopicListRequest is the request struct for api OnsTopicList
+type OnsTopicListRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	Topic        string           `position:"Query" name:"Topic"`
+}
+
+// OnsTopicListResponse is the response struct for api OnsTopicList
+type OnsTopicListResponse struct {
+	*responses.BaseResponse
+	RequestId string             `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string             `json:"HelpUrl" xml:"HelpUrl"`
+	Data      DataInOnsTopicList `json:"Data" xml:"Data"`
+}
+
+// CreateOnsTopicListRequest creates a request to invoke OnsTopicList API
+func CreateOnsTopicListRequest() (request *OnsTopicListRequest) {
+	request = &OnsTopicListRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsTopicList", "ons", "openAPI")
+	return
+}
+
+// CreateOnsTopicListResponse creates a response to parse from OnsTopicList response
+func CreateOnsTopicListResponse() (response *OnsTopicListResponse) {
+	response = &OnsTopicListResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/ons/ons_topic_status.go

@@ -0,0 +1,107 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsTopicStatus invokes the ons.OnsTopicStatus API synchronously
+// api document: https://help.aliyun.com/api/ons/onstopicstatus.html
+func (client *Client) OnsTopicStatus(request *OnsTopicStatusRequest) (response *OnsTopicStatusResponse, err error) {
+	response = CreateOnsTopicStatusResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsTopicStatusWithChan invokes the ons.OnsTopicStatus API asynchronously
+// api document: https://help.aliyun.com/api/ons/onstopicstatus.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsTopicStatusWithChan(request *OnsTopicStatusRequest) (<-chan *OnsTopicStatusResponse, <-chan error) {
+	responseChan := make(chan *OnsTopicStatusResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsTopicStatus(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsTopicStatusWithCallback invokes the ons.OnsTopicStatus API asynchronously
+// api document: https://help.aliyun.com/api/ons/onstopicstatus.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsTopicStatusWithCallback(request *OnsTopicStatusRequest, callback func(response *OnsTopicStatusResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsTopicStatusResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsTopicStatus(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsTopicStatusRequest is the request struct for api OnsTopicStatus
+type OnsTopicStatusRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	Topic        string           `position:"Query" name:"Topic"`
+}
+
+// OnsTopicStatusResponse is the response struct for api OnsTopicStatus
+type OnsTopicStatusResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string `json:"HelpUrl" xml:"HelpUrl"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateOnsTopicStatusRequest creates a request to invoke OnsTopicStatus API
+func CreateOnsTopicStatusRequest() (request *OnsTopicStatusRequest) {
+	request = &OnsTopicStatusRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsTopicStatus", "ons", "openAPI")
+	return
+}
+
+// CreateOnsTopicStatusResponse creates a response to parse from OnsTopicStatus response
+func CreateOnsTopicStatusResponse() (response *OnsTopicStatusResponse) {
+	response = &OnsTopicStatusResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/ons/ons_topic_update.go

@@ -0,0 +1,107 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsTopicUpdate invokes the ons.OnsTopicUpdate API synchronously
+// api document: https://help.aliyun.com/api/ons/onstopicupdate.html
+func (client *Client) OnsTopicUpdate(request *OnsTopicUpdateRequest) (response *OnsTopicUpdateResponse, err error) {
+	response = CreateOnsTopicUpdateResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsTopicUpdateWithChan invokes the ons.OnsTopicUpdate API asynchronously
+// api document: https://help.aliyun.com/api/ons/onstopicupdate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsTopicUpdateWithChan(request *OnsTopicUpdateRequest) (<-chan *OnsTopicUpdateResponse, <-chan error) {
+	responseChan := make(chan *OnsTopicUpdateResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsTopicUpdate(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsTopicUpdateWithCallback invokes the ons.OnsTopicUpdate API asynchronously
+// api document: https://help.aliyun.com/api/ons/onstopicupdate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsTopicUpdateWithCallback(request *OnsTopicUpdateRequest, callback func(response *OnsTopicUpdateResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsTopicUpdateResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsTopicUpdate(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsTopicUpdateRequest is the request struct for api OnsTopicUpdate
+type OnsTopicUpdateRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	Perm         requests.Integer `position:"Query" name:"Perm"`
+	Topic        string           `position:"Query" name:"Topic"`
+}
+
+// OnsTopicUpdateResponse is the response struct for api OnsTopicUpdate
+type OnsTopicUpdateResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string `json:"HelpUrl" xml:"HelpUrl"`
+}
+
+// CreateOnsTopicUpdateRequest creates a request to invoke OnsTopicUpdate API
+func CreateOnsTopicUpdateRequest() (request *OnsTopicUpdateRequest) {
+	request = &OnsTopicUpdateRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsTopicUpdate", "ons", "openAPI")
+	return
+}
+
+// CreateOnsTopicUpdateResponse creates a response to parse from OnsTopicUpdate response
+func CreateOnsTopicUpdateResponse() (response *OnsTopicUpdateResponse) {
+	response = &OnsTopicUpdateResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/ons/ons_trace_get_result.go

@@ -0,0 +1,106 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsTraceGetResult invokes the ons.OnsTraceGetResult API synchronously
+// api document: https://help.aliyun.com/api/ons/onstracegetresult.html
+func (client *Client) OnsTraceGetResult(request *OnsTraceGetResultRequest) (response *OnsTraceGetResultResponse, err error) {
+	response = CreateOnsTraceGetResultResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsTraceGetResultWithChan invokes the ons.OnsTraceGetResult API asynchronously
+// api document: https://help.aliyun.com/api/ons/onstracegetresult.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsTraceGetResultWithChan(request *OnsTraceGetResultRequest) (<-chan *OnsTraceGetResultResponse, <-chan error) {
+	responseChan := make(chan *OnsTraceGetResultResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsTraceGetResult(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsTraceGetResultWithCallback invokes the ons.OnsTraceGetResult API asynchronously
+// api document: https://help.aliyun.com/api/ons/onstracegetresult.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsTraceGetResultWithCallback(request *OnsTraceGetResultRequest, callback func(response *OnsTraceGetResultResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsTraceGetResultResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsTraceGetResult(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsTraceGetResultRequest is the request struct for api OnsTraceGetResult
+type OnsTraceGetResultRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	QueryId      string           `position:"Query" name:"QueryId"`
+}
+
+// OnsTraceGetResultResponse is the response struct for api OnsTraceGetResult
+type OnsTraceGetResultResponse struct {
+	*responses.BaseResponse
+	RequestId string    `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string    `json:"HelpUrl" xml:"HelpUrl"`
+	TraceData TraceData `json:"TraceData" xml:"TraceData"`
+}
+
+// CreateOnsTraceGetResultRequest creates a request to invoke OnsTraceGetResult API
+func CreateOnsTraceGetResultRequest() (request *OnsTraceGetResultRequest) {
+	request = &OnsTraceGetResultRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsTraceGetResult", "ons", "openAPI")
+	return
+}
+
+// CreateOnsTraceGetResultResponse creates a response to parse from OnsTraceGetResult response
+func CreateOnsTraceGetResultResponse() (response *OnsTraceGetResultResponse) {
+	response = &OnsTraceGetResultResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 110 - 0
services/ons/ons_trace_query_by_msg_id.go

@@ -0,0 +1,110 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsTraceQueryByMsgId invokes the ons.OnsTraceQueryByMsgId API synchronously
+// api document: https://help.aliyun.com/api/ons/onstracequerybymsgid.html
+func (client *Client) OnsTraceQueryByMsgId(request *OnsTraceQueryByMsgIdRequest) (response *OnsTraceQueryByMsgIdResponse, err error) {
+	response = CreateOnsTraceQueryByMsgIdResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsTraceQueryByMsgIdWithChan invokes the ons.OnsTraceQueryByMsgId API asynchronously
+// api document: https://help.aliyun.com/api/ons/onstracequerybymsgid.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsTraceQueryByMsgIdWithChan(request *OnsTraceQueryByMsgIdRequest) (<-chan *OnsTraceQueryByMsgIdResponse, <-chan error) {
+	responseChan := make(chan *OnsTraceQueryByMsgIdResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsTraceQueryByMsgId(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsTraceQueryByMsgIdWithCallback invokes the ons.OnsTraceQueryByMsgId API asynchronously
+// api document: https://help.aliyun.com/api/ons/onstracequerybymsgid.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsTraceQueryByMsgIdWithCallback(request *OnsTraceQueryByMsgIdRequest, callback func(response *OnsTraceQueryByMsgIdResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsTraceQueryByMsgIdResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsTraceQueryByMsgId(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsTraceQueryByMsgIdRequest is the request struct for api OnsTraceQueryByMsgId
+type OnsTraceQueryByMsgIdRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	Topic        string           `position:"Query" name:"Topic"`
+	MsgId        string           `position:"Query" name:"MsgId"`
+	EndTime      requests.Integer `position:"Query" name:"EndTime"`
+	BeginTime    requests.Integer `position:"Query" name:"BeginTime"`
+}
+
+// OnsTraceQueryByMsgIdResponse is the response struct for api OnsTraceQueryByMsgId
+type OnsTraceQueryByMsgIdResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string `json:"HelpUrl" xml:"HelpUrl"`
+	QueryId   string `json:"QueryId" xml:"QueryId"`
+}
+
+// CreateOnsTraceQueryByMsgIdRequest creates a request to invoke OnsTraceQueryByMsgId API
+func CreateOnsTraceQueryByMsgIdRequest() (request *OnsTraceQueryByMsgIdRequest) {
+	request = &OnsTraceQueryByMsgIdRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsTraceQueryByMsgId", "ons", "openAPI")
+	return
+}
+
+// CreateOnsTraceQueryByMsgIdResponse creates a response to parse from OnsTraceQueryByMsgId response
+func CreateOnsTraceQueryByMsgIdResponse() (response *OnsTraceQueryByMsgIdResponse) {
+	response = &OnsTraceQueryByMsgIdResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 110 - 0
services/ons/ons_trace_query_by_msg_key.go

@@ -0,0 +1,110 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsTraceQueryByMsgKey invokes the ons.OnsTraceQueryByMsgKey API synchronously
+// api document: https://help.aliyun.com/api/ons/onstracequerybymsgkey.html
+func (client *Client) OnsTraceQueryByMsgKey(request *OnsTraceQueryByMsgKeyRequest) (response *OnsTraceQueryByMsgKeyResponse, err error) {
+	response = CreateOnsTraceQueryByMsgKeyResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsTraceQueryByMsgKeyWithChan invokes the ons.OnsTraceQueryByMsgKey API asynchronously
+// api document: https://help.aliyun.com/api/ons/onstracequerybymsgkey.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsTraceQueryByMsgKeyWithChan(request *OnsTraceQueryByMsgKeyRequest) (<-chan *OnsTraceQueryByMsgKeyResponse, <-chan error) {
+	responseChan := make(chan *OnsTraceQueryByMsgKeyResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsTraceQueryByMsgKey(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsTraceQueryByMsgKeyWithCallback invokes the ons.OnsTraceQueryByMsgKey API asynchronously
+// api document: https://help.aliyun.com/api/ons/onstracequerybymsgkey.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsTraceQueryByMsgKeyWithCallback(request *OnsTraceQueryByMsgKeyRequest, callback func(response *OnsTraceQueryByMsgKeyResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsTraceQueryByMsgKeyResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsTraceQueryByMsgKey(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsTraceQueryByMsgKeyRequest is the request struct for api OnsTraceQueryByMsgKey
+type OnsTraceQueryByMsgKeyRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	Topic        string           `position:"Query" name:"Topic"`
+	EndTime      requests.Integer `position:"Query" name:"EndTime"`
+	BeginTime    requests.Integer `position:"Query" name:"BeginTime"`
+	MsgKey       string           `position:"Query" name:"MsgKey"`
+}
+
+// OnsTraceQueryByMsgKeyResponse is the response struct for api OnsTraceQueryByMsgKey
+type OnsTraceQueryByMsgKeyResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string `json:"HelpUrl" xml:"HelpUrl"`
+	QueryId   string `json:"QueryId" xml:"QueryId"`
+}
+
+// CreateOnsTraceQueryByMsgKeyRequest creates a request to invoke OnsTraceQueryByMsgKey API
+func CreateOnsTraceQueryByMsgKeyRequest() (request *OnsTraceQueryByMsgKeyRequest) {
+	request = &OnsTraceQueryByMsgKeyRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsTraceQueryByMsgKey", "ons", "openAPI")
+	return
+}
+
+// CreateOnsTraceQueryByMsgKeyResponse creates a response to parse from OnsTraceQueryByMsgKey response
+func CreateOnsTraceQueryByMsgKeyResponse() (response *OnsTraceQueryByMsgKeyResponse) {
+	response = &OnsTraceQueryByMsgKeyResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 112 - 0
services/ons/ons_trend_group_output_tps.go

@@ -0,0 +1,112 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsTrendGroupOutputTps invokes the ons.OnsTrendGroupOutputTps API synchronously
+// api document: https://help.aliyun.com/api/ons/onstrendgroupoutputtps.html
+func (client *Client) OnsTrendGroupOutputTps(request *OnsTrendGroupOutputTpsRequest) (response *OnsTrendGroupOutputTpsResponse, err error) {
+	response = CreateOnsTrendGroupOutputTpsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsTrendGroupOutputTpsWithChan invokes the ons.OnsTrendGroupOutputTps API asynchronously
+// api document: https://help.aliyun.com/api/ons/onstrendgroupoutputtps.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsTrendGroupOutputTpsWithChan(request *OnsTrendGroupOutputTpsRequest) (<-chan *OnsTrendGroupOutputTpsResponse, <-chan error) {
+	responseChan := make(chan *OnsTrendGroupOutputTpsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsTrendGroupOutputTps(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsTrendGroupOutputTpsWithCallback invokes the ons.OnsTrendGroupOutputTps API asynchronously
+// api document: https://help.aliyun.com/api/ons/onstrendgroupoutputtps.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsTrendGroupOutputTpsWithCallback(request *OnsTrendGroupOutputTpsRequest, callback func(response *OnsTrendGroupOutputTpsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsTrendGroupOutputTpsResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsTrendGroupOutputTps(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsTrendGroupOutputTpsRequest is the request struct for api OnsTrendGroupOutputTps
+type OnsTrendGroupOutputTpsRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	Period       requests.Integer `position:"Query" name:"Period"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	GroupId      string           `position:"Query" name:"GroupId"`
+	Topic        string           `position:"Query" name:"Topic"`
+	EndTime      requests.Integer `position:"Query" name:"EndTime"`
+	BeginTime    requests.Integer `position:"Query" name:"BeginTime"`
+	Type         requests.Integer `position:"Query" name:"Type"`
+}
+
+// OnsTrendGroupOutputTpsResponse is the response struct for api OnsTrendGroupOutputTps
+type OnsTrendGroupOutputTpsResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string `json:"HelpUrl" xml:"HelpUrl"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateOnsTrendGroupOutputTpsRequest creates a request to invoke OnsTrendGroupOutputTps API
+func CreateOnsTrendGroupOutputTpsRequest() (request *OnsTrendGroupOutputTpsRequest) {
+	request = &OnsTrendGroupOutputTpsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsTrendGroupOutputTps", "ons", "openAPI")
+	return
+}
+
+// CreateOnsTrendGroupOutputTpsResponse creates a response to parse from OnsTrendGroupOutputTps response
+func CreateOnsTrendGroupOutputTpsResponse() (response *OnsTrendGroupOutputTpsResponse) {
+	response = &OnsTrendGroupOutputTpsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 111 - 0
services/ons/ons_trend_topic_input_tps.go

@@ -0,0 +1,111 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsTrendTopicInputTps invokes the ons.OnsTrendTopicInputTps API synchronously
+// api document: https://help.aliyun.com/api/ons/onstrendtopicinputtps.html
+func (client *Client) OnsTrendTopicInputTps(request *OnsTrendTopicInputTpsRequest) (response *OnsTrendTopicInputTpsResponse, err error) {
+	response = CreateOnsTrendTopicInputTpsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsTrendTopicInputTpsWithChan invokes the ons.OnsTrendTopicInputTps API asynchronously
+// api document: https://help.aliyun.com/api/ons/onstrendtopicinputtps.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsTrendTopicInputTpsWithChan(request *OnsTrendTopicInputTpsRequest) (<-chan *OnsTrendTopicInputTpsResponse, <-chan error) {
+	responseChan := make(chan *OnsTrendTopicInputTpsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsTrendTopicInputTps(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsTrendTopicInputTpsWithCallback invokes the ons.OnsTrendTopicInputTps API asynchronously
+// api document: https://help.aliyun.com/api/ons/onstrendtopicinputtps.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsTrendTopicInputTpsWithCallback(request *OnsTrendTopicInputTpsRequest, callback func(response *OnsTrendTopicInputTpsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsTrendTopicInputTpsResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsTrendTopicInputTps(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsTrendTopicInputTpsRequest is the request struct for api OnsTrendTopicInputTps
+type OnsTrendTopicInputTpsRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	Period       requests.Integer `position:"Query" name:"Period"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	Topic        string           `position:"Query" name:"Topic"`
+	EndTime      requests.Integer `position:"Query" name:"EndTime"`
+	BeginTime    requests.Integer `position:"Query" name:"BeginTime"`
+	Type         requests.Integer `position:"Query" name:"Type"`
+}
+
+// OnsTrendTopicInputTpsResponse is the response struct for api OnsTrendTopicInputTps
+type OnsTrendTopicInputTpsResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string `json:"HelpUrl" xml:"HelpUrl"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateOnsTrendTopicInputTpsRequest creates a request to invoke OnsTrendTopicInputTps API
+func CreateOnsTrendTopicInputTpsRequest() (request *OnsTrendTopicInputTpsRequest) {
+	request = &OnsTrendTopicInputTpsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsTrendTopicInputTps", "ons", "openAPI")
+	return
+}
+
+// CreateOnsTrendTopicInputTpsResponse creates a response to parse from OnsTrendTopicInputTps response
+func CreateOnsTrendTopicInputTpsResponse() (response *OnsTrendTopicInputTpsResponse) {
+	response = &OnsTrendTopicInputTpsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 113 - 0
services/ons/ons_warn_create.go

@@ -0,0 +1,113 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsWarnCreate invokes the ons.OnsWarnCreate API synchronously
+// api document: https://help.aliyun.com/api/ons/onswarncreate.html
+func (client *Client) OnsWarnCreate(request *OnsWarnCreateRequest) (response *OnsWarnCreateResponse, err error) {
+	response = CreateOnsWarnCreateResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsWarnCreateWithChan invokes the ons.OnsWarnCreate API asynchronously
+// api document: https://help.aliyun.com/api/ons/onswarncreate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsWarnCreateWithChan(request *OnsWarnCreateRequest) (<-chan *OnsWarnCreateResponse, <-chan error) {
+	responseChan := make(chan *OnsWarnCreateResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsWarnCreate(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsWarnCreateWithCallback invokes the ons.OnsWarnCreate API asynchronously
+// api document: https://help.aliyun.com/api/ons/onswarncreate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsWarnCreateWithCallback(request *OnsWarnCreateRequest, callback func(response *OnsWarnCreateResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsWarnCreateResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsWarnCreate(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsWarnCreateRequest is the request struct for api OnsWarnCreate
+type OnsWarnCreateRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	BlockTime    string           `position:"Query" name:"BlockTime"`
+	Level        string           `position:"Query" name:"Level"`
+	GroupId      string           `position:"Query" name:"GroupId"`
+	DelayTime    string           `position:"Query" name:"DelayTime"`
+	Topic        string           `position:"Query" name:"Topic"`
+	Threshold    string           `position:"Query" name:"Threshold"`
+	AlertTime    string           `position:"Query" name:"AlertTime"`
+	Contacts     string           `position:"Query" name:"Contacts"`
+}
+
+// OnsWarnCreateResponse is the response struct for api OnsWarnCreate
+type OnsWarnCreateResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string `json:"HelpUrl" xml:"HelpUrl"`
+}
+
+// CreateOnsWarnCreateRequest creates a request to invoke OnsWarnCreate API
+func CreateOnsWarnCreateRequest() (request *OnsWarnCreateRequest) {
+	request = &OnsWarnCreateRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsWarnCreate", "ons", "openAPI")
+	return
+}
+
+// CreateOnsWarnCreateResponse creates a response to parse from OnsWarnCreate response
+func CreateOnsWarnCreateResponse() (response *OnsWarnCreateResponse) {
+	response = &OnsWarnCreateResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/ons/ons_warn_delete.go

@@ -0,0 +1,107 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// OnsWarnDelete invokes the ons.OnsWarnDelete API synchronously
+// api document: https://help.aliyun.com/api/ons/onswarndelete.html
+func (client *Client) OnsWarnDelete(request *OnsWarnDeleteRequest) (response *OnsWarnDeleteResponse, err error) {
+	response = CreateOnsWarnDeleteResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// OnsWarnDeleteWithChan invokes the ons.OnsWarnDelete API asynchronously
+// api document: https://help.aliyun.com/api/ons/onswarndelete.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsWarnDeleteWithChan(request *OnsWarnDeleteRequest) (<-chan *OnsWarnDeleteResponse, <-chan error) {
+	responseChan := make(chan *OnsWarnDeleteResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.OnsWarnDelete(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// OnsWarnDeleteWithCallback invokes the ons.OnsWarnDelete API asynchronously
+// api document: https://help.aliyun.com/api/ons/onswarndelete.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) OnsWarnDeleteWithCallback(request *OnsWarnDeleteRequest, callback func(response *OnsWarnDeleteResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *OnsWarnDeleteResponse
+		var err error
+		defer close(result)
+		response, err = client.OnsWarnDelete(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// OnsWarnDeleteRequest is the request struct for api OnsWarnDelete
+type OnsWarnDeleteRequest struct {
+	*requests.RpcRequest
+	PreventCache requests.Integer `position:"Query" name:"PreventCache"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	GroupId      string           `position:"Query" name:"GroupId"`
+	Topic        string           `position:"Query" name:"Topic"`
+}
+
+// OnsWarnDeleteResponse is the response struct for api OnsWarnDelete
+type OnsWarnDeleteResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	HelpUrl   string `json:"HelpUrl" xml:"HelpUrl"`
+}
+
+// CreateOnsWarnDeleteRequest creates a request to invoke OnsWarnDelete API
+func CreateOnsWarnDeleteRequest() (request *OnsWarnDeleteRequest) {
+	request = &OnsWarnDeleteRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ons", "2019-02-14", "OnsWarnDelete", "ons", "openAPI")
+	return
+}
+
+// CreateOnsWarnDeleteResponse creates a response to parse from OnsWarnDelete response
+func CreateOnsWarnDeleteResponse() (response *OnsWarnDeleteResponse) {
+	response = &OnsWarnDeleteResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 21 - 0
services/ons/struct_client_list.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// ClientList is a nested struct in ons response
+type ClientList struct {
+	SubClientInfoDo []SubClientInfoDo `json:"SubClientInfoDo" xml:"SubClientInfoDo"`
+}

+ 24 - 0
services/ons/struct_connection_do.go

@@ -0,0 +1,24 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// ConnectionDo is a nested struct in ons response
+type ConnectionDo struct {
+	ClientAddr string `json:"ClientAddr" xml:"ClientAddr"`
+	ClientId   string `json:"ClientId" xml:"ClientId"`
+	Version    string `json:"Version" xml:"Version"`
+	Language   string `json:"Language" xml:"Language"`
+}

+ 21 - 0
services/ons/struct_connection_list.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// ConnectionList is a nested struct in ons response
+type ConnectionList struct {
+	ConnectionDo []ConnectionDo `json:"ConnectionDo" xml:"ConnectionDo"`
+}

+ 21 - 0
services/ons/struct_connection_set.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// ConnectionSet is a nested struct in ons response
+type ConnectionSet struct {
+	ConnectionDo []ConnectionDo `json:"ConnectionDo" xml:"ConnectionDo"`
+}

+ 32 - 0
services/ons/struct_consumer_connection_info_do.go

@@ -0,0 +1,32 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// ConsumerConnectionInfoDo is a nested struct in ons response
+type ConsumerConnectionInfoDo struct {
+	ClientId        string          `json:"ClientId" xml:"ClientId"`
+	Connection      string          `json:"Connection" xml:"Connection"`
+	Language        string          `json:"Language" xml:"Language"`
+	Version         string          `json:"Version" xml:"Version"`
+	ConsumeModel    string          `json:"ConsumeModel" xml:"ConsumeModel"`
+	ConsumeType     string          `json:"ConsumeType" xml:"ConsumeType"`
+	ThreadCount     int             `json:"ThreadCount" xml:"ThreadCount"`
+	StartTimeStamp  int             `json:"StartTimeStamp" xml:"StartTimeStamp"`
+	LastTimeStamp   int             `json:"LastTimeStamp" xml:"LastTimeStamp"`
+	SubscriptionSet SubscriptionSet `json:"SubscriptionSet" xml:"SubscriptionSet"`
+	RunningDataList RunningDataList `json:"RunningDataList" xml:"RunningDataList"`
+	Jstack          Jstack          `json:"Jstack" xml:"Jstack"`
+}

+ 21 - 0
services/ons/struct_consumer_connection_info_list.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// ConsumerConnectionInfoList is a nested struct in ons response
+type ConsumerConnectionInfoList struct {
+	ConsumerConnectionInfoDo []ConsumerConnectionInfoDo `json:"ConsumerConnectionInfoDo" xml:"ConsumerConnectionInfoDo"`
+}

+ 26 - 0
services/ons/struct_consumer_running_data_do.go

@@ -0,0 +1,26 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// ConsumerRunningDataDo is a nested struct in ons response
+type ConsumerRunningDataDo struct {
+	GroupId            string  `json:"GroupId" xml:"GroupId"`
+	Topic              string  `json:"Topic" xml:"Topic"`
+	Rt                 float64 `json:"Rt" xml:"Rt"`
+	OkTps              float64 `json:"OkTps" xml:"OkTps"`
+	FailedTps          float64 `json:"FailedTps" xml:"FailedTps"`
+	FailedCountPerHour int     `json:"FailedCountPerHour" xml:"FailedCountPerHour"`
+}

+ 56 - 0
services/ons/struct_data.go

@@ -0,0 +1,56 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Data is a nested struct in ons response
+type Data struct {
+	DelayTime                  int                                      `json:"DelayTime" xml:"DelayTime"`
+	ConsumeModel               string                                   `json:"ConsumeModel" xml:"ConsumeModel"`
+	Title                      string                                   `json:"Title" xml:"Title"`
+	Online                     bool                                     `json:"Online" xml:"Online"`
+	Flag                       int                                      `json:"Flag" xml:"Flag"`
+	BornTimestamp              int                                      `json:"BornTimestamp" xml:"BornTimestamp"`
+	RebalanceOK                bool                                     `json:"RebalanceOK" xml:"RebalanceOK"`
+	XUnit                      string                                   `json:"XUnit" xml:"XUnit"`
+	OffsetId                   string                                   `json:"OffsetId" xml:"OffsetId"`
+	SubscriptionSame           bool                                     `json:"SubscriptionSame" xml:"SubscriptionSame"`
+	MaxTimeStamp               int                                      `json:"MaxTimeStamp" xml:"MaxTimeStamp"`
+	InstanceId                 string                                   `json:"InstanceId" xml:"InstanceId"`
+	ConsumeTps                 float64                                  `json:"ConsumeTps" xml:"ConsumeTps"`
+	Topic                      string                                   `json:"Topic" xml:"Topic"`
+	ConsumeTimeStamp           int                                      `json:"ConsumeTimeStamp" xml:"ConsumeTimeStamp"`
+	TotalCount                 int                                      `json:"TotalCount" xml:"TotalCount"`
+	TotalDiff                  int                                      `json:"TotalDiff" xml:"TotalDiff"`
+	ReconsumeTimes             int                                      `json:"ReconsumeTimes" xml:"ReconsumeTimes"`
+	Body                       string                                   `json:"Body" xml:"Body"`
+	BornHost                   string                                   `json:"BornHost" xml:"BornHost"`
+	MinTimeStamp               int                                      `json:"MinTimeStamp" xml:"MinTimeStamp"`
+	LastTimeStamp              int                                      `json:"LastTimeStamp" xml:"LastTimeStamp"`
+	InstanceType               int                                      `json:"InstanceType" xml:"InstanceType"`
+	BodyCRC                    int                                      `json:"BodyCRC" xml:"BodyCRC"`
+	MsgId                      string                                   `json:"MsgId" xml:"MsgId"`
+	StoreTimestamp             int                                      `json:"StoreTimestamp" xml:"StoreTimestamp"`
+	StoreSize                  int                                      `json:"StoreSize" xml:"StoreSize"`
+	StoreHost                  string                                   `json:"StoreHost" xml:"StoreHost"`
+	YUnit                      string                                   `json:"YUnit" xml:"YUnit"`
+	LastTimestamp              int                                      `json:"LastTimestamp" xml:"LastTimestamp"`
+	ConnectionSet              ConnectionSet                            `json:"ConnectionSet" xml:"ConnectionSet"`
+	PropertyList               PropertyListInOnsMessageGetByMsgId       `json:"PropertyList" xml:"PropertyList"`
+	Records                    RecordsInOnsMqttQueryHistoryOnline       `json:"Records" xml:"Records"`
+	ConsumerConnectionInfoList ConsumerConnectionInfoList               `json:"ConsumerConnectionInfoList" xml:"ConsumerConnectionInfoList"`
+	DetailInTopicList          DetailInTopicListInOnsConsumerAccumulate `json:"DetailInTopicList" xml:"DetailInTopicList"`
+	ConnectionList             ConnectionList                           `json:"ConnectionList" xml:"ConnectionList"`
+}

+ 21 - 0
services/ons/struct_data_in_ons_group_list.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DataInOnsGroupList is a nested struct in ons response
+type DataInOnsGroupList struct {
+	SubscribeInfoDo []SubscribeInfoDo `json:"SubscribeInfoDo" xml:"SubscribeInfoDo"`
+}

+ 21 - 0
services/ons/struct_data_in_ons_instance_in_service_list.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DataInOnsInstanceInServiceList is a nested struct in ons response
+type DataInOnsInstanceInServiceList struct {
+	InstanceVO []InstanceVO `json:"InstanceVO" xml:"InstanceVO"`
+}

+ 21 - 0
services/ons/struct_data_in_ons_message_get_by_key.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DataInOnsMessageGetByKey is a nested struct in ons response
+type DataInOnsMessageGetByKey struct {
+	OnsRestMessageDo []OnsRestMessageDo `json:"OnsRestMessageDo" xml:"OnsRestMessageDo"`
+}

+ 21 - 0
services/ons/struct_data_in_ons_message_trace.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DataInOnsMessageTrace is a nested struct in ons response
+type DataInOnsMessageTrace struct {
+	MessageTrack []MessageTrack `json:"MessageTrack" xml:"MessageTrack"`
+}

+ 21 - 0
services/ons/struct_data_in_ons_mqtt_group_id_list.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DataInOnsMqttGroupIdList is a nested struct in ons response
+type DataInOnsMqttGroupIdList struct {
+	MqttGroupIdDo []MqttGroupIdDo `json:"MqttGroupIdDo" xml:"MqttGroupIdDo"`
+}

+ 21 - 0
services/ons/struct_data_in_ons_region_list.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DataInOnsRegionList is a nested struct in ons response
+type DataInOnsRegionList struct {
+	RegionDo []RegionDo `json:"RegionDo" xml:"RegionDo"`
+}

+ 21 - 0
services/ons/struct_data_in_ons_topic_list.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DataInOnsTopicList is a nested struct in ons response
+type DataInOnsTopicList struct {
+	PublishInfoDo []PublishInfoDo `json:"PublishInfoDo" xml:"PublishInfoDo"`
+}

+ 24 - 0
services/ons/struct_detail_in_topic_do.go

@@ -0,0 +1,24 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DetailInTopicDo is a nested struct in ons response
+type DetailInTopicDo struct {
+	DelayTime     int    `json:"DelayTime" xml:"DelayTime"`
+	TotalDiff     int    `json:"TotalDiff" xml:"TotalDiff"`
+	Topic         string `json:"Topic" xml:"Topic"`
+	LastTimestamp int    `json:"LastTimestamp" xml:"LastTimestamp"`
+}

+ 21 - 0
services/ons/struct_detail_in_topic_list_in_ons_consumer_accumulate.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DetailInTopicListInOnsConsumerAccumulate is a nested struct in ons response
+type DetailInTopicListInOnsConsumerAccumulate struct {
+	DetailInTopicDo []DetailInTopicDo `json:"DetailInTopicDo" xml:"DetailInTopicDo"`
+}

+ 21 - 0
services/ons/struct_detail_in_topic_list_in_ons_consumer_status.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DetailInTopicListInOnsConsumerStatus is a nested struct in ons response
+type DetailInTopicListInOnsConsumerStatus struct {
+	DetailInTopicDo []DetailInTopicDo `json:"DetailInTopicDo" xml:"DetailInTopicDo"`
+}

+ 24 - 0
services/ons/struct_endpoints.go

@@ -0,0 +1,24 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Endpoints is a nested struct in ons response
+type Endpoints struct {
+	TcpEndpoint                string `json:"TcpEndpoint" xml:"TcpEndpoint"`
+	HttpInternetEndpoint       string `json:"HttpInternetEndpoint" xml:"HttpInternetEndpoint"`
+	HttpInternetSecureEndpoint string `json:"HttpInternetSecureEndpoint" xml:"HttpInternetSecureEndpoint"`
+	HttpInternalEndpoint       string `json:"HttpInternalEndpoint" xml:"HttpInternalEndpoint"`
+}

+ 26 - 0
services/ons/struct_instance_base_info.go

@@ -0,0 +1,26 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// InstanceBaseInfo is a nested struct in ons response
+type InstanceBaseInfo struct {
+	InstanceId     string    `json:"InstanceId" xml:"InstanceId"`
+	InstanceStatus int       `json:"InstanceStatus" xml:"InstanceStatus"`
+	ReleaseTime    int       `json:"ReleaseTime" xml:"ReleaseTime"`
+	InstanceType   int       `json:"InstanceType" xml:"InstanceType"`
+	InstanceName   string    `json:"InstanceName" xml:"InstanceName"`
+	Endpoints      Endpoints `json:"Endpoints" xml:"Endpoints"`
+}

+ 25 - 0
services/ons/struct_instance_vo.go

@@ -0,0 +1,25 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// InstanceVO is a nested struct in ons response
+type InstanceVO struct {
+	InstanceId     string `json:"InstanceId" xml:"InstanceId"`
+	InstanceStatus int    `json:"InstanceStatus" xml:"InstanceStatus"`
+	ReleaseTime    int    `json:"ReleaseTime" xml:"ReleaseTime"`
+	InstanceType   int    `json:"InstanceType" xml:"InstanceType"`
+	InstanceName   string `json:"InstanceName" xml:"InstanceName"`
+}

+ 21 - 0
services/ons/struct_jstack.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Jstack is a nested struct in ons response
+type Jstack struct {
+	ThreadTrackDo []ThreadTrackDo `json:"ThreadTrackDo" xml:"ThreadTrackDo"`
+}

+ 22 - 0
services/ons/struct_message_property.go

@@ -0,0 +1,22 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// MessageProperty is a nested struct in ons response
+type MessageProperty struct {
+	Name  string `json:"Name" xml:"Name"`
+	Value string `json:"Value" xml:"Value"`
+}

+ 24 - 0
services/ons/struct_message_track.go

@@ -0,0 +1,24 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// MessageTrack is a nested struct in ons response
+type MessageTrack struct {
+	ConsumerGroup string `json:"ConsumerGroup" xml:"ConsumerGroup"`
+	TrackType     string `json:"TrackType" xml:"TrackType"`
+	ExceptionDesc string `json:"ExceptionDesc" xml:"ExceptionDesc"`
+	InstanceId    string `json:"InstanceId" xml:"InstanceId"`
+}

+ 25 - 0
services/ons/struct_mqtt_client_info_do.go

@@ -0,0 +1,25 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// MqttClientInfoDo is a nested struct in ons response
+type MqttClientInfoDo struct {
+	Online          bool            `json:"Online" xml:"Online"`
+	ClientId        string          `json:"ClientId" xml:"ClientId"`
+	SocketChannel   string          `json:"SocketChannel" xml:"SocketChannel"`
+	LastTouch       int             `json:"LastTouch" xml:"LastTouch"`
+	SubScriptonData SubScriptonData `json:"SubScriptonData" xml:"SubScriptonData"`
+}

+ 22 - 0
services/ons/struct_mqtt_client_set_do.go

@@ -0,0 +1,22 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// MqttClientSetDo is a nested struct in ons response
+type MqttClientSetDo struct {
+	OnlineCount  int `json:"OnlineCount" xml:"OnlineCount"`
+	PersistCount int `json:"PersistCount" xml:"PersistCount"`
+}

+ 30 - 0
services/ons/struct_mqtt_group_id_do.go

@@ -0,0 +1,30 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// MqttGroupIdDo is a nested struct in ons response
+type MqttGroupIdDo struct {
+	Id                int    `json:"Id" xml:"Id"`
+	ChannelId         int    `json:"ChannelId" xml:"ChannelId"`
+	Owner             string `json:"Owner" xml:"Owner"`
+	GroupId           string `json:"GroupId" xml:"GroupId"`
+	Topic             string `json:"Topic" xml:"Topic"`
+	Status            int    `json:"Status" xml:"Status"`
+	CreateTime        int    `json:"CreateTime" xml:"CreateTime"`
+	UpdateTime        int    `json:"UpdateTime" xml:"UpdateTime"`
+	InstanceId        string `json:"InstanceId" xml:"InstanceId"`
+	IndependentNaming bool   `json:"IndependentNaming" xml:"IndependentNaming"`
+}

+ 24 - 0
services/ons/struct_msg_found_do.go

@@ -0,0 +1,24 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// MsgFoundDo is a nested struct in ons response
+type MsgFoundDo struct {
+	TaskId       string       `json:"TaskId" xml:"TaskId"`
+	MaxPageCount int          `json:"MaxPageCount" xml:"MaxPageCount"`
+	CurrentPage  int          `json:"CurrentPage" xml:"CurrentPage"`
+	MsgFoundList MsgFoundList `json:"MsgFoundList" xml:"MsgFoundList"`
+}

+ 21 - 0
services/ons/struct_msg_found_list.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// MsgFoundList is a nested struct in ons response
+type MsgFoundList struct {
+	OnsRestMessageDo []OnsRestMessageDo `json:"OnsRestMessageDo" xml:"OnsRestMessageDo"`
+}

+ 34 - 0
services/ons/struct_ons_rest_message_do.go

@@ -0,0 +1,34 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// OnsRestMessageDo is a nested struct in ons response
+type OnsRestMessageDo struct {
+	ReconsumeTimes int                              `json:"ReconsumeTimes" xml:"ReconsumeTimes"`
+	Flag           int                              `json:"Flag" xml:"Flag"`
+	BornTimestamp  int                              `json:"BornTimestamp" xml:"BornTimestamp"`
+	Body           string                           `json:"Body" xml:"Body"`
+	BornHost       string                           `json:"BornHost" xml:"BornHost"`
+	OffsetId       string                           `json:"OffsetId" xml:"OffsetId"`
+	BodyCRC        int                              `json:"BodyCRC" xml:"BodyCRC"`
+	MsgId          string                           `json:"MsgId" xml:"MsgId"`
+	StoreTimestamp int                              `json:"StoreTimestamp" xml:"StoreTimestamp"`
+	InstanceId     string                           `json:"InstanceId" xml:"InstanceId"`
+	StoreSize      int                              `json:"StoreSize" xml:"StoreSize"`
+	StoreHost      string                           `json:"StoreHost" xml:"StoreHost"`
+	Topic          string                           `json:"Topic" xml:"Topic"`
+	PropertyList   PropertyListInOnsMessageGetByKey `json:"PropertyList" xml:"PropertyList"`
+}

+ 21 - 0
services/ons/struct_property_list_in_ons_message_get_by_key.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// PropertyListInOnsMessageGetByKey is a nested struct in ons response
+type PropertyListInOnsMessageGetByKey struct {
+	MessageProperty []MessageProperty `json:"MessageProperty" xml:"MessageProperty"`
+}

+ 21 - 0
services/ons/struct_property_list_in_ons_message_get_by_msg_id.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// PropertyListInOnsMessageGetByMsgId is a nested struct in ons response
+type PropertyListInOnsMessageGetByMsgId struct {
+	MessageProperty []MessageProperty `json:"MessageProperty" xml:"MessageProperty"`
+}

+ 21 - 0
services/ons/struct_property_list_in_ons_message_page_query_by_topic.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// PropertyListInOnsMessagePageQueryByTopic is a nested struct in ons response
+type PropertyListInOnsMessagePageQueryByTopic struct {
+	MessageProperty []MessageProperty `json:"MessageProperty" xml:"MessageProperty"`
+}

+ 29 - 0
services/ons/struct_publish_info_do.go

@@ -0,0 +1,29 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// PublishInfoDo is a nested struct in ons response
+type PublishInfoDo struct {
+	Topic             string `json:"Topic" xml:"Topic"`
+	Owner             string `json:"Owner" xml:"Owner"`
+	Relation          int    `json:"Relation" xml:"Relation"`
+	RelationName      string `json:"RelationName" xml:"RelationName"`
+	UpdateTime        int    `json:"UpdateTime" xml:"UpdateTime"`
+	Remark            string `json:"Remark" xml:"Remark"`
+	MessageType       int    `json:"MessageType" xml:"MessageType"`
+	InstanceId        string `json:"InstanceId" xml:"InstanceId"`
+	IndependentNaming bool   `json:"IndependentNaming" xml:"IndependentNaming"`
+}

+ 21 - 0
services/ons/struct_records_in_ons_mqtt_query_history_online.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// RecordsInOnsMqttQueryHistoryOnline is a nested struct in ons response
+type RecordsInOnsMqttQueryHistoryOnline struct {
+	StatsDataDo []StatsDataDo `json:"StatsDataDo" xml:"StatsDataDo"`
+}

+ 21 - 0
services/ons/struct_records_in_ons_mqtt_query_msg_trans_trend.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// RecordsInOnsMqttQueryMsgTransTrend is a nested struct in ons response
+type RecordsInOnsMqttQueryMsgTransTrend struct {
+	StatsDataDo []StatsDataDo `json:"StatsDataDo" xml:"StatsDataDo"`
+}

+ 21 - 0
services/ons/struct_records_in_ons_trend_group_output_tps.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// RecordsInOnsTrendGroupOutputTps is a nested struct in ons response
+type RecordsInOnsTrendGroupOutputTps struct {
+	StatsDataDo []StatsDataDo `json:"StatsDataDo" xml:"StatsDataDo"`
+}

+ 21 - 0
services/ons/struct_records_in_ons_trend_topic_input_tps.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// RecordsInOnsTrendTopicInputTps is a nested struct in ons response
+type RecordsInOnsTrendTopicInputTps struct {
+	StatsDataDo []StatsDataDo `json:"StatsDataDo" xml:"StatsDataDo"`
+}

+ 27 - 0
services/ons/struct_region_do.go

@@ -0,0 +1,27 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// RegionDo is a nested struct in ons response
+type RegionDo struct {
+	Id          int    `json:"Id" xml:"Id"`
+	OnsRegionId string `json:"OnsRegionId" xml:"OnsRegionId"`
+	RegionName  string `json:"RegionName" xml:"RegionName"`
+	ChannelId   int    `json:"ChannelId" xml:"ChannelId"`
+	ChannelName string `json:"ChannelName" xml:"ChannelName"`
+	CreateTime  int    `json:"CreateTime" xml:"CreateTime"`
+	UpdateTime  int    `json:"UpdateTime" xml:"UpdateTime"`
+}

+ 21 - 0
services/ons/struct_running_data_list.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// RunningDataList is a nested struct in ons response
+type RunningDataList struct {
+	ConsumerRunningDataDo []ConsumerRunningDataDo `json:"ConsumerRunningDataDo" xml:"ConsumerRunningDataDo"`
+}

+ 22 - 0
services/ons/struct_stats_data_do.go

@@ -0,0 +1,22 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// StatsDataDo is a nested struct in ons response
+type StatsDataDo struct {
+	X int     `json:"X" xml:"X"`
+	Y float64 `json:"Y" xml:"Y"`
+}

+ 26 - 0
services/ons/struct_sub_client_info_do.go

@@ -0,0 +1,26 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// SubClientInfoDo is a nested struct in ons response
+type SubClientInfoDo struct {
+	SubGroupName   string `json:"SubGroupName" xml:"SubGroupName"`
+	SubTime        int    `json:"SubTime" xml:"SubTime"`
+	ClientHost     string `json:"ClientHost" xml:"ClientHost"`
+	ReconsumeTimes int    `json:"ReconsumeTimes" xml:"ReconsumeTimes"`
+	CostTime       int    `json:"CostTime" xml:"CostTime"`
+	Status         string `json:"Status" xml:"Status"`
+}

+ 21 - 0
services/ons/struct_sub_list.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// SubList is a nested struct in ons response
+type SubList struct {
+	SubMapDo []SubMapDo `json:"SubMapDo" xml:"SubMapDo"`
+}

+ 24 - 0
services/ons/struct_sub_map_do.go

@@ -0,0 +1,24 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// SubMapDo is a nested struct in ons response
+type SubMapDo struct {
+	SubGroupName string     `json:"SubGroupName" xml:"SubGroupName"`
+	SuccessCount int        `json:"SuccessCount" xml:"SuccessCount"`
+	FailCount    int        `json:"FailCount" xml:"FailCount"`
+	ClientList   ClientList `json:"ClientList" xml:"ClientList"`
+}

+ 21 - 0
services/ons/struct_sub_scripton_data.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// SubScriptonData is a nested struct in ons response
+type SubScriptonData struct {
+	SubscriptionDo []SubscriptionDo `json:"SubscriptionDo" xml:"SubscriptionDo"`
+}

+ 26 - 0
services/ons/struct_subscribe_info_do.go

@@ -0,0 +1,26 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// SubscribeInfoDo is a nested struct in ons response
+type SubscribeInfoDo struct {
+	Owner             string `json:"Owner" xml:"Owner"`
+	GroupId           string `json:"GroupId" xml:"GroupId"`
+	UpdateTime        int    `json:"UpdateTime" xml:"UpdateTime"`
+	Remark            string `json:"Remark" xml:"Remark"`
+	InstanceId        string `json:"InstanceId" xml:"InstanceId"`
+	IndependentNaming bool   `json:"IndependentNaming" xml:"IndependentNaming"`
+}

+ 24 - 0
services/ons/struct_subscription_data.go

@@ -0,0 +1,24 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// SubscriptionData is a nested struct in ons response
+type SubscriptionData struct {
+	Topic      string  `json:"Topic" xml:"Topic"`
+	SubString  string  `json:"SubString" xml:"SubString"`
+	SubVersion int     `json:"SubVersion" xml:"SubVersion"`
+	TagsSet    TagsSet `json:"TagsSet" xml:"TagsSet"`
+}

+ 23 - 0
services/ons/struct_subscription_do.go

@@ -0,0 +1,23 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// SubscriptionDo is a nested struct in ons response
+type SubscriptionDo struct {
+	ParentTopic string `json:"ParentTopic" xml:"ParentTopic"`
+	SubTopic    string `json:"SubTopic" xml:"SubTopic"`
+	Qos         int    `json:"Qos" xml:"Qos"`
+}

+ 21 - 0
services/ons/struct_subscription_set.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// SubscriptionSet is a nested struct in ons response
+type SubscriptionSet struct {
+	SubscriptionData []SubscriptionData `json:"SubscriptionData" xml:"SubscriptionData"`
+}

+ 21 - 0
services/ons/struct_tags_set.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// TagsSet is a nested struct in ons response
+type TagsSet struct {
+	Tag []string `json:"Tag" xml:"Tag"`
+}

+ 22 - 0
services/ons/struct_thread_track_do.go

@@ -0,0 +1,22 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// ThreadTrackDo is a nested struct in ons response
+type ThreadTrackDo struct {
+	Thread    string    `json:"Thread" xml:"Thread"`
+	TrackList TrackList `json:"TrackList" xml:"TrackList"`
+}

+ 30 - 0
services/ons/struct_trace_data.go

@@ -0,0 +1,30 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// TraceData is a nested struct in ons response
+type TraceData struct {
+	QueryId    string    `json:"QueryId" xml:"QueryId"`
+	UserId     string    `json:"UserId" xml:"UserId"`
+	Topic      string    `json:"Topic" xml:"Topic"`
+	MsgId      string    `json:"MsgId" xml:"MsgId"`
+	MsgKey     string    `json:"MsgKey" xml:"MsgKey"`
+	Status     string    `json:"Status" xml:"Status"`
+	CreateTime int       `json:"CreateTime" xml:"CreateTime"`
+	UpdateTime int       `json:"UpdateTime" xml:"UpdateTime"`
+	InstanceId string    `json:"InstanceId" xml:"InstanceId"`
+	TraceList  TraceList `json:"TraceList" xml:"TraceList"`
+}

+ 21 - 0
services/ons/struct_trace_list.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// TraceList is a nested struct in ons response
+type TraceList struct {
+	TraceMapDo []TraceMapDo `json:"TraceMapDo" xml:"TraceMapDo"`
+}

+ 30 - 0
services/ons/struct_trace_map_do.go

@@ -0,0 +1,30 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// TraceMapDo is a nested struct in ons response
+type TraceMapDo struct {
+	PubTime      int     `json:"PubTime" xml:"PubTime"`
+	Topic        string  `json:"Topic" xml:"Topic"`
+	PubGroupName string  `json:"PubGroupName" xml:"PubGroupName"`
+	MsgId        string  `json:"MsgId" xml:"MsgId"`
+	Tag          string  `json:"Tag" xml:"Tag"`
+	MsgKey       string  `json:"MsgKey" xml:"MsgKey"`
+	BornHost     string  `json:"BornHost" xml:"BornHost"`
+	CostTime     int     `json:"CostTime" xml:"CostTime"`
+	Status       string  `json:"Status" xml:"Status"`
+	SubList      SubList `json:"SubList" xml:"SubList"`
+}

+ 21 - 0
services/ons/struct_track_list.go

@@ -0,0 +1,21 @@
+package ons
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// TrackList is a nested struct in ons response
+type TrackList struct {
+	Track []string `json:"Track" xml:"Track"`
+}