Consulta registros online de recuperação de desastres de fluxo duplo.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
live:QueryLiveDomainMultiStreamList |
get |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| Domain |
string |
Sim |
O domínio de streaming principal. |
demo.aliyundoc.com |
| StreamName |
string |
Não |
O nome do stream ao vivo. Este parâmetro é usado para filtragem por correspondência exata. |
teststream |
| StartTime |
string |
Não |
O horário de início do intervalo de consulta. Especifique o horário no formato yyyy-MM-ddTHH:mm:ssZ (horário UTC). O intervalo entre StartTime e EndTime deve ser de no máximo 7 dias. |
2024-12-01T01:00:00Z |
| EndTime |
string |
Não |
O horário de término. Especifique o horário no formato yyyy-MM-ddTHH:mm:ssZ (horário UTC). O horário de término deve ser posterior ao horário de início. O intervalo entre o horário de início e o horário de término não pode exceder 7 dias. Valor padrão: as últimas 24 horas. |
2024-12-02T01:00:00Z |
| PageNumber |
integer |
Não |
O número da página. Valor padrão: 1. |
1 |
| PageSize |
integer |
Não |
O número de entradas por página. Valor padrão: 10. Valores válidos: 1 a 100. |
10 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Schema da resposta. |
||
| RequestId |
string |
O ID da solicitação. |
CF60DB6A-7FD6-426E-9288-122CC1A5**** |
| PageNumber |
integer |
O número da página atual. |
1 |
| PageSize |
integer |
O número de entradas por página. |
10 |
| TotalCount |
integer |
O número total de entradas. |
19 |
| OnlineStreams |
array<object> |
O número de registros online. |
|
|
array<object> |
|||
| Domain |
string |
O domínio de streaming do streamer. |
play.***.com |
| AppName |
string |
O nome da aplicação. |
apptest |
| StreamName |
string |
O nome do stream ao vivo. |
teststream |
| OptimalMode |
string |
O switch de funcionalidade. Valores válidos:
Valores válidos:
|
on |
| UpstreamList |
array<object> |
A lista de todos os streams candidatos. |
|
|
object |
|||
| UpstreamSequence |
string |
The unique identifier of the ingest stream. |
***test_Alirewrite1 |
| UpstreamIp |
string |
The IP address of the ingest client. |
1.1.1.1 |
| UpstreamTime |
string |
The stream ingest time. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format (UTC+0). |
2024-11-13T09:20:47Z |
| MasterFlag |
boolean |
The primary/secondary flag. Nota
Indicates which stream is currently being used for merged distribution. Valores válidos:
|
false |
| ChangeLogs |
array<object> |
Os registros de alternância de stream. |
|
|
object |
|||
| ChangeTime |
string |
The stream switching time. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format (UTC+0). |
2024-11-13T09:20:47Z |
| ChangeReason |
string |
The reason for stream switching.
|
merge cut manually |
| MasterUpstream |
string |
The stream that is actually used after the switch. |
rtmp://118.178.168.35:1936/wwMultitest/pull.livetest2.aliyunlive.com_wwMultitest428_AliRewrite_2?vhost=pull.livetest2.aliyunlive.com&live_rtmp_test=on |
| UpstreamSequence |
string |
The stream identifier after the switch. |
***test_AliRewrite_2 |
| UpstreamIp |
string |
The IP address used after the stream switch. |
1.1.1.1 |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "CF60DB6A-7FD6-426E-9288-122CC1A5****",
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 19,
"OnlineStreams": [
{
"Domain": "play.***.com",
"AppName": "apptest",
"StreamName": "teststream",
"OptimalMode": "on",
"UpstreamList": [
{
"UpstreamSequence": "***test_Alirewrite1",
"UpstreamIp": "1.1.1.1",
"UpstreamTime": "2024-11-13T09:20:47Z",
"MasterFlag": false
}
],
"ChangeLogs": [
{
"ChangeTime": "2024-11-13T09:20:47Z",
"ChangeReason": "merge cut manually",
"MasterUpstream": "rtmp://118.178.168.35:1936/wwMultitest/pull.livetest2.aliyunlive.com_wwMultitest428_AliRewrite_2?vhost=pull.livetest2.aliyunlive.com&live_rtmp_test=on",
"UpstreamSequence": "***test_AliRewrite_2",
"UpstreamIp": "1.1.1.1"
}
]
}
]
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | InvalidParameter | %s. | Parameter error |
| 400 | InvalidParam.CodeIllegalDuration | %s. | The value of start time should be less than the value of end time . |
| 500 | InternalError | %s. | error on the live liveapi server. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.