-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing refs for autoscaler monitoring (#963)
* Add missing refs for autoscaler monitoring * Fix lint --------- Co-authored-by: Andrew Starr-Bochicchio <andrewsomething@users.noreply.github.com>
- Loading branch information
1 parent
c31efb9
commit 7e90337
Showing
18 changed files
with
331 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...ces/monitoring/examples/curl/monitoring_get_droplet_autoscale_current_cpu_utilization.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
lang: cURL | ||
source: |- | ||
curl -X GET \ | ||
-H "Content-Type: application/json" \ | ||
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \ | ||
"https://api.digitalocean.com/v2/monitoring/metrics/droplet_autoscale/current_cpu_utilization?autoscale_pool_id=4de7ac8b-495b-4884-9a69-1050c6793cd6&start=1636051668&end=1636051668" |
6 changes: 6 additions & 0 deletions
6
...resources/monitoring/examples/curl/monitoring_get_droplet_autoscale_current_instances.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
lang: cURL | ||
source: |- | ||
curl -X GET \ | ||
-H "Content-Type: application/json" \ | ||
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \ | ||
"https://api.digitalocean.com/v2/monitoring/metrics/droplet_autoscale/current_instances?autoscale_pool_id=4de7ac8b-495b-4884-9a69-1050c6793cd6&start=1636051668&end=1636051668" |
6 changes: 6 additions & 0 deletions
6
.../monitoring/examples/curl/monitoring_get_droplet_autoscale_current_memory_utilization.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
lang: cURL | ||
source: |- | ||
curl -X GET \ | ||
-H "Content-Type: application/json" \ | ||
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \ | ||
"https://api.digitalocean.com/v2/monitoring/metrics/droplet_autoscale/current_memory_utilization?autoscale_pool_id=4de7ac8b-495b-4884-9a69-1050c6793cd6&start=1636051668&end=1636051668" |
6 changes: 6 additions & 0 deletions
6
...rces/monitoring/examples/curl/monitoring_get_droplet_autoscale_target_cpu_utilization.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
lang: cURL | ||
source: |- | ||
curl -X GET \ | ||
-H "Content-Type: application/json" \ | ||
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \ | ||
"https://api.digitalocean.com/v2/monitoring/metrics/droplet_autoscale/target_cpu_utilization?autoscale_pool_id=4de7ac8b-495b-4884-9a69-1050c6793cd6&start=1636051668&end=1636051668" |
6 changes: 6 additions & 0 deletions
6
.../resources/monitoring/examples/curl/monitoring_get_droplet_autoscale_target_instances.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
lang: cURL | ||
source: |- | ||
curl -X GET \ | ||
-H "Content-Type: application/json" \ | ||
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \ | ||
"https://api.digitalocean.com/v2/monitoring/metrics/droplet_autoscale/target_instances?autoscale_pool_id=4de7ac8b-495b-4884-9a69-1050c6793cd6&start=1636051668&end=1636051668" |
6 changes: 6 additions & 0 deletions
6
...s/monitoring/examples/curl/monitoring_get_droplet_autoscale_target_memory_utilization.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
lang: cURL | ||
source: |- | ||
curl -X GET \ | ||
-H "Content-Type: application/json" \ | ||
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \ | ||
"https://api.digitalocean.com/v2/monitoring/metrics/droplet_autoscale/target_memory_utilization?autoscale_pool_id=4de7ac8b-495b-4884-9a69-1050c6793cd6&start=1636051668&end=1636051668" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...ication/resources/monitoring/monitoring_get_droplet_autoscale_current_cpu_utilization.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
operationId: monitoring_get_droplet_autoscale_current_cpu_utilization.yml | ||
|
||
summary: Get Droplet Autoscale Pool Current Average CPU utilization | ||
|
||
description: >- | ||
To retrieve the current average CPU utilization for a given Droplet Autoscale Pool, | ||
send a GET request to `/v2/monitoring/metrics/droplet_autoscale/current_cpu_utilization`. | ||
tags: | ||
- Monitoring | ||
|
||
responses: | ||
'200': | ||
$ref: 'responses/metric_response.yml' | ||
|
||
'401': | ||
$ref: '../../shared/responses/unauthorized.yml' | ||
|
||
'429': | ||
$ref: '../../shared/responses/too_many_requests.yml' | ||
|
||
'500': | ||
$ref: '../../shared/responses/server_error.yml' | ||
|
||
default: | ||
$ref: '../../shared/responses/unexpected_error.yml' | ||
|
||
parameters: | ||
- $ref: 'parameters.yml#/autoscale_pool_id' | ||
- $ref: 'parameters.yml#/metric_timestamp_start' | ||
- $ref: 'parameters.yml#/metric_timestamp_end' | ||
|
||
x-codeSamples: | ||
- $ref: 'examples/curl/monitoring_get_droplet_autoscale_current_cpu_utilization.yml' | ||
|
||
security: | ||
- bearer_auth: | ||
- 'monitoring:read' |
38 changes: 38 additions & 0 deletions
38
specification/resources/monitoring/monitoring_get_droplet_autoscale_current_instances.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
operationId: monitoring_get_droplet_autoscale_current_instances | ||
|
||
summary: Get Droplet Autoscale Pool Current Size | ||
|
||
description: >- | ||
To retrieve the current size for a given Droplet Autoscale Pool, | ||
send a GET request to `/v2/monitoring/metrics/droplet_autoscale/current_instances`. | ||
tags: | ||
- Monitoring | ||
|
||
responses: | ||
'200': | ||
$ref: 'responses/metric_response.yml' | ||
|
||
'401': | ||
$ref: '../../shared/responses/unauthorized.yml' | ||
|
||
'429': | ||
$ref: '../../shared/responses/too_many_requests.yml' | ||
|
||
'500': | ||
$ref: '../../shared/responses/server_error.yml' | ||
|
||
default: | ||
$ref: '../../shared/responses/unexpected_error.yml' | ||
|
||
parameters: | ||
- $ref: 'parameters.yml#/autoscale_pool_id' | ||
- $ref: 'parameters.yml#/metric_timestamp_start' | ||
- $ref: 'parameters.yml#/metric_timestamp_end' | ||
|
||
x-codeSamples: | ||
- $ref: 'examples/curl/monitoring_get_droplet_autoscale_current_instances.yml' | ||
|
||
security: | ||
- bearer_auth: | ||
- 'monitoring:read' |
38 changes: 38 additions & 0 deletions
38
...tion/resources/monitoring/monitoring_get_droplet_autoscale_current_memory_utilization.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
operationId: monitoring_get_droplet_autoscale_current_memory_utilization | ||
|
||
summary: Get Droplet Autoscale Pool Current Average Memory utilization | ||
|
||
description: >- | ||
To retrieve the current average memory utilization for a given Droplet Autoscale Pool, | ||
send a GET request to `/v2/monitoring/metrics/droplet_autoscale/current_memory_utilization`. | ||
tags: | ||
- Monitoring | ||
|
||
responses: | ||
'200': | ||
$ref: 'responses/metric_response.yml' | ||
|
||
'401': | ||
$ref: '../../shared/responses/unauthorized.yml' | ||
|
||
'429': | ||
$ref: '../../shared/responses/too_many_requests.yml' | ||
|
||
'500': | ||
$ref: '../../shared/responses/server_error.yml' | ||
|
||
default: | ||
$ref: '../../shared/responses/unexpected_error.yml' | ||
|
||
parameters: | ||
- $ref: 'parameters.yml#/autoscale_pool_id' | ||
- $ref: 'parameters.yml#/metric_timestamp_start' | ||
- $ref: 'parameters.yml#/metric_timestamp_end' | ||
|
||
x-codeSamples: | ||
- $ref: 'examples/curl/monitoring_get_droplet_autoscale_current_memory_utilization.yml' | ||
|
||
security: | ||
- bearer_auth: | ||
- 'monitoring:read' |
38 changes: 38 additions & 0 deletions
38
...fication/resources/monitoring/monitoring_get_droplet_autoscale_target_cpu_utilization.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
operationId: monitoring_get_droplet_autoscale_target_cpu_utilization | ||
|
||
summary: Get Droplet Autoscale Pool Target Average CPU utilization | ||
|
||
description: >- | ||
To retrieve the target average CPU utilization for a given Droplet Autoscale Pool, | ||
send a GET request to `/v2/monitoring/metrics/droplet_autoscale/target_cpu_utilization`. | ||
tags: | ||
- Monitoring | ||
|
||
responses: | ||
'200': | ||
$ref: 'responses/metric_response.yml' | ||
|
||
'401': | ||
$ref: '../../shared/responses/unauthorized.yml' | ||
|
||
'429': | ||
$ref: '../../shared/responses/too_many_requests.yml' | ||
|
||
'500': | ||
$ref: '../../shared/responses/server_error.yml' | ||
|
||
default: | ||
$ref: '../../shared/responses/unexpected_error.yml' | ||
|
||
parameters: | ||
- $ref: 'parameters.yml#/autoscale_pool_id' | ||
- $ref: 'parameters.yml#/metric_timestamp_start' | ||
- $ref: 'parameters.yml#/metric_timestamp_end' | ||
|
||
x-codeSamples: | ||
- $ref: 'examples/curl/monitoring_get_droplet_autoscale_target_cpu_utilization.yml' | ||
|
||
security: | ||
- bearer_auth: | ||
- 'monitoring:read' |
38 changes: 38 additions & 0 deletions
38
specification/resources/monitoring/monitoring_get_droplet_autoscale_target_instances.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
operationId: monitoring_get_droplet_autoscale_target_instances | ||
|
||
summary: Get Droplet Autoscale Pool Target Size | ||
|
||
description: >- | ||
To retrieve the target size for a given Droplet Autoscale Pool, | ||
send a GET request to `/v2/monitoring/metrics/droplet_autoscale/target_instances`. | ||
tags: | ||
- Monitoring | ||
|
||
responses: | ||
'200': | ||
$ref: 'responses/metric_response.yml' | ||
|
||
'401': | ||
$ref: '../../shared/responses/unauthorized.yml' | ||
|
||
'429': | ||
$ref: '../../shared/responses/too_many_requests.yml' | ||
|
||
'500': | ||
$ref: '../../shared/responses/server_error.yml' | ||
|
||
default: | ||
$ref: '../../shared/responses/unexpected_error.yml' | ||
|
||
parameters: | ||
- $ref: 'parameters.yml#/autoscale_pool_id' | ||
- $ref: 'parameters.yml#/metric_timestamp_start' | ||
- $ref: 'parameters.yml#/metric_timestamp_end' | ||
|
||
x-codeSamples: | ||
- $ref: 'examples/curl/monitoring_get_droplet_autoscale_target_instances.yml' | ||
|
||
security: | ||
- bearer_auth: | ||
- 'monitoring:read' |
38 changes: 38 additions & 0 deletions
38
...ation/resources/monitoring/monitoring_get_droplet_autoscale_target_memory_utilization.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
operationId: monitoring_get_droplet_autoscale_target_memory_utilization | ||
|
||
summary: Get Droplet Autoscale Pool Target Average Memory utilization | ||
|
||
description: >- | ||
To retrieve the target average memory utilization for a given Droplet Autoscale Pool, | ||
send a GET request to `/v2/monitoring/metrics/droplet_autoscale/target_memory_utilization`. | ||
tags: | ||
- Monitoring | ||
|
||
responses: | ||
'200': | ||
$ref: 'responses/metric_response.yml' | ||
|
||
'401': | ||
$ref: '../../shared/responses/unauthorized.yml' | ||
|
||
'429': | ||
$ref: '../../shared/responses/too_many_requests.yml' | ||
|
||
'500': | ||
$ref: '../../shared/responses/server_error.yml' | ||
|
||
default: | ||
$ref: '../../shared/responses/unexpected_error.yml' | ||
|
||
parameters: | ||
- $ref: 'parameters.yml#/autoscale_pool_id' | ||
- $ref: 'parameters.yml#/metric_timestamp_start' | ||
- $ref: 'parameters.yml#/metric_timestamp_end' | ||
|
||
x-codeSamples: | ||
- $ref: 'examples/curl/monitoring_get_droplet_autoscale_target_memory_utilization.yml' | ||
|
||
security: | ||
- bearer_auth: | ||
- 'monitoring:read' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters