...

Package usageapi

import "github.com/oracle/oci-go-sdk/usageapi"
Overview
Index

Overview ▾

Index ▾

type Configuration
    func (m Configuration) String() string
type ConfigurationAggregation
    func (m ConfigurationAggregation) String() string
type CostAnalysisUi
    func (m CostAnalysisUi) String() string
type CostAnalysisUiGraphEnum
    func GetCostAnalysisUiGraphEnumValues() []CostAnalysisUiGraphEnum
type CreateCustomTableDetails
    func (m CreateCustomTableDetails) String() string
type CreateCustomTableRequest
    func (request CreateCustomTableRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request CreateCustomTableRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request CreateCustomTableRequest) RetryPolicy() *common.RetryPolicy
    func (request CreateCustomTableRequest) String() string
type CreateCustomTableResponse
    func (response CreateCustomTableResponse) HTTPResponse() *http.Response
    func (response CreateCustomTableResponse) String() string
type CreateQueryDetails
    func (m CreateQueryDetails) String() string
type CreateQueryRequest
    func (request CreateQueryRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request CreateQueryRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request CreateQueryRequest) RetryPolicy() *common.RetryPolicy
    func (request CreateQueryRequest) String() string
type CreateQueryResponse
    func (response CreateQueryResponse) HTTPResponse() *http.Response
    func (response CreateQueryResponse) String() string
type CustomTable
    func (m CustomTable) String() string
type CustomTableCollection
    func (m CustomTableCollection) String() string
type CustomTableSummary
    func (m CustomTableSummary) String() string
type DeleteCustomTableRequest
    func (request DeleteCustomTableRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request DeleteCustomTableRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request DeleteCustomTableRequest) RetryPolicy() *common.RetryPolicy
    func (request DeleteCustomTableRequest) String() string
type DeleteCustomTableResponse
    func (response DeleteCustomTableResponse) HTTPResponse() *http.Response
    func (response DeleteCustomTableResponse) String() string
type DeleteQueryRequest
    func (request DeleteQueryRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request DeleteQueryRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request DeleteQueryRequest) RetryPolicy() *common.RetryPolicy
    func (request DeleteQueryRequest) String() string
type DeleteQueryResponse
    func (response DeleteQueryResponse) HTTPResponse() *http.Response
    func (response DeleteQueryResponse) String() string
type Dimension
    func (m Dimension) String() string
type Filter
    func (m Filter) String() string
type FilterOperatorEnum
    func GetFilterOperatorEnumValues() []FilterOperatorEnum
type Forecast
    func (m Forecast) String() string
type ForecastForecastTypeEnum
    func GetForecastForecastTypeEnumValues() []ForecastForecastTypeEnum
type GetCustomTableRequest
    func (request GetCustomTableRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetCustomTableRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetCustomTableRequest) RetryPolicy() *common.RetryPolicy
    func (request GetCustomTableRequest) String() string
type GetCustomTableResponse
    func (response GetCustomTableResponse) HTTPResponse() *http.Response
    func (response GetCustomTableResponse) String() string
type GetQueryRequest
    func (request GetQueryRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetQueryRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetQueryRequest) RetryPolicy() *common.RetryPolicy
    func (request GetQueryRequest) String() string
type GetQueryResponse
    func (response GetQueryResponse) HTTPResponse() *http.Response
    func (response GetQueryResponse) String() string
type ListCustomTablesRequest
    func (request ListCustomTablesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListCustomTablesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListCustomTablesRequest) RetryPolicy() *common.RetryPolicy
    func (request ListCustomTablesRequest) String() string
type ListCustomTablesResponse
    func (response ListCustomTablesResponse) HTTPResponse() *http.Response
    func (response ListCustomTablesResponse) String() string
type ListCustomTablesSortByEnum
    func GetListCustomTablesSortByEnumValues() []ListCustomTablesSortByEnum
type ListCustomTablesSortOrderEnum
    func GetListCustomTablesSortOrderEnumValues() []ListCustomTablesSortOrderEnum
type ListQueriesRequest
    func (request ListQueriesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListQueriesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListQueriesRequest) RetryPolicy() *common.RetryPolicy
    func (request ListQueriesRequest) String() string
type ListQueriesResponse
    func (response ListQueriesResponse) HTTPResponse() *http.Response
    func (response ListQueriesResponse) String() string
type ListQueriesSortByEnum
    func GetListQueriesSortByEnumValues() []ListQueriesSortByEnum
type ListQueriesSortOrderEnum
    func GetListQueriesSortOrderEnumValues() []ListQueriesSortOrderEnum
type Query
    func (m Query) String() string
type QueryCollection
    func (m QueryCollection) String() string
type QueryDefinition
    func (m QueryDefinition) String() string
type QuerySummary
    func (m QuerySummary) String() string
type ReportQuery
    func (m ReportQuery) String() string
type ReportQueryDateRangeNameEnum
    func GetReportQueryDateRangeNameEnumValues() []ReportQueryDateRangeNameEnum
type ReportQueryGranularityEnum
    func GetReportQueryGranularityEnumValues() []ReportQueryGranularityEnum
type ReportQueryQueryTypeEnum
    func GetReportQueryQueryTypeEnumValues() []ReportQueryQueryTypeEnum
type RequestSummarizedConfigurationsRequest
    func (request RequestSummarizedConfigurationsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request RequestSummarizedConfigurationsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request RequestSummarizedConfigurationsRequest) RetryPolicy() *common.RetryPolicy
    func (request RequestSummarizedConfigurationsRequest) String() string
type RequestSummarizedConfigurationsResponse
    func (response RequestSummarizedConfigurationsResponse) HTTPResponse() *http.Response
    func (response RequestSummarizedConfigurationsResponse) String() string
type RequestSummarizedUsagesDetails
    func (m RequestSummarizedUsagesDetails) String() string
type RequestSummarizedUsagesDetailsGranularityEnum
    func GetRequestSummarizedUsagesDetailsGranularityEnumValues() []RequestSummarizedUsagesDetailsGranularityEnum
type RequestSummarizedUsagesDetailsQueryTypeEnum
    func GetRequestSummarizedUsagesDetailsQueryTypeEnumValues() []RequestSummarizedUsagesDetailsQueryTypeEnum
type RequestSummarizedUsagesRequest
    func (request RequestSummarizedUsagesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request RequestSummarizedUsagesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request RequestSummarizedUsagesRequest) RetryPolicy() *common.RetryPolicy
    func (request RequestSummarizedUsagesRequest) String() string
type RequestSummarizedUsagesResponse
    func (response RequestSummarizedUsagesResponse) HTTPResponse() *http.Response
    func (response RequestSummarizedUsagesResponse) String() string
type SavedCustomTable
    func (m SavedCustomTable) String() string
type Tag
    func (m Tag) String() string
type UpdateCustomTableDetails
    func (m UpdateCustomTableDetails) String() string
type UpdateCustomTableRequest
    func (request UpdateCustomTableRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request UpdateCustomTableRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request UpdateCustomTableRequest) RetryPolicy() *common.RetryPolicy
    func (request UpdateCustomTableRequest) String() string
type UpdateCustomTableResponse
    func (response UpdateCustomTableResponse) HTTPResponse() *http.Response
    func (response UpdateCustomTableResponse) String() string
type UpdateQueryDetails
    func (m UpdateQueryDetails) String() string
