Skip to content

Commit

Permalink
Merge pull request #1286 from seokho-son/main
Browse files Browse the repository at this point in the history
Enabling manual monitoring agent installation for Windows VM
  • Loading branch information
jihoon-seo authored Dec 7, 2022
2 parents 99f4b1c + 0e63b56 commit 9d8e718
Show file tree
Hide file tree
Showing 6 changed files with 265 additions and 243 deletions.
168 changes: 73 additions & 95 deletions src/api/rest/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3421,6 +3421,67 @@ const docTemplate = `{
}
}
},
"/ns/{nsId}/monitoring/status/mcis/{mcisId}/vm/{vmId}": {
"put": {
"description": "Set monitoring agent (CB-Dragonfly agent) installation status installed (for Windows VM only)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"[Infra service] MCIS Resource monitor (for developer)"
],
"summary": "Set monitoring agent (CB-Dragonfly agent) installation status installed (for Windows VM only)",
"parameters": [
{
"type": "string",
"default": "ns01",
"description": "Namespace ID",
"name": "nsId",
"in": "path",
"required": true
},
{
"type": "string",
"default": "mcis01",
"description": "MCIS ID",
"name": "mcisId",
"in": "path",
"required": true
},
{
"type": "string",
"default": "vm01",
"description": "VM ID",
"name": "vmId",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/mcis.TbVmInfo"
}
},
"404": {
"description": "Not Found",
"schema": {
"$ref": "#/definitions/common.SimpleMsg"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/common.SimpleMsg"
}
}
}
}
},
"/ns/{nsId}/network/mcis/{mcisId}": {
"put": {
"description": "Inject Cloud Information For Cloud Adaptive Network",
Expand Down Expand Up @@ -7245,34 +7306,6 @@ const docTemplate = `{
}
}
},
"mcir.CustomImageStatus": {
"type": "string",
"enum": [
"Available",
"Unavailable"
],
"x-enum-varnames": [
"MyImageAvailable",
"MyImageUnavailable"
]
},
"mcir.DiskStatus": {
"type": "string",
"enum": [
"Creating",
"Available",
"Attached",
"Deleting",
"Error"
],
"x-enum-varnames": [
"DiskCreating",
"DiskAvailable",
"DiskAttached",
"DiskDeleting",
"DiskError"
]
},
"mcir.FilterSpecsByRangeRequest": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -7538,11 +7571,7 @@ const docTemplate = `{
},
"iid": {
"description": "Fields for response",
"allOf": [
{
"$ref": "#/definitions/common.IID"
}
]
"$ref": "#/definitions/common.IID"
},
"keyValueList": {
"type": "array",
Expand Down Expand Up @@ -7693,11 +7722,7 @@ const docTemplate = `{
"example": "aws-ap-southeast-1-1"
},
"status": {
"allOf": [
{
"$ref": "#/definitions/mcir.CustomImageStatus"
}
],
"type": "string",
"example": "Available"
},
"systemLabel": {
Expand Down Expand Up @@ -7787,11 +7812,7 @@ const docTemplate = `{
},
"status": {
"description": "Available, Unavailable, Attached, ...",
"allOf": [
{
"$ref": "#/definitions/mcir.DiskStatus"
}
],
"type": "string",
"example": "Available"
},
"systemLabel": {
Expand Down Expand Up @@ -8487,11 +8508,7 @@ const docTemplate = `{
},
"postCommand": {
"description": "PostCommand is field for providing command to VMs after its creation. example:\"wget https://raw.githubusercontent.com/cloud-barista/cb-tumblebug/main/scripts/setweb.sh -O ~/setweb.sh; chmod +x ~/setweb.sh; sudo ~/setweb.sh\"",
"allOf": [
{
"$ref": "#/definitions/mcis.McisCmdReq"
}
]
"$ref": "#/definitions/mcis.McisCmdReq"
},
"vmDynamicReq": {
"$ref": "#/definitions/mcis.TbVmDynamicReq"
Expand Down Expand Up @@ -9247,17 +9264,6 @@ const docTemplate = `{
}
}
},
"mcis.SpiderImageType": {
"type": "string",
"enum": [
"PublicImage",
"MyImage"
],
"x-enum-varnames": [
"PublicImage",
"MyImage"
]
},
"mcis.SpiderVMInfo": {
"type": "object",
"properties": {
Expand All @@ -9279,11 +9285,7 @@ const docTemplate = `{
},
"iid": {
"description": "Fields for response",
"allOf": [
{
"$ref": "#/definitions/common.IID"
}
]
"$ref": "#/definitions/common.IID"
},
"imageIId": {
"$ref": "#/definitions/common.IID"
Expand All @@ -9292,7 +9294,7 @@ const docTemplate = `{
"type": "string"
},
"imageType": {
"$ref": "#/definitions/mcis.SpiderImageType"
"type": "string"
},
"keyPairIId": {
"$ref": "#/definitions/common.IID"
Expand Down Expand Up @@ -9328,11 +9330,7 @@ const docTemplate = `{
},
"region": {
"description": "ex) {us-east1, us-east1-c} or {ap-northeast-2}",
"allOf": [
{
"$ref": "#/definitions/mcis.RegionInfo"
}
]
"$ref": "#/definitions/mcis.RegionInfo"
},
"rootDeviceName": {
"description": "\"/dev/sda1\", ...",
Expand Down Expand Up @@ -9367,11 +9365,7 @@ const docTemplate = `{
},
"subnetIID": {
"description": "AWS, ex) subnet-8c4a53e4",
"allOf": [
{
"$ref": "#/definitions/common.IID"
}
]
"$ref": "#/definitions/common.IID"
},
"subnetName": {
"type": "string"
Expand Down Expand Up @@ -9810,19 +9804,11 @@ const docTemplate = `{
},
"healthChecker": {
"description": "HealthChecker",
"allOf": [
{
"$ref": "#/definitions/mcis.TbNLBHealthCheckerReq"
}
]
"$ref": "#/definitions/mcis.TbNLBHealthCheckerReq"
},
"listener": {
"description": "Frontend",
"allOf": [
{
"$ref": "#/definitions/mcis.NLBListenerReq"
}
]
"$ref": "#/definitions/mcis.NLBListenerReq"
},
"scope": {
"description": "REGION(V) | GLOBAL",
Expand All @@ -9835,11 +9821,7 @@ const docTemplate = `{
},
"targetGroup": {
"description": "Backend",
"allOf": [
{
"$ref": "#/definitions/mcis.TbNLBTargetGroupReq"
}
]
"$ref": "#/definitions/mcis.TbNLBTargetGroupReq"
},
"type": {
"description": "PUBLIC(V) | INTERNAL",
Expand Down Expand Up @@ -10038,11 +10020,7 @@ const docTemplate = `{
},
"region": {
"description": "AWS, ex) {us-east1, us-east1-c} or {ap-northeast-2}",
"allOf": [
{
"$ref": "#/definitions/mcis.RegionInfo"
}
]
"$ref": "#/definitions/mcis.RegionInfo"
},
"rootDeviceName": {
"type": "string"
Expand Down
Loading

0 comments on commit 9d8e718

Please sign in to comment.