func GetCostAlertSubscriptionLifecycleStateEnumStringValues() []string
GetCostAlertSubscriptionLifecycleStateEnumStringValues Enumerates the set of values in String for CostAlertSubscriptionLifecycleStateEnum
func GetCostAlertSubscriptionMapOperatorEnumStringValues() []string
GetCostAlertSubscriptionMapOperatorEnumStringValues Enumerates the set of values in String for CostAlertSubscriptionMapOperatorEnum
func GetCostAnomalyEventFeedbackResponseEnumStringValues() []string
GetCostAnomalyEventFeedbackResponseEnumStringValues Enumerates the set of values in String for CostAnomalyEventFeedbackResponseEnum
func GetCostAnomalyEventLifecycleStateEnumStringValues() []string
GetCostAnomalyEventLifecycleStateEnumStringValues Enumerates the set of values in String for CostAnomalyEventLifecycleStateEnum
func GetCostAnomalyMonitorLifecycleStateEnumStringValues() []string
GetCostAnomalyMonitorLifecycleStateEnumStringValues Enumerates the set of values in String for CostAnomalyMonitorLifecycleStateEnum
func GetListCostAlertSubscriptionsSortByEnumStringValues() []string
GetListCostAlertSubscriptionsSortByEnumStringValues Enumerates the set of values in String for ListCostAlertSubscriptionsSortByEnum
func GetListCostAlertSubscriptionsSortOrderEnumStringValues() []string
GetListCostAlertSubscriptionsSortOrderEnumStringValues Enumerates the set of values in String for ListCostAlertSubscriptionsSortOrderEnum
func GetListCostAnomalyEventsSortByEnumStringValues() []string
GetListCostAnomalyEventsSortByEnumStringValues Enumerates the set of values in String for ListCostAnomalyEventsSortByEnum
func GetListCostAnomalyEventsSortOrderEnumStringValues() []string
GetListCostAnomalyEventsSortOrderEnumStringValues Enumerates the set of values in String for ListCostAnomalyEventsSortOrderEnum
func GetListCostAnomalyMonitorsSortByEnumStringValues() []string
GetListCostAnomalyMonitorsSortByEnumStringValues Enumerates the set of values in String for ListCostAnomalyMonitorsSortByEnum
func GetListCostAnomalyMonitorsSortOrderEnumStringValues() []string
GetListCostAnomalyMonitorsSortOrderEnumStringValues Enumerates the set of values in String for ListCostAnomalyMonitorsSortOrderEnum
func GetMonitorTypeEnumStringValues() []string
GetMonitorTypeEnumStringValues Enumerates the set of values in String for MonitorTypeEnum
func GetSortByForCostAdEnumStringValues() []string
GetSortByForCostAdEnumStringValues Enumerates the set of values in String for SortByForCostAdEnum
func GetSortByForCostAnomalyEventEnumStringValues() []string
GetSortByForCostAnomalyEventEnumStringValues Enumerates the set of values in String for SortByForCostAnomalyEventEnum
func GetSortOrderEnumStringValues() []string
GetSortOrderEnumStringValues Enumerates the set of values in String for SortOrderEnum
func GetSummarizeCostAnomalyEventAnalyticsSortByEnumStringValues() []string
GetSummarizeCostAnomalyEventAnalyticsSortByEnumStringValues Enumerates the set of values in String for SummarizeCostAnomalyEventAnalyticsSortByEnum
func GetSummarizeCostAnomalyEventAnalyticsSortOrderEnumStringValues() []string
GetSummarizeCostAnomalyEventAnalyticsSortOrderEnumStringValues Enumerates the set of values in String for SummarizeCostAnomalyEventAnalyticsSortOrderEnum
func GetTargetResourceFilterOperatorEnumStringValues() []string
GetTargetResourceFilterOperatorEnumStringValues Enumerates the set of values in String for TargetResourceFilterOperatorEnum
CostAdClient a client for CostAd
type CostAdClient struct {
common.BaseClient
// contains filtered or unexported fields
}
func NewCostAdClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client CostAdClient, err error)
NewCostAdClientWithConfigurationProvider Creates a new default CostAd client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region
func NewCostAdClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client CostAdClient, err error)
NewCostAdClientWithOboToken Creates a new default CostAd 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 (client *CostAdClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (client CostAdClient) CreateCostAlertSubscription(ctx context.Context, request CreateCostAlertSubscriptionRequest) (response CreateCostAlertSubscriptionResponse, err error)
CreateCostAlertSubscription Creates a new CostAlert Subscription.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/CreateCostAlertSubscription.go.html to see an example of how to use CreateCostAlertSubscription API. A default retry strategy applies to this operation CreateCostAlertSubscription()
func (client CostAdClient) CreateCostAnomalyMonitor(ctx context.Context, request CreateCostAnomalyMonitorRequest) (response CreateCostAnomalyMonitorResponse, err error)
CreateCostAnomalyMonitor Creates a new costAnomaly Monitor.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/CreateCostAnomalyMonitor.go.html to see an example of how to use CreateCostAnomalyMonitor API. A default retry strategy applies to this operation CreateCostAnomalyMonitor()
func (client CostAdClient) DeleteCostAlertSubscription(ctx context.Context, request DeleteCostAlertSubscriptionRequest) (response DeleteCostAlertSubscriptionResponse, err error)
DeleteCostAlertSubscription Deletes a specified CostAlertSubscription resource.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/DeleteCostAlertSubscription.go.html to see an example of how to use DeleteCostAlertSubscription API. A default retry strategy applies to this operation DeleteCostAlertSubscription()
func (client CostAdClient) DeleteCostAnomalyMonitor(ctx context.Context, request DeleteCostAnomalyMonitorRequest) (response DeleteCostAnomalyMonitorResponse, err error)
DeleteCostAnomalyMonitor Deletes a specified CostAnomalyMonitor resource.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/DeleteCostAnomalyMonitor.go.html to see an example of how to use DeleteCostAnomalyMonitor API. A default retry strategy applies to this operation DeleteCostAnomalyMonitor()
func (client CostAdClient) DisableCostAnomalyMonitor(ctx context.Context, request DisableCostAnomalyMonitorRequest) (response DisableCostAnomalyMonitorResponse, err error)
DisableCostAnomalyMonitor Disables the cost anomaly monitor. This stops cost anomaly detection for targeted resource(s).
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/DisableCostAnomalyMonitor.go.html to see an example of how to use DisableCostAnomalyMonitor API. A default retry strategy applies to this operation DisableCostAnomalyMonitor()
func (client CostAdClient) EnableCostAnomalyMonitor(ctx context.Context, request EnableCostAnomalyMonitorRequest) (response EnableCostAnomalyMonitorResponse, err error)
EnableCostAnomalyMonitor Enables the cost anomaly monitor. This (re)starts the cost anomaly detection for targeted resource(s).
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/EnableCostAnomalyMonitor.go.html to see an example of how to use EnableCostAnomalyMonitor API. A default retry strategy applies to this operation EnableCostAnomalyMonitor()
func (client CostAdClient) GetCostAlertSubscription(ctx context.Context, request GetCostAlertSubscriptionRequest) (response GetCostAlertSubscriptionResponse, err error)
GetCostAlertSubscription Gets a CostAlertSubscription by the identifier.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/GetCostAlertSubscription.go.html to see an example of how to use GetCostAlertSubscription API. A default retry strategy applies to this operation GetCostAlertSubscription()
func (client CostAdClient) GetCostAnomalyEvent(ctx context.Context, request GetCostAnomalyEventRequest) (response GetCostAnomalyEventResponse, err error)
GetCostAnomalyEvent Gets a CostAnomalyEvent by the identifier.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/GetCostAnomalyEvent.go.html to see an example of how to use GetCostAnomalyEvent API. A default retry strategy applies to this operation GetCostAnomalyEvent()
func (client CostAdClient) GetCostAnomalyMonitor(ctx context.Context, request GetCostAnomalyMonitorRequest) (response GetCostAnomalyMonitorResponse, err error)
GetCostAnomalyMonitor Gets a CostAnomalyMonitor by the identifier.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/GetCostAnomalyMonitor.go.html to see an example of how to use GetCostAnomalyMonitor API. A default retry strategy applies to this operation GetCostAnomalyMonitor()
func (client CostAdClient) ListCostAlertSubscriptions(ctx context.Context, request ListCostAlertSubscriptionsRequest) (response ListCostAlertSubscriptionsResponse, err error)
ListCostAlertSubscriptions Gets a list of Cost Alert Subscription in a compartment.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/ListCostAlertSubscriptions.go.html to see an example of how to use ListCostAlertSubscriptions API. A default retry strategy applies to this operation ListCostAlertSubscriptions()
func (client CostAdClient) ListCostAnomalyEvents(ctx context.Context, request ListCostAnomalyEventsRequest) (response ListCostAnomalyEventsResponse, err error)
ListCostAnomalyEvents Gets a list of Cost Anomaly Event in a compartment.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/ListCostAnomalyEvents.go.html to see an example of how to use ListCostAnomalyEvents API. A default retry strategy applies to this operation ListCostAnomalyEvents()
func (client CostAdClient) ListCostAnomalyMonitors(ctx context.Context, request ListCostAnomalyMonitorsRequest) (response ListCostAnomalyMonitorsResponse, err error)
ListCostAnomalyMonitors Gets a list of Cost Anomaly Monitors in a compartment.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/ListCostAnomalyMonitors.go.html to see an example of how to use ListCostAnomalyMonitors API. A default retry strategy applies to this operation ListCostAnomalyMonitors()
func (client *CostAdClient) SetRegion(region string)
SetRegion overrides the region of this client.
func (client CostAdClient) SummarizeCostAnomalyEventAnalytics(ctx context.Context, request SummarizeCostAnomalyEventAnalyticsRequest) (response SummarizeCostAnomalyEventAnalyticsResponse, err error)
SummarizeCostAnomalyEventAnalytics Gets a list of Cost Anomaly Events analytics summary - aggregated metrics for a given time period.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/SummarizeCostAnomalyEventAnalytics.go.html to see an example of how to use SummarizeCostAnomalyEventAnalytics API. A default retry strategy applies to this operation SummarizeCostAnomalyEventAnalytics()
func (client CostAdClient) UpdateCostAlertSubscription(ctx context.Context, request UpdateCostAlertSubscriptionRequest) (response UpdateCostAlertSubscriptionResponse, err error)
UpdateCostAlertSubscription Update a CostAlertSubscription identified by the OCID.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/UpdateCostAlertSubscription.go.html to see an example of how to use UpdateCostAlertSubscription API. A default retry strategy applies to this operation UpdateCostAlertSubscription()
func (client CostAdClient) UpdateCostAnomalyEvent(ctx context.Context, request UpdateCostAnomalyEventRequest) (response UpdateCostAnomalyEventResponse, err error)
UpdateCostAnomalyEvent Update a CostAnomalyEvent identified by the OCID.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/UpdateCostAnomalyEvent.go.html to see an example of how to use UpdateCostAnomalyEvent API. A default retry strategy applies to this operation UpdateCostAnomalyEvent()
func (client CostAdClient) UpdateCostAnomalyMonitor(ctx context.Context, request UpdateCostAnomalyMonitorRequest) (response UpdateCostAnomalyMonitorResponse, err error)
UpdateCostAnomalyMonitor Update a CostAnomalyMonitor identified by the OCID.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/UpdateCostAnomalyMonitor.go.html to see an example of how to use UpdateCostAnomalyMonitor API. A default retry strategy applies to this operation UpdateCostAnomalyMonitor()
CostAlertSubscription A CostAlertSubscription.
type CostAlertSubscription struct {
// The OCID of the Cost Alert Subscription.
Id *string `mandatory:"true" json:"id"`
// The OCID of the compartment which hold the cost alert subscription resource.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The name of the cost alert subscription. Avoid entering confidential information.
Name *string `mandatory:"true" json:"name"`
// The current state of the cost alert subscription.
LifecycleState CostAlertSubscriptionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// The notification channels string.
Channels *string `mandatory:"true" json:"channels"`
// The time that the cost alert subscription was created.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The time that the cost alert subscription was updated.
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
// List of monitor identifiers
CostAnomalyMonitors *interface{} `mandatory:"true" json:"costAnomalyMonitors"`
// The description of the cost alert subscription.
Description *string `mandatory:"false" json:"description"`
// Defined tags for this resource. Each key is predefined and scoped to a
// namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Operations": {"CostCenter": "42"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Free-form tags for this resource. Each tag is a simple key-value pair with no
// predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Department": "Finance"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// System tags for this resource. Each key is predefined and scoped to a namespace.
// For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// System tags can be viewed by users, but can only be created by the system.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}
func (m CostAlertSubscription) String() string
func (m CostAlertSubscription) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CostAlertSubscriptionCollection Results of a costAlertSubscription search. Contains both CostAlertSubscriptionSummary items and other data.
type CostAlertSubscriptionCollection struct {
// A page of CostAnomalyMonitorSummary objects.
Items []CostAlertSubscriptionSummary `mandatory:"true" json:"items"`
}
func (m CostAlertSubscriptionCollection) String() string
func (m CostAlertSubscriptionCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CostAlertSubscriptionLifecycleStateEnum Enum with underlying type: string
type CostAlertSubscriptionLifecycleStateEnum string
Set of constants representing the allowable values for CostAlertSubscriptionLifecycleStateEnum
const (
CostAlertSubscriptionLifecycleStateActive CostAlertSubscriptionLifecycleStateEnum = "ACTIVE"
CostAlertSubscriptionLifecycleStateInactive CostAlertSubscriptionLifecycleStateEnum = "INACTIVE"
)
func GetCostAlertSubscriptionLifecycleStateEnumValues() []CostAlertSubscriptionLifecycleStateEnum
GetCostAlertSubscriptionLifecycleStateEnumValues Enumerates the set of values for CostAlertSubscriptionLifecycleStateEnum
func GetMappingCostAlertSubscriptionLifecycleStateEnum(val string) (CostAlertSubscriptionLifecycleStateEnum, bool)
GetMappingCostAlertSubscriptionLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
CostAlertSubscriptionMap The mapping of cost monitor to alert subscription along with thresholds.
type CostAlertSubscriptionMap struct {
// The filter operator. Example: 'AND', 'OR'.
Operator CostAlertSubscriptionMapOperatorEnum `mandatory:"false" json:"operator,omitempty"`
// The absolute threshold value.
ThresholdAbsoluteValue *int `mandatory:"false" json:"thresholdAbsoluteValue"`
// The relative percentage threshold value.
ThresholdRelativePercent *int `mandatory:"false" json:"thresholdRelativePercent"`
// The costAlertSubscription ocid which the cost monitor alert maps to.
CostAlertSubscriptionId *string `mandatory:"false" json:"costAlertSubscriptionId"`
}
func (m CostAlertSubscriptionMap) String() string
func (m CostAlertSubscriptionMap) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CostAlertSubscriptionMapOperatorEnum Enum with underlying type: string
type CostAlertSubscriptionMapOperatorEnum string
Set of constants representing the allowable values for CostAlertSubscriptionMapOperatorEnum
const (
CostAlertSubscriptionMapOperatorAnd CostAlertSubscriptionMapOperatorEnum = "AND"
CostAlertSubscriptionMapOperatorOr CostAlertSubscriptionMapOperatorEnum = "OR"
)
func GetCostAlertSubscriptionMapOperatorEnumValues() []CostAlertSubscriptionMapOperatorEnum
GetCostAlertSubscriptionMapOperatorEnumValues Enumerates the set of values for CostAlertSubscriptionMapOperatorEnum
func GetMappingCostAlertSubscriptionMapOperatorEnum(val string) (CostAlertSubscriptionMapOperatorEnum, bool)
GetMappingCostAlertSubscriptionMapOperatorEnum performs case Insensitive comparison on enum value and return the desired enum
CostAlertSubscriptionSummary A CostAlertSubscription.
type CostAlertSubscriptionSummary struct {
// The OCID of the Cost Alert Subscription.
Id *string `mandatory:"true" json:"id"`
// The OCID of the compartment which hold the cost alert subscription resource.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The name of the cost alert subscription. Avoid entering confidential information.
Name *string `mandatory:"true" json:"name"`
// The notification channels types string.
ChannelTypes *string `mandatory:"true" json:"channelTypes"`
// The time that the cost alert subscription was created.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The current state of the cost alert subscription.
LifecycleState CostAlertSubscriptionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// Defined tags for this resource. Each key is predefined and scoped to a
// namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Operations": {"CostCenter": "42"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Free-form tags for this resource. Each tag is a simple key-value pair with no
// predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Department": "Finance"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// System tags for this resource. Each key is predefined and scoped to a namespace.
// For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// System tags can be viewed by users, but can only be created by the system.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}
func (m CostAlertSubscriptionSummary) String() string
func (m CostAlertSubscriptionSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CostAnomalyEvent A CostAnomalyEvent.
type CostAnomalyEvent struct {
// The OCID of the Cost Anomaly Event.
Id *string `mandatory:"true" json:"id"`
// The name of the associated cost monitor.
CostAnomalyName *string `mandatory:"true" json:"costAnomalyName"`
// The OCID of the compartment.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The current state of the cost anomaly event.
LifecycleState CostAnomalyEventLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// The OCID of the associated cost monitor.
CostMonitorId *string `mandatory:"true" json:"costMonitorId"`
// The name of the associated cost monitor.
CostMonitorName *string `mandatory:"true" json:"costMonitorName"`
TargetResourceFilter *TargetResourceFilter `mandatory:"true" json:"targetResourceFilter"`
// The event date of the anomaly event.
TimeAnomalyEventDate *common.SDKTime `mandatory:"true" json:"timeAnomalyEventDate"`
// The created time of the cost anomaly event.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The updated time of the cost anomaly event.
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
// Type of cost monitor
CostMonitorType MonitorTypeEnum `mandatory:"false" json:"costMonitorType,omitempty"`
// The cost impact of the detected anomaly.
CostImpact *float64 `mandatory:"false" json:"costImpact"`
// The cost variance percentage of the detected anomaly.
CostVariancePercentage *float64 `mandatory:"false" json:"costVariancePercentage"`
RootCauseDetail *RootCauseDetail `mandatory:"false" json:"rootCauseDetail"`
// The feedback response for the cost anomaly event.
FeedbackResponse CostAnomalyEventFeedbackResponseEnum `mandatory:"false" json:"feedbackResponse,omitempty"`
// Defined tags for this resource. Each key is predefined and scoped to a
// namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Operations": {"CostCenter": "42"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Free-form tags for this resource. Each tag is a simple key-value pair with no
// predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Department": "Finance"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// System tags for this resource. Each key is predefined and scoped to a namespace.
// For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// System tags can be viewed by users, but can only be created by the system.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}
func (m CostAnomalyEvent) String() string
func (m CostAnomalyEvent) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CostAnomalyEventAnalyticCollection Results of a CostAnomalyEventAnalytics search.
type CostAnomalyEventAnalyticCollection struct {
// The list of CostAnomalyEvent Analytic summary.
Items []CostAnomalyEventAnalyticSummary `mandatory:"true" json:"items"`
}
func (m CostAnomalyEventAnalyticCollection) String() string
func (m CostAnomalyEventAnalyticCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CostAnomalyEventAnalyticSummary A CostAnomalyEventAnalyticSummary.
type CostAnomalyEventAnalyticSummary struct {
// The number of cost anomaly events in the given time period.
Count *int `mandatory:"true" json:"count"`
// The average cost impact of the anomaly events in the given time period.
AverageCostImpact *float64 `mandatory:"true" json:"averageCostImpact"`
// The average cost variance of the anomaly events in the given time period.
AverageCostVariance *float64 `mandatory:"true" json:"averageCostVariance"`
}
func (m CostAnomalyEventAnalyticSummary) String() string
func (m CostAnomalyEventAnalyticSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CostAnomalyEventCollection Results of a costAnomalyEvent search. Contains both CostAnomalyEventSummary items and other data.
type CostAnomalyEventCollection struct {
// A page of CostAnomalyMonitorSummary objects.
Items []CostAnomalyEventSummary `mandatory:"true" json:"items"`
}
func (m CostAnomalyEventCollection) String() string
func (m CostAnomalyEventCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CostAnomalyEventFeedbackResponseEnum Enum with underlying type: string
type CostAnomalyEventFeedbackResponseEnum string
Set of constants representing the allowable values for CostAnomalyEventFeedbackResponseEnum
const (
CostAnomalyEventFeedbackResponseAccurateAnomaly CostAnomalyEventFeedbackResponseEnum = "ACCURATE_ANOMALY"
CostAnomalyEventFeedbackResponseExpectedAnomaly CostAnomalyEventFeedbackResponseEnum = "EXPECTED_ANOMALY"
)
func GetCostAnomalyEventFeedbackResponseEnumValues() []CostAnomalyEventFeedbackResponseEnum
GetCostAnomalyEventFeedbackResponseEnumValues Enumerates the set of values for CostAnomalyEventFeedbackResponseEnum
func GetMappingCostAnomalyEventFeedbackResponseEnum(val string) (CostAnomalyEventFeedbackResponseEnum, bool)
GetMappingCostAnomalyEventFeedbackResponseEnum performs case Insensitive comparison on enum value and return the desired enum
CostAnomalyEventLifecycleStateEnum Enum with underlying type: string
type CostAnomalyEventLifecycleStateEnum string
Set of constants representing the allowable values for CostAnomalyEventLifecycleStateEnum
const (
CostAnomalyEventLifecycleStateActive CostAnomalyEventLifecycleStateEnum = "ACTIVE"
CostAnomalyEventLifecycleStateInactive CostAnomalyEventLifecycleStateEnum = "INACTIVE"
)
func GetCostAnomalyEventLifecycleStateEnumValues() []CostAnomalyEventLifecycleStateEnum
GetCostAnomalyEventLifecycleStateEnumValues Enumerates the set of values for CostAnomalyEventLifecycleStateEnum
func GetMappingCostAnomalyEventLifecycleStateEnum(val string) (CostAnomalyEventLifecycleStateEnum, bool)
GetMappingCostAnomalyEventLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
CostAnomalyEventSummary A CostAnomalyEvent.
type CostAnomalyEventSummary struct {
// The OCID of the Cost Anomaly Event.
Id *string `mandatory:"true" json:"id"`
// The OCID of the compartment.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The OCID of the associated cost monitor.
CostMonitorId *string `mandatory:"true" json:"costMonitorId"`
// The name of the associated cost monitor.
CostMonitorName *string `mandatory:"true" json:"costMonitorName"`
TargetResourceFilter *TargetResourceFilter `mandatory:"true" json:"targetResourceFilter"`
RootCauseDetail *RootCauseDetail `mandatory:"true" json:"rootCauseDetail"`
// The event date of the anomaly event.
TimeAnomalyEventDate *common.SDKTime `mandatory:"true" json:"timeAnomalyEventDate"`
// The name of the associated cost Anomaly.
CostAnomalyName *string `mandatory:"false" json:"costAnomalyName"`
// Type of cost monitor
CostMonitorType MonitorTypeEnum `mandatory:"false" json:"costMonitorType,omitempty"`
// The current state of the cost anomaly event.
LifecycleState CostAnomalyEventLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"`
// The cost impact of the detected anomaly.
CostImpact *float64 `mandatory:"false" json:"costImpact"`
// The cost variance percentage of the detected anomaly.
CostVariancePercentage *float64 `mandatory:"false" json:"costVariancePercentage"`
// Defined tags for this resource. Each key is predefined and scoped to a
// namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Operations": {"CostCenter": "42"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Free-form tags for this resource. Each tag is a simple key-value pair with no
// predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Department": "Finance"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// System tags for this resource. Each key is predefined and scoped to a namespace.
// For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// System tags can be viewed by users, but can only be created by the system.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}
func (m CostAnomalyEventSummary) String() string
func (m CostAnomalyEventSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CostAnomalyMonitor A CostAnomalyMonitor.
type CostAnomalyMonitor struct {
// The OCID of the Cost Anomaly Monitor.
Id *string `mandatory:"true" json:"id"`
// The OCID of the compartment.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The name of the cost anomaly monitor. Avoid entering confidential information.
Name *string `mandatory:"true" json:"name"`
// The current state of the cost monitor.
LifecycleState CostAnomalyMonitorLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
TargetResourceFilter *TargetResourceFilter `mandatory:"true" json:"targetResourceFilter"`
// The time that the cost monitor was created.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The time that the cost monitor was last updated.
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
// Type of cost monitor
Type MonitorTypeEnum `mandatory:"false" json:"type,omitempty"`
// The description of the budget.
Description *string `mandatory:"false" json:"description"`
// The current state details of the cost monitor.
LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`
CostAlertSubscriptionMap *CostAlertSubscriptionMap `mandatory:"false" json:"costAlertSubscriptionMap"`
// Defined tags for this resource. Each key is predefined and scoped to a
// namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Operations": {"CostCenter": "42"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Free-form tags for this resource. Each tag is a simple key-value pair with no
// predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Department": "Finance"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// System tags for this resource. Each key is predefined and scoped to a namespace.
// For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// System tags can be viewed by users, but can only be created by the system.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}
func (m CostAnomalyMonitor) String() string
func (m CostAnomalyMonitor) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CostAnomalyMonitorCollection Results of a costAnomalyMonitor search. Contains both CostAnomalyMonitorSummary items and other data.
type CostAnomalyMonitorCollection struct {
// A page of CostAnomalyMonitorSummary objects.
Items []CostAnomalyMonitorSummary `mandatory:"true" json:"items"`
}
func (m CostAnomalyMonitorCollection) String() string
func (m CostAnomalyMonitorCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CostAnomalyMonitorLifecycleStateEnum Enum with underlying type: string
type CostAnomalyMonitorLifecycleStateEnum string
Set of constants representing the allowable values for CostAnomalyMonitorLifecycleStateEnum
const (
CostAnomalyMonitorLifecycleStateActive CostAnomalyMonitorLifecycleStateEnum = "ACTIVE"
CostAnomalyMonitorLifecycleStateInactive CostAnomalyMonitorLifecycleStateEnum = "INACTIVE"
CostAnomalyMonitorLifecycleStateDeleted CostAnomalyMonitorLifecycleStateEnum = "DELETED"
)
func GetCostAnomalyMonitorLifecycleStateEnumValues() []CostAnomalyMonitorLifecycleStateEnum
GetCostAnomalyMonitorLifecycleStateEnumValues Enumerates the set of values for CostAnomalyMonitorLifecycleStateEnum
func GetMappingCostAnomalyMonitorLifecycleStateEnum(val string) (CostAnomalyMonitorLifecycleStateEnum, bool)
GetMappingCostAnomalyMonitorLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
CostAnomalyMonitorSummary A CostAnomalyMonitor.
type CostAnomalyMonitorSummary struct {
// The OCID of the Cost Anomaly Monitor.
Id *string `mandatory:"true" json:"id"`
// The OCID of the compartment.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The name of the cost anomaly monitor. Avoid entering confidential information.
Name *string `mandatory:"true" json:"name"`
// The current state of the cost monitor.
LifecycleState CostAnomalyMonitorLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
TargetResourceFilter *TargetResourceFilter `mandatory:"true" json:"targetResourceFilter"`
// The time that the cost monitor was created.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The time that the cost monitor was last updated.
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
// Type of cost monitor
Type MonitorTypeEnum `mandatory:"false" json:"type,omitempty"`
// The description of the budget.
Description *string `mandatory:"false" json:"description"`
// Defined tags for this resource. Each key is predefined and scoped to a
// namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Operations": {"CostCenter": "42"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Free-form tags for this resource. Each tag is a simple key-value pair with no
// predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Department": "Finance"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// System tags for this resource. Each key is predefined and scoped to a namespace.
// For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// System tags can be viewed by users, but can only be created by the system.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}
func (m CostAnomalyMonitorSummary) String() string
func (m CostAnomalyMonitorSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateCostAlertSubscriptionDetails The create CostAlertSubscriptionDetails details. The clients should pass compartmentId where the resource should belong, description and channels.
type CreateCostAlertSubscriptionDetails struct {
// The OCID of the compartment.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The name of the cost alert subscription. Avoid entering confidential information.
Name *string `mandatory:"true" json:"name"`
// The notification channels string.
Channels *string `mandatory:"true" json:"channels"`
// The description of the cost alert subscription.
Description *string `mandatory:"false" json:"description"`
// Defined tags for this resource. Each key is predefined and scoped to a
// namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Operations": {"CostCenter": "42"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Free-form tags for this resource. Each tag is a simple key-value pair with no
// predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Department": "Finance"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
}
func (m CreateCostAlertSubscriptionDetails) String() string
func (m CreateCostAlertSubscriptionDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateCostAlertSubscriptionRequest wrapper for the CreateCostAlertSubscription operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/CreateCostAlertSubscription.go.html to see an example of how to use CreateCostAlertSubscriptionRequest.
type CreateCostAlertSubscriptionRequest struct {
// Details for the new subscription.
CreateCostAlertSubscriptionDetails `contributesTo:"body"`
// 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"`
// The client request ID for tracing.
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 (request CreateCostAlertSubscriptionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request CreateCostAlertSubscriptionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateCostAlertSubscriptionRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateCostAlertSubscriptionRequest) String() string
func (request CreateCostAlertSubscriptionRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateCostAlertSubscriptionResponse wrapper for the CreateCostAlertSubscription operation
type CreateCostAlertSubscriptionResponse struct {
// The underlying http response
RawResponse *http.Response
// The CostAlertSubscription instance
CostAlertSubscription `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 (response CreateCostAlertSubscriptionResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateCostAlertSubscriptionResponse) String() string
CreateCostAnomalyMonitorDetails The create CostAnomalyMonitor details. The clients should pass ocid of the compartmentId for the monitor resource to be created. tenantIdFilter and resourceFilter targets resources to monitor in a given tenancy.
type CreateCostAnomalyMonitorDetails struct {
// The OCID of the compartment.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The name of the cost anomaly monitor. Avoid entering confidential information.
Name *string `mandatory:"true" json:"name"`
TargetResourceFilter *TargetResourceFilter `mandatory:"true" json:"targetResourceFilter"`
// The description of the cost anomaly monitor.
Description *string `mandatory:"false" json:"description"`
CostAlertSubscriptionMap *CostAlertSubscriptionMap `mandatory:"false" json:"costAlertSubscriptionMap"`
// Defined tags for this resource. Each key is predefined and scoped to a
// namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Operations": {"CostCenter": "42"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Free-form tags for this resource. Each tag is a simple key-value pair with no
// predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Department": "Finance"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
}
func (m CreateCostAnomalyMonitorDetails) String() string
func (m CreateCostAnomalyMonitorDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateCostAnomalyMonitorRequest wrapper for the CreateCostAnomalyMonitor operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/CreateCostAnomalyMonitor.go.html to see an example of how to use CreateCostAnomalyMonitorRequest.
type CreateCostAnomalyMonitorRequest struct {
// Details for the new monitor.
CreateCostAnomalyMonitorDetails `contributesTo:"body"`
// 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"`
// The client request ID for tracing.
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 (request CreateCostAnomalyMonitorRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request CreateCostAnomalyMonitorRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateCostAnomalyMonitorRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateCostAnomalyMonitorRequest) String() string
func (request CreateCostAnomalyMonitorRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateCostAnomalyMonitorResponse wrapper for the CreateCostAnomalyMonitor operation
type CreateCostAnomalyMonitorResponse struct {
// The underlying http response
RawResponse *http.Response
// The CostAnomalyMonitor instance
CostAnomalyMonitor `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 (response CreateCostAnomalyMonitorResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateCostAnomalyMonitorResponse) String() string
DeleteCostAlertSubscriptionRequest wrapper for the DeleteCostAlertSubscription operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/DeleteCostAlertSubscription.go.html to see an example of how to use DeleteCostAlertSubscriptionRequest.
type DeleteCostAlertSubscriptionRequest struct {
// The unique costAlertSubscription OCID.
CostAlertSubscriptionId *string `mandatory:"true" contributesTo:"path" name:"costAlertSubscriptionId"`
// 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"`
// The client request ID for tracing.
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 (request DeleteCostAlertSubscriptionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DeleteCostAlertSubscriptionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteCostAlertSubscriptionRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteCostAlertSubscriptionRequest) String() string
func (request DeleteCostAlertSubscriptionRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DeleteCostAlertSubscriptionResponse wrapper for the DeleteCostAlertSubscription operation
type DeleteCostAlertSubscriptionResponse 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 (response DeleteCostAlertSubscriptionResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteCostAlertSubscriptionResponse) String() string
DeleteCostAnomalyMonitorRequest wrapper for the DeleteCostAnomalyMonitor operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/DeleteCostAnomalyMonitor.go.html to see an example of how to use DeleteCostAnomalyMonitorRequest.
type DeleteCostAnomalyMonitorRequest struct {
// The unique costAnomalyMonitor OCID.
CostAnomalyMonitorId *string `mandatory:"true" contributesTo:"path" name:"costAnomalyMonitorId"`
// 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"`
// The client request ID for tracing.
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 (request DeleteCostAnomalyMonitorRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DeleteCostAnomalyMonitorRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteCostAnomalyMonitorRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteCostAnomalyMonitorRequest) String() string
func (request DeleteCostAnomalyMonitorRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DeleteCostAnomalyMonitorResponse wrapper for the DeleteCostAnomalyMonitor operation
type DeleteCostAnomalyMonitorResponse 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 (response DeleteCostAnomalyMonitorResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteCostAnomalyMonitorResponse) String() string
Dimension The dimension used for filtering. Available dimensions are: "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "tenantName, "tenantId", "platform", "region", "logicalAd", "resourceId". 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 (m Dimension) String() string
func (m Dimension) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DisableCostAnomalyMonitorRequest wrapper for the DisableCostAnomalyMonitor operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/DisableCostAnomalyMonitor.go.html to see an example of how to use DisableCostAnomalyMonitorRequest.
type DisableCostAnomalyMonitorRequest struct {
// The unique costAnomalyMonitor OCID.
CostAnomalyMonitorId *string `mandatory:"true" contributesTo:"path" name:"costAnomalyMonitorId"`
// 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"`
// The client request ID for tracing.
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 (request DisableCostAnomalyMonitorRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DisableCostAnomalyMonitorRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DisableCostAnomalyMonitorRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DisableCostAnomalyMonitorRequest) String() string
func (request DisableCostAnomalyMonitorRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DisableCostAnomalyMonitorResponse wrapper for the DisableCostAnomalyMonitor operation
type DisableCostAnomalyMonitorResponse struct {
// The underlying http response
RawResponse *http.Response
// The CostAnomalyMonitor instance
CostAnomalyMonitor `presentIn:"body"`
// For optimistic concurrency control. See `if-match`.
Etag *string `presentIn:"header" name:"etag"`
// 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 (response DisableCostAnomalyMonitorResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DisableCostAnomalyMonitorResponse) String() string
EnableCostAnomalyMonitorRequest wrapper for the EnableCostAnomalyMonitor operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/EnableCostAnomalyMonitor.go.html to see an example of how to use EnableCostAnomalyMonitorRequest.
type EnableCostAnomalyMonitorRequest struct {
// The unique costAnomalyMonitor OCID.
CostAnomalyMonitorId *string `mandatory:"true" contributesTo:"path" name:"costAnomalyMonitorId"`
// 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"`
// The client request ID for tracing.
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 (request EnableCostAnomalyMonitorRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request EnableCostAnomalyMonitorRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request EnableCostAnomalyMonitorRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request EnableCostAnomalyMonitorRequest) String() string
func (request EnableCostAnomalyMonitorRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
EnableCostAnomalyMonitorResponse wrapper for the EnableCostAnomalyMonitor operation
type EnableCostAnomalyMonitorResponse struct {
// The underlying http response
RawResponse *http.Response
// The CostAnomalyMonitor instance
CostAnomalyMonitor `presentIn:"body"`
// For optimistic concurrency control. See `if-match`.
Etag *string `presentIn:"header" name:"etag"`
// 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 (response EnableCostAnomalyMonitorResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response EnableCostAnomalyMonitorResponse) String() string
GetCostAlertSubscriptionRequest wrapper for the GetCostAlertSubscription operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/GetCostAlertSubscription.go.html to see an example of how to use GetCostAlertSubscriptionRequest.
type GetCostAlertSubscriptionRequest struct {
// The unique costAlertSubscription OCID.
CostAlertSubscriptionId *string `mandatory:"true" contributesTo:"path" name:"costAlertSubscriptionId"`
// The client request ID for tracing.
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 (request GetCostAlertSubscriptionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetCostAlertSubscriptionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetCostAlertSubscriptionRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetCostAlertSubscriptionRequest) String() string
func (request GetCostAlertSubscriptionRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetCostAlertSubscriptionResponse wrapper for the GetCostAlertSubscription operation
type GetCostAlertSubscriptionResponse struct {
// The underlying http response
RawResponse *http.Response
// The CostAlertSubscription instance
CostAlertSubscription `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 (response GetCostAlertSubscriptionResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetCostAlertSubscriptionResponse) String() string
GetCostAnomalyEventRequest wrapper for the GetCostAnomalyEvent operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/GetCostAnomalyEvent.go.html to see an example of how to use GetCostAnomalyEventRequest.
type GetCostAnomalyEventRequest struct {
// The unique costAnomalyEventId OCID.
CostAnomalyEventId *string `mandatory:"true" contributesTo:"path" name:"costAnomalyEventId"`
// The client request ID for tracing.
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 (request GetCostAnomalyEventRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetCostAnomalyEventRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetCostAnomalyEventRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetCostAnomalyEventRequest) String() string
func (request GetCostAnomalyEventRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetCostAnomalyEventResponse wrapper for the GetCostAnomalyEvent operation
type GetCostAnomalyEventResponse struct {
// The underlying http response
RawResponse *http.Response
// The CostAnomalyEvent instance
CostAnomalyEvent `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 (response GetCostAnomalyEventResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetCostAnomalyEventResponse) String() string
GetCostAnomalyMonitorRequest wrapper for the GetCostAnomalyMonitor operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/GetCostAnomalyMonitor.go.html to see an example of how to use GetCostAnomalyMonitorRequest.
type GetCostAnomalyMonitorRequest struct {
// The unique costAnomalyMonitor OCID.
CostAnomalyMonitorId *string `mandatory:"true" contributesTo:"path" name:"costAnomalyMonitorId"`
// The client request ID for tracing.
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 (request GetCostAnomalyMonitorRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetCostAnomalyMonitorRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetCostAnomalyMonitorRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetCostAnomalyMonitorRequest) String() string
func (request GetCostAnomalyMonitorRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetCostAnomalyMonitorResponse wrapper for the GetCostAnomalyMonitor operation
type GetCostAnomalyMonitorResponse struct {
// The underlying http response
RawResponse *http.Response
// The CostAnomalyMonitor instance
CostAnomalyMonitor `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 (response GetCostAnomalyMonitorResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetCostAnomalyMonitorResponse) String() string
ListCostAlertSubscriptionsRequest wrapper for the ListCostAlertSubscriptions operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/ListCostAlertSubscriptions.go.html to see an example of how to use ListCostAlertSubscriptionsRequest.
type ListCostAlertSubscriptionsRequest struct {
// The ID of the compartment in which to list resources.
CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`
// The maximum 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 sort order to use, either 'asc' or 'desc'.
SortOrder ListCostAlertSubscriptionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
// The field to sort by. If not specified, the default is timeCreated.
// The default sort order for timeCreated is DESC.
// The default sort order for displayName is ASC in alphanumeric order.
SortBy ListCostAlertSubscriptionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// Unique, non-changeable resource name.
Name *string `mandatory:"false" contributesTo:"query" name:"name"`
// The current state of the cost alert subscription.
LifecycleState CostAlertSubscriptionLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`
// The client request ID for tracing.
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 (request ListCostAlertSubscriptionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListCostAlertSubscriptionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListCostAlertSubscriptionsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListCostAlertSubscriptionsRequest) String() string
func (request ListCostAlertSubscriptionsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListCostAlertSubscriptionsResponse wrapper for the ListCostAlertSubscriptions operation
type ListCostAlertSubscriptionsResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of CostAlertSubscriptionCollection instances
CostAlertSubscriptionCollection `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 list pagination. When this header appears in the response, additional pages
// of results remain. For important details about how pagination works, see
// List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}
func (response ListCostAlertSubscriptionsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListCostAlertSubscriptionsResponse) String() string
ListCostAlertSubscriptionsSortByEnum Enum with underlying type: string
type ListCostAlertSubscriptionsSortByEnum string
Set of constants representing the allowable values for ListCostAlertSubscriptionsSortByEnum
const (
ListCostAlertSubscriptionsSortByTimecreated ListCostAlertSubscriptionsSortByEnum = "timeCreated"
ListCostAlertSubscriptionsSortByName ListCostAlertSubscriptionsSortByEnum = "name"
ListCostAlertSubscriptionsSortById ListCostAlertSubscriptionsSortByEnum = "id"
)
func GetListCostAlertSubscriptionsSortByEnumValues() []ListCostAlertSubscriptionsSortByEnum
GetListCostAlertSubscriptionsSortByEnumValues Enumerates the set of values for ListCostAlertSubscriptionsSortByEnum
func GetMappingListCostAlertSubscriptionsSortByEnum(val string) (ListCostAlertSubscriptionsSortByEnum, bool)
GetMappingListCostAlertSubscriptionsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListCostAlertSubscriptionsSortOrderEnum Enum with underlying type: string
type ListCostAlertSubscriptionsSortOrderEnum string
Set of constants representing the allowable values for ListCostAlertSubscriptionsSortOrderEnum
const (
ListCostAlertSubscriptionsSortOrderAsc ListCostAlertSubscriptionsSortOrderEnum = "ASC"
ListCostAlertSubscriptionsSortOrderDesc ListCostAlertSubscriptionsSortOrderEnum = "DESC"
)
func GetListCostAlertSubscriptionsSortOrderEnumValues() []ListCostAlertSubscriptionsSortOrderEnum
GetListCostAlertSubscriptionsSortOrderEnumValues Enumerates the set of values for ListCostAlertSubscriptionsSortOrderEnum
func GetMappingListCostAlertSubscriptionsSortOrderEnum(val string) (ListCostAlertSubscriptionsSortOrderEnum, bool)
GetMappingListCostAlertSubscriptionsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListCostAnomalyEventsRequest wrapper for the ListCostAnomalyEvents operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/ListCostAnomalyEvents.go.html to see an example of how to use ListCostAnomalyEventsRequest.
type ListCostAnomalyEventsRequest struct {
// The ID of the compartment in which to list resources.
CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`
// The maximum 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 sort order to use, either 'asc' or 'desc'.
SortOrder ListCostAnomalyEventsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
// The field to sort by. If not specified, the default is timeAnomalyEventDate.
// The default sort order for timeAnomalyEventDate is DESC.
// The default sort order for costAnomalyName is ASC in alphanumeric order.
SortBy ListCostAnomalyEventsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// Unique, non-changeable resource name.
Name *string `mandatory:"false" contributesTo:"query" name:"name"`
// The cost monitor ocid.
CostAnomalyMonitorId *string `mandatory:"false" contributesTo:"query" name:"costAnomalyMonitorId"`
// The target tenantId ocid filter param.
TargetTenantId []string `contributesTo:"query" name:"targetTenantId" collectionFormat:"csv"`
// startDate for anomaly event date.
TimeAnomalyEventStartDate *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeAnomalyEventStartDate"`
// endDate for anomaly event date.
TimeAnomalyEventEndDate *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeAnomalyEventEndDate"`
// region of the anomaly event.
Region []string `contributesTo:"query" name:"region" collectionFormat:"csv"`
// cost impact (absolute) of the anomaly event.
CostImpact *float64 `mandatory:"false" contributesTo:"query" name:"costImpact"`
// cost impact (percentage) of the anomaly event.
CostImpactPercentage *float64 `mandatory:"false" contributesTo:"query" name:"costImpactPercentage"`
// The client request ID for tracing.
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 (request ListCostAnomalyEventsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListCostAnomalyEventsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListCostAnomalyEventsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListCostAnomalyEventsRequest) String() string
func (request ListCostAnomalyEventsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListCostAnomalyEventsResponse wrapper for the ListCostAnomalyEvents operation
type ListCostAnomalyEventsResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of CostAnomalyEventCollection instances
CostAnomalyEventCollection `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 list pagination. When this header appears in the response, additional pages
// of results remain. For important details about how pagination works, see
// List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}
func (response ListCostAnomalyEventsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListCostAnomalyEventsResponse) String() string
ListCostAnomalyEventsSortByEnum Enum with underlying type: string
type ListCostAnomalyEventsSortByEnum string
Set of constants representing the allowable values for ListCostAnomalyEventsSortByEnum
const (
ListCostAnomalyEventsSortByTimeanomalyeventdate ListCostAnomalyEventsSortByEnum = "timeAnomalyEventDate"
ListCostAnomalyEventsSortByCostanomalyname ListCostAnomalyEventsSortByEnum = "costAnomalyName"
ListCostAnomalyEventsSortById ListCostAnomalyEventsSortByEnum = "id"
)
func GetListCostAnomalyEventsSortByEnumValues() []ListCostAnomalyEventsSortByEnum
GetListCostAnomalyEventsSortByEnumValues Enumerates the set of values for ListCostAnomalyEventsSortByEnum
func GetMappingListCostAnomalyEventsSortByEnum(val string) (ListCostAnomalyEventsSortByEnum, bool)
GetMappingListCostAnomalyEventsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListCostAnomalyEventsSortOrderEnum Enum with underlying type: string
type ListCostAnomalyEventsSortOrderEnum string
Set of constants representing the allowable values for ListCostAnomalyEventsSortOrderEnum
const (
ListCostAnomalyEventsSortOrderAsc ListCostAnomalyEventsSortOrderEnum = "ASC"
ListCostAnomalyEventsSortOrderDesc ListCostAnomalyEventsSortOrderEnum = "DESC"
)
func GetListCostAnomalyEventsSortOrderEnumValues() []ListCostAnomalyEventsSortOrderEnum
GetListCostAnomalyEventsSortOrderEnumValues Enumerates the set of values for ListCostAnomalyEventsSortOrderEnum
func GetMappingListCostAnomalyEventsSortOrderEnum(val string) (ListCostAnomalyEventsSortOrderEnum, bool)
GetMappingListCostAnomalyEventsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListCostAnomalyMonitorsRequest wrapper for the ListCostAnomalyMonitors operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/ListCostAnomalyMonitors.go.html to see an example of how to use ListCostAnomalyMonitorsRequest.
type ListCostAnomalyMonitorsRequest struct {
// The ID of the compartment in which to list resources.
CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`
// The maximum 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 sort order to use, either 'asc' or 'desc'.
SortOrder ListCostAnomalyMonitorsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
// The field to sort by. If not specified, the default is timeCreated.
// The default sort order for timeCreated is DESC.
// The default sort order for displayName is ASC in alphanumeric order.
SortBy ListCostAnomalyMonitorsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// The current state of the cost monitor.
LifecycleState CostAnomalyMonitorLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`
// Unique, non-changeable resource name.
Name *string `mandatory:"false" contributesTo:"query" name:"name"`
// The target tenantId ocid filter param.
TargetTenantId []string `contributesTo:"query" name:"targetTenantId" collectionFormat:"csv"`
// Cost Anomaly Monitor target resource filter region.
Region []string `contributesTo:"query" name:"region" collectionFormat:"csv"`
// The client request ID for tracing.
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 (request ListCostAnomalyMonitorsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListCostAnomalyMonitorsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListCostAnomalyMonitorsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListCostAnomalyMonitorsRequest) String() string
func (request ListCostAnomalyMonitorsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListCostAnomalyMonitorsResponse wrapper for the ListCostAnomalyMonitors operation
type ListCostAnomalyMonitorsResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of CostAnomalyMonitorCollection instances
CostAnomalyMonitorCollection `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 list pagination. When this header appears in the response, additional pages
// of results remain. For important details about how pagination works, see
// List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}
func (response ListCostAnomalyMonitorsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListCostAnomalyMonitorsResponse) String() string
ListCostAnomalyMonitorsSortByEnum Enum with underlying type: string
type ListCostAnomalyMonitorsSortByEnum string
Set of constants representing the allowable values for ListCostAnomalyMonitorsSortByEnum
const (
ListCostAnomalyMonitorsSortByTimecreated ListCostAnomalyMonitorsSortByEnum = "timeCreated"
ListCostAnomalyMonitorsSortByName ListCostAnomalyMonitorsSortByEnum = "name"
ListCostAnomalyMonitorsSortById ListCostAnomalyMonitorsSortByEnum = "id"
)
func GetListCostAnomalyMonitorsSortByEnumValues() []ListCostAnomalyMonitorsSortByEnum
GetListCostAnomalyMonitorsSortByEnumValues Enumerates the set of values for ListCostAnomalyMonitorsSortByEnum
func GetMappingListCostAnomalyMonitorsSortByEnum(val string) (ListCostAnomalyMonitorsSortByEnum, bool)
GetMappingListCostAnomalyMonitorsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListCostAnomalyMonitorsSortOrderEnum Enum with underlying type: string
type ListCostAnomalyMonitorsSortOrderEnum string
Set of constants representing the allowable values for ListCostAnomalyMonitorsSortOrderEnum
const (
ListCostAnomalyMonitorsSortOrderAsc ListCostAnomalyMonitorsSortOrderEnum = "ASC"
ListCostAnomalyMonitorsSortOrderDesc ListCostAnomalyMonitorsSortOrderEnum = "DESC"
)
func GetListCostAnomalyMonitorsSortOrderEnumValues() []ListCostAnomalyMonitorsSortOrderEnum
GetListCostAnomalyMonitorsSortOrderEnumValues Enumerates the set of values for ListCostAnomalyMonitorsSortOrderEnum
func GetMappingListCostAnomalyMonitorsSortOrderEnum(val string) (ListCostAnomalyMonitorsSortOrderEnum, bool)
GetMappingListCostAnomalyMonitorsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
MonitorTypeEnum Enum with underlying type: string
type MonitorTypeEnum string
Set of constants representing the allowable values for MonitorTypeEnum
const (
MonitorTypeDefault MonitorTypeEnum = "DEFAULT"
MonitorTypeCustom MonitorTypeEnum = "CUSTOM"
)
func GetMappingMonitorTypeEnum(val string) (MonitorTypeEnum, bool)
GetMappingMonitorTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMonitorTypeEnumValues() []MonitorTypeEnum
GetMonitorTypeEnumValues Enumerates the set of values for MonitorTypeEnum
RootCauseDetail The root cause details of the cost anomaly event.
type RootCauseDetail struct {
// The json object representing the root cause details of the anomaly event.
Value *interface{} `mandatory:"false" json:"value"`
}
func (m RootCauseDetail) String() string
func (m RootCauseDetail) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
SortByForCostAdEnum Enum with underlying type: string
type SortByForCostAdEnum string
Set of constants representing the allowable values for SortByForCostAdEnum
const (
SortByForCostAdTimeCreated SortByForCostAdEnum = "timeCreated"
SortByForCostAdName SortByForCostAdEnum = "name"
SortByForCostAdId SortByForCostAdEnum = "id"
)
func GetMappingSortByForCostAdEnum(val string) (SortByForCostAdEnum, bool)
GetMappingSortByForCostAdEnum performs case Insensitive comparison on enum value and return the desired enum
func GetSortByForCostAdEnumValues() []SortByForCostAdEnum
GetSortByForCostAdEnumValues Enumerates the set of values for SortByForCostAdEnum
SortByForCostAnomalyEventEnum Enum with underlying type: string
type SortByForCostAnomalyEventEnum string
Set of constants representing the allowable values for SortByForCostAnomalyEventEnum
const (
SortByForCostAnomalyEventTimeAnomalyEventDate SortByForCostAnomalyEventEnum = "timeAnomalyEventDate"
SortByForCostAnomalyEventCostAnomalyName SortByForCostAnomalyEventEnum = "costAnomalyName"
SortByForCostAnomalyEventId SortByForCostAnomalyEventEnum = "id"
)
func GetMappingSortByForCostAnomalyEventEnum(val string) (SortByForCostAnomalyEventEnum, bool)
GetMappingSortByForCostAnomalyEventEnum performs case Insensitive comparison on enum value and return the desired enum
func GetSortByForCostAnomalyEventEnumValues() []SortByForCostAnomalyEventEnum
GetSortByForCostAnomalyEventEnumValues Enumerates the set of values for SortByForCostAnomalyEventEnum
SortOrderEnum Enum with underlying type: string
type SortOrderEnum string
Set of constants representing the allowable values for SortOrderEnum
const (
SortOrderAsc SortOrderEnum = "ASC"
SortOrderDesc SortOrderEnum = "DESC"
)
func GetMappingSortOrderEnum(val string) (SortOrderEnum, bool)
GetMappingSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
func GetSortOrderEnumValues() []SortOrderEnum
GetSortOrderEnumValues Enumerates the set of values for SortOrderEnum
SummarizeCostAnomalyEventAnalyticsRequest wrapper for the SummarizeCostAnomalyEventAnalytics operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/SummarizeCostAnomalyEventAnalytics.go.html to see an example of how to use SummarizeCostAnomalyEventAnalyticsRequest.
type SummarizeCostAnomalyEventAnalyticsRequest struct {
// The ID of the compartment in which to list resources.
CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`
// The maximum 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 sort order to use, either 'asc' or 'desc'.
SortOrder SummarizeCostAnomalyEventAnalyticsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
// The field to sort by. If not specified, the default is timeAnomalyEventDate.
// The default sort order for timeAnomalyEventDate is DESC.
// The default sort order for costAnomalyName is ASC in alphanumeric order.
SortBy SummarizeCostAnomalyEventAnalyticsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// Unique, non-changeable resource name.
Name *string `mandatory:"false" contributesTo:"query" name:"name"`
// The cost monitor ocid.
CostAnomalyMonitorId *string `mandatory:"false" contributesTo:"query" name:"costAnomalyMonitorId"`
// The target tenantId ocid filter param.
TargetTenantId []string `contributesTo:"query" name:"targetTenantId" collectionFormat:"csv"`
// startDate for anomaly event date.
TimeAnomalyEventStartDate *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeAnomalyEventStartDate"`
// endDate for anomaly event date.
TimeAnomalyEventEndDate *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeAnomalyEventEndDate"`
// region of the anomaly event.
Region []string `contributesTo:"query" name:"region" collectionFormat:"csv"`
// cost impact (absolute) of the anomaly event.
CostImpact *float64 `mandatory:"false" contributesTo:"query" name:"costImpact"`
// cost impact (percentage) of the anomaly event.
CostImpactPercentage *float64 `mandatory:"false" contributesTo:"query" name:"costImpactPercentage"`
// The client request ID for tracing.
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 (request SummarizeCostAnomalyEventAnalyticsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request SummarizeCostAnomalyEventAnalyticsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request SummarizeCostAnomalyEventAnalyticsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request SummarizeCostAnomalyEventAnalyticsRequest) String() string
func (request SummarizeCostAnomalyEventAnalyticsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
SummarizeCostAnomalyEventAnalyticsResponse wrapper for the SummarizeCostAnomalyEventAnalytics operation
type SummarizeCostAnomalyEventAnalyticsResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of CostAnomalyEventAnalyticCollection instances
CostAnomalyEventAnalyticCollection `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 list pagination. When this header appears in the response, additional pages
// of results remain. For important details about how pagination works, see
// List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}
func (response SummarizeCostAnomalyEventAnalyticsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response SummarizeCostAnomalyEventAnalyticsResponse) String() string
SummarizeCostAnomalyEventAnalyticsSortByEnum Enum with underlying type: string
type SummarizeCostAnomalyEventAnalyticsSortByEnum string
Set of constants representing the allowable values for SummarizeCostAnomalyEventAnalyticsSortByEnum
const (
SummarizeCostAnomalyEventAnalyticsSortByTimeanomalyeventdate SummarizeCostAnomalyEventAnalyticsSortByEnum = "timeAnomalyEventDate"
SummarizeCostAnomalyEventAnalyticsSortByCostanomalyname SummarizeCostAnomalyEventAnalyticsSortByEnum = "costAnomalyName"
SummarizeCostAnomalyEventAnalyticsSortById SummarizeCostAnomalyEventAnalyticsSortByEnum = "id"
)
func GetMappingSummarizeCostAnomalyEventAnalyticsSortByEnum(val string) (SummarizeCostAnomalyEventAnalyticsSortByEnum, bool)
GetMappingSummarizeCostAnomalyEventAnalyticsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
func GetSummarizeCostAnomalyEventAnalyticsSortByEnumValues() []SummarizeCostAnomalyEventAnalyticsSortByEnum
GetSummarizeCostAnomalyEventAnalyticsSortByEnumValues Enumerates the set of values for SummarizeCostAnomalyEventAnalyticsSortByEnum
SummarizeCostAnomalyEventAnalyticsSortOrderEnum Enum with underlying type: string
type SummarizeCostAnomalyEventAnalyticsSortOrderEnum string
Set of constants representing the allowable values for SummarizeCostAnomalyEventAnalyticsSortOrderEnum
const (
SummarizeCostAnomalyEventAnalyticsSortOrderAsc SummarizeCostAnomalyEventAnalyticsSortOrderEnum = "ASC"
SummarizeCostAnomalyEventAnalyticsSortOrderDesc SummarizeCostAnomalyEventAnalyticsSortOrderEnum = "DESC"
)
func GetMappingSummarizeCostAnomalyEventAnalyticsSortOrderEnum(val string) (SummarizeCostAnomalyEventAnalyticsSortOrderEnum, bool)
GetMappingSummarizeCostAnomalyEventAnalyticsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
func GetSummarizeCostAnomalyEventAnalyticsSortOrderEnumValues() []SummarizeCostAnomalyEventAnalyticsSortOrderEnum
GetSummarizeCostAnomalyEventAnalyticsSortOrderEnumValues Enumerates the set of values for SummarizeCostAnomalyEventAnalyticsSortOrderEnum
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 (m Tag) String() string
func (m Tag) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
TargetResourceFilter The filter object to target resources for cost monitor. Cost generated by one or more resources identified by this filter is monitored for anomalous deviations.
type TargetResourceFilter struct {
// The filter operator. Example: 'AND', 'OR'.
Operator TargetResourceFilterOperatorEnum `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 []TargetResourceFilter `mandatory:"false" json:"filters"`
}
func (m TargetResourceFilter) String() string
func (m TargetResourceFilter) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
TargetResourceFilterOperatorEnum Enum with underlying type: string
type TargetResourceFilterOperatorEnum string
Set of constants representing the allowable values for TargetResourceFilterOperatorEnum
const (
TargetResourceFilterOperatorAnd TargetResourceFilterOperatorEnum = "AND"
TargetResourceFilterOperatorOr TargetResourceFilterOperatorEnum = "OR"
)
func GetMappingTargetResourceFilterOperatorEnum(val string) (TargetResourceFilterOperatorEnum, bool)
GetMappingTargetResourceFilterOperatorEnum performs case Insensitive comparison on enum value and return the desired enum
func GetTargetResourceFilterOperatorEnumValues() []TargetResourceFilterOperatorEnum
GetTargetResourceFilterOperatorEnumValues Enumerates the set of values for TargetResourceFilterOperatorEnum
UpdateCostAlertSubscriptionDetails The update CostAlertSubscriptionDetails details.
type UpdateCostAlertSubscriptionDetails struct {
// The description of the cost alert subscription.
Description *string `mandatory:"false" json:"description"`
// The notification channels string.
Channels *string `mandatory:"false" json:"channels"`
// Defined tags for this resource. Each key is predefined and scoped to a
// namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Operations": {"CostCenter": "42"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Free-form tags for this resource. Each tag is a simple key-value pair with no
// predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Department": "Finance"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
}
func (m UpdateCostAlertSubscriptionDetails) String() string
func (m UpdateCostAlertSubscriptionDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateCostAlertSubscriptionRequest wrapper for the UpdateCostAlertSubscription operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/UpdateCostAlertSubscription.go.html to see an example of how to use UpdateCostAlertSubscriptionRequest.
type UpdateCostAlertSubscriptionRequest struct {
// The unique costAlertSubscription OCID.
CostAlertSubscriptionId *string `mandatory:"true" contributesTo:"path" name:"costAlertSubscriptionId"`
// The information to be updated.
UpdateCostAlertSubscriptionDetails `contributesTo:"body"`
// 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"`
// The client request ID for tracing.
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 (request UpdateCostAlertSubscriptionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request UpdateCostAlertSubscriptionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request UpdateCostAlertSubscriptionRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateCostAlertSubscriptionRequest) String() string
func (request UpdateCostAlertSubscriptionRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateCostAlertSubscriptionResponse wrapper for the UpdateCostAlertSubscription operation
type UpdateCostAlertSubscriptionResponse struct {
// The underlying http response
RawResponse *http.Response
// The CostAlertSubscription instance
CostAlertSubscription `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 (response UpdateCostAlertSubscriptionResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response UpdateCostAlertSubscriptionResponse) String() string
UpdateCostAnomalyEventDetails The update CostAnomalyEvent details.
type UpdateCostAnomalyEventDetails struct {
// The feedback response for the cost anomaly event.
FeedbackResponse CostAnomalyEventFeedbackResponseEnum `mandatory:"false" json:"feedbackResponse,omitempty"`
// Defined tags for this resource. Each key is predefined and scoped to a
// namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Operations": {"CostCenter": "42"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Free-form tags for this resource. Each tag is a simple key-value pair with no
// predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Department": "Finance"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
}
func (m UpdateCostAnomalyEventDetails) String() string
func (m UpdateCostAnomalyEventDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateCostAnomalyEventRequest wrapper for the UpdateCostAnomalyEvent operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/UpdateCostAnomalyEvent.go.html to see an example of how to use UpdateCostAnomalyEventRequest.
type UpdateCostAnomalyEventRequest struct {
// The unique costAnomalyEventId OCID.
CostAnomalyEventId *string `mandatory:"true" contributesTo:"path" name:"costAnomalyEventId"`
// The information to be updated.
UpdateCostAnomalyEventDetails `contributesTo:"body"`
// 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"`
// The client request ID for tracing.
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 (request UpdateCostAnomalyEventRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request UpdateCostAnomalyEventRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request UpdateCostAnomalyEventRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateCostAnomalyEventRequest) String() string
func (request UpdateCostAnomalyEventRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateCostAnomalyEventResponse wrapper for the UpdateCostAnomalyEvent operation
type UpdateCostAnomalyEventResponse struct {
// The underlying http response
RawResponse *http.Response
// The CostAnomalyEvent instance
CostAnomalyEvent `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 (response UpdateCostAnomalyEventResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response UpdateCostAnomalyEventResponse) String() string
UpdateCostAnomalyMonitorDetails Update CostAnomalyMonitor details.
type UpdateCostAnomalyMonitorDetails struct {
// The description of the cost anomaly monitor.
Description *string `mandatory:"false" json:"description"`
CostAlertSubscriptionMap *CostAlertSubscriptionMap `mandatory:"false" json:"costAlertSubscriptionMap"`
// Defined tags for this resource. Each key is predefined and scoped to a
// namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Operations": {"CostCenter": "42"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Free-form tags for this resource. Each tag is a simple key-value pair with no
// predefined name, type, or namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Department": "Finance"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
}
func (m UpdateCostAnomalyMonitorDetails) String() string
func (m UpdateCostAnomalyMonitorDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateCostAnomalyMonitorRequest wrapper for the UpdateCostAnomalyMonitor operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/costad/UpdateCostAnomalyMonitor.go.html to see an example of how to use UpdateCostAnomalyMonitorRequest.
type UpdateCostAnomalyMonitorRequest struct {
// The unique costAnomalyMonitor OCID.
CostAnomalyMonitorId *string `mandatory:"true" contributesTo:"path" name:"costAnomalyMonitorId"`
// The information to be updated.
UpdateCostAnomalyMonitorDetails `contributesTo:"body"`
// 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"`
// The client request ID for tracing.
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 (request UpdateCostAnomalyMonitorRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request UpdateCostAnomalyMonitorRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request UpdateCostAnomalyMonitorRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateCostAnomalyMonitorRequest) String() string
func (request UpdateCostAnomalyMonitorRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateCostAnomalyMonitorResponse wrapper for the UpdateCostAnomalyMonitor operation
type UpdateCostAnomalyMonitorResponse struct {
// The underlying http response
RawResponse *http.Response
// The CostAnomalyMonitor instance
CostAnomalyMonitor `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 (response UpdateCostAnomalyMonitorResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response UpdateCostAnomalyMonitorResponse) String() string