type UpdateQueryRequest
    func (request UpdateQueryRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request UpdateQueryRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request UpdateQueryRequest) RetryPolicy() *common.RetryPolicy
    func (request UpdateQueryRequest) String() string
type UpdateQueryResponse
    func (response UpdateQueryResponse) HTTPResponse() *http.Response
    func (response UpdateQueryResponse) String() string
type UsageAggregation
    func (m UsageAggregation) String() string
type UsageSummary
    func (m UsageSummary) String() string
type UsageapiClient
    func NewUsageapiClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client UsageapiClient, err error)
    func NewUsageapiClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client UsageapiClient, err error)
    func (client *UsageapiClient) ConfigurationProvider() *common.ConfigurationProvider
    func (client UsageapiClient) CreateCustomTable(ctx context.Context, request CreateCustomTableRequest) (response CreateCustomTableResponse, err error)
    func (client UsageapiClient) CreateQuery(ctx context.Context, request CreateQueryRequest) (response CreateQueryResponse, err error)
    func (client UsageapiClient) DeleteCustomTable(ctx context.Context, request DeleteCustomTableRequest) (response DeleteCustomTableResponse, err error)
    func (client UsageapiClient) DeleteQuery(ctx context.Context, request DeleteQueryRequest) (response DeleteQueryResponse, err error)
    func (client UsageapiClient) GetCustomTable(ctx context.Context, request GetCustomTableRequest) (response GetCustomTableResponse, err error)
    func (client UsageapiClient) GetQuery(ctx context.Context, request GetQueryRequest) (response GetQueryResponse, err error)
    func (client UsageapiClient) ListCustomTables(ctx context.Context, request ListCustomTablesRequest) (response ListCustomTablesResponse, err error)
    func (client UsageapiClient) ListQueries(ctx context.Context, request ListQueriesRequest) (response ListQueriesResponse, err error)
    func (client UsageapiClient) RequestSummarizedConfigurations(ctx context.Context, request RequestSummarizedConfigurationsRequest) (response RequestSummarizedConfigurationsResponse, err error)
    func (client UsageapiClient) RequestSummarizedUsages(ctx context.Context, request RequestSummarizedUsagesRequest) (response RequestSummarizedUsagesResponse, err error)
    func (client *UsageapiClient) SetRegion(region string)
    func (client UsageapiClient) UpdateCustomTable(ctx context.Context, request UpdateCustomTableRequest) (response UpdateCustomTableResponse, err error)
    func (client UsageapiClient) UpdateQuery(ctx context.Context, request UpdateQueryRequest) (response UpdateQueryResponse, err error)

Package files

configuration.go configuration_aggregation.go cost_analysis_ui.go create_custom_table_details.go create_custom_table_request_response.go create_query_details.go create_query_request_response.go custom_table.go custom_table_collection.go custom_table_summary.go delete_custom_table_request_response.go delete_query_request_response.go dimension.go filter.go forecast.go get_custom_table_request_response.go get_query_request_response.go list_custom_tables_request_response.go list_queries_request_response.go query.go query_collection.go query_definition.go query_summary.go report_query.go request_summarized_configurations_request_response.go request_summarized_usages_details.go request_summarized_usages_request_response.go saved_custom_table.go tag.go update_custom_table_details.go update_custom_table_request_response.go update_query_details.go update_query_request_response.go usage_aggregation.go usage_summary.go usageapi_client.go

type Configuration

Configuration A configuration.

type Configuration struct {

    // The configuration key.
    Key *string `mandatory:"true" json:"key"`

    // The configuration value.
    Values []string `mandatory:"false" json:"values"`
}

func (Configuration) String

func (m Configuration) String() string

type ConfigurationAggregation

ConfigurationAggregation The available configurations.

type ConfigurationAggregation struct {

    // The list of available configurations.
    Items []Configuration `mandatory:"true" json:"items"`
}

func (ConfigurationAggregation) String

func (m ConfigurationAggregation) String() string

type CostAnalysisUi

CostAnalysisUi The common fields for Cost Analysis UI rendering.

type CostAnalysisUi struct {

    // The graph type.
    Graph CostAnalysisUiGraphEnum `mandatory:"false" json:"graph,omitempty"`

    // A cumulative graph.
    IsCumulativeGraph *bool `mandatory:"false" json:"isCumulativeGraph"`
}

func (CostAnalysisUi) String

func (m CostAnalysisUi) String() string

type CostAnalysisUiGraphEnum

CostAnalysisUiGraphEnum Enum with underlying type: string

type CostAnalysisUiGraphEnum string

Set of constants representing the allowable values for CostAnalysisUiGraphEnum

const (
    CostAnalysisUiGraphBars         CostAnalysisUiGraphEnum = "BARS"
    CostAnalysisUiGraphLines        CostAnalysisUiGraphEnum = "LINES"
    CostAnalysisUiGraphStackedLines CostAnalysisUiGraphEnum = "STACKED_LINES"
)

func GetCostAnalysisUiGraphEnumValues

func GetCostAnalysisUiGraphEnumValues() []CostAnalysisUiGraphEnum

GetCostAnalysisUiGraphEnumValues Enumerates the set of values for CostAnalysisUiGraphEnum

type CreateCustomTableDetails

CreateCustomTableDetails New custom table detail.

type CreateCustomTableDetails struct {

    // The compartment OCID.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // The associated saved report OCID.
    SavedReportId *string `mandatory:"true" json:"savedReportId"`

    SavedCustomTable *SavedCustomTable `mandatory:"true" json:"savedCustomTable"`
}

func (CreateCustomTableDetails) String

func (m CreateCustomTableDetails) String() string

type CreateCustomTableRequest

CreateCustomTableRequest wrapper for the CreateCustomTable operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/46.1.0/usageapi/CreateCustomTable.go.html to see an example of how to use CreateCustomTableRequest.

