Interface Forecasts
public interface Forecasts
Resource collection API of Forecasts.
-
Method Summary
Modifier and TypeMethodDescriptionexternalCloudProviderUsage
(ExternalCloudProviderType externalCloudProviderType, String externalCloudProviderId, ForecastDefinition parameters) Lists the forecast charges for external cloud provider type defined.com.azure.core.http.rest.Response<ForecastResult>
externalCloudProviderUsageWithResponse
(ExternalCloudProviderType externalCloudProviderType, String externalCloudProviderId, ForecastDefinition parameters, String filter, com.azure.core.util.Context context) Lists the forecast charges for external cloud provider type defined.usage
(String scope, ForecastDefinition parameters) Lists the forecast charges for scope defined.com.azure.core.http.rest.Response<ForecastResult>
usageWithResponse
(String scope, ForecastDefinition parameters, String filter, com.azure.core.util.Context context) Lists the forecast charges for scope defined.
-
Method Details
-
usageWithResponse
com.azure.core.http.rest.Response<ForecastResult> usageWithResponse(String scope, ForecastDefinition parameters, String filter, com.azure.core.util.Context context) Lists the forecast charges for scope defined.- Parameters:
scope
- The scope associated with forecast operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners.parameters
- Parameters supplied to the CreateOrUpdate Forecast Config operation.filter
- May be used to filter forecasts by properties/usageDate (Utc time), properties/chargeType or properties/grain. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'.context
- The context to associate with this operation.- Returns:
- result of forecast along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
usage
Lists the forecast charges for scope defined.- Parameters:
scope
- The scope associated with forecast operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners.parameters
- Parameters supplied to the CreateOrUpdate Forecast Config operation.- Returns:
- result of forecast.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
externalCloudProviderUsageWithResponse
com.azure.core.http.rest.Response<ForecastResult> externalCloudProviderUsageWithResponse(ExternalCloudProviderType externalCloudProviderType, String externalCloudProviderId, ForecastDefinition parameters, String filter, com.azure.core.util.Context context) Lists the forecast charges for external cloud provider type defined.- Parameters:
externalCloudProviderType
- The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account.externalCloudProviderId
- This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations.parameters
- Parameters supplied to the CreateOrUpdate Forecast Config operation.filter
- May be used to filter forecasts by properties/usageDate (Utc time), properties/chargeType or properties/grain. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'.context
- The context to associate with this operation.- Returns:
- result of forecast along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
externalCloudProviderUsage
ForecastResult externalCloudProviderUsage(ExternalCloudProviderType externalCloudProviderType, String externalCloudProviderId, ForecastDefinition parameters) Lists the forecast charges for external cloud provider type defined.- Parameters:
externalCloudProviderType
- The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account.externalCloudProviderId
- This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations.parameters
- Parameters supplied to the CreateOrUpdate Forecast Config operation.- Returns:
- result of forecast.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-