Documentation
¶
Index ¶
- type AgentInstallContent
- type AgentInstallContentWrapper
- type AutoAction
- type AutoCondition
- type BenchmarkInfo
- type BenchmarkInfos
- type CheckMcisDynamicReqInfo
- type CheckVmDynamicReqInfo
- type DeploymentPlan
- type FilterCondition
- type FilterInfo
- type InspectOverview
- type InspectResource
- type InspectResourceAllResult
- type InspectResourceResult
- type McisCmdReq
- type McisConnectionConfigCandidatesReq
- type McisPolicyInfo
- type McisStatusInfo
- type McisStatusInfos
- type MonResultSimple
- type MonResultSimpleResponse
- type NetworkReq
- type Operation
- type ParameterKeyVal
- type Policies
- type Policy
- type PriorityCondition
- type PriorityInfo
- type RegionInfo
- type RegisterResourceAllResult
- type RegisterResourceResult
- type RegisterationOverview
- type ResourceCountOverview
- type ResourceOnCsp
- type ResourceOnCspInfo
- type ResourceOnSpider
- type ResourceOnSpiderInfo
- type ResourceOnTumblebug
- type ResourceOnTumblebugInfo
- type ResourcesByManageType
- type RestGetAllBenchmarkRequest
- type RestGetAllMcisPolicyResponse
- type RestGetAllMcisResponse
- type RestGetBenchmarkRequest
- type RestPostCmdMcisResponse
- type RestPostCmdMcisResponseWrapper
- type RestPostCmdMcisVmResponse
- type SpiderVMInfo
- type StatusCountInfo
- type StructElementCycle
- type TbMcisDynamicReq
- type TbMcisInfo
- type TbMcisReq
- type TbVmDynamicReq
- type TbVmInfo
- type TbVmRecommendReq
- type TbVmReq
- type TbVmStatusInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentInstallContent ¶
type AgentInstallContentWrapper ¶
type AgentInstallContentWrapper struct {
ResultArray AgentInstallContent `json:"resultArray"`
}
type AutoAction ¶
type AutoAction struct {
ActionType string `json:"actionType"`
PlacementAlgo string `json:"placementAlgo"`
PostCommand McisCmdReq `json:"postCommand"`
Vm TbVmInfo `json:"vm"`
}
type AutoCondition ¶
type BenchmarkInfo ¶
type BenchmarkInfos ¶
type BenchmarkInfos []BenchmarkInfo
type CheckMcisDynamicReqInfo ¶ added in v0.5.1
type CheckMcisDynamicReqInfo struct {
ReqCheck []CheckVmDynamicReqInfo `json:"reqCheck"`
}
type CheckVmDynamicReqInfo ¶ added in v0.5.1
type DeploymentPlan ¶
type DeploymentPlan struct {
Filter FilterInfo `json:"filter"`
Limit string `json:"limit"`
Priority PriorityInfo `json:"priority"`
}
type FilterCondition ¶
type FilterInfo ¶
type FilterInfo struct {
Policy []FilterCondition `json:"policy"`
}
type InspectOverview ¶ added in v0.5.1
type InspectResource ¶ added in v0.5.1
type InspectResource struct {
ConnectionName string `json:"connectionName"`
ResourceOverview ResourceCountOverview `json:"resourceOverview"`
ResourceType string `json:"resourceType"`
Resources ResourcesByManageType `json:"resources"`
SystemMessage string `json:"systemMessage"`
}
type InspectResourceAllResult ¶ added in v0.5.1
type InspectResourceAllResult struct {
AvailableConnection int `json:"availableConnection"`
CspOnlyOverview InspectOverview `json:"cspOnlyOverview"`
ElapsedTime int `json:"elapsedTime"`
InspectResult []InspectResourceResult `json:"inspectResult"`
RegisteredConnection int `json:"registeredConnection"`
TumblebugOverview InspectOverview `json:"tumblebugOverview"`
}
type InspectResourceResult ¶ added in v0.5.1
type InspectResourceResult struct {
ConnectionName string `json:"connectionName"`
CspOnlyOverview InspectOverview `json:"cspOnlyOverview"`
ElapsedTime int `json:"elapsedTime"`
SystemMessage string `json:"systemMessage"`
TumblebugOverview InspectOverview `json:"tumblebugOverview"`
}
type McisCmdReq ¶
type McisConnectionConfigCandidatesReq ¶ added in v0.5.1
type McisConnectionConfigCandidatesReq struct {
CommonSpec []string `json:"commonSpec"`
}
type McisPolicyInfo ¶
type McisStatusInfo ¶
type McisStatusInfo struct {
ID string `json:"id"`
InstallMonAgent string `json:"installMonAgent"` // yes, no
Label string `json:"label"`
MasterIp string `json:"masterIp"`
MasterSSHPort string `json:"masterSSHPort"`
MasterVmID string `json:"masterVmId"`
Name string `json:"name"`
Status string `json:"status"`
StatusCount StatusCountInfo `json:"statusCount"`
SystemLabel string `json:"systemLabel"`
TargetAction string `json:"targetAction"`
TargetStatus string `json:"targetStatus"`
Vm []TbVmStatusInfo `json:"vm"`
}
type McisStatusInfos ¶
type McisStatusInfos []McisStatusInfo
type MonResultSimple ¶
type MonResultSimpleResponse ¶
type MonResultSimpleResponse struct {
McisID string `json:"mcisId"`
McisMonitoring MonResultSimple `json:"mcisMonitoring"` // yes, no
NamespaceID string `json:"nsId"`
}
type NetworkReq ¶ added in v0.5.1
type ParameterKeyVal ¶
type Policy ¶
type Policy struct {
AutoAction AutoAction `json:"autoAction"`
AutoCondition AutoCondition `json:"autoCondition"`
Status string `json:"status"`
}
type PriorityCondition ¶
type PriorityCondition struct {
Metric string `json:"metric"`
Parameter []ParameterKeyVal `json:"parameter"`
Weight string `json:"weight"`
}
type PriorityInfo ¶
type PriorityInfo struct {
Policy []PriorityCondition `json:"policy"`
}
type RegionInfo ¶
type RegisterResourceAllResult ¶ added in v0.5.1
type RegisterResourceAllResult struct {
RegisterationResult []RegisterResourceResult `json:"registerationResult"`
}
type RegisterResourceResult ¶ added in v0.5.1
type RegisterResourceResult struct {
ConnectionName string `json:"connectionName"`
ElapsedTime int `json:"elapsedTime"`
RegisterationOutputs tbcommon.TbIdList `json:"registerationOutputs"`
RegisterationOverview RegisterationOverview `json:"registerationOverview"`
SystemMessage string `json:"systemMessage"`
}
type RegisterationOverview ¶ added in v0.5.1
type ResourceCountOverview ¶ added in v0.5.1
type ResourceOnCsp ¶
type ResourceOnCsp struct {
Count int `json:"count"`
Info []ResourceOnCspInfo `json:"info"`
}
ResourcesOnCsp 와 ResourcesOnSpider 가 동일하여 ResourecesOnCspOrSpider 로 사용하는 것 같음.
type ResourceOnCspInfo ¶ added in v0.5.1
type ResourceOnSpider ¶
type ResourceOnSpider struct {
Count int `json:"count"`
Info []ResourceOnSpiderInfo `json:"info"`
}
ResourcesOnCsp 와 ResourcesOnSpider 가 동일하여 ResourecesOnCspOrSpider 로 사용하는 것 같음.
type ResourceOnSpiderInfo ¶ added in v0.5.1
type ResourceOnTumblebug ¶
type ResourceOnTumblebug struct {
Count int `json:"count"`
Info []ResourceOnTumblebugInfo `json:"info"`
}
type ResourceOnTumblebugInfo ¶ added in v0.5.1
type ResourcesByManageType ¶ added in v0.5.1
type ResourcesByManageType struct {
OnCspOnly ResourceOnCsp `json:"onCspOnly"`
OnCspTotal ResourceOnCsp `json:"onCspTotal"`
OnSpider ResourceOnSpider `json:"onSpider"`
OnTumblebug ResourceOnTumblebug `json:"onTumblebug"`
}
type RestGetAllBenchmarkRequest ¶
type RestGetAllBenchmarkRequest struct {
Host string `json:"host"`
}
type RestGetAllMcisPolicyResponse ¶
type RestGetAllMcisPolicyResponse struct {
McisPolicy McisPolicyInfo `json:"mcisPolicy"`
}
type RestGetAllMcisResponse ¶
type RestGetAllMcisResponse struct {
Mcis []TbMcisInfo `json:"mcis"`
}
type RestGetBenchmarkRequest ¶
type RestGetBenchmarkRequest struct {
Host string `json:"host"`
}
type RestPostCmdMcisResponse ¶
type RestPostCmdMcisResponseWrapper ¶
type RestPostCmdMcisResponseWrapper struct {
ResultArray []RestPostCmdMcisResponse `json:"resultArray"`
}
type RestPostCmdMcisVmResponse ¶
type RestPostCmdMcisVmResponse struct {
Result string `json:"result"`
}
type SpiderVMInfo ¶
type SpiderVMInfo struct {
CspId string `json:"cspid"`
IID tbcommon.TbIID `json:"iid"`
ImageIID tbcommon.TbIID `json:"imageIId"`
KeyPairIID tbcommon.TbIID `json:"keyPairIId"`
KeyPairName string `json:"keyPairName"`
KeyValueList []tbcommon.TbKeyValue `json:"keyValueList"`
Name string `json:"name"`
NetworkInterface string `json:"networkInterface"`
PrivateDns string `json:"networkInterface"`
PrivateIP string `json:"privateIP"`
PublicDns string `json:"publicDns"`
PublicIP string `json:"publicIP"`
Region RegionInfo `json:"region"`
SecurityGroupIIds []tbcommon.TbIID `json:"securityGroupIIds"`
SecurityGroupNames []string `json:"securityGroupNames"`
SshaccessPoint string `json:"sshaccessPoint"`
StartTime string `json:"startTime"`
SubnetIID tbcommon.TbIID `json:"subnetIID"`
SubnetName string `json:"subnetName"`
VmblockDisk string `json:"vmblockDisk"`
VmbootDisk string `json:"vmbootDisk"`
VmspecName string `json:"vmspecName"`
VmuserId string `json:"vmuserId"`
VmuserPasswd string `json:"vmuserPasswd"`
RootDeviceName string `json:"rootDeviceName"`
RootDiskSize string `json:"rootDiskSize"`
RootDiskType string `json:"rootDiskType"`
VpcIID tbcommon.TbIID `json:"vpcIID"`
VpcName string `json:"vpcName"`
}
type StatusCountInfo ¶
type StatusCountInfo struct {
CountCreating int `json:"countCreating"`
CountFailed int `json:"countFailed"`
CountRebooting int `json:"countRebooting"`
CountResuming int `json:"countResuming"`
CountRunning int `json:"countRunning"`
CountSuspended int `json:"countSuspended"`
CountSuspending int `json:"countSuspending"`
CountTerminated int `json:"countTerminated"`
CountTerminating int `json:"countTerminating"`
CountTotal int `json:"countTotal"`
CountUndefined int `json:"countUndefined"`
}
type StructElementCycle ¶
type StructElementCycle struct {
Cycle string `json:"cycle"`
}
type TbMcisDynamicReq ¶ added in v0.4.6
type TbMcisInfo ¶
type TbMcisInfo struct {
ConfigureCloudAdaptiveNetwork string `json:"configureCloudAdaptiveNetwork"`
ID string `json:"id"`
Description string `json:"description"`
InstallMonAgent string `json:"installMonAgent"`
Label string `json:"label"`
SystemLabel string `json:"systemLabel"`
Name string `json:"name"`
PlacementAlgo string `json:"placementAlgo"`
Status string `json:"status"`
StatusCount StatusCountInfo `json:"statusCount"`
TargetAction string `json:"targetAction"`
TargetStatus string `json:"targetStatus"`
Vm []TbVmInfo `json:"vm"`
}
type TbMcisReq ¶
type TbMcisReq struct {
Description string `json:"description"`
InstallMonAgent string `json:"installMonAgent"`
Label string `json:"label"`
Name string `json:"name"`
PlacementAlgo string `json:"placementAlgo"`
SystemLabel string `json:"systemLabel"`
// Vm TbVmInfo `json:"vm"`
Vm []TbVmReq `json:"vm"`
}
type TbVmDynamicReq ¶ added in v0.4.6
type TbVmDynamicReq struct {
CommonImage string `json:"commonImage"`
CommonSpec string `json:"commonSpec"`
ConnectionName string `json:"connectionName"`
Description string `json:"description"`
Label string `json:"label"`
Name string `json:"name"`
RootDiskSize string `json:"rootDiskSize"`
RootDiskType string `json:"rootDiskType"`
VmGroupSize string `json:"VmGroupSize"`
}
type TbVmInfo ¶
type TbVmInfo struct {
ConnectionName string `json:"connectionName"`
CreatedTime string `json:"createdTime"`
CspViewVmDetail SpiderVMInfo `json:"cspViewVmDetail"`
Description string `json:"description"`
ID string `json:"id"`
IdByCSP string `json:"idByCSP"`
ImageID string `json:"imageId"`
Label string `json:"label"`
Location tbcommon.TbGeoLocation `json:"location"`
MonAgentStatus string `json:"monAgentStatus"`
Name string `json:"name"`
NetworkAgentStatus string `json:"networkAgentStatus"`
PrivateDns string `json:"privateDns"`
PrivateIP string `json:"privateIP"`
PublicDNS string `json:"publicDNS"`
PublicIP string `json:"publicIP"`
Region RegionInfo `json:"region"`
RootDeviceName string `json:"rootDeviceName"`
RootDiskSize string `json:"rootDiskSize"`
RootDiskType string `json:"rootDiskType"`
SecurityGroupIDs []string `json:"securityGroupIds"`
SpecID string `json:"specId"`
SshKeyID string `json:"sshKeyId"`
SshPort string `json:"sshPort"`
Status string `json:"status"`
SubnetID string `json:"subnetId"`
SystemMessage string `json:"systemMessage"`
TargetAction string `json:"targetAction"`
TargetStatus string `json:"targetStatus"`
VNetID string `json:"vNetId"`
VmBlockDisk string `json:"vmBlockDisk"`
VmBootDisk string `json:"vmBootDisk"`
VmGroupID string `json:"vmGroupId"`
VmUserAccount string `json:"vmUserAccount"`
VmUserPassword string `json:"vmUserPassword"`
}
type TbVmRecommendReq ¶
type TbVmRecommendReq struct {
DiskSize string `json:"diskSize"`
MaxResultNum string `json:"maxResultNum"`
MemorySize string `json:"memorySize"`
PlacementAlgo string `json:"placementAlgo"`
PlacementParam []tbcommon.TbKeyValue `json:"placementParam"`
RequestName string `json:"requestName"`
VcpuSize string `json:"vcpuSize"`
}
type TbVmReq ¶
type TbVmReq struct {
ConnectionName string `json:"connectionName"`
Description string `json:"description"`
IdByCsp string `json:"idByCsp"`
ImageID string `json:"imageId"`
Label string `json:"label"`
Name string `json:"name"`
RootDiskSize string `json:"rootDiskSize"`
RootDiskType string `json:"rootDiskType"`
SecurityGroupIDs []string `json:"securityGroupIds"`
SpecID string `json:"specId"`
SshKeyID string `json:"sshKeyId"`
SubnetID string `json:"subnetId"`
VNetID string `json:"vNetId"`
VmGroupSize string `json:"vmGroupSize"`
VmUserAccount string `json:"vmUserAccount"`
VmUserPassword string `json:"vmUserPassword"`
}
type TbVmStatusInfo ¶
type TbVmStatusInfo struct {
CreatedTime string `json:"createdTime"`
CspVmID string `json:"cspVmId"`
ID string `json:"id"`
Location tbcommon.TbGeoLocation `json:"location"`
MonAgentStatus string `json:"monAgentStatus"`
Name string `json:"name"`
NativeStatus string `json:"nativeStatus"`
PrivateIP string `json:"privateIP"`
PublicIP string `json:"publicIP"`
SshPort string `json:"sshPort"`
Status string `json:"status"`
SystemMessage string `json:"systemMessage"`
TargetAction string `json:"targetAction"`
TargetStatus string `json:"targetStatus"`
}
Source Files
¶
- AgentInstallContent.go
- AgentInstallContentWrapper.go
- AutoAction.go
- AutoCondition.go
- BenchmarkInfo.go
- CheckMcisDynamicReqInfo.go
- CheckVmDynamicReqInfo.go
- DeploymentPlan.go
- FilterCondition.go
- FilterInfo.go
- InspectOverview.go
- InspectResource.go
- InspectResourceAllResult.go
- InspectResourceResult.go
- McisCmdReq.go
- McisConnectionConfigCandidatesReq.go
- McisPolicyInfo.go
- McisStatusInfo.go
- MonResultSimple.go
- MonResultSimpleResponse.go
- NetworkReq.go
- Operation.go
- ParameterKeyVal.go
- Policy.go
- PriorityCondition.go
- PriorityInfo.go
- RegionInfo.go
- RegisterResourceAllResult.go
- RegisterResourceResult.go
- RegisterationOverview.go
- ResourceCountOverview.go
- ResourceOnCsp.go
- ResourceOnCspInfo.go
- ResourceOnSpider.go
- ResourceOnSpiderInfo.go
- ResourceOnTumblebug.go
- ResourceOnTumblebugInfo.go
- ResourcesByManageType.go
- RestGetAllBenchmarkRequest.go
- RestGetAllMcisPolicyResponse.go
- RestGetAllMcisResponse.go
- RestGetBenchmarkRequest.go
- RestPostCmdMcisResponse.go
- RestPostCmdMcisResponseWrapper.go
- RestPostCmdMcisVmResponse.go
- SpiderVMInfo.go
- StatusCountInfo.go
- TbMcisDynamicReq.go
- TbMcisInfo.go
- TbMcisReq.go
- TbVmDynamicReq.go
- TbVmInfo.go
- TbVmRecommendReq.go
- TbVmReq.go
- TbVmStatusInfo.go
Click to show internal directories.
Click to hide internal directories.