type CreateCustomTableRequest struct {

    // New custom table details.
    CreateCustomTableDetails `contributesTo:"body"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
    // particular request, please provide the request ID.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // A token that uniquely identifies a request so it can be retried in case of a timeout or
    // server error, without risk of executing that same action again. Retry tokens expire after 24
    // hours, but can be invalidated before then due to conflicting operations. For example, if a resource
    // has been deleted and purged from the system, then a retry of the original creation request
    // might be rejected.
    OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (CreateCustomTableRequest) BinaryRequestBody

func (request CreateCustomTableRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (CreateCustomTableRequest) HTTPRequest

func (request CreateCustomTableRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (CreateCustomTableRequest) RetryPolicy

func (request CreateCustomTableRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (CreateCustomTableRequest) String

func (request CreateCustomTableRequest) String() string

type CreateCustomTableResponse

CreateCustomTableResponse wrapper for the CreateCustomTable operation

type CreateCustomTableResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The CustomTable instance
    CustomTable `presentIn:"body"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`
}

func (CreateCustomTableResponse) HTTPResponse

func (response CreateCustomTableResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (CreateCustomTableResponse) String

func (response CreateCustomTableResponse) String() string

type CreateQueryDetails

CreateQueryDetails New query detail with savedRequestSummarizedUsagesDetails, savedCostAnalysisUI, and displayName.

type CreateQueryDetails struct {

    // The compartment OCID.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    QueryDefinition *QueryDefinition `mandatory:"true" json:"queryDefinition"`
}

func (CreateQueryDetails) String

func (m CreateQueryDetails) String() string

type CreateQueryRequest

CreateQueryRequest wrapper for the CreateQuery operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/46.1.0/usageapi/CreateQuery.go.html to see an example of how to use CreateQueryRequest.

type CreateQueryRequest struct {

    // New query details. Up to ten saved queries.
    CreateQueryDetails `contributesTo:"body"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
    // particular request, please provide the request ID.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // A token that uniquely identifies a request so it can be retried in case of a timeout or
    // server error, without risk of executing that same action again. Retry tokens expire after 24
    // hours, but can be invalidated before then due to conflicting operations. For example, if a resource
    // has been deleted and purged from the system, then a retry of the original creation request
    // might be rejected.
    OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (CreateQueryRequest) BinaryRequestBody

func (request CreateQueryRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (CreateQueryRequest) HTTPRequest

func (request CreateQueryRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (CreateQueryRequest) RetryPolicy

func (request CreateQueryRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (CreateQueryRequest) String

func (request CreateQueryRequest) String() string

type CreateQueryResponse

CreateQueryResponse wrapper for the CreateQuery operation

type CreateQueryResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Query instance
    Query `presentIn:"body"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`
}

func (CreateQueryResponse) HTTPResponse

func (response CreateQueryResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (CreateQueryResponse) String

func (response CreateQueryResponse) String() string

type CustomTable

CustomTable The saved custom table.

type CustomTable struct {

    // The custom table OCID.
    Id *string `mandatory:"true" json:"id"`

    // The custom table associated saved report OCID.
    SavedReportId *string `mandatory:"false" json:"savedReportId"`

    // The custom table compartment OCID.
    CompartmentId *string `mandatory:"false" json:"compartmentId"`

    SavedCustomTable *SavedCustomTable `mandatory:"false" json:"savedCustomTable"`
}

func (CustomTable) String

func (m CustomTable) String() string

type CustomTableCollection

CustomTableCollection A custom table list.

type CustomTableCollection struct {

    // Custom tables list.
    Items []CustomTableSummary `mandatory:"true" json:"items"`
}

func (CustomTableCollection) String

func (m CustomTableCollection) String() string

type CustomTableSummary

CustomTableSummary Custom table in the list request.

type CustomTableSummary struct {

    // The custom table OCID.
    Id *string `mandatory:"true" json:"id"`

    SavedCustomTable *SavedCustomTable `mandatory:"true" json:"savedCustomTable"`
}

func (CustomTableSummary) String

func (m CustomTableSummary) String() string

type DeleteCustomTableRequest

DeleteCustomTableRequest wrapper for the DeleteCustomTable operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/46.1.0/usageapi/DeleteCustomTable.go.html to see an example of how to use DeleteCustomTableRequest.

type DeleteCustomTableRequest struct {

    // The custom table unique OCID.
    CustomTableId *string `mandatory:"true" contributesTo:"path" name:"customTableId"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
    // particular request, please provide the request ID.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // For optimistic concurrency control. In the PUT or DELETE call
    // for a resource, set the `if-match` parameter to the value of the
    // etag from a previous GET or POST response for that resource.
    // The resource will be updated or deleted, only if the etag you
    // provide matches the resource's current etag value.
    IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (DeleteCustomTableRequest) BinaryRequestBody

func (request DeleteCustomTableRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (DeleteCustomTableRequest) HTTPRequest

func (request DeleteCustomTableRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (DeleteCustomTableRequest) RetryPolicy

func (request DeleteCustomTableRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (DeleteCustomTableRequest) String

func (request DeleteCustomTableRequest) String() string

type DeleteCustomTableResponse

DeleteCustomTableResponse wrapper for the DeleteCustomTable operation

type DeleteCustomTableResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

func (DeleteCustomTableResponse) HTTPResponse

func (response DeleteCustomTableResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (DeleteCustomTableResponse) String

func (response DeleteCustomTableResponse) String() string

type DeleteQueryRequest

DeleteQueryRequest wrapper for the DeleteQuery operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/46.1.0/usageapi/DeleteQuery.go.html to see an example of how to use DeleteQueryRequest.

type DeleteQueryRequest struct {

    // The query unique OCID.
    QueryId *string `mandatory:"true" contributesTo:"path" name:"queryId"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
    // particular request, please provide the request ID.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // For optimistic concurrency control. In the PUT or DELETE call
    // for a resource, set the `if-match` parameter to the value of the
    // etag from a previous GET or POST response for that resource.
    // The resource will be updated or deleted, only if the etag you
    // provide matches the resource's current etag value.
    IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (DeleteQueryRequest) BinaryRequestBody

func (request DeleteQueryRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (DeleteQueryRequest) HTTPRequest

func (request DeleteQueryRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (DeleteQueryRequest) RetryPolicy

func (request DeleteQueryRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (DeleteQueryRequest) String

func (request DeleteQueryRequest) String() string

type DeleteQueryResponse

DeleteQueryResponse wrapper for the DeleteQuery operation

type DeleteQueryResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

func (DeleteQueryResponse) HTTPResponse

func (response DeleteQueryResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (DeleteQueryResponse) String

func (response DeleteQueryResponse) String() string

type Dimension

Dimension The dimension used for filtering. Availabe dimensions are: "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", and "tenantName". For example: `[{value: "COMPUTE", key: "service"}]`

type Dimension struct {

    // The dimension key.
    Key *string `mandatory:"true" json:"key"`

    // The dimension value.
    Value *string `mandatory:"true" json:"value"`
}

func (Dimension) String

func (m Dimension) String() string

type Filter

Filter The filter object for query usage.

type Filter struct {

    // The filter operator. Example: 'AND', 'OR', 'NOT'.
    Operator FilterOperatorEnum `mandatory:"false" json:"operator,omitempty"`

    // The dimensions to filter on.
    Dimensions []Dimension `mandatory:"false" json:"dimensions"`

    // The tags to filter on.
    Tags []Tag `mandatory:"false" json:"tags"`

    // The nested filter object.
    Filters []Filter `mandatory:"false" json:"filters"`
}

func (Filter) String

func (m Filter) String() string

type FilterOperatorEnum

FilterOperatorEnum Enum with underlying type: string

type FilterOperatorEnum string

Set of constants representing the allowable values for FilterOperatorEnum

const (
    FilterOperatorAnd FilterOperatorEnum = "AND"
    FilterOperatorNot FilterOperatorEnum = "NOT"
    FilterOperatorOr  FilterOperatorEnum = "OR"
)

func GetFilterOperatorEnumValues

func GetFilterOperatorEnumValues() []FilterOperatorEnum

GetFilterOperatorEnumValues Enumerates the set of values for FilterOperatorEnum

type Forecast

Forecast Forecast configuration of usage/cost.

type Forecast struct {

    // The forecast end time.
    TimeForecastEnded *common.SDKTime `mandatory:"true" json:"timeForecastEnded"`

    // BASIC uses the exponential smoothing (ETS) model to project future usage/costs based on history data. The basis for projections is a periodic set of equivalent historical days for which the projection is being made.
    ForecastType ForecastForecastTypeEnum `mandatory:"false" json:"forecastType,omitempty"`

    // The forecast start time. Defaults to UTC-1 if not specified.
    TimeForecastStarted *common.SDKTime `mandatory:"false" json:"timeForecastStarted"`
}

func (Forecast) String

func (m Forecast) String() string

type ForecastForecastTypeEnum

ForecastForecastTypeEnum Enum with underlying type: string

type ForecastForecastTypeEnum string

Set of constants representing the allowable values for ForecastForecastTypeEnum

const (
    ForecastForecastTypeBasic ForecastForecastTypeEnum = "BASIC"
)

func GetForecastForecastTypeEnumValues

func GetForecastForecastTypeEnumValues() []ForecastForecastTypeEnum

GetForecastForecastTypeEnumValues Enumerates the set of values for ForecastForecastTypeEnum

type GetCustomTableRequest

GetCustomTableRequest wrapper for the GetCustomTable operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/46.1.0/usageapi/GetCustomTable.go.html to see an example of how to use GetCustomTableRequest.

type GetCustomTableRequest struct {

    // The custom table unique OCID.
    CustomTableId *string `mandatory:"true" contributesTo:"path" name:"customTableId"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
    // particular request, please provide the request ID.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (GetCustomTableRequest) BinaryRequestBody

func (request GetCustomTableRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (GetCustomTableRequest) HTTPRequest

func (request GetCustomTableRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (GetCustomTableRequest) RetryPolicy

func (request GetCustomTableRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (GetCustomTableRequest) String

func (request GetCustomTableRequest) String() string

type GetCustomTableResponse

GetCustomTableResponse wrapper for the GetCustomTable operation

type GetCustomTableResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The CustomTable instance
    CustomTable `presentIn:"body"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`
}

func (GetCustomTableResponse) HTTPResponse

func (response GetCustomTableResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (GetCustomTableResponse) String

func (response GetCustomTableResponse) String() string

type GetQueryRequest

GetQueryRequest wrapper for the GetQuery operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/46.1.0/usageapi/GetQuery.go.html to see an example of how to use GetQueryRequest.

type GetQueryRequest struct {

    // The query unique OCID.
    QueryId *string `mandatory:"true" contributesTo:"path" name:"queryId"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
    // particular request, please provide the request ID.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (GetQueryRequest) BinaryRequestBody

func (request GetQueryRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (GetQueryRequest) HTTPRequest

func (request GetQueryRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (GetQueryRequest) RetryPolicy

func (request GetQueryRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (GetQueryRequest) String

func (request GetQueryRequest) String() string

type GetQueryResponse

GetQueryResponse wrapper for the GetQuery operation

type GetQueryResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Query instance
    Query `presentIn:"body"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`
}

func (GetQueryResponse) HTTPResponse

func (response GetQueryResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (GetQueryResponse) String

func (response GetQueryResponse) String() string

type ListCustomTablesRequest

ListCustomTablesRequest wrapper for the ListCustomTables operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/46.1.0/usageapi/ListCustomTables.go.html to see an example of how to use ListCustomTablesRequest.

type ListCustomTablesRequest struct {

    // The compartment ID in which to list resources.
    CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`

    // The saved report ID in which to list resources.
    SavedReportId *string `mandatory:"true" contributesTo:"query" name:"savedReportId"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
    // particular request, please provide the request ID.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // The maximumimum number of items to return.
    Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

    // The page token representing the page at which to start retrieving results.
    // This is usually retrieved from a previous list call.
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

    // The field to sort by. If not specified, the default is displayName.
    SortBy ListCustomTablesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

    // The sort order to use, whether 'asc' or 'desc'.
    SortOrder ListCustomTablesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (ListCustomTablesRequest) BinaryRequestBody

func (request ListCustomTablesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (ListCustomTablesRequest) HTTPRequest

func (request ListCustomTablesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ListCustomTablesRequest) RetryPolicy

func (request ListCustomTablesRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (ListCustomTablesRequest) String

func (request ListCustomTablesRequest) String() string

type ListCustomTablesResponse

ListCustomTablesResponse wrapper for the ListCustomTables operation

type ListCustomTablesResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of CustomTableCollection instances
    CustomTableCollection `presentIn:"body"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`

    // For pagination of a list of custom tables. If this header appears in the response, then this
    // is a partial list of custom tables. Include this value as the `page` parameter in a subsequent
    // GET request, to get the next batch of custom tables.
    OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}

func (ListCustomTablesResponse) HTTPResponse

func (response ListCustomTablesResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (ListCustomTablesResponse) String

func (response ListCustomTablesResponse) String() string

type ListCustomTablesSortByEnum

ListCustomTablesSortByEnum Enum with underlying type: string

type ListCustomTablesSortByEnum string

Set of constants representing the allowable values for ListCustomTablesSortByEnum

const (
    ListCustomTablesSortByDisplayname ListCustomTablesSortByEnum = "displayName"
)

func GetListCustomTablesSortByEnumValues

func GetListCustomTablesSortByEnumValues() []ListCustomTablesSortByEnum

GetListCustomTablesSortByEnumValues Enumerates the set of values for ListCustomTablesSortByEnum

type ListCustomTablesSortOrderEnum

ListCustomTablesSortOrderEnum Enum with underlying type: string

type ListCustomTablesSortOrderEnum string

Set of constants representing the allowable values for ListCustomTablesSortOrderEnum

const (
    ListCustomTablesSortOrderAsc  ListCustomTablesSortOrderEnum = "ASC"
    ListCustomTablesSortOrderDesc ListCustomTablesSortOrderEnum = "DESC"
)

func GetListCustomTablesSortOrderEnumValues

func GetListCustomTablesSortOrderEnumValues() []ListCustomTablesSortOrderEnum

GetListCustomTablesSortOrderEnumValues Enumerates the set of values for ListCustomTablesSortOrderEnum

type ListQueriesRequest

ListQueriesRequest wrapper for the ListQueries operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/46.1.0/usageapi/ListQueries.go.html to see an example of how to use ListQueriesRequest.

type ListQueriesRequest struct {

    // The compartment ID in which to list resources.
    CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
    // particular request, please provide the request ID.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // The maximumimum number of items to return.
    Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

    // The page token representing the page at which to start retrieving results.
    // This is usually retrieved from a previous list call.
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

    // The field to sort by. If not specified, the default is displayName.
    SortBy ListQueriesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

    // The sort order to use, whether 'asc' or 'desc'.
    SortOrder ListQueriesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (ListQueriesRequest) BinaryRequestBody

func (request ListQueriesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (ListQueriesRequest) HTTPRequest

func (request ListQueriesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ListQueriesRequest) RetryPolicy

func (request ListQueriesRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (ListQueriesRequest) String

func (request ListQueriesRequest) String() string

type ListQueriesResponse

ListQueriesResponse wrapper for the ListQueries operation

type ListQueriesResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of QueryCollection instances
    QueryCollection `presentIn:"body"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`

    // For pagination of a list of Queries. If this header appears in the response, then this
    // is a partial list of Queries. Include this value as the `page` parameter in a subsequent
    // GET request, to get the next batch of Queries.
    OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}

func (ListQueriesResponse) HTTPResponse

func (response ListQueriesResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (ListQueriesResponse) String

func (response ListQueriesResponse) String() string

type ListQueriesSortByEnum

ListQueriesSortByEnum Enum with underlying type: string

type ListQueriesSortByEnum string

Set of constants representing the allowable values for ListQueriesSortByEnum

const (
    ListQueriesSortByDisplayname ListQueriesSortByEnum = "displayName"
)

func GetListQueriesSortByEnumValues

func GetListQueriesSortByEnumValues() []ListQueriesSortByEnum

GetListQueriesSortByEnumValues Enumerates the set of values for ListQueriesSortByEnum

type ListQueriesSortOrderEnum

ListQueriesSortOrderEnum Enum with underlying type: string

type ListQueriesSortOrderEnum string

Set of constants representing the allowable values for ListQueriesSortOrderEnum

const (
    ListQueriesSortOrderAsc  ListQueriesSortOrderEnum = "ASC"
    ListQueriesSortOrderDesc ListQueriesSortOrderEnum = "DESC"
)

func GetListQueriesSortOrderEnumValues

func GetListQueriesSortOrderEnumValues() []ListQueriesSortOrderEnum

GetListQueriesSortOrderEnumValues Enumerates the set of values for ListQueriesSortOrderEnum

type Query

Query The query to filter and aggregate.

type Query struct {

    // The query OCID.
    Id *string `mandatory:"true" json:"id"`

    // The compartment OCID.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    QueryDefinition *QueryDefinition `mandatory:"true" json:"queryDefinition"`
}

func (Query) String

func (m Query) String() string

type QueryCollection

QueryCollection A query list.

type QueryCollection struct {

    // Query list.
    Items []QuerySummary `mandatory:"true" json:"items"`
}

func (QueryCollection) String

func (m QueryCollection) String() string

type QueryDefinition

QueryDefinition The common fields for queries.

type QueryDefinition struct {

    // The query display name. Avoid entering confidential information.
    DisplayName *string `mandatory:"true" json:"displayName"`

    ReportQuery *ReportQuery `mandatory:"true" json:"reportQuery"`

    CostAnalysisUI *CostAnalysisUi `mandatory:"true" json:"costAnalysisUI"`

    // The saved query version.
    Version *float32 `mandatory:"true" json:"version"`
}

func (QueryDefinition) String

func (m QueryDefinition) String() string

type QuerySummary

QuerySummary Query summery in the list request.

type QuerySummary struct {

    // The query OCID.
    Id *string `mandatory:"true" json:"id"`

    QueryDefinition *QueryDefinition `mandatory:"true" json:"queryDefinition"`
}

func (QuerySummary) String

func (m QuerySummary) String() string

type ReportQuery

ReportQuery The request of the generated Cost Analysis report.

type ReportQuery struct {

    // Tenant ID.
    TenantId *string `mandatory:"true" json:"tenantId"`

    // The usage granularity.
    // HOURLY - Hourly data aggregation.
    // DAILY - Daily data aggregation.
    // MONTHLY - Monthly data aggregation.
    // TOTAL - Not yet supported.
    Granularity ReportQueryGranularityEnum `mandatory:"true" json:"granularity"`

    // The usage start time.
    TimeUsageStarted *common.SDKTime `mandatory:"false" json:"timeUsageStarted"`

    // The usage end time.
    TimeUsageEnded *common.SDKTime `mandatory:"false" json:"timeUsageEnded"`

    // Whether aggregated by time. If isAggregateByTime is true, all usage/cost over the query time period will be added up.
    IsAggregateByTime *bool `mandatory:"false" json:"isAggregateByTime"`

    Forecast *Forecast `mandatory:"false" json:"forecast"`

    // The query usage type. COST by default if it is missing.
    // Usage - Query the usage data.
    // Cost - Query the cost/billing data.
    // Credit - Query the credit adjustments data.
    // ExpiredCredit - Query the expired credits data
    // AllCredit - Query the credit adjustments and expired credit
    QueryType ReportQueryQueryTypeEnum `mandatory:"false" json:"queryType,omitempty"`

    // Aggregate the result by.
    // example:
    //   `["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit",
    //     "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd",
    //     "resourceId", "tenantId", "tenantName"]`
    GroupBy []string `mandatory:"false" json:"groupBy"`

    // GroupBy a specific tagKey. Provide the tagNamespace and tagKey in the tag object. Only supports one tag in the list.
    // For example:
    //   `[{"namespace":"oracle", "key":"createdBy"]`
    GroupByTag []Tag `mandatory:"false" json:"groupByTag"`

    // The compartment depth level.
    CompartmentDepth *float32 `mandatory:"false" json:"compartmentDepth"`

    Filter *Filter `mandatory:"false" json:"filter"`

    // The UI date range, for example, LAST_THREE_MONTHS. Conflicts with timeUsageStarted and timeUsageEnded.
    DateRangeName ReportQueryDateRangeNameEnum `mandatory:"false" json:"dateRangeName,omitempty"`
}

func (ReportQuery) String

func (m ReportQuery) String() string

type ReportQueryDateRangeNameEnum

ReportQueryDateRangeNameEnum Enum with underlying type: string

type ReportQueryDateRangeNameEnum string

Set of constants representing the allowable values for ReportQueryDateRangeNameEnum

const (
    ReportQueryDateRangeNameLastSevenDays   ReportQueryDateRangeNameEnum = "LAST_SEVEN_DAYS"
    ReportQueryDateRangeNameLastTenDays     ReportQueryDateRangeNameEnum = "LAST_TEN_DAYS"
    ReportQueryDateRangeNameMtd             ReportQueryDateRangeNameEnum = "MTD"
    ReportQueryDateRangeNameLastTwoMonths   ReportQueryDateRangeNameEnum = "LAST_TWO_MONTHS"
    ReportQueryDateRangeNameLastThreeMonths ReportQueryDateRangeNameEnum = "LAST_THREE_MONTHS"
    ReportQueryDateRangeNameAll             ReportQueryDateRangeNameEnum = "ALL"
    ReportQueryDateRangeNameLastSixMonths   ReportQueryDateRangeNameEnum = "LAST_SIX_MONTHS"
    ReportQueryDateRangeNameLastOneYear     ReportQueryDateRangeNameEnum = "LAST_ONE_YEAR"
    ReportQueryDateRangeNameYtd             ReportQueryDateRangeNameEnum = "YTD"
    ReportQueryDateRangeNameCustom          ReportQueryDateRangeNameEnum = "CUSTOM"
)

func GetReportQueryDateRangeNameEnumValues

func GetReportQueryDateRangeNameEnumValues() []ReportQueryDateRangeNameEnum

GetReportQueryDateRangeNameEnumValues Enumerates the set of values for ReportQueryDateRangeNameEnum

type ReportQueryGranularityEnum

ReportQueryGranularityEnum Enum with underlying type: string

type ReportQueryGranularityEnum string

Set of constants representing the allowable values for ReportQueryGranularityEnum

const (
    ReportQueryGranularityHourly  ReportQueryGranularityEnum = "HOURLY"
    ReportQueryGranularityDaily   ReportQueryGranularityEnum = "DAILY"
    ReportQueryGranularityMonthly ReportQueryGranularityEnum = "MONTHLY"
    ReportQueryGranularityTotal   ReportQueryGranularityEnum = "TOTAL"
)

func GetReportQueryGranularityEnumValues

func GetReportQueryGranularityEnumValues() []ReportQueryGranularityEnum

GetReportQueryGranularityEnumValues Enumerates the set of values for ReportQueryGranularityEnum

type ReportQueryQueryTypeEnum

ReportQueryQueryTypeEnum Enum with underlying type: string

type ReportQueryQueryTypeEnum string

Set of constants representing the allowable values for ReportQueryQueryTypeEnum

const (
    ReportQueryQueryTypeUsage         ReportQueryQueryTypeEnum = "USAGE"
    ReportQueryQueryTypeCost          ReportQueryQueryTypeEnum = "COST"
    ReportQueryQueryTypeCredit        ReportQueryQueryTypeEnum = "CREDIT"
    ReportQueryQueryTypeExpiredcredit ReportQueryQueryTypeEnum = "EXPIREDCREDIT"
    ReportQueryQueryTypeAllcredit     ReportQueryQueryTypeEnum = "ALLCREDIT"
)

func GetReportQueryQueryTypeEnumValues

func GetReportQueryQueryTypeEnumValues() []ReportQueryQueryTypeEnum

GetReportQueryQueryTypeEnumValues Enumerates the set of values for ReportQueryQueryTypeEnum

type RequestSummarizedConfigurationsRequest

RequestSummarizedConfigurationsRequest wrapper for the RequestSummarizedConfigurations operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/46.1.0/usageapi/RequestSummarizedConfigurations.go.html to see an example of how to use RequestSummarizedConfigurationsRequest.

type RequestSummarizedConfigurationsRequest struct {

    // tenant id
    TenantId *string `mandatory:"true" contributesTo:"query" name:"tenantId"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
    // particular request, please provide the request ID.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (RequestSummarizedConfigurationsRequest) BinaryRequestBody

func (request RequestSummarizedConfigurationsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (RequestSummarizedConfigurationsRequest) HTTPRequest

func (request RequestSummarizedConfigurationsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (RequestSummarizedConfigurationsRequest) RetryPolicy

func (request RequestSummarizedConfigurationsRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (RequestSummarizedConfigurationsRequest) String

func (request RequestSummarizedConfigurationsRequest) String() string

type RequestSummarizedConfigurationsResponse

RequestSummarizedConfigurationsResponse wrapper for the RequestSummarizedConfigurations operation

type RequestSummarizedConfigurationsResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The ConfigurationAggregation instance
    ConfigurationAggregation `presentIn:"body"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

func (RequestSummarizedConfigurationsResponse) HTTPResponse

func (response RequestSummarizedConfigurationsResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (RequestSummarizedConfigurationsResponse) String

func (response RequestSummarizedConfigurationsResponse) String() string

type RequestSummarizedUsagesDetails

RequestSummarizedUsagesDetails Details for the '/usage' query.

type RequestSummarizedUsagesDetails struct {

    // Tenant ID.
    TenantId *string `mandatory:"true" json:"tenantId"`

    // The usage start time.
    TimeUsageStarted *common.SDKTime `mandatory:"true" json:"timeUsageStarted"`

    // The usage end time.
    TimeUsageEnded *common.SDKTime `mandatory:"true" json:"timeUsageEnded"`

    // The usage granularity.
    // HOURLY - Hourly data aggregation.
    // DAILY - Daily data aggregation.
    // MONTHLY - Monthly data aggregation.
    // TOTAL - Not yet supported.
    Granularity RequestSummarizedUsagesDetailsGranularityEnum `mandatory:"true" json:"granularity"`

    // Whether aggregated by time. If isAggregateByTime is true, all usage/cost over the query time period will be added up.
    IsAggregateByTime *bool `mandatory:"false" json:"isAggregateByTime"`

    Forecast *Forecast `mandatory:"false" json:"forecast"`

    // The query usage type. COST by default if it is missing.
    // Usage - Query the usage data.
    // Cost - Query the cost/billing data.
    // Credit - Query the credit adjustments data.
    // ExpiredCredit - Query the expired credits data.
    // AllCredit - Query the credit adjustments and expired credit.
    QueryType RequestSummarizedUsagesDetailsQueryTypeEnum `mandatory:"false" json:"queryType,omitempty"`

    // Aggregate the result by.
    // example:
    //   `["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit",
    //     "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd",
    //     "resourceId", "tenantId", "tenantName"]`
    GroupBy []string `mandatory:"false" json:"groupBy"`

    // GroupBy a specific tagKey. Provide the tagNamespace and tagKey in the tag object. Only supports one tag in the list.
    // For example:
    //   `[{"namespace":"oracle", "key":"createdBy"]`
    GroupByTag []Tag `mandatory:"false" json:"groupByTag"`

    // The compartment depth level.
    CompartmentDepth *float32 `mandatory:"false" json:"compartmentDepth"`

    Filter *Filter `mandatory:"false" json:"filter"`
}

func (RequestSummarizedUsagesDetails) String

func (m RequestSummarizedUsagesDetails) String() string

type RequestSummarizedUsagesDetailsGranularityEnum

RequestSummarizedUsagesDetailsGranularityEnum Enum with underlying type: string

type RequestSummarizedUsagesDetailsGranularityEnum string

Set of constants representing the allowable values for RequestSummarizedUsagesDetailsGranularityEnum

const (
    RequestSummarizedUsagesDetailsGranularityHourly  RequestSummarizedUsagesDetailsGranularityEnum = "HOURLY"
    RequestSummarizedUsagesDetailsGranularityDaily   RequestSummarizedUsagesDetailsGranularityEnum = "DAILY"
    RequestSummarizedUsagesDetailsGranularityMonthly RequestSummarizedUsagesDetailsGranularityEnum = "MONTHLY"
    RequestSummarizedUsagesDetailsGranularityTotal   RequestSummarizedUsagesDetailsGranularityEnum = "TOTAL"
)

func GetRequestSummarizedUsagesDetailsGranularityEnumValues

func GetRequestSummarizedUsagesDetailsGranularityEnumValues() []RequestSummarizedUsagesDetailsGranularityEnum

GetRequestSummarizedUsagesDetailsGranularityEnumValues Enumerates the set of values for RequestSummarizedUsagesDetailsGranularityEnum

type RequestSummarizedUsagesDetailsQueryTypeEnum

RequestSummarizedUsagesDetailsQueryTypeEnum Enum with underlying type: string

type RequestSummarizedUsagesDetailsQueryTypeEnum string

Set of constants representing the allowable values for RequestSummarizedUsagesDetailsQueryTypeEnum

const (
    RequestSummarizedUsagesDetailsQueryTypeUsage         RequestSummarizedUsagesDetailsQueryTypeEnum = "USAGE"
    RequestSummarizedUsagesDetailsQueryTypeCost          RequestSummarizedUsagesDetailsQueryTypeEnum = "COST"
    RequestSummarizedUsagesDetailsQueryTypeCredit        RequestSummarizedUsagesDetailsQueryTypeEnum = "CREDIT"
    RequestSummarizedUsagesDetailsQueryTypeExpiredcredit RequestSummarizedUsagesDetailsQueryTypeEnum = "EXPIREDCREDIT"
    RequestSummarizedUsagesDetailsQueryTypeAllcredit     RequestSummarizedUsagesDetailsQueryTypeEnum = "ALLCREDIT"
)

func GetRequestSummarizedUsagesDetailsQueryTypeEnumValues

func GetRequestSummarizedUsagesDetailsQueryTypeEnumValues() []RequestSummarizedUsagesDetailsQueryTypeEnum

GetRequestSummarizedUsagesDetailsQueryTypeEnumValues Enumerates the set of values for RequestSummarizedUsagesDetailsQueryTypeEnum

type RequestSummarizedUsagesRequest

RequestSummarizedUsagesRequest wrapper for the RequestSummarizedUsages operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/46.1.0/usageapi/RequestSummarizedUsages.go.html to see an example of how to use RequestSummarizedUsagesRequest.

type RequestSummarizedUsagesRequest struct {

    // getUsageRequest contains query inforamtion.
    RequestSummarizedUsagesDetails `contributesTo:"body"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
    // particular request, please provide the request ID.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // The page token representing the page at which to start retrieving results.
    // This is usually retrieved from a previous list call.
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

    // The maximumimum number of items to return.
    Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (RequestSummarizedUsagesRequest) BinaryRequestBody

func (request RequestSummarizedUsagesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (RequestSummarizedUsagesRequest) HTTPRequest

func (request RequestSummarizedUsagesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (RequestSummarizedUsagesRequest) RetryPolicy

func (request RequestSummarizedUsagesRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (RequestSummarizedUsagesRequest) String

func (request RequestSummarizedUsagesRequest) String() string

type RequestSummarizedUsagesResponse

RequestSummarizedUsagesResponse wrapper for the RequestSummarizedUsages operation

type RequestSummarizedUsagesResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of UsageAggregation instances
    UsageAggregation `presentIn:"body"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`

    // For pagination of a list of items. When paging through a list, if this header appears in the response,
    // then a partial list might have been returned. Include this value as the `page` parameter for the
    // subsequent GET request to get the next batch of items.
    OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}

func (RequestSummarizedUsagesResponse) HTTPResponse

func (response RequestSummarizedUsagesResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (RequestSummarizedUsagesResponse) String

func (response RequestSummarizedUsagesResponse) String() string

type SavedCustomTable

SavedCustomTable The custom table for Cost Analysis UI rendering.

type SavedCustomTable struct {

    // The name of the custom table.
    DisplayName *string `mandatory:"true" json:"displayName"`

    // The row groupBy key list.
    // example:
    //   `["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit",
    //     "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd",
    //     "resourceId", "tenantId", "tenantName"]`
    RowGroupBy []string `mandatory:"false" json:"rowGroupBy"`

    // The column groupBy key list.
    // example:
    //   `["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit",
    //     "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd",
    //     "resourceId", "tenantId", "tenantName"]`
    ColumnGroupBy []string `mandatory:"false" json:"columnGroupBy"`

    // GroupBy a specific tagKey. Provide the tagNamespace and tagKey in the tag object. Only one tag in the list is supported.
    // For example:
    //   `[{"namespace":"oracle", "key":"createdBy"]`
    GroupByTag []Tag `mandatory:"false" json:"groupByTag"`

    // The compartment depth level.
    CompartmentDepth *float32 `mandatory:"false" json:"compartmentDepth"`

    // The version of the custom table.
    Version *float32 `mandatory:"false" json:"version"`
}

func (SavedCustomTable) String

func (m SavedCustomTable) String() string

type Tag

Tag The tag used for filtering.

type Tag struct {

    // The tag namespace.
    Namespace *string `mandatory:"false" json:"namespace"`

    // The tag key.
    Key *string `mandatory:"false" json:"key"`

    // The tag value.
    Value *string `mandatory:"false" json:"value"`
}

func (Tag) String

func (m Tag) String() string

type UpdateCustomTableDetails

UpdateCustomTableDetails Details for updating the custom table.

type UpdateCustomTableDetails struct {
    SavedCustomTable *SavedCustomTable `mandatory:"true" json:"savedCustomTable"`
}

func (UpdateCustomTableDetails) String

func (m UpdateCustomTableDetails) String() string

type UpdateCustomTableRequest

UpdateCustomTableRequest wrapper for the UpdateCustomTable operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/46.1.0/usageapi/UpdateCustomTable.go.html to see an example of how to use UpdateCustomTableRequest.

type UpdateCustomTableRequest struct {

    // The information to be updated.
    UpdateCustomTableDetails `contributesTo:"body"`

    // The custom table unique OCID.
    CustomTableId *string `mandatory:"true" contributesTo:"path" name:"customTableId"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
    // particular request, please provide the request ID.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // For optimistic concurrency control. In the PUT or DELETE call
    // for a resource, set the `if-match` parameter to the value of the
    // etag from a previous GET or POST response for that resource.
    // The resource will be updated or deleted, only if the etag you
    // provide matches the resource's current etag value.
    IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (UpdateCustomTableRequest) BinaryRequestBody

func (request UpdateCustomTableRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (UpdateCustomTableRequest) HTTPRequest

func (request UpdateCustomTableRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (UpdateCustomTableRequest) RetryPolicy

func (request UpdateCustomTableRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (UpdateCustomTableRequest) String

func (request UpdateCustomTableRequest) String() string

type UpdateCustomTableResponse

UpdateCustomTableResponse wrapper for the UpdateCustomTable operation

type UpdateCustomTableResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The CustomTable instance
    CustomTable `presentIn:"body"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`
}

func (UpdateCustomTableResponse) HTTPResponse

func (response UpdateCustomTableResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (UpdateCustomTableResponse) String

func (response UpdateCustomTableResponse) String() string

type UpdateQueryDetails

UpdateQueryDetails Details for the query to update reportQuery, costAnalysisUI, and displayName.

type UpdateQueryDetails struct {
    QueryDefinition *QueryDefinition `mandatory:"true" json:"queryDefinition"`
}

func (UpdateQueryDetails) String

func (m UpdateQueryDetails) String() string

type UpdateQueryRequest

UpdateQueryRequest wrapper for the UpdateQuery operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/46.1.0/usageapi/UpdateQuery.go.html to see an example of how to use UpdateQueryRequest.

type UpdateQueryRequest struct {

    // The information to be updated.
    UpdateQueryDetails `contributesTo:"body"`

    // The query unique OCID.
    QueryId *string `mandatory:"true" contributesTo:"path" name:"queryId"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
    // particular request, please provide the request ID.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // For optimistic concurrency control. In the PUT or DELETE call
    // for a resource, set the `if-match` parameter to the value of the
    // etag from a previous GET or POST response for that resource.
    // The resource will be updated or deleted, only if the etag you
    // provide matches the resource's current etag value.
    IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (UpdateQueryRequest) BinaryRequestBody

func (request UpdateQueryRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (UpdateQueryRequest) HTTPRequest

func (request UpdateQueryRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (UpdateQueryRequest) RetryPolicy

func (request UpdateQueryRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (UpdateQueryRequest) String

func (request UpdateQueryRequest) String() string

type UpdateQueryResponse

UpdateQueryResponse wrapper for the UpdateQuery operation

type UpdateQueryResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Query instance
    Query `presentIn:"body"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`
}

func (UpdateQueryResponse) HTTPResponse

func (response UpdateQueryResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (UpdateQueryResponse) String

func (response UpdateQueryResponse) String() string

type UsageAggregation

UsageAggregation The account (tenant) usage.

type UsageAggregation struct {

    // A list of usage items.
    Items []UsageSummary `mandatory:"true" json:"items"`

    // Aggregate the result by.
    GroupBy []string `mandatory:"false" json:"groupBy"`
}

func (UsageAggregation) String

func (m UsageAggregation) String() string

type UsageSummary

UsageSummary The usage store result.

type UsageSummary struct {

    // The usage start time.
    TimeUsageStarted *common.SDKTime `mandatory:"true" json:"timeUsageStarted"`

    // The usage end time.
    TimeUsageEnded *common.SDKTime `mandatory:"true" json:"timeUsageEnded"`

    // The tenancy OCID.
    TenantId *string `mandatory:"false" json:"tenantId"`

    // The tenancy name.
    TenantName *string `mandatory:"false" json:"tenantName"`

    // The compartment OCID.
    CompartmentId *string `mandatory:"false" json:"compartmentId"`

    // The compartment path, starting from root.
    CompartmentPath *string `mandatory:"false" json:"compartmentPath"`

    // The compartment name.
    CompartmentName *string `mandatory:"false" json:"compartmentName"`

    // The service name that is incurring the cost.
    Service *string `mandatory:"false" json:"service"`

    // The resource name that is incurring the cost.
    ResourceName *string `mandatory:"false" json:"resourceName"`

    // The resource OCID that is incurring the cost.
    ResourceId *string `mandatory:"false" json:"resourceId"`

    // The region of the usage.
    Region *string `mandatory:"false" json:"region"`

    // The availability domain of the usage.
    Ad *string `mandatory:"false" json:"ad"`

    // The resource size being metered.
    Weight *float32 `mandatory:"false" json:"weight"`

    // The resource shape.
    Shape *string `mandatory:"false" json:"shape"`

    // The SKU part number.
    SkuPartNumber *string `mandatory:"false" json:"skuPartNumber"`

    // The SKU friendly name.
    SkuName *string `mandatory:"false" json:"skuName"`

    // The usage unit.
    Unit *string `mandatory:"false" json:"unit"`

    // The discretionary discount applied to the SKU.
    Discount *float32 `mandatory:"false" json:"discount"`

    // The SKU list rate (not discount).
    ListRate *float32 `mandatory:"false" json:"listRate"`

    // Platform for the cost.
    Platform *string `mandatory:"false" json:"platform"`

    // The computed cost.
    ComputedAmount *float32 `mandatory:"false" json:"computedAmount"`

    // The usage number.
    ComputedQuantity *float32 `mandatory:"false" json:"computedQuantity"`

    // The SPM OverageFlag.
    OveragesFlag *string `mandatory:"false" json:"overagesFlag"`

    // The price per unit.
    UnitPrice *float32 `mandatory:"false" json:"unitPrice"`

    // The price currency.
    Currency *string `mandatory:"false" json:"currency"`

    // The subscription ID.
    SubscriptionId *string `mandatory:"false" json:"subscriptionId"`

    // The overage usage.
    Overage *string `mandatory:"false" json:"overage"`

    // The forecasted data.
    IsForecast *bool `mandatory:"false" json:"isForecast"`

    // For grouping, a tag definition. For filtering, a definition and key.
    Tags []Tag `mandatory:"false" json:"tags"`
}

func (UsageSummary) String

func (m UsageSummary) String() string

type UsageapiClient

UsageapiClient a client for Usageapi

type UsageapiClient struct {
    common.BaseClient
    // contains filtered or unexported fields
}

func NewUsageapiClientWithConfigurationProvider

func NewUsageapiClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client UsageapiClient, err error)

NewUsageapiClientWithConfigurationProvider Creates a new default Usageapi client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region

func NewUsageapiClientWithOboToken

func NewUsageapiClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client UsageapiClient, err error)

NewUsageapiClientWithOboToken Creates a new default Usageapi client with the given configuration provider. The obotoken will be added to default headers and signed; the configuration provider will be used for the signer

as well as reading the region

func (*UsageapiClient) ConfigurationProvider

func (client *UsageapiClient) ConfigurationProvider() *common.ConfigurationProvider

ConfigurationProvider the ConfigurationProvider used in this client, or null if none set

func (UsageapiClient) CreateCustomTable

func (client UsageapiClient) CreateCustomTable(ctx context.Context, request CreateCustomTableRequest) (response CreateCustomTableResponse, err error)

CreateCustomTable Returns the created custom table.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/46.1.0/usageapi/CreateCustomTable.go.html to see an example of how to use CreateCustomTable API.

func (UsageapiClient) CreateQuery

func (client UsageapiClient) CreateQuery(ctx context.Context, request CreateQueryRequest) (response CreateQueryResponse, err error)

CreateQuery Returns the created query.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/46.1.0/usageapi/CreateQuery.go.html to see an example of how to use CreateQuery API.

func (UsageapiClient) DeleteCustomTable

func (client UsageapiClient) DeleteCustomTable(ctx context.Context, request DeleteCustomTableRequest) (response DeleteCustomTableResponse, err error)

DeleteCustomTable Delete a saved custom table by the OCID.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/46.1.0/usageapi/DeleteCustomTable.go.html to see an example of how to use DeleteCustomTable API.

func (UsageapiClient) DeleteQuery

func (client UsageapiClient) DeleteQuery(ctx context.Context, request DeleteQueryRequest) (response DeleteQueryResponse, err error)

DeleteQuery Delete a saved query by the OCID.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/46.1.0/usageapi/DeleteQuery.go.html to see an example of how to use DeleteQuery API.

func (UsageapiClient) GetCustomTable

func (client UsageapiClient) GetCustomTable(ctx context.Context, request GetCustomTableRequest) (response GetCustomTableResponse, err error)

GetCustomTable Returns the saved custom table.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/46.1.0/usageapi/GetCustomTable.go.html to see an example of how to use GetCustomTable API.

func (UsageapiClient) GetQuery

func (client UsageapiClient) GetQuery(ctx context.Context, request GetQueryRequest) (response GetQueryResponse, err error)

GetQuery Returns the saved query.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/46.1.0/usageapi/GetQuery.go.html to see an example of how to use GetQuery API.

func (UsageapiClient) ListCustomTables

func (client UsageapiClient) ListCustomTables(ctx context.Context, request ListCustomTablesRequest) (response ListCustomTablesResponse, err error)

ListCustomTables Returns the saved custom table list.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/46.1.0/usageapi/ListCustomTables.go.html to see an example of how to use ListCustomTables API.

func (UsageapiClient) ListQueries

func (client UsageapiClient) ListQueries(ctx context.Context, request ListQueriesRequest) (response ListQueriesResponse, err error)

ListQueries Returns the saved query list.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/46.1.0/usageapi/ListQueries.go.html to see an example of how to use ListQueries API.

func (UsageapiClient) RequestSummarizedConfigurations

func (client UsageapiClient) RequestSummarizedConfigurations(ctx context.Context, request RequestSummarizedConfigurationsRequest) (response RequestSummarizedConfigurationsResponse, err error)

RequestSummarizedConfigurations Returns the configurations list for the UI drop-down list.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/46.1.0/usageapi/RequestSummarizedConfigurations.go.html to see an example of how to use RequestSummarizedConfigurations API.

func (UsageapiClient) RequestSummarizedUsages

func (client UsageapiClient) RequestSummarizedUsages(ctx context.Context, request RequestSummarizedUsagesRequest) (response RequestSummarizedUsagesResponse, err error)

RequestSummarizedUsages Returns usage for the given account.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/46.1.0/usageapi/RequestSummarizedUsages.go.html to see an example of how to use RequestSummarizedUsages API.

func (*UsageapiClient) SetRegion

func (client *UsageapiClient) SetRegion(region string)

SetRegion overrides the region of this client.

func (UsageapiClient) UpdateCustomTable

func (client UsageapiClient) UpdateCustomTable(ctx context.Context, request UpdateCustomTableRequest) (response UpdateCustomTableResponse, err error)

UpdateCustomTable Update a saved custom table by table id.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/46.1.0/usageapi/UpdateCustomTable.go.html to see an example of how to use UpdateCustomTable API.

func (UsageapiClient) UpdateQuery

func (client UsageapiClient) UpdateQuery(ctx context.Context, request UpdateQueryRequest) (response UpdateQueryResponse, err error)

UpdateQuery Update a saved query by the OCID.

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/46.1.0/usageapi/UpdateQuery.go.html to see an example of how to use UpdateQuery API.