Browse Source

LIVE SDK Auto Released By renrang.yl,Version:1.34.8

Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
yixiong.jxy 7 năm trước cách đây
mục cha
commit
fb7d12c71f

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2018-10-30 Version: 1.34.8
+1, Add API DescribeLiveDomainBpsData,DescribeLiveDomainTrafficData.
+
+
 2018-10-29 Version: 1.34.7
 1, Add ots trigger api interface.
 

+ 1 - 0
services/live/describe_domain_usage_data.go

@@ -81,6 +81,7 @@ type DescribeDomainUsageDataRequest struct {
 	DomainName string           `position:"Query" name:"DomainName"`
 	EndTime    string           `position:"Query" name:"EndTime"`
 	OwnerId    requests.Integer `position:"Query" name:"OwnerId"`
+	Interval   string           `position:"Query" name:"Interval"`
 }
 
 // DescribeDomainUsageDataResponse is the response struct for api DescribeDomainUsageData

+ 114 - 0
services/live/describe_live_domain_bps_data.go

@@ -0,0 +1,114 @@
+package live
+
+//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"
+)
+
+// DescribeLiveDomainBpsData invokes the live.DescribeLiveDomainBpsData API synchronously
+// api document: https://help.aliyun.com/api/live/describelivedomainbpsdata.html
+func (client *Client) DescribeLiveDomainBpsData(request *DescribeLiveDomainBpsDataRequest) (response *DescribeLiveDomainBpsDataResponse, err error) {
+	response = CreateDescribeLiveDomainBpsDataResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeLiveDomainBpsDataWithChan invokes the live.DescribeLiveDomainBpsData API asynchronously
+// api document: https://help.aliyun.com/api/live/describelivedomainbpsdata.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeLiveDomainBpsDataWithChan(request *DescribeLiveDomainBpsDataRequest) (<-chan *DescribeLiveDomainBpsDataResponse, <-chan error) {
+	responseChan := make(chan *DescribeLiveDomainBpsDataResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeLiveDomainBpsData(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeLiveDomainBpsDataWithCallback invokes the live.DescribeLiveDomainBpsData API asynchronously
+// api document: https://help.aliyun.com/api/live/describelivedomainbpsdata.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeLiveDomainBpsDataWithCallback(request *DescribeLiveDomainBpsDataRequest, callback func(response *DescribeLiveDomainBpsDataResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeLiveDomainBpsDataResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeLiveDomainBpsData(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeLiveDomainBpsDataRequest is the request struct for api DescribeLiveDomainBpsData
+type DescribeLiveDomainBpsDataRequest struct {
+	*requests.RpcRequest
+	DomainName     string           `position:"Query" name:"DomainName"`
+	EndTime        string           `position:"Query" name:"EndTime"`
+	Interval       string           `position:"Query" name:"Interval"`
+	LocationNameEn string           `position:"Query" name:"LocationNameEn"`
+	StartTime      string           `position:"Query" name:"StartTime"`
+	IspNameEn      string           `position:"Query" name:"IspNameEn"`
+	OwnerId        requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// DescribeLiveDomainBpsDataResponse is the response struct for api DescribeLiveDomainBpsData
+type DescribeLiveDomainBpsDataResponse struct {
+	*responses.BaseResponse
+	RequestId          string             `json:"RequestId" xml:"RequestId"`
+	DomainName         string             `json:"DomainName" xml:"DomainName"`
+	StartTime          string             `json:"StartTime" xml:"StartTime"`
+	EndTime            string             `json:"EndTime" xml:"EndTime"`
+	DataInterval       string             `json:"DataInterval" xml:"DataInterval"`
+	BpsDataPerInterval BpsDataPerInterval `json:"BpsDataPerInterval" xml:"BpsDataPerInterval"`
+}
+
+// CreateDescribeLiveDomainBpsDataRequest creates a request to invoke DescribeLiveDomainBpsData API
+func CreateDescribeLiveDomainBpsDataRequest() (request *DescribeLiveDomainBpsDataRequest) {
+	request = &DescribeLiveDomainBpsDataRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveDomainBpsData", "live", "openAPI")
+	return
+}
+
+// CreateDescribeLiveDomainBpsDataResponse creates a response to parse from DescribeLiveDomainBpsData response
+func CreateDescribeLiveDomainBpsDataResponse() (response *DescribeLiveDomainBpsDataResponse) {
+	response = &DescribeLiveDomainBpsDataResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 114 - 0
services/live/describe_live_domain_traffic_data.go

@@ -0,0 +1,114 @@
+package live
+
+//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"
+)
+
+// DescribeLiveDomainTrafficData invokes the live.DescribeLiveDomainTrafficData API synchronously
+// api document: https://help.aliyun.com/api/live/describelivedomaintrafficdata.html
+func (client *Client) DescribeLiveDomainTrafficData(request *DescribeLiveDomainTrafficDataRequest) (response *DescribeLiveDomainTrafficDataResponse, err error) {
+	response = CreateDescribeLiveDomainTrafficDataResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeLiveDomainTrafficDataWithChan invokes the live.DescribeLiveDomainTrafficData API asynchronously
+// api document: https://help.aliyun.com/api/live/describelivedomaintrafficdata.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeLiveDomainTrafficDataWithChan(request *DescribeLiveDomainTrafficDataRequest) (<-chan *DescribeLiveDomainTrafficDataResponse, <-chan error) {
+	responseChan := make(chan *DescribeLiveDomainTrafficDataResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeLiveDomainTrafficData(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeLiveDomainTrafficDataWithCallback invokes the live.DescribeLiveDomainTrafficData API asynchronously
+// api document: https://help.aliyun.com/api/live/describelivedomaintrafficdata.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeLiveDomainTrafficDataWithCallback(request *DescribeLiveDomainTrafficDataRequest, callback func(response *DescribeLiveDomainTrafficDataResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeLiveDomainTrafficDataResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeLiveDomainTrafficData(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeLiveDomainTrafficDataRequest is the request struct for api DescribeLiveDomainTrafficData
+type DescribeLiveDomainTrafficDataRequest struct {
+	*requests.RpcRequest
+	DomainName     string           `position:"Query" name:"DomainName"`
+	EndTime        string           `position:"Query" name:"EndTime"`
+	Interval       string           `position:"Query" name:"Interval"`
+	LocationNameEn string           `position:"Query" name:"LocationNameEn"`
+	StartTime      string           `position:"Query" name:"StartTime"`
+	IspNameEn      string           `position:"Query" name:"IspNameEn"`
+	OwnerId        requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// DescribeLiveDomainTrafficDataResponse is the response struct for api DescribeLiveDomainTrafficData
+type DescribeLiveDomainTrafficDataResponse struct {
+	*responses.BaseResponse
+	RequestId              string                 `json:"RequestId" xml:"RequestId"`
+	DomainName             string                 `json:"DomainName" xml:"DomainName"`
+	StartTime              string                 `json:"StartTime" xml:"StartTime"`
+	EndTime                string                 `json:"EndTime" xml:"EndTime"`
+	DataInterval           string                 `json:"DataInterval" xml:"DataInterval"`
+	TrafficDataPerInterval TrafficDataPerInterval `json:"TrafficDataPerInterval" xml:"TrafficDataPerInterval"`
+}
+
+// CreateDescribeLiveDomainTrafficDataRequest creates a request to invoke DescribeLiveDomainTrafficData API
+func CreateDescribeLiveDomainTrafficDataRequest() (request *DescribeLiveDomainTrafficDataRequest) {
+	request = &DescribeLiveDomainTrafficDataRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveDomainTrafficData", "live", "openAPI")
+	return
+}
+
+// CreateDescribeLiveDomainTrafficDataResponse creates a response to parse from DescribeLiveDomainTrafficData response
+func CreateDescribeLiveDomainTrafficDataResponse() (response *DescribeLiveDomainTrafficDataResponse) {
+	response = &DescribeLiveDomainTrafficDataResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 4 - 0
services/live/describe_room_list.go

@@ -76,11 +76,15 @@ func (client *Client) DescribeRoomListWithCallback(request *DescribeRoomListRequ
 // DescribeRoomListRequest is the request struct for api DescribeRoomList
 type DescribeRoomListRequest struct {
 	*requests.RpcRequest
+	StartTime  string           `position:"Query" name:"StartTime"`
+	AnchorId   string           `position:"Query" name:"AnchorId"`
 	PageNum    requests.Integer `position:"Query" name:"PageNum"`
 	RoomStatus requests.Integer `position:"Query" name:"RoomStatus"`
 	PageSize   requests.Integer `position:"Query" name:"PageSize"`
 	Order      string           `position:"Query" name:"Order"`
+	EndTime    string           `position:"Query" name:"EndTime"`
 	OwnerId    requests.Integer `position:"Query" name:"OwnerId"`
+	RoomId     string           `position:"Query" name:"RoomId"`
 	AppId      string           `position:"Query" name:"AppId"`
 }
 

+ 3 - 3
services/live/forbid_live_stream.go

@@ -76,14 +76,14 @@ func (client *Client) ForbidLiveStreamWithCallback(request *ForbidLiveStreamRequ
 // ForbidLiveStreamRequest is the request struct for api ForbidLiveStream
 type ForbidLiveStreamRequest struct {
 	*requests.RpcRequest
-	AppName             string           `position:"Query" name:"AppName"`
-	StreamName          string           `position:"Query" name:"StreamName"`
-	ControlStreamAction string           `position:"Query" name:"ControlStreamAction"`
 	ResumeTime          string           `position:"Query" name:"ResumeTime"`
+	AppName             string           `position:"Query" name:"AppName"`
 	LiveStreamType      string           `position:"Query" name:"LiveStreamType"`
 	DomainName          string           `position:"Query" name:"DomainName"`
 	OwnerId             requests.Integer `position:"Query" name:"OwnerId"`
 	Oneshot             string           `position:"Query" name:"Oneshot"`
+	StreamName          string           `position:"Query" name:"StreamName"`
+	ControlStreamAction string           `position:"Query" name:"ControlStreamAction"`
 }
 
 // ForbidLiveStreamResponse is the response struct for api ForbidLiveStream

+ 6 - 4
services/live/join_board.go

@@ -85,10 +85,12 @@ type JoinBoardRequest struct {
 // JoinBoardResponse is the response struct for api JoinBoard
 type JoinBoardResponse struct {
 	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Token     string `json:"Token" xml:"Token"`
-	BoardId   string `json:"BoardId" xml:"BoardId"`
-	TopicId   string `json:"TopicId" xml:"TopicId"`
+	RequestId         string `json:"RequestId" xml:"RequestId"`
+	Token             string `json:"Token" xml:"Token"`
+	BoardId           string `json:"BoardId" xml:"BoardId"`
+	TopicId           string `json:"TopicId" xml:"TopicId"`
+	KeepaliveTopic    string `json:"KeepaliveTopic" xml:"KeepaliveTopic"`
+	KeepaliveInterval int    `json:"KeepaliveInterval" xml:"KeepaliveInterval"`
 }
 
 // CreateJoinBoardRequest creates a request to invoke JoinBoard API

+ 5 - 4
services/live/set_live_streams_notify_url_config.go

@@ -76,10 +76,11 @@ func (client *Client) SetLiveStreamsNotifyUrlConfigWithCallback(request *SetLive
 // SetLiveStreamsNotifyUrlConfigRequest is the request struct for api SetLiveStreamsNotifyUrlConfig
 type SetLiveStreamsNotifyUrlConfigRequest struct {
 	*requests.RpcRequest
-	SecurityToken string           `position:"Query" name:"SecurityToken"`
-	DomainName    string           `position:"Query" name:"DomainName"`
-	NotifyUrl     string           `position:"Query" name:"NotifyUrl"`
-	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
+	AuthKey    string           `position:"Query" name:"AuthKey"`
+	DomainName string           `position:"Query" name:"DomainName"`
+	NotifyUrl  string           `position:"Query" name:"NotifyUrl"`
+	OwnerId    requests.Integer `position:"Query" name:"OwnerId"`
+	AuthType   string           `position:"Query" name:"AuthType"`
 }
 
 // SetLiveStreamsNotifyUrlConfigResponse is the response struct for api SetLiveStreamsNotifyUrlConfig

+ 21 - 0
services/live/struct_bps_data_per_interval.go

@@ -0,0 +1,21 @@
+package live
+
+//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.
+
+// BpsDataPerInterval is a nested struct in live response
+type BpsDataPerInterval struct {
+	DataModule []DataModule `json:"DataModule" xml:"DataModule"`
+}

+ 8 - 2
services/live/struct_data_module.go

@@ -17,6 +17,12 @@ package live
 
 // DataModule is a nested struct in live response
 type DataModule struct {
-	TimeStamp string `json:"TimeStamp" xml:"TimeStamp"`
-	Value     string `json:"Value" xml:"Value"`
+	Value             string `json:"Value" xml:"Value"`
+	TrafficValue      string `json:"TrafficValue" xml:"TrafficValue"`
+	BpsValue          string `json:"BpsValue" xml:"BpsValue"`
+	TimeStamp         string `json:"TimeStamp" xml:"TimeStamp"`
+	HttpBpsValue      string `json:"HttpBpsValue" xml:"HttpBpsValue"`
+	HttpsTrafficValue string `json:"HttpsTrafficValue" xml:"HttpsTrafficValue"`
+	HttpsBpsValue     string `json:"HttpsBpsValue" xml:"HttpsBpsValue"`
+	HttpTrafficValue  string `json:"HttpTrafficValue" xml:"HttpTrafficValue"`
 }

+ 7 - 6
services/live/struct_room.go

@@ -17,10 +17,11 @@ package live
 
 // Room is a nested struct in live response
 type Room struct {
-	AnchorId    string `json:"AnchorId" xml:"AnchorId"`
-	OpEndTime   string `json:"OpEndTime" xml:"OpEndTime"`
-	OpStartTime string `json:"OpStartTime" xml:"OpStartTime"`
-	CreateTime  string `json:"CreateTime" xml:"CreateTime"`
-	RoomStatus  int    `json:"RoomStatus" xml:"RoomStatus"`
-	RoomId      string `json:"RoomId" xml:"RoomId"`
+	AnchorId     string `json:"AnchorId" xml:"AnchorId"`
+	OpEndTime    string `json:"OpEndTime" xml:"OpEndTime"`
+	OpStartTime  string `json:"OpStartTime" xml:"OpStartTime"`
+	CreateTime   string `json:"CreateTime" xml:"CreateTime"`
+	RoomStatus   int    `json:"RoomStatus" xml:"RoomStatus"`
+	RoomId       string `json:"RoomId" xml:"RoomId"`
+	ForbidStream string `json:"ForbidStream" xml:"ForbidStream"`
 }

+ 21 - 0
services/live/struct_traffic_data_per_interval.go

@@ -0,0 +1,21 @@
+package live
+
+//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.
+
+// TrafficDataPerInterval is a nested struct in live response
+type TrafficDataPerInterval struct {
+	DataModule []DataModule `json:"DataModule" xml:"DataModule"`
+}