增加应用探针

  • 请求URL:

  • /v2/tenants/{tenant_name}/services/{service_alias}/probe

  • 简要描述

  • 增加应用探针, add probe

  • 请求方式:

  • POST

  • 参数:
参数名参数位置必选类型说明
tenant_namepathTruestring-
service_aliaspathTruestring-
pathbodyFalsestringpath
period_secondbodyFalseinteger检测间隔时间, 默认为3
probe_idbodyTruestring探针id
success_thresholdbodyFalseinteger标志为成功的检测次数
failure_thresholdbodyFalseinteger标志为失败的检测次数
http_headerbodyFalsestringhttp请求头,key=value,key2=value2
initial_delay_secondbodyFalseinteger初始化等候时间, 默认为1
is_usedbodyFalseinteger是否启用
modebodyFalsestringmode
portbodyFalseinteger端口, 默认为80
schemebodyFalsestringmode
timeout_secondbodyFalseinteger检测超时时间, 默认为30
cmdbodyFalsestring运行命令