public interface MeteredUsageApiClientService
| Modifier and Type | Method and Description |
|---|---|
APIResult |
reportUsage(String baseUrl,
List<MeteredUsageItem> meteredUsageItems,
boolean billable,
String secretKey,
String secret)
Calls the Metered Usage API Endpoint to bill usages.
|
APIResult |
reportUsage(String baseUrl,
MeteredUsageItem meteredUsageItem,
boolean billable,
String secretKey,
String secret)
Calls the Metered Usage API Endpoint to bill usages.
|
APIResult |
reportUsage(String baseUrl,
MeteredUsageItem meteredUsageItem,
boolean billable,
String secretKey,
String secret,
String sourceType)
Calls the Metered Usage API Endpoint to bill usages.
|
APIResult |
reportUsage(String baseUrl,
String secretKey,
List<MeteredUsageItem> meteredUsageItems,
boolean billable)
Calls the Metered Usage API Endpoint to bill usages.
|
APIResult |
reportUsage(String baseUrl,
String idempotentKey,
List<MeteredUsageItem> meteredUsageItems,
boolean billable,
String secretKey,
String secret,
String sourceType)
Calls the Metered Usage API Endpoint to bill usages.
|
APIResult |
reportUsage(String baseUrl,
String secretKey,
MeteredUsageItem meteredUsageItem,
boolean billable)
Calls the Metered Usage API Endpoint to bill usages.
|
APIResult |
reportUsage(String baseUrl,
String secretKey,
MeteredUsageItem meteredUsageItem,
boolean billable,
String sourceType)
Calls the Metered Usage API Endpoint to bill usages.
|
APIResult |
reportUsage(String baseUrl,
String idempotentKey,
MeteredUsageItem meteredUsageItem,
boolean billable,
String secretKey,
String secret)
Calls the Metered Usage API Endpoint to bill usages.
|
APIResult |
reportUsage(String baseUrl,
String secretKey,
String idempotentKey,
List<MeteredUsageItem> meteredUsageItems,
boolean billable)
Calls the Metered Usage API Endpoint to bill usages.
|
APIResult |
reportUsage(String baseUrl,
String secretKey,
String idempotentKey,
List<MeteredUsageItem> meteredUsageItems,
boolean billable,
String sourceType)
Calls the Metered Usage API Endpoint to bill usages.
|
APIResult |
reportUsage(String baseUrl,
String secretKey,
String idempotentKey,
MeteredUsageItem meteredUsageItem,
boolean billable)
Calls the Metered Usage API Endpoint to bill usages.
|
APIResult |
retryableReportUsage(String baseUrl,
String idempotentKey,
List<MeteredUsageItem> meteredUsageItems,
String secretKey,
boolean billable,
String sourceType) |
APIResult reportUsage(String baseUrl, String secretKey, String idempotentKey, MeteredUsageItem meteredUsageItem, boolean billable)
AppmarketBillingClient as this replaces the old API version.baseUrl - from the requestsecretKey - to sign the requestidempotentKey - to make unique callsmeteredUsageItem - usage instance to be reportedbillable - specifies if the usage to be reported is billable or estimatedAPIResult instance representing the marketplace response
throws an MeteredUsageApiException to the client with an error code and a status:
APIResult reportUsage(String baseUrl, String secretKey, MeteredUsageItem meteredUsageItem, boolean billable)
AppmarketBillingClient as this replaces the old API version.baseUrl - from the requestsecretKey - to sign the requestmeteredUsageItem - usage instance to be reportedbillable - specifies if the usage to be reported is billable or estimatedAPIResult instance representing the marketplace response
throws an MeteredUsageApiException to the client with an error code and a status:
APIResult reportUsage(String baseUrl, String secretKey, List<MeteredUsageItem> meteredUsageItems, boolean billable)
AppmarketBillingClient as this replaces the old API version.baseUrl - from the requestsecretKey - to sign the requestmeteredUsageItems - list of usages to be reportedbillable - specifies if the usage to be reported is billable or estimatedAPIResult instance representing the marketplace response
throws an MeteredUsageApiException to the client with an error code and a status:
APIResult reportUsage(String baseUrl, String secretKey, String idempotentKey, List<MeteredUsageItem> meteredUsageItems, boolean billable)
AppmarketBillingClient as this replaces the old API version.baseUrl - from the requestsecretKey - to sign the requestidempotentKey - to make unique callsmeteredUsageItems - list of usages to be reportedbillable - specifies if the usage to be reported is billable or estimatedAPIResult instance representing the marketplace response
throws an MeteredUsageApiException to the client with an error code and a status:
APIResult reportUsage(String baseUrl, String secretKey, String idempotentKey, List<MeteredUsageItem> meteredUsageItems, boolean billable, String sourceType)
AppmarketBillingClient as this replaces the old API version.baseUrl - from the requestsecretKey - to sign the requestidempotentKey - to make unique callsmeteredUsageItems - list of usages to be reportedbillable - specifies if the usage to be reported is billable or estimatedsourceType - specifies the type of source that generate the report (ex. aws, azure_csp, azure_modern)APIResult instance representing the marketplace response
throws an MeteredUsageApiException to the client with an error code and a status:
APIResult reportUsage(String baseUrl, String idempotentKey, MeteredUsageItem meteredUsageItem, boolean billable, String secretKey, String secret)
AppmarketBillingClient as this replaces the old API version.baseUrl - from the requestsecretKey - to sign the requestidempotentKey - to make unique callsmeteredUsageItem - usage instance to be reportedbillable - specifies if the usage to be reported is billable or estimatedAPIResult instance representing the marketplace response
throws an MeteredUsageApiException to the client with an error code and a status:
APIResult reportUsage(String baseUrl, MeteredUsageItem meteredUsageItem, boolean billable, String secretKey, String secret)
AppmarketBillingClient as this replaces the old API version.baseUrl - from the requestsecretKey - to sign the requestmeteredUsageItem - usage instance to be reportedbillable - specifies if the usage to be reported is billable or estimatedAPIResult instance representing the marketplace response
throws an MeteredUsageApiException to the client with an error code and a status:
APIResult reportUsage(String baseUrl, MeteredUsageItem meteredUsageItem, boolean billable, String secretKey, String secret, String sourceType)
AppmarketBillingClient as this replaces the old API version.baseUrl - from the requestsecretKey - to sign the requestmeteredUsageItem - usage instance to be reportedbillable - specifies if the usage to be reported is billable or estimatedsourceType - specifies the type of source that generate the report (ex. aws, azure_csp, azure_modern)APIResult instance representing the marketplace response
throws an MeteredUsageApiException to the client with an error code and a status:
APIResult reportUsage(String baseUrl, List<MeteredUsageItem> meteredUsageItems, boolean billable, String secretKey, String secret)
AppmarketBillingClient as this replaces the old API version.baseUrl - from the requestsecretKey - to sign the requestmeteredUsageItems - list of usages to be reportedbillable - specifies if the usage to be reported is billable or estimatedAPIResult instance representing the marketplace response
throws an MeteredUsageApiException to the client with an error code and a status:
APIResult reportUsage(String baseUrl, String idempotentKey, List<MeteredUsageItem> meteredUsageItems, boolean billable, String secretKey, String secret, String sourceType)
AppmarketBillingClient as this replaces the old API version.baseUrl - from the requestsecretKey - to sign the requestidempotentKey - to make unique callsmeteredUsageItems - list of usages to be reportedbillable - specifies if the usage to be reported is billable or estimatedsourceType - specifies the type of source that generate the report (ex. aws, azure_csp, azure_modern)APIResult instance representing the marketplace response
throws an MeteredUsageApiException to the client with an error code and a status:
APIResult reportUsage(String baseUrl, String secretKey, MeteredUsageItem meteredUsageItem, boolean billable, String sourceType)
AppmarketBillingClient as this replaces the old API version.baseUrl - from the requestsecretKey - to sign the requestmeteredUsageItem - usage instance to be reportedbillable - specifies if the usage to be reported is billable or estimatedsourceType - specifies the type of source that generate the report (ex. aws, azure_csp, azure_modern)APIResult instance representing the marketplace response
throws an MeteredUsageApiException to the client with an error code and a status:
@Retryable(value={ServiceException.class,MeteredUsageApiException.class,java.lang.RuntimeException.class},
exclude=MeterUsageServiceException.class,
maxAttemptsExpression="#{${usage.api.retry.maxAttempts:3}}",
backoff=@Backoff(delayExpression="#{${usage.api.retry.backoff.delay:2000}}",multiplierExpression="#{${usage.api.retry.backoff.multiplier:2}}",maxDelayExpression="#{${usage.api.retry.backoff.maxDelay:30000}}"))
APIResult retryableReportUsage(String baseUrl,
String idempotentKey,
List<MeteredUsageItem> meteredUsageItems,
String secretKey,
boolean billable,
String sourceType)
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.