Documentation ¶
Index ¶
- func Zerologger(skipPatterns [][]string) echo.MiddlewareFunc
- type AntResponse
- type AntServer
- type AwsAdditionalInfoReq
- type CostResourceReq
- type GetAllLoadGeneratorInstallInfoReq
- type GetAllLoadTestExecutionHistoryReq
- type GetAllLoadTestExecutionStateReq
- type GetAllMonitoringAgentInfosReq
- type GetEstimateCostInfosReq
- type GetEstimateForecastCostReq
- type GetLastLoadTestExecutionStateReq
- type GetLastLoadTestResultReq
- type GetLoadTestResultReq
- type InstallLoadGeneratorReq
- type JsonResult
- type MonitoringAgentInstallationReq
- type RunLoadGeneratorHttpReq
- type RunLoadTestReq
- type StopLoadTestReq
- type UpdateAndGetEstimateCostReq
- type UpdateEstimateForecastCostRawReq
- type UpdateEstimateForecastCostReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Zerologger ¶ added in v0.2.4
func Zerologger(skipPatterns [][]string) echo.MiddlewareFunc
Types ¶
type AntResponse ¶
type AntServer ¶
type AntServer struct {
// contains filtered or unexported fields
}
AntServer represents the server instance for the CM-Ant application. It contains an Echo instance for handling HTTP requests and multiple services for validating the core functionality of cloud migration.
func NewAntServer ¶
NewAntServer initializes and returns a new instance of AntServer.
func (*AntServer) InitRouter ¶
type AwsAdditionalInfoReq ¶ added in v0.2.2
type CostResourceReq ¶ added in v0.2.2
type CostResourceReq struct { ResourceType constant.ResourceType `json:"resourceType"` ResourceIds []string `json:"resourceIds"` }
type GetAllLoadTestExecutionStateReq ¶
type GetAllLoadTestExecutionStateReq struct { Page int `query:"page"` Size int `query:"size"` LoadTestKey string `query:"loadTestKey"` ExecutionStatus constant.ExecutionStatus `query:"executionStatus"` }
type GetEstimateCostInfosReq ¶ added in v0.2.4
type GetEstimateCostInfosReq struct { ProviderName string `query:"providerName" validate:"required"` RegionName string `query:"regionName" validate:"required"` InstanceType string `query:"instanceType"` VCpu string `query:"vCpu"` Memory string `query:"memory"` OsType string `query:"osType"` Page int `query:"page"` Size int `query:"size"` }
type GetEstimateForecastCostReq ¶ added in v0.2.4
type GetEstimateForecastCostReq struct { Page int `query:"page"` Size int `query:"size"` StartDate string `query:"startDate" validate:"required"` EndDate string `query:"endDate" validate:"required"` NsIds []string `query:"nsIds"` MciIds []string `query:"mciIds"` Providers []string `query:"provider"` ResourceTypes []constant.ResourceType `query:"resourceTypes"` ResourceIds []string `query:"resourceIds"` CostAggregationType constant.CostAggregationType `query:"costAggregationType" validate:"required"` DateOrder constant.OrderType `query:"dateOrder"` ResourceTypeOrder constant.OrderType `query:"resourceTypeOrder"` }
type GetLastLoadTestExecutionStateReq ¶ added in v0.2.4
type GetLastLoadTestResultReq ¶ added in v0.2.6
type GetLastLoadTestResultReq struct { NsId string `query:"nsId"` MciId string `query:"mciId"` VmId string `query:"vmId"` Format constant.ResultFormat `query:"format"` }
type GetLoadTestResultReq ¶
type GetLoadTestResultReq struct { LoadTestKey string `query:"loadTestKey"` Format constant.ResultFormat `query:"format"` }
type InstallLoadGeneratorReq ¶
type InstallLoadGeneratorReq struct {
InstallLocation constant.InstallLocation `json:"installLocation"`
}
type RunLoadGeneratorHttpReq ¶
type RunLoadGeneratorHttpReq struct { Method string `json:"method" validate:"required"` // GET or POST Protocol string `json:"protocol" validate:"required"` // http or https Hostname string `json:"hostname,omitempty" validate:"required"` // xx.xx.xx.xx or asx.bbb.com Port string `json:"port,omitempty" validate:"required"` // 1 ~ 65353 Path string `json:"path,omitempty" validate:"required"` // /xxx/www/sss or possibly empty BodyData string `json:"bodyData,omitempty" validate:"required"` // {"xxx": "tttt", "wwwww": "wotjkenr"} }
type RunLoadTestReq ¶
type RunLoadTestReq struct { // localhost for installing load generator; local | remote InstallLoadGenerator InstallLoadGeneratorReq `json:"installLoadGenerator"` // if already installed load generator simply put this field LoadGeneratorInstallInfoId uint `json:"loadGeneratorInstallInfoId"` // test scenario TestName string `json:"testName"` VirtualUsers string `json:"virtualUsers"` Duration string `json:"duration"` RampUpTime string `json:"rampUpTime"` RampUpSteps string `json:"rampUpSteps"` // for validate agent host and connect to tumblebug resources NsId string `json:"nsId"` // for metadata usage MciId string `json:"mciId"` // for metadata usage VmId string `json:"vmId"` // for metadata usage // agent tcp default port is 5555 CollectAdditionalSystemMetrics bool `json:"collectAdditionalSystemMetrics"` AgentHostname string `json:"agentHostname"` // basically, it is same as host for vm HttpReqs []RunLoadGeneratorHttpReq `json:"httpReqs,omitempty"` }
type StopLoadTestReq ¶
type UpdateAndGetEstimateCostReq ¶ added in v0.2.4
type UpdateAndGetEstimateCostReq struct { Specs []struct { ProviderName string `json:"providerName" validate:"required"` RegionName string `json:"regionName" validate:"required"` InstanceType string `json:"instanceType" validate:"required"` Image string `json:"image"` } `json:"specs"` SpecsWithFormat []struct { CommonSpec string `json:"commonSpec" validate:"required"` CommonImage string `json:"commonImage"` } `json:"specsWithFormat"` }
type UpdateEstimateForecastCostRawReq ¶ added in v0.2.4
type UpdateEstimateForecastCostRawReq struct { CostResources []CostResourceReq `json:"costResources" validate:"required"` AwsAdditionalInfo AwsAdditionalInfoReq `json:"awsAdditionalInfo"` }
type UpdateEstimateForecastCostReq ¶ added in v0.2.4
Click to show internal directories.
Click to hide internal directories.