Skip to content

Commit

Permalink
Merge pull request #126 from CloudHealth/metrics-api-updates
Browse files Browse the repository at this point in the history
Updates to Metrics, Asset, and Perspectives API
  • Loading branch information
HumanistSerif authored Jul 8, 2019
2 parents daab290 + 31fda60 commit 635dc29
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion _account/aws-account-add.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ parameters:
content: Role ARN for IAM Role
- name: assume_role_external_id
required: yes, for IAM-Role-based authentication
content: External ID generated by CloudHealth. See [How to get External ID](#accountexternal-id-get).
content: External ID generated by CloudHealth. See [How to get External ID](#account_get-external-id).
- name: billing
required: no
content: JSON field that specifies the location of the AWS Detailed Billing Record (DBR).
Expand Down
2 changes: 1 addition & 1 deletion _account/aws-account-read-multiple.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ parameters:
- name: page
content: Specify the page number for results
- name: per_page
content: Specify how many results should be displayed per page. Default value is 30.
content: Specify how many results should be displayed per page. Default value is 30. Maximum value is 100.
right_code_blocks:
- code_block: |-
curl --request GET -H 'Authorization: Bearer <your_api_key>' -H 'Content-Type: application/json' "https://chapi.cloudhealthtech.com/v1/aws_accounts"
Expand Down
2 changes: 1 addition & 1 deletion _metrics/get-metrics-for-an-asset.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Metrics for Single Asset
type: get
description: Retrieve CPU, memory, and performance metrics for a specific asset
position: 4
endpoint: https://chapi.cloudhealthtech.com/v1/metrics
endpoint: https://chapi.cloudhealthtech.com/metrics/v1
parameters:
- name: asset
required: yes
Expand Down
2 changes: 1 addition & 1 deletion _metrics/post-metrics-for-an-asset.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Upload Metrics for Single Asset
type: post
description: Post metrics for an individual asset, including historical metrics data.
position: 5
endpoint: https://chapi.cloudhealthtech.com/v1/metrics
endpoint: https://chapi.cloudhealthtech.com/metrics/v1
parameters:
- name: JSON document
required: yes
Expand Down
12 changes: 12 additions & 0 deletions _perspectives/add-dynamic-group.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: Add Dynamic Group to Perspective
type: example
description: Add a dynamic group to an existing Perspective. You can exclude the `ref_id` field from the request. Alternately, if you include the `ref_id` field, specify an arbitrary numerical value for it.
position: 9
right_code_blocks:
- code_block: |-
curl -s -H 'Authorization: Bearer <your_api_key>' -H 'Accept: application/json'
"https://chapi.cloudhealthtech.com/v1/perspective_schemas/<perspective_id> -d '{"type": "categorize","asset": "AwsAsset","tag_field": ["Environment"],"ref_id": "123456789","name": "Environment"}'
title: Request
language: bash
---
2 changes: 1 addition & 1 deletion _perspectives/create-perspective-schema.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Create Perspective Schema
position: 6
description: Create a schema and associate it with a specific Perspective. Identify the specific Perspective by its ID. See [How to Get Perspective ID](#perspectives_how-to-get-perspective-id).
description: Create a Perspective and associate it with a new schema. The ID of the new Perspective is returned in the message field in the POST response.
type: post
endpoint: https://chapi.cloudhealthtech.com/v1/perspective_schemas/
parameters:
Expand Down

0 comments on commit 635dc29

Please sign in to comment.