DatabaseDetails Partial information about the database which includes id, name, type.
type DatabaseDetails struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database. DatabaseId *string `mandatory:"true" json:"databaseId"` // The database name. The database name is unique within the tenancy. DatabaseName *string `mandatory:"true" json:"databaseName"` // Operations Insights internal representation of the database type. DatabaseType *string `mandatory:"true" json:"databaseType"` // The user-friendly name for the database. The name does not have to be unique. DatabaseDisplayName *string `mandatory:"false" json:"databaseDisplayName"` // The version of the database. DatabaseVersion *string `mandatory:"false" json:"databaseVersion"` }
func (m DatabaseDetails) String() string
DatabaseInsightSummary Partial definition of the database insight resource.
type DatabaseInsightSummary struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database. DatabaseId *string `mandatory:"true" json:"databaseId"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"false" json:"compartmentId"` // The database name. The database name is unique within the tenancy. DatabaseName *string `mandatory:"false" json:"databaseName"` // The user-friendly name for the database. The name does not have to be unique. DatabaseDisplayName *string `mandatory:"false" json:"databaseDisplayName"` // Operations Insights internal representation of the database type. DatabaseType *string `mandatory:"false" json:"databaseType"` // The version of the database. DatabaseVersion *string `mandatory:"false" json:"databaseVersion"` // The hostnames for the database. DatabaseHostNames []string `mandatory:"false" json:"databaseHostNames"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. // Example: `{"bar-key": "value"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"foo-namespace": {"bar-key": "value"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` // System tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` }
func (m DatabaseInsightSummary) String() string
DatabaseInsights Logical grouping used for Operations Insights database-targeted operations.
type DatabaseInsights struct {
// Database Insights Object.
DatabaseInsights *interface{} `mandatory:"false" json:"databaseInsights"`
}
func (m DatabaseInsights) String() string
DatabaseInsightsCollection Collection of database insight summary objects.
type DatabaseInsightsCollection struct { // Array of database insight summary objects. Items []DatabaseInsightSummary `mandatory:"true" json:"items"` }
func (m DatabaseInsightsCollection) String() string
HistoricalDataItem The historical timestamp and the corresponding resource value.
type HistoricalDataItem struct { // The timestamp in which the current sampling period ends in RFC 3339 format. EndTimestamp *common.SDKTime `mandatory:"true" json:"endTimestamp"` // Total amount used of the resource metric type (CPU, STORAGE). Usage *float64 `mandatory:"true" json:"usage"` }
func (m HistoricalDataItem) String() string
IngestSqlBucketDetails Collection of SQL Bucket Metric Entries
type IngestSqlBucketDetails struct { // List of SQL Bucket Metric Entries. Items []SqlBucket `mandatory:"false" json:"items"` }
func (m IngestSqlBucketDetails) String() string
IngestSqlBucketRequest wrapper for the IngestSqlBucket operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/IngestSqlBucket.go.html to see an example of how to use IngestSqlBucketRequest.
type IngestSqlBucketRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // Required OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database. DatabaseId *string `mandatory:"true" contributesTo:"query" name:"databaseId"` // Collection of SQL bucket objects for a particular database. IngestSqlBucketDetails `contributesTo:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` // parameter to the value of the etag from a previous get, create, or update 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"` // A token that uniquely identifies a request that can be retried in case of a timeout or // server error without risk of executing the same action again. Retry tokens expire after 24 // hours. // *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting // operations, such as a resource being deleted or purged from the system. 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 IngestSqlBucketRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request IngestSqlBucketRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request IngestSqlBucketRequest) String() string
IngestSqlBucketResponse wrapper for the IngestSqlBucket operation
type IngestSqlBucketResponse struct { // The underlying http response RawResponse *http.Response // The IngestSqlBucketResponseDetails instance IngestSqlBucketResponseDetails `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 IngestSqlBucketResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response IngestSqlBucketResponse) String() string
IngestSqlBucketResponseDetails The response object returned from IngestSqlBucketDetails operation.
type IngestSqlBucketResponseDetails struct { // Success message returned as a result of the upload. Message *string `mandatory:"true" json:"message"` }
func (m IngestSqlBucketResponseDetails) String() string
IngestSqlPlanLinesDetails Collection of SQL Plan Line Entries
type IngestSqlPlanLinesDetails struct { // List of SQL Plan Line Entries. Items []SqlPlanLine `mandatory:"false" json:"items"` }
func (m IngestSqlPlanLinesDetails) String() string
IngestSqlPlanLinesRequest wrapper for the IngestSqlPlanLines operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/IngestSqlPlanLines.go.html to see an example of how to use IngestSqlPlanLinesRequest.
type IngestSqlPlanLinesRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // Required OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database. DatabaseId *string `mandatory:"true" contributesTo:"query" name:"databaseId"` // Collection of SQL plan line objects for a particular database. IngestSqlPlanLinesDetails `contributesTo:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` // parameter to the value of the etag from a previous get, create, or update 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"` // A token that uniquely identifies a request that can be retried in case of a timeout or // server error without risk of executing the same action again. Retry tokens expire after 24 // hours. // *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting // operations, such as a resource being deleted or purged from the system. 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 IngestSqlPlanLinesRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request IngestSqlPlanLinesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request IngestSqlPlanLinesRequest) String() string
IngestSqlPlanLinesResponse wrapper for the IngestSqlPlanLines operation
type IngestSqlPlanLinesResponse struct { // The underlying http response RawResponse *http.Response // The IngestSqlPlanLinesResponseDetails instance IngestSqlPlanLinesResponseDetails `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 IngestSqlPlanLinesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response IngestSqlPlanLinesResponse) String() string
IngestSqlPlanLinesResponseDetails The response object returned from IngestSqlPlanLines operation.
type IngestSqlPlanLinesResponseDetails struct { // Success message returned as a result of the upload. Message *string `mandatory:"true" json:"message"` }
func (m IngestSqlPlanLinesResponseDetails) String() string
IngestSqlTextDetails Collection of SQL Text Entries
type IngestSqlTextDetails struct { // List of SQL Text Entries. Items []SqlText `mandatory:"false" json:"items"` }
func (m IngestSqlTextDetails) String() string
IngestSqlTextRequest wrapper for the IngestSqlText operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/IngestSqlText.go.html to see an example of how to use IngestSqlTextRequest.
type IngestSqlTextRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // Required OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database. DatabaseId *string `mandatory:"true" contributesTo:"query" name:"databaseId"` // Collection of SQL text objects for a particular database. IngestSqlTextDetails `contributesTo:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` // parameter to the value of the etag from a previous get, create, or update 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"` // A token that uniquely identifies a request that can be retried in case of a timeout or // server error without risk of executing the same action again. Retry tokens expire after 24 // hours. // *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting // operations, such as a resource being deleted or purged from the system. 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 IngestSqlTextRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request IngestSqlTextRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request IngestSqlTextRequest) String() string
IngestSqlTextResponse wrapper for the IngestSqlText operation
type IngestSqlTextResponse struct { // The underlying http response RawResponse *http.Response // The IngestSqlTextResponseDetails instance IngestSqlTextResponseDetails `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 IngestSqlTextResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response IngestSqlTextResponse) String() string
IngestSqlTextResponseDetails The response object returned from IngestSqlTextDetails operation.
type IngestSqlTextResponseDetails struct { // Success message returned as a result of the upload. Message *string `mandatory:"true" json:"message"` }
func (m IngestSqlTextResponseDetails) String() string
ListDatabaseInsightsDatabaseTypeEnum Enum with underlying type: string
type ListDatabaseInsightsDatabaseTypeEnum string
Set of constants representing the allowable values for ListDatabaseInsightsDatabaseTypeEnum
const ( ListDatabaseInsightsDatabaseTypeAdwS ListDatabaseInsightsDatabaseTypeEnum = "ADW-S" ListDatabaseInsightsDatabaseTypeAtpS ListDatabaseInsightsDatabaseTypeEnum = "ATP-S" ListDatabaseInsightsDatabaseTypeAdwD ListDatabaseInsightsDatabaseTypeEnum = "ADW-D" ListDatabaseInsightsDatabaseTypeAtpD ListDatabaseInsightsDatabaseTypeEnum = "ATP-D" )
func GetListDatabaseInsightsDatabaseTypeEnumValues() []ListDatabaseInsightsDatabaseTypeEnum
GetListDatabaseInsightsDatabaseTypeEnumValues Enumerates the set of values for ListDatabaseInsightsDatabaseTypeEnum
ListDatabaseInsightsFieldsEnum Enum with underlying type: string
type ListDatabaseInsightsFieldsEnum string
Set of constants representing the allowable values for ListDatabaseInsightsFieldsEnum
const ( ListDatabaseInsightsFieldsCompartmentid ListDatabaseInsightsFieldsEnum = "compartmentId" ListDatabaseInsightsFieldsDatabasename ListDatabaseInsightsFieldsEnum = "databaseName" ListDatabaseInsightsFieldsDatabasedisplayname ListDatabaseInsightsFieldsEnum = "databaseDisplayName" ListDatabaseInsightsFieldsDatabasetype ListDatabaseInsightsFieldsEnum = "databaseType" ListDatabaseInsightsFieldsDatabaseversion ListDatabaseInsightsFieldsEnum = "databaseVersion" ListDatabaseInsightsFieldsDatabasehostnames ListDatabaseInsightsFieldsEnum = "databaseHostNames" ListDatabaseInsightsFieldsEnum = "freeformTags" ListDatabaseInsightsFieldsEnum = "definedTags" )
func GetListDatabaseInsightsFieldsEnumValues() []ListDatabaseInsightsFieldsEnum
GetListDatabaseInsightsFieldsEnumValues Enumerates the set of values for ListDatabaseInsightsFieldsEnum
ListDatabaseInsightsRequest wrapper for the ListDatabaseInsights operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/ListDatabaseInsights.go.html to see an example of how to use ListDatabaseInsightsRequest.
type ListDatabaseInsightsRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // Filter by one or more database type. // Possible values are ADW-S, ATP-S, ADW-D, ATP-D DatabaseType []ListDatabaseInsightsDatabaseTypeEnum `contributesTo:"query" name:"databaseType" omitEmpty:"true" collectionFormat:"multi"` // Optional list of database OCIDs (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). DatabaseId []string `contributesTo:"query" name:"databaseId" collectionFormat:"multi"` // Specifies the fields to return in a database summary response. By default all fields are returned if omitted. Fields []ListDatabaseInsightsFieldsEnum `contributesTo:"query" name:"fields" omitEmpty:"true" collectionFormat:"multi"` // For list pagination. The maximum number of results per page, or items to // return in a paginated "List" call. // For important details about how pagination works, see // List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // For list pagination. The value of the `opc-next-page` response header from // the previous "List" call. For important details about how pagination works, // see List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). SortOrder ListDatabaseInsightsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // Database insight list sort options. If `fields` parameter is selected, the `sortBy` parameter must be one of the fields specified. SortBy ListDatabaseInsightsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListDatabaseInsightsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListDatabaseInsightsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListDatabaseInsightsRequest) String() string
ListDatabaseInsightsResponse wrapper for the ListDatabaseInsights operation
type ListDatabaseInsightsResponse struct { // The underlying http response RawResponse *http.Response // A list of DatabaseInsightsCollection instances DatabaseInsightsCollection `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. The total number of items in the result. OpcTotalItems *int `presentIn:"header" name:"opc-total-items"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response ListDatabaseInsightsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListDatabaseInsightsResponse) String() string
ListDatabaseInsightsSortByEnum Enum with underlying type: string
type ListDatabaseInsightsSortByEnum string
Set of constants representing the allowable values for ListDatabaseInsightsSortByEnum
const ( ListDatabaseInsightsSortByDatabasename ListDatabaseInsightsSortByEnum = "databaseName" ListDatabaseInsightsSortByDatabasedisplayname ListDatabaseInsightsSortByEnum = "databaseDisplayName" ListDatabaseInsightsSortByDatabasetype ListDatabaseInsightsSortByEnum = "databaseType" )
func GetListDatabaseInsightsSortByEnumValues() []ListDatabaseInsightsSortByEnum
GetListDatabaseInsightsSortByEnumValues Enumerates the set of values for ListDatabaseInsightsSortByEnum
ListDatabaseInsightsSortOrderEnum Enum with underlying type: string
type ListDatabaseInsightsSortOrderEnum string
Set of constants representing the allowable values for ListDatabaseInsightsSortOrderEnum
const ( ListDatabaseInsightsSortOrderAsc ListDatabaseInsightsSortOrderEnum = "ASC" ListDatabaseInsightsSortOrderDesc ListDatabaseInsightsSortOrderEnum = "DESC" )
func GetListDatabaseInsightsSortOrderEnumValues() []ListDatabaseInsightsSortOrderEnum
GetListDatabaseInsightsSortOrderEnumValues Enumerates the set of values for ListDatabaseInsightsSortOrderEnum
ListSqlPlansRequest wrapper for the ListSqlPlans operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/ListSqlPlans.go.html to see an example of how to use ListSqlPlansRequest.
type ListSqlPlansRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // Required OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database. DatabaseId *string `mandatory:"true" contributesTo:"query" name:"databaseId"` // Unique SQL_ID for a SQL Statement. // Example: `6rgjh9bjmy2s7` SqlIdentifier *string `mandatory:"true" contributesTo:"query" name:"sqlIdentifier"` // Unique plan hash for a SQL Plan of a particular SQL Statement. // Example: `9820154385` PlanHash []int64 `contributesTo:"query" name:"planHash" collectionFormat:"multi"` // For list pagination. The value of the `opc-next-page` response header from // the previous "List" call. For important details about how pagination works, // see List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListSqlPlansRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListSqlPlansRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListSqlPlansRequest) String() string
ListSqlPlansResponse wrapper for the ListSqlPlans operation
type ListSqlPlansResponse struct { // The underlying http response RawResponse *http.Response // A list of SqlPlanCollection instances SqlPlanCollection `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response ListSqlPlansResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListSqlPlansResponse) String() string
ListSqlSearchesRequest wrapper for the ListSqlSearches operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/ListSqlSearches.go.html to see an example of how to use ListSqlSearchesRequest.
type ListSqlSearchesRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // Unique SQL_ID for a SQL Statement. // Example: `6rgjh9bjmy2s7` SqlIdentifier *string `mandatory:"true" contributesTo:"query" name:"sqlIdentifier"` // Specify time period in ISO 8601 format with respect to current time. // Default is last 30 days represented by P30D. // If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. // Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). AnalysisTimeInterval *string `mandatory:"false" contributesTo:"query" name:"analysisTimeInterval"` // Analysis start time in UTC in ISO 8601 format(inclusive). // Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). // The minimum allowed value is 2 years prior to the current day. // timeIntervalStart and timeIntervalEnd parameters are used together. // If analysisTimeInterval is specified, this parameter is ignored. TimeIntervalStart *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeIntervalStart"` // Analysis end time in UTC in ISO 8601 format(exclusive). // Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). // timeIntervalStart and timeIntervalEnd are used together. // If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. TimeIntervalEnd *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeIntervalEnd"` // For list pagination. The value of the `opc-next-page` response header from // the previous "List" call. For important details about how pagination works, // see List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListSqlSearchesRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListSqlSearchesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListSqlSearchesRequest) String() string
ListSqlSearchesResponse wrapper for the ListSqlSearches operation
type ListSqlSearchesResponse struct { // The underlying http response RawResponse *http.Response // A list of SqlSearchCollection instances SqlSearchCollection `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response ListSqlSearchesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListSqlSearchesResponse) String() string
ListSqlTextsRequest wrapper for the ListSqlTexts operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/ListSqlTexts.go.html to see an example of how to use ListSqlTextsRequest.
type ListSqlTextsRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // One or more unique SQL_IDs for a SQL Statement. // Example: `6rgjh9bjmy2s7` SqlIdentifier []string `contributesTo:"query" name:"sqlIdentifier" collectionFormat:"multi"` // Optional list of database OCIDs (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). DatabaseId []string `contributesTo:"query" name:"databaseId" collectionFormat:"multi"` // For list pagination. The value of the `opc-next-page` response header from // the previous "List" call. For important details about how pagination works, // see List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListSqlTextsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListSqlTextsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListSqlTextsRequest) String() string
ListSqlTextsResponse wrapper for the ListSqlTexts operation
type ListSqlTextsResponse struct { // The underlying http response RawResponse *http.Response // A list of SqlTextCollection instances SqlTextCollection `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response ListSqlTextsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListSqlTextsResponse) String() string
OperationsInsightsClient a client for OperationsInsights
type OperationsInsightsClient struct { common.BaseClient // contains filtered or unexported fields }
func NewOperationsInsightsClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client OperationsInsightsClient, err error)
NewOperationsInsightsClientWithConfigurationProvider Creates a new default OperationsInsights client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region
func NewOperationsInsightsClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client OperationsInsightsClient, err error)
NewOperationsInsightsClientWithOboToken Creates a new default OperationsInsights 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 *OperationsInsightsClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (client OperationsInsightsClient) IngestSqlBucket(ctx context.Context, request IngestSqlBucketRequest) (response IngestSqlBucketResponse, err error)
IngestSqlBucket The sqlbucket endpoint takes in a JSON payload, persists it in Operations Insights ingest pipeline.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/IngestSqlBucket.go.html to see an example of how to use IngestSqlBucket API.
func (client OperationsInsightsClient) IngestSqlPlanLines(ctx context.Context, request IngestSqlPlanLinesRequest) (response IngestSqlPlanLinesResponse, err error)
IngestSqlPlanLines The SqlPlanLines endpoint takes in a JSON payload, persists it in Operation Insights ingest pipeline.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/IngestSqlPlanLines.go.html to see an example of how to use IngestSqlPlanLines API.
func (client OperationsInsightsClient) IngestSqlText(ctx context.Context, request IngestSqlTextRequest) (response IngestSqlTextResponse, err error)
IngestSqlText The SqlText endpoint takes in a JSON payload, persists it in Operation Insights ingest pipeline. Disclaimer: SQL text being uploaded explicitly via APIs is not masked. Any sensitive literals contained in the sqlFullText column should be masked prior to ingestion.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/IngestSqlText.go.html to see an example of how to use IngestSqlText API.
func (client OperationsInsightsClient) ListDatabaseInsights(ctx context.Context, request ListDatabaseInsightsRequest) (response ListDatabaseInsightsResponse, err error)
ListDatabaseInsights Lists database insight resources
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/ListDatabaseInsights.go.html to see an example of how to use ListDatabaseInsights API.
func (client OperationsInsightsClient) ListSqlPlans(ctx context.Context, request ListSqlPlansRequest) (response ListSqlPlansResponse, err error)
ListSqlPlans Query SQL Warehouse to list the plan xml for a given SQL execution plan. This returns a SqlPlanCollection object, but is currently limited to a single plan.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/ListSqlPlans.go.html to see an example of how to use ListSqlPlans API.
func (client OperationsInsightsClient) ListSqlSearches(ctx context.Context, request ListSqlSearchesRequest) (response ListSqlSearchesResponse, err error)
ListSqlSearches Search SQL by SQL Identifier across databases and get the SQL Text and the details of the databases executing the SQL for a given time period.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/ListSqlSearches.go.html to see an example of how to use ListSqlSearches API.
func (client OperationsInsightsClient) ListSqlTexts(ctx context.Context, request ListSqlTextsRequest) (response ListSqlTextsResponse, err error)
ListSqlTexts Query SQL Warehouse to get the full SQL Text for a SQL.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/ListSqlTexts.go.html to see an example of how to use ListSqlTexts API.
func (client *OperationsInsightsClient) SetRegion(region string)
SetRegion overrides the region of this client.
func (client OperationsInsightsClient) SummarizeDatabaseInsightResourceCapacityTrend(ctx context.Context, request SummarizeDatabaseInsightResourceCapacityTrendRequest) (response SummarizeDatabaseInsightResourceCapacityTrendResponse, err error)
SummarizeDatabaseInsightResourceCapacityTrend Returns response with time series data (endTimestamp, capacity, baseCapacity) for the time period specified. The maximum time range for analysis is 2 years, hence this is intentionally not paginated.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/SummarizeDatabaseInsightResourceCapacityTrend.go.html to see an example of how to use SummarizeDatabaseInsightResourceCapacityTrend API.
func (client OperationsInsightsClient) SummarizeDatabaseInsightResourceForecastTrend(ctx context.Context, request SummarizeDatabaseInsightResourceForecastTrendRequest) (response SummarizeDatabaseInsightResourceForecastTrendResponse, err error)
SummarizeDatabaseInsightResourceForecastTrend Get Forecast predictions for CPU and Storage resources since a time in the past.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/SummarizeDatabaseInsightResourceForecastTrend.go.html to see an example of how to use SummarizeDatabaseInsightResourceForecastTrend API.
func (client OperationsInsightsClient) SummarizeDatabaseInsightResourceStatistics(ctx context.Context, request SummarizeDatabaseInsightResourceStatisticsRequest) (response SummarizeDatabaseInsightResourceStatisticsResponse, err error)
SummarizeDatabaseInsightResourceStatistics Lists the Resource statistics (usage,capacity, usage change percent, utilization percent, base capacity, isAutoScalingEnabled) for each database filtered by utilization level
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/SummarizeDatabaseInsightResourceStatistics.go.html to see an example of how to use SummarizeDatabaseInsightResourceStatistics API.
func (client OperationsInsightsClient) SummarizeDatabaseInsightResourceUsage(ctx context.Context, request SummarizeDatabaseInsightResourceUsageRequest) (response SummarizeDatabaseInsightResourceUsageResponse, err error)
SummarizeDatabaseInsightResourceUsage A cumulative distribution function is used to rank the usage data points per database within the specified time period. For each database, the minimum data point with a ranking > the percentile value is included in the summation. Linear regression functions are used to calculate the usage change percentage.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/SummarizeDatabaseInsightResourceUsage.go.html to see an example of how to use SummarizeDatabaseInsightResourceUsage API.
func (client OperationsInsightsClient) SummarizeDatabaseInsightResourceUsageTrend(ctx context.Context, request SummarizeDatabaseInsightResourceUsageTrendRequest) (response SummarizeDatabaseInsightResourceUsageTrendResponse, err error)
SummarizeDatabaseInsightResourceUsageTrend Returns response with time series data (endTimestamp, usage, capacity) for the time period specified. The maximum time range for analysis is 2 years, hence this is intentionally not paginated.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/SummarizeDatabaseInsightResourceUsageTrend.go.html to see an example of how to use SummarizeDatabaseInsightResourceUsageTrend API.
func (client OperationsInsightsClient) SummarizeDatabaseInsightResourceUtilizationInsight(ctx context.Context, request SummarizeDatabaseInsightResourceUtilizationInsightRequest) (response SummarizeDatabaseInsightResourceUtilizationInsightResponse, err error)
SummarizeDatabaseInsightResourceUtilizationInsight Gets resources with current utilization (high and low) and projected utilization (high and low) for a resource type over specified time period.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/SummarizeDatabaseInsightResourceUtilizationInsight.go.html to see an example of how to use SummarizeDatabaseInsightResourceUtilizationInsight API.
func (client OperationsInsightsClient) SummarizeSqlInsights(ctx context.Context, request SummarizeSqlInsightsRequest) (response SummarizeSqlInsightsResponse, err error)
SummarizeSqlInsights Query SQL Warehouse to get the performance insights for SQLs taking greater than X% database time for a given time period across the given databases or database types.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/SummarizeSqlInsights.go.html to see an example of how to use SummarizeSqlInsights API.
func (client OperationsInsightsClient) SummarizeSqlPlanInsights(ctx context.Context, request SummarizeSqlPlanInsightsRequest) (response SummarizeSqlPlanInsightsResponse, err error)
SummarizeSqlPlanInsights Query SQL Warehouse to get the performance insights on the execution plans for a given SQL for a given time period.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/SummarizeSqlPlanInsights.go.html to see an example of how to use SummarizeSqlPlanInsights API.
func (client OperationsInsightsClient) SummarizeSqlResponseTimeDistributions(ctx context.Context, request SummarizeSqlResponseTimeDistributionsRequest) (response SummarizeSqlResponseTimeDistributionsResponse, err error)
SummarizeSqlResponseTimeDistributions Query SQL Warehouse to summarize the response time distribution of query executions for a given SQL for a given time period.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/SummarizeSqlResponseTimeDistributions.go.html to see an example of how to use SummarizeSqlResponseTimeDistributions API.
func (client OperationsInsightsClient) SummarizeSqlStatistics(ctx context.Context, request SummarizeSqlStatisticsRequest) (response SummarizeSqlStatisticsResponse, err error)
SummarizeSqlStatistics Query SQL Warehouse to get the performance statistics for SQLs taking greater than X% database time for a given time period across the given databases or database types.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/SummarizeSqlStatistics.go.html to see an example of how to use SummarizeSqlStatistics API.
func (client OperationsInsightsClient) SummarizeSqlStatisticsTimeSeries(ctx context.Context, request SummarizeSqlStatisticsTimeSeriesRequest) (response SummarizeSqlStatisticsTimeSeriesResponse, err error)
SummarizeSqlStatisticsTimeSeries Query SQL Warehouse to get the performance statistics time series for a given SQL across given databases for a given time period.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/SummarizeSqlStatisticsTimeSeries.go.html to see an example of how to use SummarizeSqlStatisticsTimeSeries API.
func (client OperationsInsightsClient) SummarizeSqlStatisticsTimeSeriesByPlan(ctx context.Context, request SummarizeSqlStatisticsTimeSeriesByPlanRequest) (response SummarizeSqlStatisticsTimeSeriesByPlanResponse, err error)
SummarizeSqlStatisticsTimeSeriesByPlan Query SQL Warehouse to get the performance statistics time series for a given SQL by execution plans for a given time period.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/SummarizeSqlStatisticsTimeSeriesByPlan.go.html to see an example of how to use SummarizeSqlStatisticsTimeSeriesByPlan API.
ProjectedDataItem The timestamp of the projected event and their corresponding resource value. `highValue` and `lowValue` are the uncertainty bounds of the corresponding value.
type ProjectedDataItem struct { // The timestamp in which the current sampling period ends in RFC 3339 format. EndTimestamp *common.SDKTime `mandatory:"true" json:"endTimestamp"` // Total amount used of the resource metric type (CPU, STORAGE). Usage *float64 `mandatory:"true" json:"usage"` // Upper uncertainty bound of the current usage value. HighValue *float64 `mandatory:"true" json:"highValue"` // Lower uncertainty bound of the current usage value. LowValue *float64 `mandatory:"true" json:"lowValue"` }
func (m ProjectedDataItem) String() string
ResourceCapacityTrendAggregation Resource Capacity samples
type ResourceCapacityTrendAggregation struct { // The timestamp in which the current sampling period ends in RFC 3339 format. EndTimestamp *common.SDKTime `mandatory:"true" json:"endTimestamp"` // The maximum allocated amount of the resource metric type (CPU, STORAGE). Capacity *float64 `mandatory:"true" json:"capacity"` // The base allocated amount of the resource metric type (CPU, STORAGE). BaseCapacity *float64 `mandatory:"true" json:"baseCapacity"` }
func (m ResourceCapacityTrendAggregation) String() string
ResourceInsightCurrentUtilization Current utilization(High/low) for cpu or storage
type ResourceInsightCurrentUtilization struct { // List of db ids with low usage Low []string `mandatory:"false" json:"low"` // List of db ids with high usage High []string `mandatory:"false" json:"high"` }
func (m ResourceInsightCurrentUtilization) String() string
ResourceInsightProjectedUtilization Projected utilization(High/low) for cpu or storage
type ResourceInsightProjectedUtilization struct { // List of db ids with low usage Low []ResourceInsightProjectedUtilizationItem `mandatory:"true" json:"low"` // List of db ids with high usage High []ResourceInsightProjectedUtilizationItem `mandatory:"true" json:"high"` }
func (m ResourceInsightProjectedUtilization) String() string
ResourceInsightProjectedUtilizationItem Projected utilization object containing dbid and daysToReach value
type ResourceInsightProjectedUtilizationItem struct { // Db id Id *string `mandatory:"true" json:"id"` // Days to reach projected utilization DaysToReach *int `mandatory:"true" json:"daysToReach"` }
func (m ResourceInsightProjectedUtilizationItem) String() string
ResourceStatistics Contains resource statistics with usage unit
type ResourceStatistics struct { // Total amount used of the resource metric type (CPU, STORAGE). Usage *float64 `mandatory:"true" json:"usage"` // The maximum allocated amount of the resource metric type (CPU, STORAGE). Capacity *float64 `mandatory:"true" json:"capacity"` // Resource utilization in percentage UtilizationPercent *float64 `mandatory:"true" json:"utilizationPercent"` // Change in resource utilization in percentage UsageChangePercent *float64 `mandatory:"true" json:"usageChangePercent"` // The base allocated amount of the resource metric type (CPU, STORAGE). BaseCapacity *float64 `mandatory:"false" json:"baseCapacity"` // Indicates if auto scaling feature is enabled or disabled on a database. It will be false for all metrics other than CPU. IsAutoScalingEnabled *bool `mandatory:"false" json:"isAutoScalingEnabled"` }
func (m ResourceStatistics) String() string
ResourceStatisticsAggregation Contains database details and resource statistics
type ResourceStatisticsAggregation struct { DatabaseDetails *DatabaseDetails `mandatory:"false" json:"databaseDetails"` CurrentStatistics *ResourceStatistics `mandatory:"false" json:"currentStatistics"` }
func (m ResourceStatisticsAggregation) String() string
ResourceUsageTrendAggregation Aggregate usage samples
type ResourceUsageTrendAggregation struct { // The timestamp in which the current sampling period ends in RFC 3339 format. EndTimestamp *common.SDKTime `mandatory:"true" json:"endTimestamp"` // Total amount used of the resource metric type (CPU, STORAGE). Usage *float64 `mandatory:"true" json:"usage"` // The maximum allocated amount of the resource metric type (CPU, STORAGE). Capacity *float64 `mandatory:"true" json:"capacity"` }
func (m ResourceUsageTrendAggregation) String() string
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 GetSortOrderEnumValues() []SortOrderEnum
GetSortOrderEnumValues Enumerates the set of values for SortOrderEnum
SqlBucket Sql bucket type object.
type SqlBucket struct { // Collection timestamp // Example: `"2020-03-31T00:00:00.000Z"` TimeCollected *common.SDKTime `mandatory:"true" json:"timeCollected"` // Unique SQL_ID for a SQL Statement. SqlIdentifier *string `mandatory:"true" json:"sqlIdentifier"` // Plan hash value for the SQL Execution Plan PlanHash *int64 `mandatory:"true" json:"planHash"` // SQL Bucket ID, examples <= 3 secs, 3-10 secs, 10-60 secs, 1-5 min, > 5 min // Example: `"<= 3 secs"` BucketId *string `mandatory:"true" json:"bucketId"` // Version // Example: `1` Version *float32 `mandatory:"false" json:"version"` // Operations Insights internal representation of the database type. DatabaseType *string `mandatory:"false" json:"databaseType"` // Total number of executions // Example: `60` ExecutionsCount *int `mandatory:"false" json:"executionsCount"` // Total CPU time // Example: `1046` CpuTimeInSec *float32 `mandatory:"false" json:"cpuTimeInSec"` // Total IO time // Example: `5810` IoTimeInSec *float32 `mandatory:"false" json:"ioTimeInSec"` // Total other wait time // Example: `24061` OtherWaitTimeInSec *float32 `mandatory:"false" json:"otherWaitTimeInSec"` // Total time // Example: `30917` TotalTimeInSec *float32 `mandatory:"false" json:"totalTimeInSec"` }
func (m SqlBucket) String() string
SqlInsightAggregation Represents a SQL Insight.
type SqlInsightAggregation struct { // Insight text. // For example `Degrading SQLs`, `Variant SQLs`, // `Inefficient SQLs`, `Improving SQLs`, `SQLs with Plan Changes`, // `Degrading SQLs have increasing IO Time above 50%`, // `Degrading SQLs are variant`, // `2 of the 2 variant SQLs have plan changes`, // `Inefficient SQLs have increasing CPU Time above 50% Text *string `mandatory:"true" json:"text"` // SQL counts for a given insight. For example insight text `2 of 10 SQLs have degrading response time` will have values as [2,10]" Values []int `mandatory:"true" json:"values"` // Insight category. It would be one of the following // DEGRADING, // VARIANT, // INEFFICIENT, // CHANGING_PLANS, // IMPROVING, // DEGRADING_VARIANT, // DEGRADING_INEFFICIENT, // DEGRADING_CHANGING_PLANS, // DEGRADING_INCREASING_IO, // DEGRADING_INCREASING_CPU, // DEGRADING_INCREASING_INEFFICIENT_WAIT, // DEGRADING_CHANGING_PLANS_AND_INCREASING_IO, // DEGRADING_CHANGING_PLANS_AND_INCREASING_CPU, // DEGRADING_CHANGING_PLANS_AND_INCREASING_INEFFICIENT_WAIT,VARIANT_INEFFICIENT, // VARIANT_CHANGING_PLANS, // VARIANT_INCREASING_IO, // VARIANT_INCREASING_CPU, // VARIANT_INCREASING_INEFFICIENT_WAIT, // VARIANT_CHANGING_PLANS_AND_INCREASING_IO, // VARIANT_CHANGING_PLANS_AND_INCREASING_CPU, // VARIANT_CHANGING_PLANS_AND_INCREASING_INEFFICIENT_WAIT, // INEFFICIENT_CHANGING_PLANS, // INEFFICIENT_INCREASING_INEFFICIENT_WAIT, // INEFFICIENT_CHANGING_PLANS_AND_INCREASING_INEFFICIENT_WAIT Category *string `mandatory:"true" json:"category"` }
func (m SqlInsightAggregation) String() string
SqlInsightAggregationCollection SQL Insights response.
type SqlInsightAggregationCollection struct { // The start timestamp that was passed into the request. TimeIntervalStart *common.SDKTime `mandatory:"true" json:"timeIntervalStart"` // The end timestamp that was passed into the request. TimeIntervalEnd *common.SDKTime `mandatory:"true" json:"timeIntervalEnd"` Inventory *SqlInventory `mandatory:"true" json:"inventory"` // List of insights. Items []SqlInsightAggregation `mandatory:"true" json:"items"` Thresholds *SqlInsightThresholds `mandatory:"true" json:"thresholds"` }
func (m SqlInsightAggregationCollection) String() string
SqlInsightThresholds Inventory details.
type SqlInsightThresholds struct { // Degradation Percent Threshold is used to derive degrading SQLs. DegradationInPct *int `mandatory:"true" json:"degradationInPct"` // Variability Percent Threshold is used to derive variant SQLs. Variability *float32 `mandatory:"true" json:"variability"` // Inefficiency Percent Threshold is used to derive inefficient SQLs. InefficiencyInPct *int `mandatory:"true" json:"inefficiencyInPct"` // PctIncreaseInIO is used for deriving insights for SQLs which are degrading or // variant or inefficient. And these SQLs should also have increasing change in IO Time // beyond threshold. Insights are derived using linear regression. IncreaseInIOInPct *int `mandatory:"true" json:"increaseInIOInPct"` // PctIncreaseInCPU is used for deriving insights for SQLs which are degrading or // variant or inefficient. And these SQLs should also have increasing change in CPU Time // beyond threshold. Insights are derived using linear regression. IncreaseInCPUInPct *int `mandatory:"true" json:"increaseInCPUInPct"` // PctIncreaseInIO is used for deriving insights for SQLs which are degrading or // variant or inefficient. And these SQLs should also have increasing change in // Other Wait Time beyond threshold. Insights are derived using linear regression. IncreaseInInefficientWaitInPct *int `mandatory:"true" json:"increaseInInefficientWaitInPct"` // Improved Percent Threshold is used to derive improving SQLs. ImprovedInPct *int `mandatory:"true" json:"improvedInPct"` }
func (m SqlInsightThresholds) String() string
SqlInventory Inventory details.
type SqlInventory struct { // Total number of sqls. Example `2000` TotalSqls *int64 `mandatory:"true" json:"totalSqls"` // Total number of Databases. Example `400` TotalDatabases *int `mandatory:"true" json:"totalDatabases"` // Total number of sqls analyzed by the query. Example `120` SqlsAnalyzed *int64 `mandatory:"true" json:"sqlsAnalyzed"` }
func (m SqlInventory) String() string
SqlPlanCollection SQL Plans for the particular SQL.
type SqlPlanCollection struct { // Unique SQL_ID for a SQL Statement. SqlIdentifier *string `mandatory:"true" json:"sqlIdentifier"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database. DatabaseId *string `mandatory:"true" json:"databaseId"` // array of SQL Plans. Items []SqlPlanSummary `mandatory:"true" json:"items"` }
func (m SqlPlanCollection) String() string
SqlPlanInsightAggregation SQL execution plan Performance statistics.
type SqlPlanInsightAggregation struct { // Plan hash value for the SQL Execution Plan PlanHash *int64 `mandatory:"true" json:"planHash"` // IO Time in seconds IoTimeInSec *float64 `mandatory:"true" json:"ioTimeInSec"` // CPU Time in seconds CpuTimeInSec *float64 `mandatory:"true" json:"cpuTimeInSec"` // Inefficient Wait Time in seconds InefficientWaitTimeInSec *float64 `mandatory:"true" json:"inefficientWaitTimeInSec"` // Total number of executions ExecutionsCount *int64 `mandatory:"true" json:"executionsCount"` }
func (m SqlPlanInsightAggregation) String() string
SqlPlanInsightAggregationCollection SQL plan insights response.
type SqlPlanInsightAggregationCollection struct { // Unique SQL_ID for a SQL Statement. SqlIdentifier *string `mandatory:"true" json:"sqlIdentifier"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database. DatabaseId *string `mandatory:"true" json:"databaseId"` // The start timestamp that was passed into the request. TimeIntervalStart *common.SDKTime `mandatory:"true" json:"timeIntervalStart"` // The end timestamp that was passed into the request. TimeIntervalEnd *common.SDKTime `mandatory:"true" json:"timeIntervalEnd"` // List of SQL plan insights. Insights []SqlPlanInsights `mandatory:"true" json:"insights"` // List of SQL plan statistics. Items []SqlPlanInsightAggregation `mandatory:"true" json:"items"` }
func (m SqlPlanInsightAggregationCollection) String() string
SqlPlanInsights Represents collection of SQL Plan Insights.
type SqlPlanInsights struct { // SQL Plan Insight text. // For example `Number of Plans Used`, `Most Executed Plan`, // `Best Performing Plan`, `Worst Performing Plan`, // `Plan With Most IO`, // `Plan with Most CPU` Text *string `mandatory:"true" json:"text"` // SQL execution plan hash value for a given insight. For example `Most Executed Plan` insight will have value as "3975467901" Value *int64 `mandatory:"true" json:"value"` // SQL Insight category. For example PLANS_USED, MOST_EXECUTED, BEST_PERFORMER, WORST_PERFORMER, MOST_CPU or MOST_IO. Category *string `mandatory:"true" json:"category"` }
func (m SqlPlanInsights) String() string
SqlPlanLine SQL Plan Line type object.
type SqlPlanLine struct { // Unique SQL_ID for a SQL Statement. SqlIdentifier *string `mandatory:"true" json:"sqlIdentifier"` // Plan hash value for the SQL Execution Plan PlanHash *int64 `mandatory:"true" json:"planHash"` // Collection time stamp // Example: `"2020-05-06T00:00:00.000Z"` TimeCollected *common.SDKTime `mandatory:"true" json:"timeCollected"` // Operation // Example: `"SELECT STATEMENT"` Operation *string `mandatory:"true" json:"operation"` // Identifier // Example: `3` Identifier *int64 `mandatory:"true" json:"identifier"` // Version // Example: `1` Version *float32 `mandatory:"false" json:"version"` // Remark // Example: `""` Remark *string `mandatory:"false" json:"remark"` // Options // Example: `"RANGE SCAN"` Options *string `mandatory:"false" json:"options"` // Object Node // Example: `"Q4000"` ObjectNode *string `mandatory:"false" json:"objectNode"` // Object Owner // Example: `"TENANT_A#SCHEMA"` ObjectOwner *string `mandatory:"false" json:"objectOwner"` // Object Name // Example: `"PLAN_LINES_PK"` ObjectName *string `mandatory:"false" json:"objectName"` // Object Alias // Example: `"PLAN_LINES@SEL$1"` ObjectAlias *string `mandatory:"false" json:"objectAlias"` // Object Instance // Example: `37472` ObjectInstance *int64 `mandatory:"false" json:"objectInstance"` // Object Type // Example: `"INDEX (UNIQUE)"` ObjectType *string `mandatory:"false" json:"objectType"` // Optimizer // Example: `"CLUSTER"` Optimizer *string `mandatory:"false" json:"optimizer"` // Search Columns // Example: `3` SearchColumns *int64 `mandatory:"false" json:"searchColumns"` // Parent Identifier // Example: `2` ParentIdentifier *int64 `mandatory:"false" json:"parentIdentifier"` // Depth // Example: `3` Depth *int64 `mandatory:"false" json:"depth"` // Position // Example: `1` Position *int64 `mandatory:"false" json:"position"` // Cost // Example: `1` Cost *int64 `mandatory:"false" json:"cost"` // Cardinality // Example: `1` Cardinality *int64 `mandatory:"false" json:"cardinality"` // Bytes // Example: `150` Bytes *int64 `mandatory:"false" json:"bytes"` // Other // Example: `` Other *string `mandatory:"false" json:"other"` // Other Tag // Example: `"PARALLEL_COMBINED_WITH_PARENT"` OtherTag *string `mandatory:"false" json:"otherTag"` // Partition start // Example: `1` PartitionStart *string `mandatory:"false" json:"partitionStart"` // Partition stop // Example: `2` PartitionStop *string `mandatory:"false" json:"partitionStop"` // Partition identifier // Example: `8` PartitionIdentifier *int64 `mandatory:"false" json:"partitionIdentifier"` // Distribution // Example: `"QC (RANDOM)"` Distribution *string `mandatory:"false" json:"distribution"` // CPU cost // Example: `7321` CpuCost *int64 `mandatory:"false" json:"cpuCost"` // IO cost // Example: `1` IoCost *int64 `mandatory:"false" json:"ioCost"` // Time space // Example: `15614000` TempSpace *int64 `mandatory:"false" json:"tempSpace"` // Access predicates // Example: `"\"RESOURCE_ID\"=:1 AND \"QUERY_ID\"=:2"` AccessPredicates *string `mandatory:"false" json:"accessPredicates"` // Filter predicates // Example: `"(INTERNAL_FUNCTION(\"J\".\"DATABASE_ROLE\") OR (\"J\".\"DATABASE_ROLE\" IS NULL AND SYS_CONTEXT('userenv','database_role')='PRIMARY'))"` FilterPredicates *string `mandatory:"false" json:"filterPredicates"` // Projection // Example: `"COUNT(*)[22]"` Projection *string `mandatory:"false" json:"projection"` // Qblock Name // Example: `"SEL$1"` QblockName *string `mandatory:"false" json:"qblockName"` // Total elapsed time // Example: `1.2` ElapsedTimeInSec *float32 `mandatory:"false" json:"elapsedTimeInSec"` // Other SQL // Example: `"<other_xml><info type=\"db_version\">18.0.0.0</info><info type=\"parse_schema\"><![CDATA[\"SYS\"]]></info><info type=\"plan_hash_full\">483892784</info><info type=\"plan_hash\">2709293936</info><info type=\"plan_hash_2\">483892784</info><outline_data><hint><![CDATA[IGNORE_OPTIM_EMBEDDED_HINTS]]></hint><hint><![CDATA[OPTIMIZER_FEATURES_ENABLE('18.1.0')]]></hint><hint><![CDATA[DB_VERSION('18.1.0')]]></hint><hint><![CDATA[OPT_PARAM('_b_tree_bitmap_plans' 'false')]]></hint><hint><![CDATA[OPT_PARAM('_optim_peek_user_binds' 'false')]]></hint><hint><![CDATA[OPT_PARAM('result_cache_mode' 'FORCE')]]></hint><hint><![CDATA[OPT_PARAM('_fix_control' '20648883:0 27745220:1 30001331:1 30142527:1 30539126:1')]]></hint><hint><![CDATA[OUTLINE_LEAF(@\"SEL$1\")]]></hint><hint><![CDATA[INDEX(@\"SEL$1\" \"USER$\"@\"SEL$1\" \"I_USER#\")]]></hint></outline_data></other_xml>"` OtherXML *string `mandatory:"false" json:"otherXML"` }
func (m SqlPlanLine) String() string
SqlPlanSummary SQL Plan details
type SqlPlanSummary struct { // Plan hash value for the SQL Execution Plan PlanHash *int64 `mandatory:"true" json:"planHash"` // Plan XML Content PlanContent *string `mandatory:"true" json:"planContent"` }
func (m SqlPlanSummary) String() string
SqlResponseTimeDistributionAggregation SQL Response time distribution entry.
type SqlResponseTimeDistributionAggregation struct { // Response time bucket id BucketId *string `mandatory:"true" json:"bucketId"` // Total number of SQL executions ExecutionsCount *int64 `mandatory:"true" json:"executionsCount"` }
func (m SqlResponseTimeDistributionAggregation) String() string
SqlResponseTimeDistributionAggregationCollection SQL response time distribution over the selected time window.
type SqlResponseTimeDistributionAggregationCollection struct { // Unique SQL_ID for a SQL Statement. SqlIdentifier *string `mandatory:"true" json:"sqlIdentifier"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database. DatabaseId *string `mandatory:"true" json:"databaseId"` // The start timestamp that was passed into the request. TimeIntervalStart *common.SDKTime `mandatory:"true" json:"timeIntervalStart"` // The end timestamp that was passed into the request. TimeIntervalEnd *common.SDKTime `mandatory:"true" json:"timeIntervalEnd"` // Array of pre defined SQL response time bucket id and SQL executions count. Items []SqlResponseTimeDistributionAggregation `mandatory:"true" json:"items"` }
func (m SqlResponseTimeDistributionAggregationCollection) String() string
SqlSearchCollection Search SQL response.
type SqlSearchCollection struct { // The start timestamp that was passed into the request. TimeIntervalStart *common.SDKTime `mandatory:"true" json:"timeIntervalStart"` // The end timestamp that was passed into the request. TimeIntervalEnd *common.SDKTime `mandatory:"true" json:"timeIntervalEnd"` // List of Databases executing the sql. Items []SqlSearchSummary `mandatory:"true" json:"items"` // Unique SQL_ID for a SQL Statement. SqlIdentifier *string `mandatory:"false" json:"sqlIdentifier"` // SQL Statement Text SqlText *string `mandatory:"false" json:"sqlText"` }
func (m SqlSearchCollection) String() string
SqlSearchSummary Database summary object resulting from a sql search operation.
type SqlSearchSummary struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database. DatabaseId *string `mandatory:"true" json:"databaseId"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The database name. The database name is unique within the tenancy. DatabaseName *string `mandatory:"true" json:"databaseName"` // The user-friendly name for the database. The name does not have to be unique. DatabaseDisplayName *string `mandatory:"true" json:"databaseDisplayName"` // Operations Insights internal representation of the database type. DatabaseType *string `mandatory:"true" json:"databaseType"` // The version of the database. DatabaseVersion *string `mandatory:"true" json:"databaseVersion"` }
func (m SqlSearchSummary) String() string
SqlStatisticAggregation SQL Statistics
type SqlStatisticAggregation struct { // Unique SQL_ID for a SQL Statement. SqlIdentifier *string `mandatory:"true" json:"sqlIdentifier"` DatabaseDetails *DatabaseDetails `mandatory:"true" json:"databaseDetails"` // SQL belongs to one or more categories based on the insights. Category []string `mandatory:"true" json:"category"` Statistics *SqlStatistics `mandatory:"false" json:"statistics"` }
func (m SqlStatisticAggregation) String() string
SqlStatisticAggregationCollection SQL statistics response.
type SqlStatisticAggregationCollection struct { // The start timestamp that was passed into the request. TimeIntervalStart *common.SDKTime `mandatory:"true" json:"timeIntervalStart"` // The end timestamp that was passed into the request. TimeIntervalEnd *common.SDKTime `mandatory:"true" json:"timeIntervalEnd"` // Array of SQLs along with its statistics statisfying the query criteria. Items []SqlStatisticAggregation `mandatory:"true" json:"items"` }
func (m SqlStatisticAggregationCollection) String() string
SqlStatistics Performance statistics for the SQL.
type SqlStatistics struct { // Database Time in seconds DatabaseTimeInSec *float64 `mandatory:"true" json:"databaseTimeInSec"` // Number of executions per hour ExecutionsPerHour *float64 `mandatory:"true" json:"executionsPerHour"` // Total number of executions ExecutionsCount *int64 `mandatory:"true" json:"executionsCount"` // CPU Time in seconds CpuTimeInSec *float64 `mandatory:"true" json:"cpuTimeInSec"` // I/O Time in seconds IoTimeInSec *float64 `mandatory:"true" json:"ioTimeInSec"` // Inefficient Wait Time in seconds InefficientWaitTimeInSec *float64 `mandatory:"true" json:"inefficientWaitTimeInSec"` // Response time is the average elaspsed time per execution. It is the ratio of Total Database Time to the number of executions ResponseTimeInSec *float64 `mandatory:"true" json:"responseTimeInSec"` // Number of SQL execution plans used by the SQL PlanCount *int64 `mandatory:"true" json:"planCount"` // Variability is the ratio of the standard deviation in response time to the mean of response time of the SQL Variability *float64 `mandatory:"true" json:"variability"` // Average Active Sessions represent the average active sessions at a point in time. It is the number of sessions that are either working or waiting. AverageActiveSessions *float64 `mandatory:"true" json:"averageActiveSessions"` // Percentage of Database Time DatabaseTimePct *float64 `mandatory:"true" json:"databaseTimePct"` // Percentage of Inefficiency. It is calculated by Total Database Time divided by Total Wait Time InefficiencyInPct *float64 `mandatory:"true" json:"inefficiencyInPct"` // Percent change in CPU Time based on linear regression ChangeInCpuTimeInPct *float64 `mandatory:"true" json:"changeInCpuTimeInPct"` // Percent change in IO Time based on linear regression ChangeInIoTimeInPct *float64 `mandatory:"true" json:"changeInIoTimeInPct"` // Percent change in Inefficient Wait Time based on linear regression ChangeInInefficientWaitTimeInPct *float64 `mandatory:"true" json:"changeInInefficientWaitTimeInPct"` // Percent change in Response Time based on linear regression ChangeInResponseTimeInPct *float64 `mandatory:"true" json:"changeInResponseTimeInPct"` // Percent change in Average Active Sessions based on linear regression ChangeInAverageActiveSessionsInPct *float64 `mandatory:"true" json:"changeInAverageActiveSessionsInPct"` // Percent change in Executions per hour based on linear regression ChangeInExecutionsPerHourInPct *float64 `mandatory:"true" json:"changeInExecutionsPerHourInPct"` // Percent change in Inefficiency based on linear regression ChangeInInefficiencyInPct *float64 `mandatory:"true" json:"changeInInefficiencyInPct"` }
func (m SqlStatistics) String() string
SqlStatisticsTimeSeries SQL performance statistics per database
type SqlStatisticsTimeSeries struct { // SQL performance statistic name Name *string `mandatory:"true" json:"name"` // SQL performance statistic value Values []float64 `mandatory:"true" json:"values"` }
func (m SqlStatisticsTimeSeries) String() string
SqlStatisticsTimeSeriesAggregation Database details and SQL performance statistics for a given database
type SqlStatisticsTimeSeriesAggregation struct { DatabaseDetails *DatabaseDetails `mandatory:"true" json:"databaseDetails"` // SQL performance statistics for a given database Statistics []SqlStatisticsTimeSeries `mandatory:"true" json:"statistics"` }
func (m SqlStatisticsTimeSeriesAggregation) String() string
SqlStatisticsTimeSeriesAggregationCollection SQL performance statistics over the selected time window.
type SqlStatisticsTimeSeriesAggregationCollection struct { // Unique SQL_ID for a SQL Statement. SqlIdentifier *string `mandatory:"true" json:"sqlIdentifier"` // The start timestamp that was passed into the request. TimeIntervalStart *common.SDKTime `mandatory:"true" json:"timeIntervalStart"` // The end timestamp that was passed into the request. TimeIntervalEnd *common.SDKTime `mandatory:"true" json:"timeIntervalEnd"` // Time duration in milliseconds between data points (one hour or one day). ItemDurationInMs *int64 `mandatory:"true" json:"itemDurationInMs"` // Array of SQL performance statistics across databases. Items []SqlStatisticsTimeSeriesAggregation `mandatory:"true" json:"items"` // Array comprising of all the sampling period end timestamps in RFC 3339 format. EndTimestamps []common.SDKTime `mandatory:"false" json:"endTimestamps"` }
func (m SqlStatisticsTimeSeriesAggregationCollection) String() string
SqlStatisticsTimeSeriesByPlanAggregation SQL performance statistics for a given plan
type SqlStatisticsTimeSeriesByPlanAggregation struct { // Plan hash value for the SQL Execution Plan PlanHash *int64 `mandatory:"true" json:"planHash"` // SQL performance statistics for a given plan Statistics []SqlStatisticsTimeSeries `mandatory:"true" json:"statistics"` }
func (m SqlStatisticsTimeSeriesByPlanAggregation) String() string
SqlStatisticsTimeSeriesByPlanAggregationCollection SQL performance statistics by plan over the selected time window.
type SqlStatisticsTimeSeriesByPlanAggregationCollection struct { // Unique SQL_ID for a SQL Statement. SqlIdentifier *string `mandatory:"true" json:"sqlIdentifier"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database. DatabaseId *string `mandatory:"true" json:"databaseId"` // The start timestamp that was passed into the request. TimeIntervalStart *common.SDKTime `mandatory:"true" json:"timeIntervalStart"` // The end timestamp that was passed into the request. TimeIntervalEnd *common.SDKTime `mandatory:"true" json:"timeIntervalEnd"` // Time duration in milliseconds between data points (one hour or one day). ItemDurationInMs *int64 `mandatory:"true" json:"itemDurationInMs"` // Array comprising of all the sampling period end timestamps in RFC 3339 format. EndTimestamps []common.SDKTime `mandatory:"true" json:"endTimestamps"` // array of SQL performance statistics by plans Items []SqlStatisticsTimeSeriesByPlanAggregation `mandatory:"true" json:"items"` }
func (m SqlStatisticsTimeSeriesByPlanAggregationCollection) String() string
SqlText SQL Text type object.
type SqlText struct { // Unique SQL_ID for a SQL Statement. SqlIdentifier *string `mandatory:"true" json:"sqlIdentifier"` // Collection timestamp // Example: `"2020-05-06T00:00:00.000Z"` TimeCollected *common.SDKTime `mandatory:"true" json:"timeCollected"` // SQL command // Example: `"SELECT"` SqlCommand *string `mandatory:"true" json:"sqlCommand"` // Full SQL Text // Example: `"SELECT username,profile,default_tablespace,temporary_tablespace FROM dba_users"` // Disclaimer: SQL text being uploaded explicitly via APIs is not masked. Any sensitive literals contained in the sqlFullText column should be masked prior to ingestion. SqlFullText *string `mandatory:"true" json:"sqlFullText"` // Version // Example: `1` Version *float32 `mandatory:"false" json:"version"` // Exact matching signature // Example: `"18067345456756876713"` ExactMatchingSignature *string `mandatory:"false" json:"exactMatchingSignature"` // Force matching signature // Example: `"18067345456756876713"` ForceMatchingSignature *string `mandatory:"false" json:"forceMatchingSignature"` }
func (m SqlText) String() string
SqlTextCollection SQL Text for the particular SQL.
type SqlTextCollection struct { // array of SQL Texts. Items []SqlTextSummary `mandatory:"true" json:"items"` }
func (m SqlTextCollection) String() string
SqlTextSummary SQL Text details
type SqlTextSummary struct { // Unique SQL_ID for a SQL Statement. SqlIdentifier *string `mandatory:"true" json:"sqlIdentifier"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database. DatabaseId *string `mandatory:"true" json:"databaseId"` // SQL Text SqlText *string `mandatory:"true" json:"sqlText"` }
func (m SqlTextSummary) String() string
SummarizeDatabaseInsightResourceCapacityTrendAggregationCollection Collection of resource capacity trend.
type SummarizeDatabaseInsightResourceCapacityTrendAggregationCollection struct { // The start timestamp that was passed into the request. TimeIntervalStart *common.SDKTime `mandatory:"true" json:"timeIntervalStart"` // The end timestamp that was passed into the request. TimeIntervalEnd *common.SDKTime `mandatory:"true" json:"timeIntervalEnd"` // Defines the type of resource metric (CPU, STORAGE) ResourceMetric SummarizeDatabaseInsightResourceCapacityTrendAggregationCollectionResourceMetricEnum `mandatory:"true" json:"resourceMetric"` // Identifies the units of the current resource metric (CORES, GB). UsageUnit UsageUnitEnum `mandatory:"true" json:"usageUnit"` // Time duration in milliseconds between data points (one hour or one day). ItemDurationInMs *int64 `mandatory:"true" json:"itemDurationInMs"` // Capacity Data with time interval CapacityData []ResourceCapacityTrendAggregation `mandatory:"true" json:"capacityData"` }
func (m SummarizeDatabaseInsightResourceCapacityTrendAggregationCollection) String() string
SummarizeDatabaseInsightResourceCapacityTrendAggregationCollectionResourceMetricEnum Enum with underlying type: string
type SummarizeDatabaseInsightResourceCapacityTrendAggregationCollectionResourceMetricEnum string
Set of constants representing the allowable values for SummarizeDatabaseInsightResourceCapacityTrendAggregationCollectionResourceMetricEnum
const ( SummarizeDatabaseInsightResourceCapacityTrendAggregationCollectionResourceMetricCpu SummarizeDatabaseInsightResourceCapacityTrendAggregationCollectionResourceMetricEnum = "CPU" SummarizeDatabaseInsightResourceCapacityTrendAggregationCollectionResourceMetricStorage SummarizeDatabaseInsightResourceCapacityTrendAggregationCollectionResourceMetricEnum = "STORAGE" )
func GetSummarizeDatabaseInsightResourceCapacityTrendAggregationCollectionResourceMetricEnumValues() []SummarizeDatabaseInsightResourceCapacityTrendAggregationCollectionResourceMetricEnum
GetSummarizeDatabaseInsightResourceCapacityTrendAggregationCollectionResourceMetricEnumValues Enumerates the set of values for SummarizeDatabaseInsightResourceCapacityTrendAggregationCollectionResourceMetricEnum
SummarizeDatabaseInsightResourceCapacityTrendDatabaseTypeEnum Enum with underlying type: string
type SummarizeDatabaseInsightResourceCapacityTrendDatabaseTypeEnum string
Set of constants representing the allowable values for SummarizeDatabaseInsightResourceCapacityTrendDatabaseTypeEnum
const ( SummarizeDatabaseInsightResourceCapacityTrendDatabaseTypeAdwS SummarizeDatabaseInsightResourceCapacityTrendDatabaseTypeEnum = "ADW-S" SummarizeDatabaseInsightResourceCapacityTrendDatabaseTypeAtpS SummarizeDatabaseInsightResourceCapacityTrendDatabaseTypeEnum = "ATP-S" SummarizeDatabaseInsightResourceCapacityTrendDatabaseTypeAdwD SummarizeDatabaseInsightResourceCapacityTrendDatabaseTypeEnum = "ADW-D" SummarizeDatabaseInsightResourceCapacityTrendDatabaseTypeAtpD SummarizeDatabaseInsightResourceCapacityTrendDatabaseTypeEnum = "ATP-D" )
func GetSummarizeDatabaseInsightResourceCapacityTrendDatabaseTypeEnumValues() []SummarizeDatabaseInsightResourceCapacityTrendDatabaseTypeEnum
GetSummarizeDatabaseInsightResourceCapacityTrendDatabaseTypeEnumValues Enumerates the set of values for SummarizeDatabaseInsightResourceCapacityTrendDatabaseTypeEnum
SummarizeDatabaseInsightResourceCapacityTrendRequest wrapper for the SummarizeDatabaseInsightResourceCapacityTrend operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/SummarizeDatabaseInsightResourceCapacityTrend.go.html to see an example of how to use SummarizeDatabaseInsightResourceCapacityTrendRequest.
type SummarizeDatabaseInsightResourceCapacityTrendRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // Filter by resource metric. // Supported values are CPU and STORAGE. ResourceMetric *string `mandatory:"true" contributesTo:"query" name:"resourceMetric"` // Specify time period in ISO 8601 format with respect to current time. // Default is last 30 days represented by P30D. // If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. // Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). AnalysisTimeInterval *string `mandatory:"false" contributesTo:"query" name:"analysisTimeInterval"` // Analysis start time in UTC in ISO 8601 format(inclusive). // Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). // The minimum allowed value is 2 years prior to the current day. // timeIntervalStart and timeIntervalEnd parameters are used together. // If analysisTimeInterval is specified, this parameter is ignored. TimeIntervalStart *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeIntervalStart"` // Analysis end time in UTC in ISO 8601 format(exclusive). // Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). // timeIntervalStart and timeIntervalEnd are used together. // If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. TimeIntervalEnd *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeIntervalEnd"` // Filter by one or more database type. // Possible values are ADW-S, ATP-S, ADW-D, ATP-D DatabaseType []SummarizeDatabaseInsightResourceCapacityTrendDatabaseTypeEnum `contributesTo:"query" name:"databaseType" omitEmpty:"true" collectionFormat:"multi"` // Optional list of database OCIDs (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). DatabaseId []string `contributesTo:"query" name:"databaseId" collectionFormat:"multi"` // Filter by utilization level by the following buckets: // - HIGH_UTILIZATION: DBs with utilization greater or equal than 75. // - LOW_UTILIZATION: DBs with utilization lower than 25. // - MEDIUM_HIGH_UTILIZATION: DBs with utilization greater or equal than 50 but lower than 75. // - MEDIUM_LOW_UTILIZATION: DBs with utilization greater or equal than 25 but lower than 50. UtilizationLevel SummarizeDatabaseInsightResourceCapacityTrendUtilizationLevelEnum `mandatory:"false" contributesTo:"query" name:"utilizationLevel" omitEmpty:"true"` // For list pagination. The value of the `opc-next-page` response header from // the previous "List" call. For important details about how pagination works, // see List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). SortOrder SummarizeDatabaseInsightResourceCapacityTrendSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // Sorts using end timestamp , capacity or baseCapacity SortBy SummarizeDatabaseInsightResourceCapacityTrendSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request SummarizeDatabaseInsightResourceCapacityTrendRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request SummarizeDatabaseInsightResourceCapacityTrendRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request SummarizeDatabaseInsightResourceCapacityTrendRequest) String() string
SummarizeDatabaseInsightResourceCapacityTrendResponse wrapper for the SummarizeDatabaseInsightResourceCapacityTrend operation
type SummarizeDatabaseInsightResourceCapacityTrendResponse struct { // The underlying http response RawResponse *http.Response // A list of SummarizeDatabaseInsightResourceCapacityTrendAggregationCollection instances SummarizeDatabaseInsightResourceCapacityTrendAggregationCollection `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response SummarizeDatabaseInsightResourceCapacityTrendResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response SummarizeDatabaseInsightResourceCapacityTrendResponse) String() string
SummarizeDatabaseInsightResourceCapacityTrendSortByEnum Enum with underlying type: string
type SummarizeDatabaseInsightResourceCapacityTrendSortByEnum string
Set of constants representing the allowable values for SummarizeDatabaseInsightResourceCapacityTrendSortByEnum
const ( SummarizeDatabaseInsightResourceCapacityTrendSortByEndtimestamp SummarizeDatabaseInsightResourceCapacityTrendSortByEnum = "endTimestamp" SummarizeDatabaseInsightResourceCapacityTrendSortByCapacity SummarizeDatabaseInsightResourceCapacityTrendSortByEnum = "capacity" SummarizeDatabaseInsightResourceCapacityTrendSortByBasecapacity SummarizeDatabaseInsightResourceCapacityTrendSortByEnum = "baseCapacity" )
func GetSummarizeDatabaseInsightResourceCapacityTrendSortByEnumValues() []SummarizeDatabaseInsightResourceCapacityTrendSortByEnum
GetSummarizeDatabaseInsightResourceCapacityTrendSortByEnumValues Enumerates the set of values for SummarizeDatabaseInsightResourceCapacityTrendSortByEnum
SummarizeDatabaseInsightResourceCapacityTrendSortOrderEnum Enum with underlying type: string
type SummarizeDatabaseInsightResourceCapacityTrendSortOrderEnum string
Set of constants representing the allowable values for SummarizeDatabaseInsightResourceCapacityTrendSortOrderEnum
const ( SummarizeDatabaseInsightResourceCapacityTrendSortOrderAsc SummarizeDatabaseInsightResourceCapacityTrendSortOrderEnum = "ASC" SummarizeDatabaseInsightResourceCapacityTrendSortOrderDesc SummarizeDatabaseInsightResourceCapacityTrendSortOrderEnum = "DESC" )
func GetSummarizeDatabaseInsightResourceCapacityTrendSortOrderEnumValues() []SummarizeDatabaseInsightResourceCapacityTrendSortOrderEnum
GetSummarizeDatabaseInsightResourceCapacityTrendSortOrderEnumValues Enumerates the set of values for SummarizeDatabaseInsightResourceCapacityTrendSortOrderEnum
SummarizeDatabaseInsightResourceCapacityTrendUtilizationLevelEnum Enum with underlying type: string
type SummarizeDatabaseInsightResourceCapacityTrendUtilizationLevelEnum string
Set of constants representing the allowable values for SummarizeDatabaseInsightResourceCapacityTrendUtilizationLevelEnum
const ( SummarizeDatabaseInsightResourceCapacityTrendUtilizationLevelHighUtilization SummarizeDatabaseInsightResourceCapacityTrendUtilizationLevelEnum = "HIGH_UTILIZATION" SummarizeDatabaseInsightResourceCapacityTrendUtilizationLevelLowUtilization SummarizeDatabaseInsightResourceCapacityTrendUtilizationLevelEnum = "LOW_UTILIZATION" SummarizeDatabaseInsightResourceCapacityTrendUtilizationLevelMediumHighUtilization SummarizeDatabaseInsightResourceCapacityTrendUtilizationLevelEnum = "MEDIUM_HIGH_UTILIZATION" SummarizeDatabaseInsightResourceCapacityTrendUtilizationLevelMediumLowUtilization SummarizeDatabaseInsightResourceCapacityTrendUtilizationLevelEnum = "MEDIUM_LOW_UTILIZATION" )
func GetSummarizeDatabaseInsightResourceCapacityTrendUtilizationLevelEnumValues() []SummarizeDatabaseInsightResourceCapacityTrendUtilizationLevelEnum
GetSummarizeDatabaseInsightResourceCapacityTrendUtilizationLevelEnumValues Enumerates the set of values for SummarizeDatabaseInsightResourceCapacityTrendUtilizationLevelEnum
SummarizeDatabaseInsightResourceForecastTrendAggregation Forecast results from the selected time period.
type SummarizeDatabaseInsightResourceForecastTrendAggregation struct { // The start timestamp that was passed into the request. TimeIntervalStart *common.SDKTime `mandatory:"true" json:"timeIntervalStart"` // The end timestamp that was passed into the request. TimeIntervalEnd *common.SDKTime `mandatory:"true" json:"timeIntervalEnd"` // Defines the type of resource metric (CPU, STORAGE) ResourceMetric SummarizeDatabaseInsightResourceForecastTrendAggregationResourceMetricEnum `mandatory:"true" json:"resourceMetric"` // Displays usage unit ( CORES, GB) UsageUnit UsageUnitEnum `mandatory:"true" json:"usageUnit"` // Time series patterns used in the forecasting. Pattern SummarizeDatabaseInsightResourceForecastTrendAggregationPatternEnum `mandatory:"true" json:"pattern"` // Time series data used for the forecast analysis. HistoricalData []HistoricalDataItem `mandatory:"true" json:"historicalData"` // Time series data result of the forecasting analysis. ProjectedData []ProjectedDataItem `mandatory:"true" json:"projectedData"` }
func (m SummarizeDatabaseInsightResourceForecastTrendAggregation) String() string
SummarizeDatabaseInsightResourceForecastTrendAggregationPatternEnum Enum with underlying type: string
type SummarizeDatabaseInsightResourceForecastTrendAggregationPatternEnum string
Set of constants representing the allowable values for SummarizeDatabaseInsightResourceForecastTrendAggregationPatternEnum
const ( SummarizeDatabaseInsightResourceForecastTrendAggregationPatternLinear SummarizeDatabaseInsightResourceForecastTrendAggregationPatternEnum = "LINEAR" SummarizeDatabaseInsightResourceForecastTrendAggregationPatternMonthlySeasons SummarizeDatabaseInsightResourceForecastTrendAggregationPatternEnum = "MONTHLY_SEASONS" SummarizeDatabaseInsightResourceForecastTrendAggregationPatternMonthlyAndYearlySeasons SummarizeDatabaseInsightResourceForecastTrendAggregationPatternEnum = "MONTHLY_AND_YEARLY_SEASONS" SummarizeDatabaseInsightResourceForecastTrendAggregationPatternWeeklySeasons SummarizeDatabaseInsightResourceForecastTrendAggregationPatternEnum = "WEEKLY_SEASONS" SummarizeDatabaseInsightResourceForecastTrendAggregationPatternWeeklyAndMonthlySeasons SummarizeDatabaseInsightResourceForecastTrendAggregationPatternEnum = "WEEKLY_AND_MONTHLY_SEASONS" SummarizeDatabaseInsightResourceForecastTrendAggregationPatternWeeklyMonthlyAndYearlySeasons SummarizeDatabaseInsightResourceForecastTrendAggregationPatternEnum = "WEEKLY_MONTHLY_AND_YEARLY_SEASONS" SummarizeDatabaseInsightResourceForecastTrendAggregationPatternWeeklyAndYearlySeasons SummarizeDatabaseInsightResourceForecastTrendAggregationPatternEnum = "WEEKLY_AND_YEARLY_SEASONS" SummarizeDatabaseInsightResourceForecastTrendAggregationPatternYearlySeasons SummarizeDatabaseInsightResourceForecastTrendAggregationPatternEnum = "YEARLY_SEASONS" )
func GetSummarizeDatabaseInsightResourceForecastTrendAggregationPatternEnumValues() []SummarizeDatabaseInsightResourceForecastTrendAggregationPatternEnum
GetSummarizeDatabaseInsightResourceForecastTrendAggregationPatternEnumValues Enumerates the set of values for SummarizeDatabaseInsightResourceForecastTrendAggregationPatternEnum
SummarizeDatabaseInsightResourceForecastTrendAggregationResourceMetricEnum Enum with underlying type: string
type SummarizeDatabaseInsightResourceForecastTrendAggregationResourceMetricEnum string
Set of constants representing the allowable values for SummarizeDatabaseInsightResourceForecastTrendAggregationResourceMetricEnum
const ( SummarizeDatabaseInsightResourceForecastTrendAggregationResourceMetricCpu SummarizeDatabaseInsightResourceForecastTrendAggregationResourceMetricEnum = "CPU" SummarizeDatabaseInsightResourceForecastTrendAggregationResourceMetricStorage SummarizeDatabaseInsightResourceForecastTrendAggregationResourceMetricEnum = "STORAGE" )
func GetSummarizeDatabaseInsightResourceForecastTrendAggregationResourceMetricEnumValues() []SummarizeDatabaseInsightResourceForecastTrendAggregationResourceMetricEnum
GetSummarizeDatabaseInsightResourceForecastTrendAggregationResourceMetricEnumValues Enumerates the set of values for SummarizeDatabaseInsightResourceForecastTrendAggregationResourceMetricEnum
SummarizeDatabaseInsightResourceForecastTrendDatabaseTypeEnum Enum with underlying type: string
type SummarizeDatabaseInsightResourceForecastTrendDatabaseTypeEnum string
Set of constants representing the allowable values for SummarizeDatabaseInsightResourceForecastTrendDatabaseTypeEnum
const ( SummarizeDatabaseInsightResourceForecastTrendDatabaseTypeAdwS SummarizeDatabaseInsightResourceForecastTrendDatabaseTypeEnum = "ADW-S" SummarizeDatabaseInsightResourceForecastTrendDatabaseTypeAtpS SummarizeDatabaseInsightResourceForecastTrendDatabaseTypeEnum = "ATP-S" SummarizeDatabaseInsightResourceForecastTrendDatabaseTypeAdwD SummarizeDatabaseInsightResourceForecastTrendDatabaseTypeEnum = "ADW-D" SummarizeDatabaseInsightResourceForecastTrendDatabaseTypeAtpD SummarizeDatabaseInsightResourceForecastTrendDatabaseTypeEnum = "ATP-D" )
func GetSummarizeDatabaseInsightResourceForecastTrendDatabaseTypeEnumValues() []SummarizeDatabaseInsightResourceForecastTrendDatabaseTypeEnum
GetSummarizeDatabaseInsightResourceForecastTrendDatabaseTypeEnumValues Enumerates the set of values for SummarizeDatabaseInsightResourceForecastTrendDatabaseTypeEnum
SummarizeDatabaseInsightResourceForecastTrendForecastModelEnum Enum with underlying type: string
type SummarizeDatabaseInsightResourceForecastTrendForecastModelEnum string
Set of constants representing the allowable values for SummarizeDatabaseInsightResourceForecastTrendForecastModelEnum
const ( SummarizeDatabaseInsightResourceForecastTrendForecastModelLinear SummarizeDatabaseInsightResourceForecastTrendForecastModelEnum = "LINEAR" SummarizeDatabaseInsightResourceForecastTrendForecastModelMlAuto SummarizeDatabaseInsightResourceForecastTrendForecastModelEnum = "ML_AUTO" SummarizeDatabaseInsightResourceForecastTrendForecastModelMlNoAuto SummarizeDatabaseInsightResourceForecastTrendForecastModelEnum = "ML_NO_AUTO" )
func GetSummarizeDatabaseInsightResourceForecastTrendForecastModelEnumValues() []SummarizeDatabaseInsightResourceForecastTrendForecastModelEnum
GetSummarizeDatabaseInsightResourceForecastTrendForecastModelEnumValues Enumerates the set of values for SummarizeDatabaseInsightResourceForecastTrendForecastModelEnum
SummarizeDatabaseInsightResourceForecastTrendRequest wrapper for the SummarizeDatabaseInsightResourceForecastTrend operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/SummarizeDatabaseInsightResourceForecastTrend.go.html to see an example of how to use SummarizeDatabaseInsightResourceForecastTrendRequest.
type SummarizeDatabaseInsightResourceForecastTrendRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // Filter by resource metric. // Supported values are CPU and STORAGE. ResourceMetric *string `mandatory:"true" contributesTo:"query" name:"resourceMetric"` // Specify time period in ISO 8601 format with respect to current time. // Default is last 30 days represented by P30D. // If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. // Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). AnalysisTimeInterval *string `mandatory:"false" contributesTo:"query" name:"analysisTimeInterval"` // Analysis start time in UTC in ISO 8601 format(inclusive). // Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). // The minimum allowed value is 2 years prior to the current day. // timeIntervalStart and timeIntervalEnd parameters are used together. // If analysisTimeInterval is specified, this parameter is ignored. TimeIntervalStart *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeIntervalStart"` // Analysis end time in UTC in ISO 8601 format(exclusive). // Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). // timeIntervalStart and timeIntervalEnd are used together. // If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. TimeIntervalEnd *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeIntervalEnd"` // Filter by one or more database type. // Possible values are ADW-S, ATP-S, ADW-D, ATP-D DatabaseType []SummarizeDatabaseInsightResourceForecastTrendDatabaseTypeEnum `contributesTo:"query" name:"databaseType" omitEmpty:"true" collectionFormat:"multi"` // Optional list of database OCIDs (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). DatabaseId []string `contributesTo:"query" name:"databaseId" collectionFormat:"multi"` // Choose the type of statistic metric data to be used for forecasting. Statistic SummarizeDatabaseInsightResourceForecastTrendStatisticEnum `mandatory:"false" contributesTo:"query" name:"statistic" omitEmpty:"true"` // Number of days used for utilization forecast analysis. ForecastDays *int `mandatory:"false" contributesTo:"query" name:"forecastDays"` // Choose algorithm model for the forecasting. // Possible values: // - LINEAR: Uses linear regression algorithm for forecasting. // - ML_AUTO: Automatically detects best algorithm to use for forecasting. // - ML_NO_AUTO: Automatically detects seasonality of the data for forecasting using linear or seasonal algorithm. ForecastModel SummarizeDatabaseInsightResourceForecastTrendForecastModelEnum `mandatory:"false" contributesTo:"query" name:"forecastModel" omitEmpty:"true"` // Filter by utilization level by the following buckets: // - HIGH_UTILIZATION: DBs with utilization greater or equal than 75. // - LOW_UTILIZATION: DBs with utilization lower than 25. // - MEDIUM_HIGH_UTILIZATION: DBs with utilization greater or equal than 50 but lower than 75. // - MEDIUM_LOW_UTILIZATION: DBs with utilization greater or equal than 25 but lower than 50. UtilizationLevel SummarizeDatabaseInsightResourceForecastTrendUtilizationLevelEnum `mandatory:"false" contributesTo:"query" name:"utilizationLevel" omitEmpty:"true"` // This parameter is used to change data's confidence level, this data is ingested by the // forecast algorithm. // Confidence is the probability of an interval to contain the expected population parameter. // Manipulation of this value will lead to different results. // If not set, default confidence value is 95%. Confidence *int `mandatory:"false" contributesTo:"query" name:"confidence"` // For list pagination. The value of the `opc-next-page` response header from // the previous "List" call. For important details about how pagination works, // see List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request SummarizeDatabaseInsightResourceForecastTrendRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request SummarizeDatabaseInsightResourceForecastTrendRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request SummarizeDatabaseInsightResourceForecastTrendRequest) String() string
SummarizeDatabaseInsightResourceForecastTrendResponse wrapper for the SummarizeDatabaseInsightResourceForecastTrend operation
type SummarizeDatabaseInsightResourceForecastTrendResponse struct { // The underlying http response RawResponse *http.Response // A list of SummarizeDatabaseInsightResourceForecastTrendAggregation instances SummarizeDatabaseInsightResourceForecastTrendAggregation `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response SummarizeDatabaseInsightResourceForecastTrendResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response SummarizeDatabaseInsightResourceForecastTrendResponse) String() string
SummarizeDatabaseInsightResourceForecastTrendStatisticEnum Enum with underlying type: string
type SummarizeDatabaseInsightResourceForecastTrendStatisticEnum string
Set of constants representing the allowable values for SummarizeDatabaseInsightResourceForecastTrendStatisticEnum
const ( SummarizeDatabaseInsightResourceForecastTrendStatisticAvg SummarizeDatabaseInsightResourceForecastTrendStatisticEnum = "AVG" SummarizeDatabaseInsightResourceForecastTrendStatisticMax SummarizeDatabaseInsightResourceForecastTrendStatisticEnum = "MAX" )
func GetSummarizeDatabaseInsightResourceForecastTrendStatisticEnumValues() []SummarizeDatabaseInsightResourceForecastTrendStatisticEnum
GetSummarizeDatabaseInsightResourceForecastTrendStatisticEnumValues Enumerates the set of values for SummarizeDatabaseInsightResourceForecastTrendStatisticEnum
SummarizeDatabaseInsightResourceForecastTrendUtilizationLevelEnum Enum with underlying type: string
type SummarizeDatabaseInsightResourceForecastTrendUtilizationLevelEnum string
Set of constants representing the allowable values for SummarizeDatabaseInsightResourceForecastTrendUtilizationLevelEnum
const ( SummarizeDatabaseInsightResourceForecastTrendUtilizationLevelHighUtilization SummarizeDatabaseInsightResourceForecastTrendUtilizationLevelEnum = "HIGH_UTILIZATION" SummarizeDatabaseInsightResourceForecastTrendUtilizationLevelLowUtilization SummarizeDatabaseInsightResourceForecastTrendUtilizationLevelEnum = "LOW_UTILIZATION" SummarizeDatabaseInsightResourceForecastTrendUtilizationLevelMediumHighUtilization SummarizeDatabaseInsightResourceForecastTrendUtilizationLevelEnum = "MEDIUM_HIGH_UTILIZATION" SummarizeDatabaseInsightResourceForecastTrendUtilizationLevelMediumLowUtilization SummarizeDatabaseInsightResourceForecastTrendUtilizationLevelEnum = "MEDIUM_LOW_UTILIZATION" )
func GetSummarizeDatabaseInsightResourceForecastTrendUtilizationLevelEnumValues() []SummarizeDatabaseInsightResourceForecastTrendUtilizationLevelEnum
GetSummarizeDatabaseInsightResourceForecastTrendUtilizationLevelEnumValues Enumerates the set of values for SummarizeDatabaseInsightResourceForecastTrendUtilizationLevelEnum
SummarizeDatabaseInsightResourceStatisticsAggregationCollection Returns list of the Databases with resource statistics like usage,capacity,utilization and usage change percent.
type SummarizeDatabaseInsightResourceStatisticsAggregationCollection struct { // The start timestamp that was passed into the request. TimeIntervalStart *common.SDKTime `mandatory:"true" json:"timeIntervalStart"` // The end timestamp that was passed into the request. TimeIntervalEnd *common.SDKTime `mandatory:"true" json:"timeIntervalEnd"` // Defines the type of resource metric (CPU, STORAGE) ResourceMetric SummarizeDatabaseInsightResourceStatisticsAggregationCollectionResourceMetricEnum `mandatory:"true" json:"resourceMetric"` // Displays usage unit ( CORES, GB) UsageUnit UsageUnitEnum `mandatory:"true" json:"usageUnit"` // Collection of Resource Statistics items Items []ResourceStatisticsAggregation `mandatory:"true" json:"items"` }
func (m SummarizeDatabaseInsightResourceStatisticsAggregationCollection) String() string
SummarizeDatabaseInsightResourceStatisticsAggregationCollectionResourceMetricEnum Enum with underlying type: string
type SummarizeDatabaseInsightResourceStatisticsAggregationCollectionResourceMetricEnum string
Set of constants representing the allowable values for SummarizeDatabaseInsightResourceStatisticsAggregationCollectionResourceMetricEnum
const ( SummarizeDatabaseInsightResourceStatisticsAggregationCollectionResourceMetricCpu SummarizeDatabaseInsightResourceStatisticsAggregationCollectionResourceMetricEnum = "CPU" SummarizeDatabaseInsightResourceStatisticsAggregationCollectionResourceMetricStorage SummarizeDatabaseInsightResourceStatisticsAggregationCollectionResourceMetricEnum = "STORAGE" )
func GetSummarizeDatabaseInsightResourceStatisticsAggregationCollectionResourceMetricEnumValues() []SummarizeDatabaseInsightResourceStatisticsAggregationCollectionResourceMetricEnum
GetSummarizeDatabaseInsightResourceStatisticsAggregationCollectionResourceMetricEnumValues Enumerates the set of values for SummarizeDatabaseInsightResourceStatisticsAggregationCollectionResourceMetricEnum
SummarizeDatabaseInsightResourceStatisticsDatabaseTypeEnum Enum with underlying type: string
type SummarizeDatabaseInsightResourceStatisticsDatabaseTypeEnum string
Set of constants representing the allowable values for SummarizeDatabaseInsightResourceStatisticsDatabaseTypeEnum
const ( SummarizeDatabaseInsightResourceStatisticsDatabaseTypeAdwS SummarizeDatabaseInsightResourceStatisticsDatabaseTypeEnum = "ADW-S" SummarizeDatabaseInsightResourceStatisticsDatabaseTypeAtpS SummarizeDatabaseInsightResourceStatisticsDatabaseTypeEnum = "ATP-S" SummarizeDatabaseInsightResourceStatisticsDatabaseTypeAdwD SummarizeDatabaseInsightResourceStatisticsDatabaseTypeEnum = "ADW-D" SummarizeDatabaseInsightResourceStatisticsDatabaseTypeAtpD SummarizeDatabaseInsightResourceStatisticsDatabaseTypeEnum = "ATP-D" )
func GetSummarizeDatabaseInsightResourceStatisticsDatabaseTypeEnumValues() []SummarizeDatabaseInsightResourceStatisticsDatabaseTypeEnum
GetSummarizeDatabaseInsightResourceStatisticsDatabaseTypeEnumValues Enumerates the set of values for SummarizeDatabaseInsightResourceStatisticsDatabaseTypeEnum
SummarizeDatabaseInsightResourceStatisticsRequest wrapper for the SummarizeDatabaseInsightResourceStatistics operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/SummarizeDatabaseInsightResourceStatistics.go.html to see an example of how to use SummarizeDatabaseInsightResourceStatisticsRequest.
type SummarizeDatabaseInsightResourceStatisticsRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // Filter by resource metric. // Supported values are CPU and STORAGE. ResourceMetric *string `mandatory:"true" contributesTo:"query" name:"resourceMetric"` // Specify time period in ISO 8601 format with respect to current time. // Default is last 30 days represented by P30D. // If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. // Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). AnalysisTimeInterval *string `mandatory:"false" contributesTo:"query" name:"analysisTimeInterval"` // Analysis start time in UTC in ISO 8601 format(inclusive). // Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). // The minimum allowed value is 2 years prior to the current day. // timeIntervalStart and timeIntervalEnd parameters are used together. // If analysisTimeInterval is specified, this parameter is ignored. TimeIntervalStart *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeIntervalStart"` // Analysis end time in UTC in ISO 8601 format(exclusive). // Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). // timeIntervalStart and timeIntervalEnd are used together. // If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. TimeIntervalEnd *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeIntervalEnd"` // Filter by one or more database type. // Possible values are ADW-S, ATP-S, ADW-D, ATP-D DatabaseType []SummarizeDatabaseInsightResourceStatisticsDatabaseTypeEnum `contributesTo:"query" name:"databaseType" omitEmpty:"true" collectionFormat:"multi"` // Optional list of database OCIDs (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). DatabaseId []string `contributesTo:"query" name:"databaseId" collectionFormat:"multi"` // Percentile values of daily usage to be used for computing the aggregate resource usage. Percentile *int `mandatory:"false" contributesTo:"query" name:"percentile"` // Return data of a specific insight // Possible values are High Utilization, Low Utilization, Any ,High Utilization Forecast, // Low Utilization Forecast InsightBy *string `mandatory:"false" contributesTo:"query" name:"insightBy"` // Number of days used for utilization forecast analysis. ForecastDays *int `mandatory:"false" contributesTo:"query" name:"forecastDays"` // For list pagination. The maximum number of results per page, or items to // return in a paginated "List" call. // For important details about how pagination works, see // List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // For list pagination. The value of the `opc-next-page` response header from // the previous "List" call. For important details about how pagination works, // see List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). SortOrder SummarizeDatabaseInsightResourceStatisticsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // The order in which resource statistics records are listed SortBy SummarizeDatabaseInsightResourceStatisticsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request SummarizeDatabaseInsightResourceStatisticsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request SummarizeDatabaseInsightResourceStatisticsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request SummarizeDatabaseInsightResourceStatisticsRequest) String() string
SummarizeDatabaseInsightResourceStatisticsResponse wrapper for the SummarizeDatabaseInsightResourceStatistics operation
type SummarizeDatabaseInsightResourceStatisticsResponse struct { // The underlying http response RawResponse *http.Response // A list of SummarizeDatabaseInsightResourceStatisticsAggregationCollection instances SummarizeDatabaseInsightResourceStatisticsAggregationCollection `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response SummarizeDatabaseInsightResourceStatisticsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response SummarizeDatabaseInsightResourceStatisticsResponse) String() string
SummarizeDatabaseInsightResourceStatisticsSortByEnum Enum with underlying type: string
type SummarizeDatabaseInsightResourceStatisticsSortByEnum string
Set of constants representing the allowable values for SummarizeDatabaseInsightResourceStatisticsSortByEnum
const ( SummarizeDatabaseInsightResourceStatisticsSortByUtilizationpercent SummarizeDatabaseInsightResourceStatisticsSortByEnum = "utilizationPercent" SummarizeDatabaseInsightResourceStatisticsSortByUsage SummarizeDatabaseInsightResourceStatisticsSortByEnum = "usage" SummarizeDatabaseInsightResourceStatisticsSortByUsagechangepercent SummarizeDatabaseInsightResourceStatisticsSortByEnum = "usageChangePercent" SummarizeDatabaseInsightResourceStatisticsSortByDatabasename SummarizeDatabaseInsightResourceStatisticsSortByEnum = "databaseName" SummarizeDatabaseInsightResourceStatisticsSortByDatabasetype SummarizeDatabaseInsightResourceStatisticsSortByEnum = "databaseType" )
func GetSummarizeDatabaseInsightResourceStatisticsSortByEnumValues() []SummarizeDatabaseInsightResourceStatisticsSortByEnum
GetSummarizeDatabaseInsightResourceStatisticsSortByEnumValues Enumerates the set of values for SummarizeDatabaseInsightResourceStatisticsSortByEnum
SummarizeDatabaseInsightResourceStatisticsSortOrderEnum Enum with underlying type: string
type SummarizeDatabaseInsightResourceStatisticsSortOrderEnum string
Set of constants representing the allowable values for SummarizeDatabaseInsightResourceStatisticsSortOrderEnum
const ( SummarizeDatabaseInsightResourceStatisticsSortOrderAsc SummarizeDatabaseInsightResourceStatisticsSortOrderEnum = "ASC" SummarizeDatabaseInsightResourceStatisticsSortOrderDesc SummarizeDatabaseInsightResourceStatisticsSortOrderEnum = "DESC" )
func GetSummarizeDatabaseInsightResourceStatisticsSortOrderEnumValues() []SummarizeDatabaseInsightResourceStatisticsSortOrderEnum
GetSummarizeDatabaseInsightResourceStatisticsSortOrderEnumValues Enumerates the set of values for SummarizeDatabaseInsightResourceStatisticsSortOrderEnum
SummarizeDatabaseInsightResourceUsageAggregation Resource usage summation for the current time period
type SummarizeDatabaseInsightResourceUsageAggregation struct { // The start timestamp that was passed into the request. TimeIntervalStart *common.SDKTime `mandatory:"true" json:"timeIntervalStart"` // The end timestamp that was passed into the request. TimeIntervalEnd *common.SDKTime `mandatory:"true" json:"timeIntervalEnd"` // Defines the type of resource metric (CPU, STORAGE) ResourceMetric SummarizeDatabaseInsightResourceUsageAggregationResourceMetricEnum `mandatory:"true" json:"resourceMetric"` // Displays usage unit (CORES, GB) UsageUnit UsageUnitEnum `mandatory:"true" json:"usageUnit"` // Total amount used of the resource metric type (CPU, STORAGE). Usage *float64 `mandatory:"true" json:"usage"` // The maximum allocated amount of the resource metric type (CPU, STORAGE). Capacity *float64 `mandatory:"true" json:"capacity"` // Percentage change in resource usage during the current period calculated using linear regression functions UsageChangePercent *float64 `mandatory:"true" json:"usageChangePercent"` }
func (m SummarizeDatabaseInsightResourceUsageAggregation) String() string
SummarizeDatabaseInsightResourceUsageAggregationResourceMetricEnum Enum with underlying type: string
type SummarizeDatabaseInsightResourceUsageAggregationResourceMetricEnum string
Set of constants representing the allowable values for SummarizeDatabaseInsightResourceUsageAggregationResourceMetricEnum
const ( SummarizeDatabaseInsightResourceUsageAggregationResourceMetricCpu SummarizeDatabaseInsightResourceUsageAggregationResourceMetricEnum = "CPU" SummarizeDatabaseInsightResourceUsageAggregationResourceMetricStorage SummarizeDatabaseInsightResourceUsageAggregationResourceMetricEnum = "STORAGE" )
func GetSummarizeDatabaseInsightResourceUsageAggregationResourceMetricEnumValues() []SummarizeDatabaseInsightResourceUsageAggregationResourceMetricEnum
GetSummarizeDatabaseInsightResourceUsageAggregationResourceMetricEnumValues Enumerates the set of values for SummarizeDatabaseInsightResourceUsageAggregationResourceMetricEnum
SummarizeDatabaseInsightResourceUsageDatabaseTypeEnum Enum with underlying type: string
type SummarizeDatabaseInsightResourceUsageDatabaseTypeEnum string
Set of constants representing the allowable values for SummarizeDatabaseInsightResourceUsageDatabaseTypeEnum
const ( SummarizeDatabaseInsightResourceUsageDatabaseTypeAdwS SummarizeDatabaseInsightResourceUsageDatabaseTypeEnum = "ADW-S" SummarizeDatabaseInsightResourceUsageDatabaseTypeAtpS SummarizeDatabaseInsightResourceUsageDatabaseTypeEnum = "ATP-S" SummarizeDatabaseInsightResourceUsageDatabaseTypeAdwD SummarizeDatabaseInsightResourceUsageDatabaseTypeEnum = "ADW-D" SummarizeDatabaseInsightResourceUsageDatabaseTypeAtpD SummarizeDatabaseInsightResourceUsageDatabaseTypeEnum = "ATP-D" )
func GetSummarizeDatabaseInsightResourceUsageDatabaseTypeEnumValues() []SummarizeDatabaseInsightResourceUsageDatabaseTypeEnum
GetSummarizeDatabaseInsightResourceUsageDatabaseTypeEnumValues Enumerates the set of values for SummarizeDatabaseInsightResourceUsageDatabaseTypeEnum
SummarizeDatabaseInsightResourceUsageRequest wrapper for the SummarizeDatabaseInsightResourceUsage operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/SummarizeDatabaseInsightResourceUsage.go.html to see an example of how to use SummarizeDatabaseInsightResourceUsageRequest.
type SummarizeDatabaseInsightResourceUsageRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // Filter by resource metric. // Supported values are CPU and STORAGE. ResourceMetric *string `mandatory:"true" contributesTo:"query" name:"resourceMetric"` // Specify time period in ISO 8601 format with respect to current time. // Default is last 30 days represented by P30D. // If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. // Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). AnalysisTimeInterval *string `mandatory:"false" contributesTo:"query" name:"analysisTimeInterval"` // Analysis start time in UTC in ISO 8601 format(inclusive). // Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). // The minimum allowed value is 2 years prior to the current day. // timeIntervalStart and timeIntervalEnd parameters are used together. // If analysisTimeInterval is specified, this parameter is ignored. TimeIntervalStart *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeIntervalStart"` // Analysis end time in UTC in ISO 8601 format(exclusive). // Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). // timeIntervalStart and timeIntervalEnd are used together. // If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. TimeIntervalEnd *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeIntervalEnd"` // Filter by one or more database type. // Possible values are ADW-S, ATP-S, ADW-D, ATP-D DatabaseType []SummarizeDatabaseInsightResourceUsageDatabaseTypeEnum `contributesTo:"query" name:"databaseType" omitEmpty:"true" collectionFormat:"multi"` // Optional list of database OCIDs (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). DatabaseId []string `contributesTo:"query" name:"databaseId" collectionFormat:"multi"` // For list pagination. The value of the `opc-next-page` response header from // the previous "List" call. For important details about how pagination works, // see List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Percentile values of daily usage to be used for computing the aggregate resource usage. Percentile *int `mandatory:"false" contributesTo:"query" name:"percentile"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request SummarizeDatabaseInsightResourceUsageRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request SummarizeDatabaseInsightResourceUsageRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request SummarizeDatabaseInsightResourceUsageRequest) String() string
SummarizeDatabaseInsightResourceUsageResponse wrapper for the SummarizeDatabaseInsightResourceUsage operation
type SummarizeDatabaseInsightResourceUsageResponse struct { // The underlying http response RawResponse *http.Response // A list of SummarizeDatabaseInsightResourceUsageAggregation instances SummarizeDatabaseInsightResourceUsageAggregation `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response SummarizeDatabaseInsightResourceUsageResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response SummarizeDatabaseInsightResourceUsageResponse) String() string
SummarizeDatabaseInsightResourceUsageTrendAggregationCollection Top level response object.
type SummarizeDatabaseInsightResourceUsageTrendAggregationCollection struct { // The start timestamp that was passed into the request. TimeIntervalStart *common.SDKTime `mandatory:"true" json:"timeIntervalStart"` // The end timestamp that was passed into the request. TimeIntervalEnd *common.SDKTime `mandatory:"true" json:"timeIntervalEnd"` // Defines the type of resource metric (CPU, STORAGE) ResourceMetric SummarizeDatabaseInsightResourceUsageTrendAggregationCollectionResourceMetricEnum `mandatory:"true" json:"resourceMetric"` // Displays usage unit ( CORES, GB) UsageUnit UsageUnitEnum `mandatory:"true" json:"usageUnit"` // Time duration in milliseconds between data points (one hour or one day). ItemDurationInMs *int64 `mandatory:"true" json:"itemDurationInMs"` // Usage Data with time stamps UsageData []ResourceUsageTrendAggregation `mandatory:"true" json:"usageData"` }
func (m SummarizeDatabaseInsightResourceUsageTrendAggregationCollection) String() string
SummarizeDatabaseInsightResourceUsageTrendAggregationCollectionResourceMetricEnum Enum with underlying type: string
type SummarizeDatabaseInsightResourceUsageTrendAggregationCollectionResourceMetricEnum string
Set of constants representing the allowable values for SummarizeDatabaseInsightResourceUsageTrendAggregationCollectionResourceMetricEnum
const ( SummarizeDatabaseInsightResourceUsageTrendAggregationCollectionResourceMetricCpu SummarizeDatabaseInsightResourceUsageTrendAggregationCollectionResourceMetricEnum = "CPU" SummarizeDatabaseInsightResourceUsageTrendAggregationCollectionResourceMetricStorage SummarizeDatabaseInsightResourceUsageTrendAggregationCollectionResourceMetricEnum = "STORAGE" )
func GetSummarizeDatabaseInsightResourceUsageTrendAggregationCollectionResourceMetricEnumValues() []SummarizeDatabaseInsightResourceUsageTrendAggregationCollectionResourceMetricEnum
GetSummarizeDatabaseInsightResourceUsageTrendAggregationCollectionResourceMetricEnumValues Enumerates the set of values for SummarizeDatabaseInsightResourceUsageTrendAggregationCollectionResourceMetricEnum
SummarizeDatabaseInsightResourceUsageTrendDatabaseTypeEnum Enum with underlying type: string
type SummarizeDatabaseInsightResourceUsageTrendDatabaseTypeEnum string
Set of constants representing the allowable values for SummarizeDatabaseInsightResourceUsageTrendDatabaseTypeEnum
const ( SummarizeDatabaseInsightResourceUsageTrendDatabaseTypeAdwS SummarizeDatabaseInsightResourceUsageTrendDatabaseTypeEnum = "ADW-S" SummarizeDatabaseInsightResourceUsageTrendDatabaseTypeAtpS SummarizeDatabaseInsightResourceUsageTrendDatabaseTypeEnum = "ATP-S" SummarizeDatabaseInsightResourceUsageTrendDatabaseTypeAdwD SummarizeDatabaseInsightResourceUsageTrendDatabaseTypeEnum = "ADW-D" SummarizeDatabaseInsightResourceUsageTrendDatabaseTypeAtpD SummarizeDatabaseInsightResourceUsageTrendDatabaseTypeEnum = "ATP-D" )
func GetSummarizeDatabaseInsightResourceUsageTrendDatabaseTypeEnumValues() []SummarizeDatabaseInsightResourceUsageTrendDatabaseTypeEnum
GetSummarizeDatabaseInsightResourceUsageTrendDatabaseTypeEnumValues Enumerates the set of values for SummarizeDatabaseInsightResourceUsageTrendDatabaseTypeEnum
SummarizeDatabaseInsightResourceUsageTrendRequest wrapper for the SummarizeDatabaseInsightResourceUsageTrend operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/SummarizeDatabaseInsightResourceUsageTrend.go.html to see an example of how to use SummarizeDatabaseInsightResourceUsageTrendRequest.
type SummarizeDatabaseInsightResourceUsageTrendRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // Filter by resource metric. // Supported values are CPU and STORAGE. ResourceMetric *string `mandatory:"true" contributesTo:"query" name:"resourceMetric"` // Specify time period in ISO 8601 format with respect to current time. // Default is last 30 days represented by P30D. // If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. // Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). AnalysisTimeInterval *string `mandatory:"false" contributesTo:"query" name:"analysisTimeInterval"` // Analysis start time in UTC in ISO 8601 format(inclusive). // Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). // The minimum allowed value is 2 years prior to the current day. // timeIntervalStart and timeIntervalEnd parameters are used together. // If analysisTimeInterval is specified, this parameter is ignored. TimeIntervalStart *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeIntervalStart"` // Analysis end time in UTC in ISO 8601 format(exclusive). // Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). // timeIntervalStart and timeIntervalEnd are used together. // If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. TimeIntervalEnd *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeIntervalEnd"` // Filter by one or more database type. // Possible values are ADW-S, ATP-S, ADW-D, ATP-D DatabaseType []SummarizeDatabaseInsightResourceUsageTrendDatabaseTypeEnum `contributesTo:"query" name:"databaseType" omitEmpty:"true" collectionFormat:"multi"` // Optional list of database OCIDs (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). DatabaseId []string `contributesTo:"query" name:"databaseId" collectionFormat:"multi"` // For list pagination. The value of the `opc-next-page` response header from // the previous "List" call. For important details about how pagination works, // see List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). SortOrder SummarizeDatabaseInsightResourceUsageTrendSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // Sorts using end timestamp, usage or capacity SortBy SummarizeDatabaseInsightResourceUsageTrendSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request SummarizeDatabaseInsightResourceUsageTrendRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request SummarizeDatabaseInsightResourceUsageTrendRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request SummarizeDatabaseInsightResourceUsageTrendRequest) String() string
SummarizeDatabaseInsightResourceUsageTrendResponse wrapper for the SummarizeDatabaseInsightResourceUsageTrend operation
type SummarizeDatabaseInsightResourceUsageTrendResponse struct { // The underlying http response RawResponse *http.Response // A list of SummarizeDatabaseInsightResourceUsageTrendAggregationCollection instances SummarizeDatabaseInsightResourceUsageTrendAggregationCollection `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response SummarizeDatabaseInsightResourceUsageTrendResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response SummarizeDatabaseInsightResourceUsageTrendResponse) String() string
SummarizeDatabaseInsightResourceUsageTrendSortByEnum Enum with underlying type: string
type SummarizeDatabaseInsightResourceUsageTrendSortByEnum string
Set of constants representing the allowable values for SummarizeDatabaseInsightResourceUsageTrendSortByEnum
const ( SummarizeDatabaseInsightResourceUsageTrendSortByEndtimestamp SummarizeDatabaseInsightResourceUsageTrendSortByEnum = "endTimestamp" SummarizeDatabaseInsightResourceUsageTrendSortByUsage SummarizeDatabaseInsightResourceUsageTrendSortByEnum = "usage" SummarizeDatabaseInsightResourceUsageTrendSortByCapacity SummarizeDatabaseInsightResourceUsageTrendSortByEnum = "capacity" )
func GetSummarizeDatabaseInsightResourceUsageTrendSortByEnumValues() []SummarizeDatabaseInsightResourceUsageTrendSortByEnum
GetSummarizeDatabaseInsightResourceUsageTrendSortByEnumValues Enumerates the set of values for SummarizeDatabaseInsightResourceUsageTrendSortByEnum
SummarizeDatabaseInsightResourceUsageTrendSortOrderEnum Enum with underlying type: string
type SummarizeDatabaseInsightResourceUsageTrendSortOrderEnum string
Set of constants representing the allowable values for SummarizeDatabaseInsightResourceUsageTrendSortOrderEnum
const ( SummarizeDatabaseInsightResourceUsageTrendSortOrderAsc SummarizeDatabaseInsightResourceUsageTrendSortOrderEnum = "ASC" SummarizeDatabaseInsightResourceUsageTrendSortOrderDesc SummarizeDatabaseInsightResourceUsageTrendSortOrderEnum = "DESC" )
func GetSummarizeDatabaseInsightResourceUsageTrendSortOrderEnumValues() []SummarizeDatabaseInsightResourceUsageTrendSortOrderEnum
GetSummarizeDatabaseInsightResourceUsageTrendSortOrderEnumValues Enumerates the set of values for SummarizeDatabaseInsightResourceUsageTrendSortOrderEnum
SummarizeDatabaseInsightResourceUtilizationInsightAggregation Insights response containing current/projected groups for storage or CPU.
type SummarizeDatabaseInsightResourceUtilizationInsightAggregation struct { // The start timestamp that was passed into the request. TimeIntervalStart *common.SDKTime `mandatory:"true" json:"timeIntervalStart"` // The end timestamp that was passed into the request. TimeIntervalEnd *common.SDKTime `mandatory:"true" json:"timeIntervalEnd"` // Defines the type of resource metric (CPU, STORAGE) ResourceMetric SummarizeDatabaseInsightResourceUtilizationInsightAggregationResourceMetricEnum `mandatory:"true" json:"resourceMetric"` ProjectedUtilization *ResourceInsightProjectedUtilization `mandatory:"true" json:"projectedUtilization"` CurrentUtilization *ResourceInsightCurrentUtilization `mandatory:"true" json:"currentUtilization"` }
func (m SummarizeDatabaseInsightResourceUtilizationInsightAggregation) String() string
SummarizeDatabaseInsightResourceUtilizationInsightAggregationResourceMetricEnum Enum with underlying type: string
type SummarizeDatabaseInsightResourceUtilizationInsightAggregationResourceMetricEnum string
Set of constants representing the allowable values for SummarizeDatabaseInsightResourceUtilizationInsightAggregationResourceMetricEnum
const ( SummarizeDatabaseInsightResourceUtilizationInsightAggregationResourceMetricCpu SummarizeDatabaseInsightResourceUtilizationInsightAggregationResourceMetricEnum = "CPU" SummarizeDatabaseInsightResourceUtilizationInsightAggregationResourceMetricStorage SummarizeDatabaseInsightResourceUtilizationInsightAggregationResourceMetricEnum = "STORAGE" )
func GetSummarizeDatabaseInsightResourceUtilizationInsightAggregationResourceMetricEnumValues() []SummarizeDatabaseInsightResourceUtilizationInsightAggregationResourceMetricEnum
GetSummarizeDatabaseInsightResourceUtilizationInsightAggregationResourceMetricEnumValues Enumerates the set of values for SummarizeDatabaseInsightResourceUtilizationInsightAggregationResourceMetricEnum
SummarizeDatabaseInsightResourceUtilizationInsightDatabaseTypeEnum Enum with underlying type: string
type SummarizeDatabaseInsightResourceUtilizationInsightDatabaseTypeEnum string
Set of constants representing the allowable values for SummarizeDatabaseInsightResourceUtilizationInsightDatabaseTypeEnum
const ( SummarizeDatabaseInsightResourceUtilizationInsightDatabaseTypeAdwS SummarizeDatabaseInsightResourceUtilizationInsightDatabaseTypeEnum = "ADW-S" SummarizeDatabaseInsightResourceUtilizationInsightDatabaseTypeAtpS SummarizeDatabaseInsightResourceUtilizationInsightDatabaseTypeEnum = "ATP-S" SummarizeDatabaseInsightResourceUtilizationInsightDatabaseTypeAdwD SummarizeDatabaseInsightResourceUtilizationInsightDatabaseTypeEnum = "ADW-D" SummarizeDatabaseInsightResourceUtilizationInsightDatabaseTypeAtpD SummarizeDatabaseInsightResourceUtilizationInsightDatabaseTypeEnum = "ATP-D" )
func GetSummarizeDatabaseInsightResourceUtilizationInsightDatabaseTypeEnumValues() []SummarizeDatabaseInsightResourceUtilizationInsightDatabaseTypeEnum
GetSummarizeDatabaseInsightResourceUtilizationInsightDatabaseTypeEnumValues Enumerates the set of values for SummarizeDatabaseInsightResourceUtilizationInsightDatabaseTypeEnum
SummarizeDatabaseInsightResourceUtilizationInsightRequest wrapper for the SummarizeDatabaseInsightResourceUtilizationInsight operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/SummarizeDatabaseInsightResourceUtilizationInsight.go.html to see an example of how to use SummarizeDatabaseInsightResourceUtilizationInsightRequest.
type SummarizeDatabaseInsightResourceUtilizationInsightRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // Filter by resource metric. // Supported values are CPU and STORAGE. ResourceMetric *string `mandatory:"true" contributesTo:"query" name:"resourceMetric"` // Specify time period in ISO 8601 format with respect to current time. // Default is last 30 days represented by P30D. // If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. // Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). AnalysisTimeInterval *string `mandatory:"false" contributesTo:"query" name:"analysisTimeInterval"` // Analysis start time in UTC in ISO 8601 format(inclusive). // Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). // The minimum allowed value is 2 years prior to the current day. // timeIntervalStart and timeIntervalEnd parameters are used together. // If analysisTimeInterval is specified, this parameter is ignored. TimeIntervalStart *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeIntervalStart"` // Analysis end time in UTC in ISO 8601 format(exclusive). // Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). // timeIntervalStart and timeIntervalEnd are used together. // If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. TimeIntervalEnd *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeIntervalEnd"` // Filter by one or more database type. // Possible values are ADW-S, ATP-S, ADW-D, ATP-D DatabaseType []SummarizeDatabaseInsightResourceUtilizationInsightDatabaseTypeEnum `contributesTo:"query" name:"databaseType" omitEmpty:"true" collectionFormat:"multi"` // Optional list of database OCIDs (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). DatabaseId []string `contributesTo:"query" name:"databaseId" collectionFormat:"multi"` // Number of days used for utilization forecast analysis. ForecastDays *int `mandatory:"false" contributesTo:"query" name:"forecastDays"` // For list pagination. The value of the `opc-next-page` response header from // the previous "List" call. For important details about how pagination works, // see List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request SummarizeDatabaseInsightResourceUtilizationInsightRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request SummarizeDatabaseInsightResourceUtilizationInsightRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request SummarizeDatabaseInsightResourceUtilizationInsightRequest) String() string
SummarizeDatabaseInsightResourceUtilizationInsightResponse wrapper for the SummarizeDatabaseInsightResourceUtilizationInsight operation
type SummarizeDatabaseInsightResourceUtilizationInsightResponse struct { // The underlying http response RawResponse *http.Response // A list of SummarizeDatabaseInsightResourceUtilizationInsightAggregation instances SummarizeDatabaseInsightResourceUtilizationInsightAggregation `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response SummarizeDatabaseInsightResourceUtilizationInsightResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response SummarizeDatabaseInsightResourceUtilizationInsightResponse) String() string
SummarizeSqlInsightsDatabaseTypeEnum Enum with underlying type: string
type SummarizeSqlInsightsDatabaseTypeEnum string
Set of constants representing the allowable values for SummarizeSqlInsightsDatabaseTypeEnum
const ( SummarizeSqlInsightsDatabaseTypeAdwS SummarizeSqlInsightsDatabaseTypeEnum = "ADW-S" SummarizeSqlInsightsDatabaseTypeAtpS SummarizeSqlInsightsDatabaseTypeEnum = "ATP-S" SummarizeSqlInsightsDatabaseTypeAdwD SummarizeSqlInsightsDatabaseTypeEnum = "ADW-D" SummarizeSqlInsightsDatabaseTypeAtpD SummarizeSqlInsightsDatabaseTypeEnum = "ATP-D" )
func GetSummarizeSqlInsightsDatabaseTypeEnumValues() []SummarizeSqlInsightsDatabaseTypeEnum
GetSummarizeSqlInsightsDatabaseTypeEnumValues Enumerates the set of values for SummarizeSqlInsightsDatabaseTypeEnum
SummarizeSqlInsightsRequest wrapper for the SummarizeSqlInsights operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/SummarizeSqlInsights.go.html to see an example of how to use SummarizeSqlInsightsRequest.
type SummarizeSqlInsightsRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // Filter by one or more database type. // Possible values are ADW-S, ATP-S, ADW-D, ATP-D DatabaseType []SummarizeSqlInsightsDatabaseTypeEnum `contributesTo:"query" name:"databaseType" omitEmpty:"true" collectionFormat:"multi"` // Optional list of database OCIDs (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). DatabaseId []string `contributesTo:"query" name:"databaseId" collectionFormat:"multi"` // Filter sqls by percentage of db time. DatabaseTimePctGreaterThan *float64 `mandatory:"false" contributesTo:"query" name:"databaseTimePctGreaterThan"` // Specify time period in ISO 8601 format with respect to current time. // Default is last 30 days represented by P30D. // If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. // Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). AnalysisTimeInterval *string `mandatory:"false" contributesTo:"query" name:"analysisTimeInterval"` // Analysis start time in UTC in ISO 8601 format(inclusive). // Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). // The minimum allowed value is 2 years prior to the current day. // timeIntervalStart and timeIntervalEnd parameters are used together. // If analysisTimeInterval is specified, this parameter is ignored. TimeIntervalStart *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeIntervalStart"` // Analysis end time in UTC in ISO 8601 format(exclusive). // Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). // timeIntervalStart and timeIntervalEnd are used together. // If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. TimeIntervalEnd *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeIntervalEnd"` // For list pagination. The value of the `opc-next-page` response header from // the previous "List" call. For important details about how pagination works, // see List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request SummarizeSqlInsightsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request SummarizeSqlInsightsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request SummarizeSqlInsightsRequest) String() string
SummarizeSqlInsightsResponse wrapper for the SummarizeSqlInsights operation
type SummarizeSqlInsightsResponse struct { // The underlying http response RawResponse *http.Response // A list of SqlInsightAggregationCollection instances SqlInsightAggregationCollection `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response SummarizeSqlInsightsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response SummarizeSqlInsightsResponse) String() string
SummarizeSqlPlanInsightsRequest wrapper for the SummarizeSqlPlanInsights operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/SummarizeSqlPlanInsights.go.html to see an example of how to use SummarizeSqlPlanInsightsRequest.
type SummarizeSqlPlanInsightsRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // Required OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database. DatabaseId *string `mandatory:"true" contributesTo:"query" name:"databaseId"` // Unique SQL_ID for a SQL Statement. // Example: `6rgjh9bjmy2s7` SqlIdentifier *string `mandatory:"true" contributesTo:"query" name:"sqlIdentifier"` // Specify time period in ISO 8601 format with respect to current time. // Default is last 30 days represented by P30D. // If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. // Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). AnalysisTimeInterval *string `mandatory:"false" contributesTo:"query" name:"analysisTimeInterval"` // Analysis start time in UTC in ISO 8601 format(inclusive). // Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). // The minimum allowed value is 2 years prior to the current day. // timeIntervalStart and timeIntervalEnd parameters are used together. // If analysisTimeInterval is specified, this parameter is ignored. TimeIntervalStart *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeIntervalStart"` // Analysis end time in UTC in ISO 8601 format(exclusive). // Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). // timeIntervalStart and timeIntervalEnd are used together. // If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. TimeIntervalEnd *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeIntervalEnd"` // For list pagination. The value of the `opc-next-page` response header from // the previous "List" call. For important details about how pagination works, // see List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request SummarizeSqlPlanInsightsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request SummarizeSqlPlanInsightsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request SummarizeSqlPlanInsightsRequest) String() string
SummarizeSqlPlanInsightsResponse wrapper for the SummarizeSqlPlanInsights operation
type SummarizeSqlPlanInsightsResponse struct { // The underlying http response RawResponse *http.Response // A list of SqlPlanInsightAggregationCollection instances SqlPlanInsightAggregationCollection `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response SummarizeSqlPlanInsightsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response SummarizeSqlPlanInsightsResponse) String() string
SummarizeSqlResponseTimeDistributionsRequest wrapper for the SummarizeSqlResponseTimeDistributions operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/SummarizeSqlResponseTimeDistributions.go.html to see an example of how to use SummarizeSqlResponseTimeDistributionsRequest.
type SummarizeSqlResponseTimeDistributionsRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // Required OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database. DatabaseId *string `mandatory:"true" contributesTo:"query" name:"databaseId"` // Unique SQL_ID for a SQL Statement. // Example: `6rgjh9bjmy2s7` SqlIdentifier *string `mandatory:"true" contributesTo:"query" name:"sqlIdentifier"` // Specify time period in ISO 8601 format with respect to current time. // Default is last 30 days represented by P30D. // If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. // Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). AnalysisTimeInterval *string `mandatory:"false" contributesTo:"query" name:"analysisTimeInterval"` // Analysis start time in UTC in ISO 8601 format(inclusive). // Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). // The minimum allowed value is 2 years prior to the current day. // timeIntervalStart and timeIntervalEnd parameters are used together. // If analysisTimeInterval is specified, this parameter is ignored. TimeIntervalStart *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeIntervalStart"` // Analysis end time in UTC in ISO 8601 format(exclusive). // Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). // timeIntervalStart and timeIntervalEnd are used together. // If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. TimeIntervalEnd *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeIntervalEnd"` // For list pagination. The value of the `opc-next-page` response header from // the previous "List" call. For important details about how pagination works, // see List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request SummarizeSqlResponseTimeDistributionsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request SummarizeSqlResponseTimeDistributionsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request SummarizeSqlResponseTimeDistributionsRequest) String() string
SummarizeSqlResponseTimeDistributionsResponse wrapper for the SummarizeSqlResponseTimeDistributions operation
type SummarizeSqlResponseTimeDistributionsResponse struct { // The underlying http response RawResponse *http.Response // A list of SqlResponseTimeDistributionAggregationCollection instances SqlResponseTimeDistributionAggregationCollection `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response SummarizeSqlResponseTimeDistributionsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response SummarizeSqlResponseTimeDistributionsResponse) String() string
SummarizeSqlStatisticsCategoryEnum Enum with underlying type: string
type SummarizeSqlStatisticsCategoryEnum string
Set of constants representing the allowable values for SummarizeSqlStatisticsCategoryEnum
const ( SummarizeSqlStatisticsCategoryDegrading SummarizeSqlStatisticsCategoryEnum = "DEGRADING" SummarizeSqlStatisticsCategoryVariant SummarizeSqlStatisticsCategoryEnum = "VARIANT" SummarizeSqlStatisticsCategoryInefficient SummarizeSqlStatisticsCategoryEnum = "INEFFICIENT" SummarizeSqlStatisticsCategoryChangingPlans SummarizeSqlStatisticsCategoryEnum = "CHANGING_PLANS" SummarizeSqlStatisticsCategoryImproving SummarizeSqlStatisticsCategoryEnum = "IMPROVING" SummarizeSqlStatisticsCategoryDegradingVariant SummarizeSqlStatisticsCategoryEnum = "DEGRADING_VARIANT" SummarizeSqlStatisticsCategoryDegradingInefficient SummarizeSqlStatisticsCategoryEnum = "DEGRADING_INEFFICIENT" SummarizeSqlStatisticsCategoryDegradingChangingPlans SummarizeSqlStatisticsCategoryEnum = "DEGRADING_CHANGING_PLANS" SummarizeSqlStatisticsCategoryDegradingIncreasingIo SummarizeSqlStatisticsCategoryEnum = "DEGRADING_INCREASING_IO" SummarizeSqlStatisticsCategoryDegradingIncreasingCpu SummarizeSqlStatisticsCategoryEnum = "DEGRADING_INCREASING_CPU" SummarizeSqlStatisticsCategoryDegradingIncreasingInefficientWait SummarizeSqlStatisticsCategoryEnum = "DEGRADING_INCREASING_INEFFICIENT_WAIT" SummarizeSqlStatisticsCategoryDegradingChangingPlansAndIncreasingIo SummarizeSqlStatisticsCategoryEnum = "DEGRADING_CHANGING_PLANS_AND_INCREASING_IO" SummarizeSqlStatisticsCategoryDegradingChangingPlansAndIncreasingCpu SummarizeSqlStatisticsCategoryEnum = "DEGRADING_CHANGING_PLANS_AND_INCREASING_CPU" SummarizeSqlStatisticsCategoryDegradingChangingPlansAndIncreasingInefficientWait SummarizeSqlStatisticsCategoryEnum = "DEGRADING_CHANGING_PLANS_AND_INCREASING_INEFFICIENT_WAIT" SummarizeSqlStatisticsCategoryVariantInefficient SummarizeSqlStatisticsCategoryEnum = "VARIANT_INEFFICIENT" SummarizeSqlStatisticsCategoryVariantChangingPlans SummarizeSqlStatisticsCategoryEnum = "VARIANT_CHANGING_PLANS" SummarizeSqlStatisticsCategoryVariantIncreasingIo SummarizeSqlStatisticsCategoryEnum = "VARIANT_INCREASING_IO" SummarizeSqlStatisticsCategoryVariantIncreasingCpu SummarizeSqlStatisticsCategoryEnum = "VARIANT_INCREASING_CPU" SummarizeSqlStatisticsCategoryVariantIncreasingInefficientWait SummarizeSqlStatisticsCategoryEnum = "VARIANT_INCREASING_INEFFICIENT_WAIT" SummarizeSqlStatisticsCategoryVariantChangingPlansAndIncreasingIo SummarizeSqlStatisticsCategoryEnum = "VARIANT_CHANGING_PLANS_AND_INCREASING_IO" SummarizeSqlStatisticsCategoryVariantChangingPlansAndIncreasingCpu SummarizeSqlStatisticsCategoryEnum = "VARIANT_CHANGING_PLANS_AND_INCREASING_CPU" SummarizeSqlStatisticsCategoryVariantChangingPlansAndIncreasingInefficientWait SummarizeSqlStatisticsCategoryEnum = "VARIANT_CHANGING_PLANS_AND_INCREASING_INEFFICIENT_WAIT" SummarizeSqlStatisticsCategoryInefficientChangingPlans SummarizeSqlStatisticsCategoryEnum = "INEFFICIENT_CHANGING_PLANS" SummarizeSqlStatisticsCategoryInefficientIncreasingInefficientWait SummarizeSqlStatisticsCategoryEnum = "INEFFICIENT_INCREASING_INEFFICIENT_WAIT" SummarizeSqlStatisticsCategoryInefficientChangingPlansAndIncreasingInefficientWait SummarizeSqlStatisticsCategoryEnum = "INEFFICIENT_CHANGING_PLANS_AND_INCREASING_INEFFICIENT_WAIT" )
func GetSummarizeSqlStatisticsCategoryEnumValues() []SummarizeSqlStatisticsCategoryEnum
GetSummarizeSqlStatisticsCategoryEnumValues Enumerates the set of values for SummarizeSqlStatisticsCategoryEnum
SummarizeSqlStatisticsDatabaseTypeEnum Enum with underlying type: string
type SummarizeSqlStatisticsDatabaseTypeEnum string
Set of constants representing the allowable values for SummarizeSqlStatisticsDatabaseTypeEnum
const ( SummarizeSqlStatisticsDatabaseTypeAdwS SummarizeSqlStatisticsDatabaseTypeEnum = "ADW-S" SummarizeSqlStatisticsDatabaseTypeAtpS SummarizeSqlStatisticsDatabaseTypeEnum = "ATP-S" SummarizeSqlStatisticsDatabaseTypeAdwD SummarizeSqlStatisticsDatabaseTypeEnum = "ADW-D" SummarizeSqlStatisticsDatabaseTypeAtpD SummarizeSqlStatisticsDatabaseTypeEnum = "ATP-D" )
func GetSummarizeSqlStatisticsDatabaseTypeEnumValues() []SummarizeSqlStatisticsDatabaseTypeEnum
GetSummarizeSqlStatisticsDatabaseTypeEnumValues Enumerates the set of values for SummarizeSqlStatisticsDatabaseTypeEnum
SummarizeSqlStatisticsRequest wrapper for the SummarizeSqlStatistics operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/SummarizeSqlStatistics.go.html to see an example of how to use SummarizeSqlStatisticsRequest.
type SummarizeSqlStatisticsRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // Filter by one or more database type. // Possible values are ADW-S, ATP-S, ADW-D, ATP-D DatabaseType []SummarizeSqlStatisticsDatabaseTypeEnum `contributesTo:"query" name:"databaseType" omitEmpty:"true" collectionFormat:"multi"` // Optional list of database OCIDs (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). DatabaseId []string `contributesTo:"query" name:"databaseId" collectionFormat:"multi"` // Filter sqls by percentage of db time. DatabaseTimePctGreaterThan *float64 `mandatory:"false" contributesTo:"query" name:"databaseTimePctGreaterThan"` // One or more unique SQL_IDs for a SQL Statement. // Example: `6rgjh9bjmy2s7` SqlIdentifier []string `contributesTo:"query" name:"sqlIdentifier" collectionFormat:"multi"` // Specify time period in ISO 8601 format with respect to current time. // Default is last 30 days represented by P30D. // If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. // Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). AnalysisTimeInterval *string `mandatory:"false" contributesTo:"query" name:"analysisTimeInterval"` // Analysis start time in UTC in ISO 8601 format(inclusive). // Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). // The minimum allowed value is 2 years prior to the current day. // timeIntervalStart and timeIntervalEnd parameters are used together. // If analysisTimeInterval is specified, this parameter is ignored. TimeIntervalStart *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeIntervalStart"` // Analysis end time in UTC in ISO 8601 format(exclusive). // Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). // timeIntervalStart and timeIntervalEnd are used together. // If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. TimeIntervalEnd *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeIntervalEnd"` // For list pagination. The maximum number of results per page, or items to // return in a paginated "List" call. // For important details about how pagination works, see // List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // For list pagination. The value of the `opc-next-page` response header from // the previous "List" call. For important details about how pagination works, // see List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). SortOrder SummarizeSqlStatisticsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // The field to use when sorting SQL statistics. // Example: databaseTimeInSec SortBy SummarizeSqlStatisticsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // Filter sqls by one or more performance categories. Category []SummarizeSqlStatisticsCategoryEnum `contributesTo:"query" name:"category" omitEmpty:"true" collectionFormat:"multi"` // 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 SummarizeSqlStatisticsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request SummarizeSqlStatisticsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request SummarizeSqlStatisticsRequest) String() string
SummarizeSqlStatisticsResponse wrapper for the SummarizeSqlStatistics operation
type SummarizeSqlStatisticsResponse struct { // The underlying http response RawResponse *http.Response // A list of SqlStatisticAggregationCollection instances SqlStatisticAggregationCollection `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response SummarizeSqlStatisticsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response SummarizeSqlStatisticsResponse) String() string
SummarizeSqlStatisticsSortByEnum Enum with underlying type: string
type SummarizeSqlStatisticsSortByEnum string
Set of constants representing the allowable values for SummarizeSqlStatisticsSortByEnum
const ( SummarizeSqlStatisticsSortByDatabasetimeinsec SummarizeSqlStatisticsSortByEnum = "databaseTimeInSec" SummarizeSqlStatisticsSortByExecutionsperhour SummarizeSqlStatisticsSortByEnum = "executionsPerHour" SummarizeSqlStatisticsSortByExecutionscount SummarizeSqlStatisticsSortByEnum = "executionsCount" SummarizeSqlStatisticsSortByCputimeinsec SummarizeSqlStatisticsSortByEnum = "cpuTimeInSec" SummarizeSqlStatisticsSortByIotimeinsec SummarizeSqlStatisticsSortByEnum = "ioTimeInSec" SummarizeSqlStatisticsSortByInefficientwaittimeinsec SummarizeSqlStatisticsSortByEnum = "inefficientWaitTimeInSec" SummarizeSqlStatisticsSortByResponsetimeinsec SummarizeSqlStatisticsSortByEnum = "responseTimeInSec" SummarizeSqlStatisticsSortByPlancount SummarizeSqlStatisticsSortByEnum = "planCount" SummarizeSqlStatisticsSortByVariability SummarizeSqlStatisticsSortByEnum = "variability" SummarizeSqlStatisticsSortByAverageactivesessions SummarizeSqlStatisticsSortByEnum = "averageActiveSessions" SummarizeSqlStatisticsSortByDatabasetimepct SummarizeSqlStatisticsSortByEnum = "databaseTimePct" SummarizeSqlStatisticsSortByInefficiencyinpct SummarizeSqlStatisticsSortByEnum = "inefficiencyInPct" SummarizeSqlStatisticsSortByChangeincputimeinpct SummarizeSqlStatisticsSortByEnum = "changeInCpuTimeInPct" SummarizeSqlStatisticsSortByChangeiniotimeinpct SummarizeSqlStatisticsSortByEnum = "changeInIoTimeInPct" SummarizeSqlStatisticsSortByChangeininefficientwaittimeinpct SummarizeSqlStatisticsSortByEnum = "changeInInefficientWaitTimeInPct" SummarizeSqlStatisticsSortByChangeinresponsetimeinpct SummarizeSqlStatisticsSortByEnum = "changeInResponseTimeInPct" SummarizeSqlStatisticsSortByEnum = "changeInAverageActiveSessionsInPct" SummarizeSqlStatisticsSortByChangeinexecutionsperhourinpct SummarizeSqlStatisticsSortByEnum = "changeInExecutionsPerHourInPct" SummarizeSqlStatisticsSortByChangeininefficiencyinpct SummarizeSqlStatisticsSortByEnum = "changeInInefficiencyInPct" )
func GetSummarizeSqlStatisticsSortByEnumValues() []SummarizeSqlStatisticsSortByEnum
GetSummarizeSqlStatisticsSortByEnumValues Enumerates the set of values for SummarizeSqlStatisticsSortByEnum
SummarizeSqlStatisticsSortOrderEnum Enum with underlying type: string
type SummarizeSqlStatisticsSortOrderEnum string
Set of constants representing the allowable values for SummarizeSqlStatisticsSortOrderEnum
const ( SummarizeSqlStatisticsSortOrderAsc SummarizeSqlStatisticsSortOrderEnum = "ASC" SummarizeSqlStatisticsSortOrderDesc SummarizeSqlStatisticsSortOrderEnum = "DESC" )
func GetSummarizeSqlStatisticsSortOrderEnumValues() []SummarizeSqlStatisticsSortOrderEnum
GetSummarizeSqlStatisticsSortOrderEnumValues Enumerates the set of values for SummarizeSqlStatisticsSortOrderEnum
SummarizeSqlStatisticsTimeSeriesByPlanRequest wrapper for the SummarizeSqlStatisticsTimeSeriesByPlan operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/SummarizeSqlStatisticsTimeSeriesByPlan.go.html to see an example of how to use SummarizeSqlStatisticsTimeSeriesByPlanRequest.
type SummarizeSqlStatisticsTimeSeriesByPlanRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // Required OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database. DatabaseId *string `mandatory:"true" contributesTo:"query" name:"databaseId"` // Unique SQL_ID for a SQL Statement. // Example: `6rgjh9bjmy2s7` SqlIdentifier *string `mandatory:"true" contributesTo:"query" name:"sqlIdentifier"` // Specify time period in ISO 8601 format with respect to current time. // Default is last 30 days represented by P30D. // If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. // Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). AnalysisTimeInterval *string `mandatory:"false" contributesTo:"query" name:"analysisTimeInterval"` // Analysis start time in UTC in ISO 8601 format(inclusive). // Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). // The minimum allowed value is 2 years prior to the current day. // timeIntervalStart and timeIntervalEnd parameters are used together. // If analysisTimeInterval is specified, this parameter is ignored. TimeIntervalStart *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeIntervalStart"` // Analysis end time in UTC in ISO 8601 format(exclusive). // Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). // timeIntervalStart and timeIntervalEnd are used together. // If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. TimeIntervalEnd *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeIntervalEnd"` // For list pagination. The value of the `opc-next-page` response header from // the previous "List" call. For important details about how pagination works, // see List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request SummarizeSqlStatisticsTimeSeriesByPlanRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request SummarizeSqlStatisticsTimeSeriesByPlanRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request SummarizeSqlStatisticsTimeSeriesByPlanRequest) String() string
SummarizeSqlStatisticsTimeSeriesByPlanResponse wrapper for the SummarizeSqlStatisticsTimeSeriesByPlan operation
type SummarizeSqlStatisticsTimeSeriesByPlanResponse struct { // The underlying http response RawResponse *http.Response // A list of SqlStatisticsTimeSeriesByPlanAggregationCollection instances SqlStatisticsTimeSeriesByPlanAggregationCollection `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response SummarizeSqlStatisticsTimeSeriesByPlanResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response SummarizeSqlStatisticsTimeSeriesByPlanResponse) String() string
SummarizeSqlStatisticsTimeSeriesRequest wrapper for the SummarizeSqlStatisticsTimeSeries operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/opsi/SummarizeSqlStatisticsTimeSeries.go.html to see an example of how to use SummarizeSqlStatisticsTimeSeriesRequest.
type SummarizeSqlStatisticsTimeSeriesRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // Unique SQL_ID for a SQL Statement. // Example: `6rgjh9bjmy2s7` SqlIdentifier *string `mandatory:"true" contributesTo:"query" name:"sqlIdentifier"` // Optional list of database OCIDs (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). DatabaseId []string `contributesTo:"query" name:"databaseId" collectionFormat:"multi"` // Specify time period in ISO 8601 format with respect to current time. // Default is last 30 days represented by P30D. // If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. // Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). AnalysisTimeInterval *string `mandatory:"false" contributesTo:"query" name:"analysisTimeInterval"` // Analysis start time in UTC in ISO 8601 format(inclusive). // Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). // The minimum allowed value is 2 years prior to the current day. // timeIntervalStart and timeIntervalEnd parameters are used together. // If analysisTimeInterval is specified, this parameter is ignored. TimeIntervalStart *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeIntervalStart"` // Analysis end time in UTC in ISO 8601 format(exclusive). // Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). // timeIntervalStart and timeIntervalEnd are used together. // If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. TimeIntervalEnd *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeIntervalEnd"` // For list pagination. The value of the `opc-next-page` response header from // the previous "List" call. For important details about how pagination works, // see List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request SummarizeSqlStatisticsTimeSeriesRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request SummarizeSqlStatisticsTimeSeriesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request SummarizeSqlStatisticsTimeSeriesRequest) String() string
SummarizeSqlStatisticsTimeSeriesResponse wrapper for the SummarizeSqlStatisticsTimeSeries operation
type SummarizeSqlStatisticsTimeSeriesResponse struct { // The underlying http response RawResponse *http.Response // A list of SqlStatisticsTimeSeriesAggregationCollection instances SqlStatisticsTimeSeriesAggregationCollection `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response SummarizeSqlStatisticsTimeSeriesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response SummarizeSqlStatisticsTimeSeriesResponse) String() string
UsageUnitEnum Enum with underlying type: string
type UsageUnitEnum string
Set of constants representing the allowable values for UsageUnitEnum
const ( UsageUnitCores UsageUnitEnum = "CORES" UsageUnitGb UsageUnitEnum = "GB" UsageUnitMbps UsageUnitEnum = "MBPS" UsageUnitPercent UsageUnitEnum = "PERCENT" )
func GetUsageUnitEnumValues() []UsageUnitEnum
GetUsageUnitEnumValues Enumerates the set of values for UsageUnitEnum