mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-06 13:48:08 +08:00
46 lines
1.2 KiB
Go
46 lines
1.2 KiB
Go
package model
|
|
|
|
//AddServiceMonitorRequestStruct add service monitor request
|
|
type AddServiceMonitorRequestStruct struct {
|
|
// name
|
|
// in: body
|
|
// required: true
|
|
Name string `json:"name" validate:"name|required"`
|
|
// service_show_name
|
|
// in: body
|
|
// required: true
|
|
ServiceShowName string `json:"service_show_name" validate:"service_show_name|required"`
|
|
// port
|
|
// in: body
|
|
// required: true
|
|
Port int `json:"port" validate:"port|required"`
|
|
// path
|
|
// in: body
|
|
// required: true
|
|
Path string `json:"path" validate:"path|required"`
|
|
// interval
|
|
// in: body
|
|
// required: true
|
|
Interval string `json:"interval" validate:"interval|required"`
|
|
}
|
|
|
|
//UpdateServiceMonitorRequestStruct update service monitor request
|
|
type UpdateServiceMonitorRequestStruct struct {
|
|
// service_show_name
|
|
// in: body
|
|
// required: true
|
|
ServiceShowName string `json:"service_show_name" validate:"service_show_name|required"`
|
|
// port
|
|
// in: body
|
|
// required: true
|
|
Port int `json:"port" validate:"port|required"`
|
|
// path
|
|
// in: body
|
|
// required: true
|
|
Path string `json:"path" validate:"path|required"`
|
|
// interval
|
|
// in: body
|
|
// required: true
|
|
Interval string `json:"interval" validate:"interval|required"`
|
|
}
|