diff --git a/ChangeLog.txt b/ChangeLog.txt index 343febc653..8697d88013 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2023-11-22 Version: v1.62.614 +- Generated 2016-11-01 for `live`. +- Update to support new apis. + 2023-11-20 Version: v1.62.613 - Generated 2019-05-27 for `Oms`. - GetDomainFields add request field diff --git a/services/live/create_event_sub.go b/services/live/create_event_sub.go index 258c6e9f36..4a606e8208 100644 --- a/services/live/create_event_sub.go +++ b/services/live/create_event_sub.go @@ -71,14 +71,11 @@ func (client *Client) CreateEventSubWithCallback(request *CreateEventSubRequest, // CreateEventSubRequest is the request struct for api CreateEventSub type CreateEventSubRequest struct { *requests.RpcRequest - Role requests.Integer `position:"Query" name:"Role"` - ClientToken string `position:"Query" name:"ClientToken"` - NeedCallbackAuthorization requests.Boolean `position:"Query" name:"NeedCallbackAuthorization"` - Users *[]string `position:"Query" name:"Users" type:"Repeated"` - AppId string `position:"Query" name:"AppId"` - CallbackUrl string `position:"Query" name:"CallbackUrl"` - ChannelId string `position:"Query" name:"ChannelId"` - Events *[]string `position:"Query" name:"Events" type:"Repeated"` + Users *[]string `position:"Query" name:"Users" type:"Repeated"` + AppId string `position:"Query" name:"AppId"` + CallbackUrl string `position:"Query" name:"CallbackUrl"` + ChannelId string `position:"Query" name:"ChannelId"` + Events *[]string `position:"Query" name:"Events" type:"Repeated"` } // CreateEventSubResponse is the response struct for api CreateEventSub diff --git a/services/live/create_room_real_time_stream_address.go b/services/live/create_room_real_time_stream_address.go new file mode 100644 index 0000000000..4e909c9e12 --- /dev/null +++ b/services/live/create_room_real_time_stream_address.go @@ -0,0 +1,104 @@ +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" +) + +// CreateRoomRealTimeStreamAddress invokes the live.CreateRoomRealTimeStreamAddress API synchronously +func (client *Client) CreateRoomRealTimeStreamAddress(request *CreateRoomRealTimeStreamAddressRequest) (response *CreateRoomRealTimeStreamAddressResponse, err error) { + response = CreateCreateRoomRealTimeStreamAddressResponse() + err = client.DoAction(request, response) + return +} + +// CreateRoomRealTimeStreamAddressWithChan invokes the live.CreateRoomRealTimeStreamAddress API asynchronously +func (client *Client) CreateRoomRealTimeStreamAddressWithChan(request *CreateRoomRealTimeStreamAddressRequest) (<-chan *CreateRoomRealTimeStreamAddressResponse, <-chan error) { + responseChan := make(chan *CreateRoomRealTimeStreamAddressResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateRoomRealTimeStreamAddress(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateRoomRealTimeStreamAddressWithCallback invokes the live.CreateRoomRealTimeStreamAddress API asynchronously +func (client *Client) CreateRoomRealTimeStreamAddressWithCallback(request *CreateRoomRealTimeStreamAddressRequest, callback func(response *CreateRoomRealTimeStreamAddressResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateRoomRealTimeStreamAddressResponse + var err error + defer close(result) + response, err = client.CreateRoomRealTimeStreamAddress(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateRoomRealTimeStreamAddressRequest is the request struct for api CreateRoomRealTimeStreamAddress +type CreateRoomRealTimeStreamAddressRequest struct { + *requests.RpcRequest + ExpireTime requests.Integer `position:"Query" name:"ExpireTime"` + UserId string `position:"Query" name:"UserId"` + AppId string `position:"Query" name:"AppId"` + DisplayName string `position:"Query" name:"DisplayName"` + ChannelId string `position:"Query" name:"ChannelId"` +} + +// CreateRoomRealTimeStreamAddressResponse is the response struct for api CreateRoomRealTimeStreamAddress +type CreateRoomRealTimeStreamAddressResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RtmpAddress string `json:"RtmpAddress" xml:"RtmpAddress"` +} + +// CreateCreateRoomRealTimeStreamAddressRequest creates a request to invoke CreateRoomRealTimeStreamAddress API +func CreateCreateRoomRealTimeStreamAddressRequest() (request *CreateRoomRealTimeStreamAddressRequest) { + request = &CreateRoomRealTimeStreamAddressRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "CreateRoomRealTimeStreamAddress", "live", "openAPI") + request.Method = requests.GET + return +} + +// CreateCreateRoomRealTimeStreamAddressResponse creates a response to parse from CreateRoomRealTimeStreamAddress response +func CreateCreateRoomRealTimeStreamAddressResponse() (response *CreateRoomRealTimeStreamAddressResponse) { + response = &CreateRoomRealTimeStreamAddressResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/describe_caster_config.go b/services/live/describe_caster_config.go index be6797e6f9..365a3871bd 100644 --- a/services/live/describe_caster_config.go +++ b/services/live/describe_caster_config.go @@ -78,24 +78,26 @@ type DescribeCasterConfigRequest struct { // DescribeCasterConfigResponse is the response struct for api DescribeCasterConfig type DescribeCasterConfigResponse struct { *responses.BaseResponse - Delay float64 `json:"Delay" xml:"Delay"` - UrgentLiveStreamUrl string `json:"UrgentLiveStreamUrl" xml:"UrgentLiveStreamUrl"` - UrgentMaterialId string `json:"UrgentMaterialId" xml:"UrgentMaterialId"` - UrgentImageId string `json:"UrgentImageId" xml:"UrgentImageId"` - UrgentImageUrl string `json:"UrgentImageUrl" xml:"UrgentImageUrl"` - CallbackUrl string `json:"CallbackUrl" xml:"CallbackUrl"` - ProgramName string `json:"ProgramName" xml:"ProgramName"` - CasterName string `json:"CasterName" xml:"CasterName"` - CasterId string `json:"CasterId" xml:"CasterId"` - ProgramEffect int `json:"ProgramEffect" xml:"ProgramEffect"` - ChannelEnable int `json:"ChannelEnable" xml:"ChannelEnable"` - DomainName string `json:"DomainName" xml:"DomainName"` - RequestId string `json:"RequestId" xml:"RequestId"` - SideOutputUrlList string `json:"SideOutputUrlList" xml:"SideOutputUrlList"` - SideOutputUrl string `json:"SideOutputUrl" xml:"SideOutputUrl"` - TranscodeConfig TranscodeConfig `json:"TranscodeConfig" xml:"TranscodeConfig"` - RecordConfig RecordConfig `json:"RecordConfig" xml:"RecordConfig"` - SyncGroupsConfig SyncGroupsConfig `json:"SyncGroupsConfig" xml:"SyncGroupsConfig"` + Delay float64 `json:"Delay" xml:"Delay"` + UrgentLiveStreamUrl string `json:"UrgentLiveStreamUrl" xml:"UrgentLiveStreamUrl"` + UrgentMaterialId string `json:"UrgentMaterialId" xml:"UrgentMaterialId"` + UrgentImageId string `json:"UrgentImageId" xml:"UrgentImageId"` + UrgentImageUrl string `json:"UrgentImageUrl" xml:"UrgentImageUrl"` + CallbackUrl string `json:"CallbackUrl" xml:"CallbackUrl"` + ProgramName string `json:"ProgramName" xml:"ProgramName"` + CasterName string `json:"CasterName" xml:"CasterName"` + CasterId string `json:"CasterId" xml:"CasterId"` + ProgramEffect int `json:"ProgramEffect" xml:"ProgramEffect"` + ChannelEnable int `json:"ChannelEnable" xml:"ChannelEnable"` + DomainName string `json:"DomainName" xml:"DomainName"` + RequestId string `json:"RequestId" xml:"RequestId"` + SideOutputUrlList string `json:"SideOutputUrlList" xml:"SideOutputUrlList"` + SideOutputUrl string `json:"SideOutputUrl" xml:"SideOutputUrl"` + AutoSwitchUrgentOn string `json:"AutoSwitchUrgentOn" xml:"AutoSwitchUrgentOn"` + AutoSwitchUrgentConfig string `json:"AutoSwitchUrgentConfig" xml:"AutoSwitchUrgentConfig"` + TranscodeConfig TranscodeConfig `json:"TranscodeConfig" xml:"TranscodeConfig"` + RecordConfig RecordConfig `json:"RecordConfig" xml:"RecordConfig"` + SyncGroupsConfig SyncGroupsConfig `json:"SyncGroupsConfig" xml:"SyncGroupsConfig"` } // CreateDescribeCasterConfigRequest creates a request to invoke DescribeCasterConfig API diff --git a/services/live/describe_domain_usage_data.go b/services/live/describe_domain_usage_data.go index f25a024c47..b23accac9c 100644 --- a/services/live/describe_domain_usage_data.go +++ b/services/live/describe_domain_usage_data.go @@ -85,14 +85,14 @@ type DescribeDomainUsageDataRequest struct { // DescribeDomainUsageDataResponse is the response struct for api DescribeDomainUsageData type DescribeDomainUsageDataResponse struct { *responses.BaseResponse - EndTime string `json:"EndTime" xml:"EndTime"` - Type string `json:"Type" xml:"Type"` - StartTime string `json:"StartTime" xml:"StartTime"` - RequestId string `json:"RequestId" xml:"RequestId"` - Area string `json:"Area" xml:"Area"` - DomainName string `json:"DomainName" xml:"DomainName"` - DataInterval string `json:"DataInterval" xml:"DataInterval"` - UsageDataPerInterval UsageDataPerInterval `json:"UsageDataPerInterval" xml:"UsageDataPerInterval"` + EndTime string `json:"EndTime" xml:"EndTime"` + Type string `json:"Type" xml:"Type"` + StartTime string `json:"StartTime" xml:"StartTime"` + RequestId string `json:"RequestId" xml:"RequestId"` + Area string `json:"Area" xml:"Area"` + DomainName string `json:"DomainName" xml:"DomainName"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + UsageDataPerInterval UsageDataPerIntervalInDescribeDomainUsageData `json:"UsageDataPerInterval" xml:"UsageDataPerInterval"` } // CreateDescribeDomainUsageDataRequest creates a request to invoke DescribeDomainUsageData API diff --git a/services/live/describe_live_domain_log_ex_ttl.go b/services/live/describe_live_domain_log_ex_ttl.go new file mode 100644 index 0000000000..adc53b997a --- /dev/null +++ b/services/live/describe_live_domain_log_ex_ttl.go @@ -0,0 +1,107 @@ +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" +) + +// DescribeLiveDomainLogExTtl invokes the live.DescribeLiveDomainLogExTtl API synchronously +func (client *Client) DescribeLiveDomainLogExTtl(request *DescribeLiveDomainLogExTtlRequest) (response *DescribeLiveDomainLogExTtlResponse, err error) { + response = CreateDescribeLiveDomainLogExTtlResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveDomainLogExTtlWithChan invokes the live.DescribeLiveDomainLogExTtl API asynchronously +func (client *Client) DescribeLiveDomainLogExTtlWithChan(request *DescribeLiveDomainLogExTtlRequest) (<-chan *DescribeLiveDomainLogExTtlResponse, <-chan error) { + responseChan := make(chan *DescribeLiveDomainLogExTtlResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveDomainLogExTtl(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveDomainLogExTtlWithCallback invokes the live.DescribeLiveDomainLogExTtl API asynchronously +func (client *Client) DescribeLiveDomainLogExTtlWithCallback(request *DescribeLiveDomainLogExTtlRequest, callback func(response *DescribeLiveDomainLogExTtlResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveDomainLogExTtlResponse + var err error + defer close(result) + response, err = client.DescribeLiveDomainLogExTtl(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveDomainLogExTtlRequest is the request struct for api DescribeLiveDomainLogExTtl +type DescribeLiveDomainLogExTtlRequest struct { + *requests.RpcRequest + StartTime string `position:"Query" name:"StartTime"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + LogType string `position:"Query" name:"LogType"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLiveDomainLogExTtlResponse is the response struct for api DescribeLiveDomainLogExTtl +type DescribeLiveDomainLogExTtlResponse struct { + *responses.BaseResponse + DomainName string `json:"DomainName" xml:"DomainName"` + RequestId string `json:"RequestId" xml:"RequestId"` + DomainLogDetails DomainLogDetailsInDescribeLiveDomainLogExTtl `json:"DomainLogDetails" xml:"DomainLogDetails"` +} + +// CreateDescribeLiveDomainLogExTtlRequest creates a request to invoke DescribeLiveDomainLogExTtl API +func CreateDescribeLiveDomainLogExTtlRequest() (request *DescribeLiveDomainLogExTtlRequest) { + request = &DescribeLiveDomainLogExTtlRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveDomainLogExTtl", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeLiveDomainLogExTtlResponse creates a response to parse from DescribeLiveDomainLogExTtl response +func CreateDescribeLiveDomainLogExTtlResponse() (response *DescribeLiveDomainLogExTtlResponse) { + response = &DescribeLiveDomainLogExTtlResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/describe_live_grtn_traffic_usage.go b/services/live/describe_live_grtn_traffic_usage.go new file mode 100644 index 0000000000..7ccec79570 --- /dev/null +++ b/services/live/describe_live_grtn_traffic_usage.go @@ -0,0 +1,111 @@ +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" +) + +// DescribeLiveGrtnTrafficUsage invokes the live.DescribeLiveGrtnTrafficUsage API synchronously +func (client *Client) DescribeLiveGrtnTrafficUsage(request *DescribeLiveGrtnTrafficUsageRequest) (response *DescribeLiveGrtnTrafficUsageResponse, err error) { + response = CreateDescribeLiveGrtnTrafficUsageResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveGrtnTrafficUsageWithChan invokes the live.DescribeLiveGrtnTrafficUsage API asynchronously +func (client *Client) DescribeLiveGrtnTrafficUsageWithChan(request *DescribeLiveGrtnTrafficUsageRequest) (<-chan *DescribeLiveGrtnTrafficUsageResponse, <-chan error) { + responseChan := make(chan *DescribeLiveGrtnTrafficUsageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveGrtnTrafficUsage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveGrtnTrafficUsageWithCallback invokes the live.DescribeLiveGrtnTrafficUsage API asynchronously +func (client *Client) DescribeLiveGrtnTrafficUsageWithCallback(request *DescribeLiveGrtnTrafficUsageRequest, callback func(response *DescribeLiveGrtnTrafficUsageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveGrtnTrafficUsageResponse + var err error + defer close(result) + response, err = client.DescribeLiveGrtnTrafficUsage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveGrtnTrafficUsageRequest is the request struct for api DescribeLiveGrtnTrafficUsage +type DescribeLiveGrtnTrafficUsageRequest struct { + *requests.RpcRequest + StartTime string `position:"Query" name:"StartTime"` + Area string `position:"Query" name:"Area"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Field string `position:"Query" name:"Field"` + AppId string `position:"Query" name:"AppId"` + Interval string `position:"Query" name:"Interval"` +} + +// DescribeLiveGrtnTrafficUsageResponse is the response struct for api DescribeLiveGrtnTrafficUsage +type DescribeLiveGrtnTrafficUsageResponse struct { + *responses.BaseResponse + EndTime string `json:"EndTime" xml:"EndTime"` + StartTime string `json:"StartTime" xml:"StartTime"` + RequestId string `json:"RequestId" xml:"RequestId"` + Filed string `json:"Filed" xml:"Filed"` + AppId string `json:"AppId" xml:"AppId"` + Area string `json:"Area" xml:"Area"` + UsageDataPerInterval UsageDataPerIntervalInDescribeLiveGrtnTrafficUsage `json:"UsageDataPerInterval" xml:"UsageDataPerInterval"` +} + +// CreateDescribeLiveGrtnTrafficUsageRequest creates a request to invoke DescribeLiveGrtnTrafficUsage API +func CreateDescribeLiveGrtnTrafficUsageRequest() (request *DescribeLiveGrtnTrafficUsageRequest) { + request = &DescribeLiveGrtnTrafficUsageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveGrtnTrafficUsage", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeLiveGrtnTrafficUsageResponse creates a response to parse from DescribeLiveGrtnTrafficUsage response +func CreateDescribeLiveGrtnTrafficUsageResponse() (response *DescribeLiveGrtnTrafficUsageResponse) { + response = &DescribeLiveGrtnTrafficUsageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/describe_live_stream_transcode_metric_data.go b/services/live/describe_live_stream_transcode_metric_data.go new file mode 100644 index 0000000000..4b9f43c14b --- /dev/null +++ b/services/live/describe_live_stream_transcode_metric_data.go @@ -0,0 +1,111 @@ +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" +) + +// DescribeLiveStreamTranscodeMetricData invokes the live.DescribeLiveStreamTranscodeMetricData API synchronously +func (client *Client) DescribeLiveStreamTranscodeMetricData(request *DescribeLiveStreamTranscodeMetricDataRequest) (response *DescribeLiveStreamTranscodeMetricDataResponse, err error) { + response = CreateDescribeLiveStreamTranscodeMetricDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamTranscodeMetricDataWithChan invokes the live.DescribeLiveStreamTranscodeMetricData API asynchronously +func (client *Client) DescribeLiveStreamTranscodeMetricDataWithChan(request *DescribeLiveStreamTranscodeMetricDataRequest) (<-chan *DescribeLiveStreamTranscodeMetricDataResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamTranscodeMetricDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamTranscodeMetricData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamTranscodeMetricDataWithCallback invokes the live.DescribeLiveStreamTranscodeMetricData API asynchronously +func (client *Client) DescribeLiveStreamTranscodeMetricDataWithCallback(request *DescribeLiveStreamTranscodeMetricDataRequest, callback func(response *DescribeLiveStreamTranscodeMetricDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamTranscodeMetricDataResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamTranscodeMetricData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamTranscodeMetricDataRequest is the request struct for api DescribeLiveStreamTranscodeMetricData +type DescribeLiveStreamTranscodeMetricDataRequest struct { + *requests.RpcRequest + NextPageToken string `position:"Query" name:"NextPageToken"` + StartTime string `position:"Query" name:"StartTime"` + AppName string `position:"Query" name:"AppName"` + StreamName string `position:"Query" name:"StreamName"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLiveStreamTranscodeMetricDataResponse is the response struct for api DescribeLiveStreamTranscodeMetricData +type DescribeLiveStreamTranscodeMetricDataResponse struct { + *responses.BaseResponse + EndTime string `json:"EndTime" xml:"EndTime"` + StartTime string `json:"StartTime" xml:"StartTime"` + RequestId string `json:"RequestId" xml:"RequestId"` + NextPageToken string `json:"NextPageToken" xml:"NextPageToken"` + PageSize int `json:"PageSize" xml:"PageSize"` + DomainName string `json:"DomainName" xml:"DomainName"` + StreamDetailData StreamDetailDataInDescribeLiveStreamTranscodeMetricData `json:"StreamDetailData" xml:"StreamDetailData"` +} + +// CreateDescribeLiveStreamTranscodeMetricDataRequest creates a request to invoke DescribeLiveStreamTranscodeMetricData API +func CreateDescribeLiveStreamTranscodeMetricDataRequest() (request *DescribeLiveStreamTranscodeMetricDataRequest) { + request = &DescribeLiveStreamTranscodeMetricDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveStreamTranscodeMetricData", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeLiveStreamTranscodeMetricDataResponse creates a response to parse from DescribeLiveStreamTranscodeMetricData response +func CreateDescribeLiveStreamTranscodeMetricDataResponse() (response *DescribeLiveStreamTranscodeMetricDataResponse) { + response = &DescribeLiveStreamTranscodeMetricDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/set_caster_config.go b/services/live/set_caster_config.go index 243ff1ac9a..18222b3138 100644 --- a/services/live/set_caster_config.go +++ b/services/live/set_caster_config.go @@ -71,24 +71,26 @@ func (client *Client) SetCasterConfigWithCallback(request *SetCasterConfigReques // SetCasterConfigRequest is the request struct for api SetCasterConfig type SetCasterConfigRequest struct { *requests.RpcRequest - ChannelEnable requests.Integer `position:"Query" name:"ChannelEnable"` - ProgramEffect requests.Integer `position:"Query" name:"ProgramEffect"` - ProgramName string `position:"Query" name:"ProgramName"` - UrgentImageUrl string `position:"Query" name:"UrgentImageUrl"` - RecordConfig string `position:"Query" name:"RecordConfig"` - UrgentMaterialId string `position:"Query" name:"UrgentMaterialId"` - TranscodeConfig string `position:"Query" name:"TranscodeConfig"` - CasterName string `position:"Query" name:"CasterName"` - UrgentLiveStreamUrl string `position:"Query" name:"UrgentLiveStreamUrl"` - SideOutputUrl string `position:"Query" name:"SideOutputUrl"` - SyncGroupsConfig string `position:"Query" name:"SyncGroupsConfig"` - SideOutputUrlList string `position:"Query" name:"SideOutputUrlList"` - CasterId string `position:"Query" name:"CasterId"` - DomainName string `position:"Query" name:"DomainName"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Delay requests.Float `position:"Query" name:"Delay"` - UrgentImageId string `position:"Query" name:"UrgentImageId"` - CallbackUrl string `position:"Query" name:"CallbackUrl"` + ChannelEnable requests.Integer `position:"Query" name:"ChannelEnable"` + ProgramEffect requests.Integer `position:"Query" name:"ProgramEffect"` + ProgramName string `position:"Query" name:"ProgramName"` + UrgentImageUrl string `position:"Query" name:"UrgentImageUrl"` + RecordConfig string `position:"Query" name:"RecordConfig"` + UrgentMaterialId string `position:"Query" name:"UrgentMaterialId"` + TranscodeConfig string `position:"Query" name:"TranscodeConfig"` + CasterName string `position:"Query" name:"CasterName"` + AutoSwitchUrgentOn requests.Boolean `position:"Query" name:"AutoSwitchUrgentOn"` + AutoSwitchUrgentConfig string `position:"Query" name:"AutoSwitchUrgentConfig"` + UrgentLiveStreamUrl string `position:"Query" name:"UrgentLiveStreamUrl"` + SideOutputUrl string `position:"Query" name:"SideOutputUrl"` + SyncGroupsConfig string `position:"Query" name:"SyncGroupsConfig"` + SideOutputUrlList string `position:"Query" name:"SideOutputUrlList"` + CasterId string `position:"Query" name:"CasterId"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Delay requests.Float `position:"Query" name:"Delay"` + UrgentImageId string `position:"Query" name:"UrgentImageId"` + CallbackUrl string `position:"Query" name:"CallbackUrl"` } // SetCasterConfigResponse is the response struct for api SetCasterConfig diff --git a/services/live/struct_domain_log_details_in_describe_live_domain_log_ex_ttl.go b/services/live/struct_domain_log_details_in_describe_live_domain_log_ex_ttl.go new file mode 100644 index 0000000000..3ac509a850 --- /dev/null +++ b/services/live/struct_domain_log_details_in_describe_live_domain_log_ex_ttl.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. + +// DomainLogDetailsInDescribeLiveDomainLogExTtl is a nested struct in live response +type DomainLogDetailsInDescribeLiveDomainLogExTtl struct { + DomainLogDetail []DomainLogDetail `json:"DomainLogDetail" xml:"DomainLogDetail"` +} diff --git a/services/live/struct_log_infos_in_describe_live_domain_log_ex_ttl.go b/services/live/struct_log_infos_in_describe_live_domain_log_ex_ttl.go new file mode 100644 index 0000000000..d3bc58d60b --- /dev/null +++ b/services/live/struct_log_infos_in_describe_live_domain_log_ex_ttl.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. + +// LogInfosInDescribeLiveDomainLogExTtl is a nested struct in live response +type LogInfosInDescribeLiveDomainLogExTtl struct { + LogInfoDetail []LogInfoDetail `json:"LogInfoDetail" xml:"LogInfoDetail"` +} diff --git a/services/live/struct_stream_data.go b/services/live/struct_stream_data.go index 5a9c8fb44c..ef5ca58ae4 100644 --- a/services/live/struct_stream_data.go +++ b/services/live/struct_stream_data.go @@ -17,31 +17,35 @@ package live // StreamData is a nested struct in live response type StreamData struct { - MediaProfile string `json:"MediaProfile" xml:"MediaProfile"` - RtsTraffic int64 `json:"RtsTraffic" xml:"RtsTraffic"` - RtmpTraffic int64 `json:"RtmpTraffic" xml:"RtmpTraffic"` - HlsCount int64 `json:"HlsCount" xml:"HlsCount"` - HlsTraffic int64 `json:"HlsTraffic" xml:"HlsTraffic"` - ReqBps float64 `json:"ReqBps" xml:"ReqBps"` - MediaType string `json:"MediaType" xml:"MediaType"` - P2pTraffic int64 `json:"P2pTraffic" xml:"P2pTraffic"` - StreamName string `json:"StreamName" xml:"StreamName"` - RtsCount int64 `json:"RtsCount" xml:"RtsCount"` - RtmpCount int64 `json:"RtmpCount" xml:"RtmpCount"` - FlvCount int64 `json:"FlvCount" xml:"FlvCount"` - TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` - RtsBps float64 `json:"RtsBps" xml:"RtsBps"` - FlvBps float64 `json:"FlvBps" xml:"FlvBps"` - Duration int64 `json:"Duration" xml:"Duration"` - FlvTraffic int64 `json:"FlvTraffic" xml:"FlvTraffic"` - RtmpBps float64 `json:"RtmpBps" xml:"RtmpBps"` - Bps float64 `json:"Bps" xml:"Bps"` - AppId string `json:"AppId" xml:"AppId"` - P2pCount int64 `json:"P2pCount" xml:"P2pCount"` - ReqTraffic int64 `json:"ReqTraffic" xml:"ReqTraffic"` - HlsBps float64 `json:"HlsBps" xml:"HlsBps"` - P2pBps float64 `json:"P2pBps" xml:"P2pBps"` - Count int64 `json:"Count" xml:"Count"` - Traffic int64 `json:"Traffic" xml:"Traffic"` - AppName string `json:"AppName" xml:"AppName"` + Region string `json:"Region" xml:"Region"` + MediaProfile string `json:"MediaProfile" xml:"MediaProfile"` + RtsTraffic int64 `json:"RtsTraffic" xml:"RtsTraffic"` + Fps string `json:"Fps" xml:"Fps"` + RtmpTraffic int64 `json:"RtmpTraffic" xml:"RtmpTraffic"` + HlsCount int64 `json:"HlsCount" xml:"HlsCount"` + HlsTraffic int64 `json:"HlsTraffic" xml:"HlsTraffic"` + ReqBps float64 `json:"ReqBps" xml:"ReqBps"` + MediaType string `json:"MediaType" xml:"MediaType"` + P2pTraffic int64 `json:"P2pTraffic" xml:"P2pTraffic"` + StreamName string `json:"StreamName" xml:"StreamName"` + RtsCount int64 `json:"RtsCount" xml:"RtsCount"` + RtmpCount int64 `json:"RtmpCount" xml:"RtmpCount"` + TranscodeType string `json:"TranscodeType" xml:"TranscodeType"` + FlvCount int64 `json:"FlvCount" xml:"FlvCount"` + TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` + RtsBps float64 `json:"RtsBps" xml:"RtsBps"` + FlvBps float64 `json:"FlvBps" xml:"FlvBps"` + Duration int64 `json:"Duration" xml:"Duration"` + FlvTraffic int64 `json:"FlvTraffic" xml:"FlvTraffic"` + RtmpBps float64 `json:"RtmpBps" xml:"RtmpBps"` + Bps float64 `json:"Bps" xml:"Bps"` + AppId string `json:"AppId" xml:"AppId"` + P2pCount int64 `json:"P2pCount" xml:"P2pCount"` + ReqTraffic int64 `json:"ReqTraffic" xml:"ReqTraffic"` + Resolution string `json:"Resolution" xml:"Resolution"` + HlsBps float64 `json:"HlsBps" xml:"HlsBps"` + P2pBps float64 `json:"P2pBps" xml:"P2pBps"` + Count int64 `json:"Count" xml:"Count"` + Traffic int64 `json:"Traffic" xml:"Traffic"` + AppName string `json:"AppName" xml:"AppName"` } diff --git a/services/live/struct_stream_detail_data_in_describe_live_stream_transcode_metric_data.go b/services/live/struct_stream_detail_data_in_describe_live_stream_transcode_metric_data.go new file mode 100644 index 0000000000..04f0f3bf61 --- /dev/null +++ b/services/live/struct_stream_detail_data_in_describe_live_stream_transcode_metric_data.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. + +// StreamDetailDataInDescribeLiveStreamTranscodeMetricData is a nested struct in live response +type StreamDetailDataInDescribeLiveStreamTranscodeMetricData struct { + StreamData []StreamData `json:"StreamData" xml:"StreamData"` +} diff --git a/services/live/struct_usage_data_in_describe_live_grtn_traffic_usage.go b/services/live/struct_usage_data_in_describe_live_grtn_traffic_usage.go new file mode 100644 index 0000000000..a488ef0f37 --- /dev/null +++ b/services/live/struct_usage_data_in_describe_live_grtn_traffic_usage.go @@ -0,0 +1,22 @@ +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. + +// UsageDataInDescribeLiveGrtnTrafficUsage is a nested struct in live response +type UsageDataInDescribeLiveGrtnTrafficUsage struct { + Value string `json:"Value" xml:"Value"` + TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` +} diff --git a/services/live/struct_usage_data_per_interval.go b/services/live/struct_usage_data_per_interval_in_describe_domain_usage_data.go similarity index 84% rename from services/live/struct_usage_data_per_interval.go rename to services/live/struct_usage_data_per_interval_in_describe_domain_usage_data.go index e925f72459..d2b007696d 100644 --- a/services/live/struct_usage_data_per_interval.go +++ b/services/live/struct_usage_data_per_interval_in_describe_domain_usage_data.go @@ -15,7 +15,7 @@ package live // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// UsageDataPerInterval is a nested struct in live response -type UsageDataPerInterval struct { +// UsageDataPerIntervalInDescribeDomainUsageData is a nested struct in live response +type UsageDataPerIntervalInDescribeDomainUsageData struct { DataModule []DataModule `json:"DataModule" xml:"DataModule"` } diff --git a/services/live/struct_usage_data_per_interval_in_describe_live_grtn_traffic_usage.go b/services/live/struct_usage_data_per_interval_in_describe_live_grtn_traffic_usage.go new file mode 100644 index 0000000000..422e55798a --- /dev/null +++ b/services/live/struct_usage_data_per_interval_in_describe_live_grtn_traffic_usage.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. + +// UsageDataPerIntervalInDescribeLiveGrtnTrafficUsage is a nested struct in live response +type UsageDataPerIntervalInDescribeLiveGrtnTrafficUsage struct { + UsageData []UsageDataInDescribeLiveGrtnTrafficUsage `json:"UsageData" xml:"UsageData"` +}