-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
github-actions
committed
Aug 5, 2024
1 parent
f66532c
commit 15f8879
Showing
106 changed files
with
9,712 additions
and
89 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
# Fastly::RelationshipTlsDnsRecord | ||
# Fastly::AsyncResponse | ||
|
||
## Properties | ||
|
||
| Name | Type | Description | Notes | | ||
| ---- | ---- | ----------- | ----- | | ||
| **dns_record** | [**RelationshipTlsDnsRecordDnsRecord**](RelationshipTlsDnsRecordDnsRecord.md) | | [optional] | | ||
| **title** | **String** | | [optional] | | ||
| **status** | **String** | | [optional] | | ||
|
||
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
# Fastly::BillingUsageMetricsApi | ||
|
||
|
||
```ruby | ||
require 'fastly' | ||
api_instance = Fastly::BillingUsageMetricsApi.new | ||
``` | ||
|
||
## Methods | ||
|
||
> [!NOTE] | ||
> All URIs are relative to `https://api.fastly.com` | ||
Method | HTTP request | Description | ||
------ | ------------ | ----------- | ||
[**get_service_level_usage**](BillingUsageMetricsApi.md#get_service_level_usage) | **GET** /billing/v2/account_customers/{customer_id}/service-usage-metrics | Retrieve service-level usage metrics for a product. | ||
[**get_service_level_usage_types**](BillingUsageMetricsApi.md#get_service_level_usage_types) | **GET** /billing/v2/account_customers/{customer_id}/service-usage-types | Retrieve product usage types for a customer. | ||
|
||
|
||
## `get_service_level_usage()` | ||
|
||
```ruby | ||
get_service_level_usage(opts): <Serviceusagemetrics> # Retrieve service-level usage metrics for a product. | ||
``` | ||
|
||
Returns product usage, broken down by service. | ||
|
||
### Examples | ||
|
||
```ruby | ||
api_instance = Fastly::BillingUsageMetricsApi.new | ||
opts = { | ||
customer_id: 'customer_id_example', # String | Alphanumeric string identifying the customer. | ||
product_id: 'product_id_example', # String | The product identifier for the metrics returned (e.g., `cdn_usage`). This field is not required for CSV requests. | ||
usage_type_name: 'usage_type_name_example', # String | The usage type name for the metrics returned (e.g., `North America Requests`). This field is not required for CSV requests. | ||
time_granularity: 'time_granularity_example', # String | | ||
start_date: '2023-01-01', # String | | ||
end_date: '2023-01-31', # String | | ||
start_month: '2023-01', # String | | ||
end_month: '2023-03', # String | | ||
limit: 'limit_example', # String | Number of results per page. The maximum is 100. | ||
cursor: 'cursor_example', # String | Cursor value from the `next_cursor` field of a previous response, used to retrieve the next page. To request the first page, this should be empty. | ||
} | ||
|
||
begin | ||
# Retrieve service-level usage metrics for a product. | ||
result = api_instance.get_service_level_usage(opts) | ||
p result | ||
rescue Fastly::ApiError => e | ||
puts "Error when calling BillingUsageMetricsApi->get_service_level_usage: #{e}" | ||
end | ||
``` | ||
|
||
### Options | ||
|
||
| Name | Type | Description | Notes | | ||
| ---- | ---- | ----------- | ----- | | ||
| **customer_id** | **String** | Alphanumeric string identifying the customer. | | | ||
| **product_id** | **String** | The product identifier for the metrics returned (e.g., `cdn_usage`). This field is not required for CSV requests. | | | ||
| **usage_type_name** | **String** | The usage type name for the metrics returned (e.g., `North America Requests`). This field is not required for CSV requests. | | | ||
| **time_granularity** | **String** | | | | ||
| **start_date** | **String** | | [optional] | | ||
| **end_date** | **String** | | [optional] | | ||
| **start_month** | **String** | | [optional] | | ||
| **end_month** | **String** | | [optional] | | ||
| **limit** | **String** | Number of results per page. The maximum is 100. | [optional][default to '5'] | | ||
| **cursor** | **String** | Cursor value from the `next_cursor` field of a previous response, used to retrieve the next page. To request the first page, this should be empty. | [optional] | | ||
|
||
### Return type | ||
|
||
[**Serviceusagemetrics**](Serviceusagemetrics.md) | ||
|
||
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) | ||
[[Back to README]](../../README.md) | ||
## `get_service_level_usage_types()` | ||
|
||
```ruby | ||
get_service_level_usage_types(opts): <Serviceusagetypes> # Retrieve product usage types for a customer. | ||
``` | ||
|
||
Returns product usage types reported by the customer's services. | ||
|
||
### Examples | ||
|
||
```ruby | ||
api_instance = Fastly::BillingUsageMetricsApi.new | ||
opts = { | ||
customer_id: 'customer_id_example', # String | Alphanumeric string identifying the customer. | ||
} | ||
|
||
begin | ||
# Retrieve product usage types for a customer. | ||
result = api_instance.get_service_level_usage_types(opts) | ||
p result | ||
rescue Fastly::ApiError => e | ||
puts "Error when calling BillingUsageMetricsApi->get_service_level_usage_types: #{e}" | ||
end | ||
``` | ||
|
||
### Options | ||
|
||
| Name | Type | Description | Notes | | ||
| ---- | ---- | ----------- | ----- | | ||
| **customer_id** | **String** | Alphanumeric string identifying the customer. | | | ||
|
||
### Return type | ||
|
||
[**Serviceusagetypes**](Serviceusagetypes.md) | ||
|
||
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) | ||
[[Back to README]](../../README.md) |
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,12 @@ | ||
# Fastly::CreateDashboardRequest | ||
|
||
## Properties | ||
|
||
| Name | Type | Description | Notes | | ||
| ---- | ---- | ----------- | ----- | | ||
| **name** | **String** | A human-readable name | | | ||
| **description** | **String** | A short description of the dashboard | [optional] | | ||
| **items** | [**Array<DashboardItem>**](DashboardItem.md) | A list of [dashboard items](#dashboard-item). | [optional] | | ||
|
||
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) | ||
|
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,17 @@ | ||
# Fastly::Dashboard | ||
|
||
## Properties | ||
|
||
| Name | Type | Description | Notes | | ||
| ---- | ---- | ----------- | ----- | | ||
| **id** | **String** | Dashboard identifier (UUID) | [optional][readonly] | | ||
| **name** | **String** | A human-readable name | [optional] | | ||
| **description** | **String** | A short description of the dashboard | [optional] | | ||
| **items** | [**Array<DashboardItem>**](DashboardItem.md) | A list of [dashboard items](#dashboard-item). | [optional] | | ||
| **created_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] | | ||
| **updated_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] | | ||
| **created_by** | [**DashboardPropertyCreatedBy**](DashboardPropertyCreatedBy.md) | | [optional] | | ||
| **updated_by** | [**DashboardPropertyUpdatedBy**](DashboardPropertyUpdatedBy.md) | | [optional] | | ||
|
||
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) | ||
|
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,15 @@ | ||
# Fastly::DashboardItem | ||
|
||
## Properties | ||
|
||
| Name | Type | Description | Notes | | ||
| ---- | ---- | ----------- | ----- | | ||
| **title** | **String** | A human-readable title for the dashboard item | | | ||
| **subtitle** | **String** | A human-readable subtitle for the dashboard item. Often a description of the visualization. | | | ||
| **data_source** | [**DashboardItemPropertyDataSource**](DashboardItemPropertyDataSource.md) | | | | ||
| **visualization** | [**DashboardItemPropertyVisualization**](DashboardItemPropertyVisualization.md) | | | | ||
| **id** | **String** | Dashboard item identifier (UUID) | [optional][readonly] | | ||
| **span** | **Integer** | The number of columns for the dashboard item to span. Dashboards are rendered on a 12-column grid on \"desktop\" screen sizes. | [optional][default to 4] | | ||
|
||
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) | ||
|
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,11 @@ | ||
# Fastly::DashboardItemPropertyDataSource | ||
|
||
## Properties | ||
|
||
| Name | Type | Description | Notes | | ||
| ---- | ---- | ----------- | ----- | | ||
| **type** | **String** | The source of the data to display. | | | ||
| **config** | [**DashboardItemPropertyDataSourcePropertyConfig**](DashboardItemPropertyDataSourcePropertyConfig.md) | | | | ||
|
||
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) | ||
|
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,10 @@ | ||
# Fastly::DashboardItemPropertyDataSourcePropertyConfig | ||
|
||
## Properties | ||
|
||
| Name | Type | Description | Notes | | ||
| ---- | ---- | ----------- | ----- | | ||
| **metrics** | **Array<String>** | The metrics to visualize. Valid options are defined by the selected [data source](#field_data_source). | | | ||
|
||
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) | ||
|
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,11 @@ | ||
# Fastly::DashboardItemPropertyVisualization | ||
|
||
## Properties | ||
|
||
| Name | Type | Description | Notes | | ||
| ---- | ---- | ----------- | ----- | | ||
| **type** | **String** | The type of visualization to display. | | | ||
| **config** | [**DashboardItemPropertyVisualizationPropertyConfig**](DashboardItemPropertyVisualizationPropertyConfig.md) | | | | ||
|
||
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) | ||
|
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,12 @@ | ||
# Fastly::DashboardItemPropertyVisualizationPropertyConfig | ||
|
||
## Properties | ||
|
||
| Name | Type | Description | Notes | | ||
| ---- | ---- | ----------- | ----- | | ||
| **plot_type** | **String** | The type of chart to display. | | | ||
| **format** | **String** | (Optional) The units to use to format the data. | [optional][default to 'number'] | | ||
| **calculation_method** | **String** | (Optional) The aggregation function to apply to the dataset. | [optional] | | ||
|
||
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) | ||
|
3 changes: 1 addition & 2 deletions
3
docs/RelationshipTlsDnsRecords.md → docs/DashboardPropertyCreatedBy.md
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 |
---|---|---|
@@ -1,10 +1,9 @@ | ||
# Fastly::RelationshipTlsDnsRecords | ||
# Fastly::DashboardPropertyCreatedBy | ||
|
||
## Properties | ||
|
||
| Name | Type | Description | Notes | | ||
| ---- | ---- | ----------- | ----- | | ||
| **dns_records** | [**RelationshipTlsDnsRecordDnsRecord**](RelationshipTlsDnsRecordDnsRecord.md) | | [optional] | | ||
|
||
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) | ||
|
Oops, something went wrong.