Rainbond/api/model/service_monitor.go
2020-09-19 17:17:28 +08:00

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"`
}