Skip to content

Commit

Permalink
PMM-12913 migrate /v1/server/leaderHealthCheck endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Mar 19, 2024
1 parent f003f63 commit a314087
Show file tree
Hide file tree
Showing 12 changed files with 214 additions and 274 deletions.
2 changes: 1 addition & 1 deletion api/MIGRATION_TO_V3.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ GET /logz.zip GET /v1/server/logs.zip
GET /v1/version GET /v1/server/version ✅ /v1/version is now a redirect to /v1/server/version
GET /v1/readyz GET /v1/server/readyz ✅ /v1/readyz is now a redirect to /v1/server/readyz
POST /v1/AWSInstanceCheck GET /v1/server/AWSInstance ✅
POST /v1/leaderHealthCheck GET /v1/server/leaderHealthCheck
POST /v1/leaderHealthCheck GET /v1/server/leaderHealthCheck
POST /v1/settings/Change PUT /v1/server/settings ✅
POST /v1/settings/Get GET /v1/server/settings ✅
POST /v1/updates/Check GET /v1/server/updates
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 14 additions & 24 deletions api/server/v1/json/v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,29 +63,26 @@
}
}
},
"/v1/leaderHealthCheck": {
"post": {
"description": "Checks if the instance is the leader in a cluster. Returns an error if the instance isn't the leader.",
"/v1/server/AWSInstance": {
"get": {
"description": "Checks AWS EC2 instance ID.",
"tags": [
"ServerService"
],
"summary": "Check Leadership",
"operationId": "LeaderHealthCheck",
"summary": "AWS instance check",
"operationId": "AWSInstanceCheck",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"type": "object"
}
"type": "string",
"description": "AWS EC2 instance ID (i-1234567890abcdef0).",
"name": "instance_id",
"in": "query"
}
],
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"description": "This probe is available without authentication, so it should not contain any data.",
"type": "object"
}
},
Expand Down Expand Up @@ -125,26 +122,19 @@
}
}
},
"/v1/server/AWSInstance": {
"/v1/server/leaderHealthCheck": {
"get": {
"description": "Checks AWS EC2 instance ID.",
"description": "Checks if the instance is the leader in a cluster. Returns an error if the instance isn't the leader.",
"tags": [
"ServerService"
],
"summary": "AWS instance check",
"operationId": "AWSInstanceCheck",
"parameters": [
{
"type": "string",
"description": "AWS EC2 instance ID (i-1234567890abcdef0).",
"name": "instance_id",
"in": "query"
}
],
"summary": "Check Leadership",
"operationId": "LeaderHealthCheck",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"description": "This probe is available without authentication, so it should not contain any data.",
"type": "object"
}
},
Expand Down

0 comments on commit a314087

Please sign in to comment.