Lista todas as tarefas de teste de estresse implantadas.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
eas:ListBenchmarkTask |
list |
*BenchmarkTask
|
Nenhuma | Nenhuma |
Sintaxe da solicitação
GET /api/v2/benchmark-tasks HTTP/1.1
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| Filter |
string |
Não |
O filtro usado para consultar tarefas. Se você especificar este parâmetro, o sistema retorna tarefas cujos nomes ou nomes de serviço associados correspondem ao valor do filtro. |
test_bench |
| Sort |
string |
Não |
||
| Order |
string |
Não |
||
| ServiceName |
string |
Não |
O nome do serviço Elastic Algorithm Service (EAS) que corresponde à tarefa de teste de estresse. Para mais informações sobre como consultar o nome do serviço, consulte ListServices. |
test_bench_srv |
| Status |
string |
Não |
||
| ModelId |
string |
Não |
||
| RequestMethod |
string |
Não |
||
| PageNumber |
string |
Não |
The page number. Pages start from page 1. Default value: 1. |
1 |
| PageSize |
string |
Não |
The name of the Elastic Algorithm Service (EAS) service that corresponds to the stress testing task. For more information about how to query the service name, see ListServices. |
10 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
A resposta. |
||
| RequestId |
string |
O ID da solicitação. |
40325405-579C-4D82**** |
| Tasks |
array<object> |
A lista de tarefas. |
|
|
object |
Os detalhes da tarefa. |
||
| TaskName |
string |
O nome da tarefa de teste de estresse. |
benchmark-larec-test-1076 |
| TaskId |
string |
O ID da tarefa de teste de estresse. |
eas-b-gv4y86uvgt****i |
| ServiceName |
string |
O nome do serviço a ser submetido ao teste de estresse. |
test_quota |
| Region |
string |
A região onde a tarefa de teste de estresse está localizada. |
cn-shanghai |
| AvailableAgent |
integer |
O número de instâncias de teste de estresse disponíveis. |
2 |
| Status |
string |
O status da tarefa de teste de estresse. Valores válidos:
|
Running |
| Message |
string |
Um resumo da tarefa. |
Benchmark task [benchmark-larec-test-1076] is Running |
| CreateTime |
string |
A hora em que a tarefa de teste de estresse foi criada. |
2020-02-04T02:43:15Z |
| UpdateTime |
string |
A hora em que a tarefa de teste de estresse foi atualizada pela última vez. |
2020-06-24T03:11:30Z |
| TotalCount |
integer |
O número total de tarefas. |
1 |
| PageNumber |
integer |
O número da página da lista de tarefas retornada. |
1 |
| PageSize |
integer |
O número de tarefas a serem retornadas em cada página. |
20 |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "40325405-579C-4D82****",
"Tasks": [
{
"TaskName": "benchmark-larec-test-1076",
"TaskId": "eas-b-gv4y86uvgt****i",
"ServiceName": "test_quota",
"Region": "cn-shanghai",
"AvailableAgent": 2,
"Status": "Running",
"Message": "Benchmark task [benchmark-larec-test-1076] is Running",
"CreateTime": "2020-02-04T02:43:15Z",
"UpdateTime": "2020-06-24T03:11:30Z"
}
],
"TotalCount": 1,
"PageNumber": 1,
"PageSize": 20
}
Códigos de erro
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.