ActivityTimeSeriesMetrics The response object representing activityMetric details for a specific database at a particular time.
type ActivityTimeSeriesMetrics struct { // The date and time the activity metric was created. Timestamp *common.SDKTime `mandatory:"false" json:"timestamp"` CpuTime *MetricDataPoint `mandatory:"false" json:"cpuTime"` WaitTime *MetricDataPoint `mandatory:"false" json:"waitTime"` UserIoTime *MetricDataPoint `mandatory:"false" json:"userIoTime"` CpuCount *MetricDataPoint `mandatory:"false" json:"cpuCount"` }
func (m ActivityTimeSeriesMetrics) String() string
AddManagedDatabaseToManagedDatabaseGroupDetails The Managed Database details required to add it to a Managed Database Group.
type AddManagedDatabaseToManagedDatabaseGroupDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. ManagedDatabaseId *string `mandatory:"true" json:"managedDatabaseId"` }
func (m AddManagedDatabaseToManagedDatabaseGroupDetails) String() string
AddManagedDatabaseToManagedDatabaseGroupRequest wrapper for the AddManagedDatabaseToManagedDatabaseGroup operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/AddManagedDatabaseToManagedDatabaseGroup.go.html to see an example of how to use AddManagedDatabaseToManagedDatabaseGroupRequest.
type AddManagedDatabaseToManagedDatabaseGroupRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database Group. ManagedDatabaseGroupId *string `mandatory:"true" contributesTo:"path" name:"managedDatabaseGroupId"` // The Managed Database details required to add the Managed Database to a Managed Database Group. AddManagedDatabaseToManagedDatabaseGroupDetails `contributesTo:"body"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A token that uniquely identifies a request so it can be retried in case of a timeout or // server error without risk of executing that same action again. Retry tokens expire after 24 // hours, but can be invalidated before then due to conflicting operations. For example, if a resource // has been deleted and purged from the system, then a retry of the original creation request // might be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request AddManagedDatabaseToManagedDatabaseGroupRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request AddManagedDatabaseToManagedDatabaseGroupRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request AddManagedDatabaseToManagedDatabaseGroupRequest) String() string
AddManagedDatabaseToManagedDatabaseGroupResponse wrapper for the AddManagedDatabaseToManagedDatabaseGroup operation
type AddManagedDatabaseToManagedDatabaseGroupResponse struct { // The underlying http response RawResponse *http.Response // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response AddManagedDatabaseToManagedDatabaseGroupResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response AddManagedDatabaseToManagedDatabaseGroupResponse) String() string
ChangeJobCompartmentDetails The details required to change the compartment of a job.
type ChangeJobCompartmentDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the // compartment to which the job should be moved. CompartmentId *string `mandatory:"true" json:"compartmentId"` }
func (m ChangeJobCompartmentDetails) String() string
ChangeJobCompartmentRequest wrapper for the ChangeJobCompartment operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/ChangeJobCompartment.go.html to see an example of how to use ChangeJobCompartmentRequest.
type ChangeJobCompartmentRequest struct { // The identifier of the job. JobId *string `mandatory:"true" contributesTo:"path" name:"jobId"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment to move the job to. ChangeJobCompartmentDetails `contributesTo:"body"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A token that uniquely identifies a request so it can be retried in case of a timeout or // server error without risk of executing that same action again. Retry tokens expire after 24 // hours, but can be invalidated before then due to conflicting operations. For example, if a resource // has been deleted and purged from the system, then a retry of the original creation request // might be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // For optimistic concurrency control. In the PUT or DELETE call // for a resource, set the `if-match` parameter to the value of the // etag from a previous GET or POST response for that resource. // The resource will be updated or deleted only if the etag you // provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ChangeJobCompartmentRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ChangeJobCompartmentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ChangeJobCompartmentRequest) String() string
ChangeJobCompartmentResponse wrapper for the ChangeJobCompartment operation
type ChangeJobCompartmentResponse struct { // The underlying http response RawResponse *http.Response // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ChangeJobCompartmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ChangeJobCompartmentResponse) String() string
ChangeManagedDatabaseGroupCompartmentDetails The details required to change the compartment of a Managed Database Group.
type ChangeManagedDatabaseGroupCompartmentDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the // compartment to which the Managed Database Group should be moved. CompartmentId *string `mandatory:"true" json:"compartmentId"` }
func (m ChangeManagedDatabaseGroupCompartmentDetails) String() string
ChangeManagedDatabaseGroupCompartmentRequest wrapper for the ChangeManagedDatabaseGroupCompartment operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/ChangeManagedDatabaseGroupCompartment.go.html to see an example of how to use ChangeManagedDatabaseGroupCompartmentRequest.
type ChangeManagedDatabaseGroupCompartmentRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database Group. ManagedDatabaseGroupId *string `mandatory:"true" contributesTo:"path" name:"managedDatabaseGroupId"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment to move the Managed Database Group to. ChangeManagedDatabaseGroupCompartmentDetails `contributesTo:"body"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A token that uniquely identifies a request so it can be retried in case of a timeout or // server error without risk of executing that same action again. Retry tokens expire after 24 // hours, but can be invalidated before then due to conflicting operations. For example, if a resource // has been deleted and purged from the system, then a retry of the original creation request // might be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // For optimistic concurrency control. In the PUT or DELETE call // for a resource, set the `if-match` parameter to the value of the // etag from a previous GET or POST response for that resource. // The resource will be updated or deleted only if the etag you // provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ChangeManagedDatabaseGroupCompartmentRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ChangeManagedDatabaseGroupCompartmentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ChangeManagedDatabaseGroupCompartmentRequest) String() string
ChangeManagedDatabaseGroupCompartmentResponse wrapper for the ChangeManagedDatabaseGroupCompartment operation
type ChangeManagedDatabaseGroupCompartmentResponse struct { // The underlying http response RawResponse *http.Response // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ChangeManagedDatabaseGroupCompartmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ChangeManagedDatabaseGroupCompartmentResponse) String() string
ChildDatabase The child Managed Database of a Managed Database Group.
type ChildDatabase struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. Id *string `mandatory:"true" json:"id"` // The name of the Managed Database. Name *string `mandatory:"true" json:"name"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment in which the Managed Database resides. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The date and time the Managed Database was added to the group. TimeAdded *common.SDKTime `mandatory:"true" json:"timeAdded"` // The type of Oracle Database installation. DatabaseType DatabaseTypeEnum `mandatory:"false" json:"databaseType,omitempty"` // The subtype of the Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, or a Non-container Database. DatabaseSubType DatabaseSubTypeEnum `mandatory:"false" json:"databaseSubType,omitempty"` }
func (m ChildDatabase) String() string
CompareTypeEnum Enum with underlying type: string
type CompareTypeEnum string
Set of constants representing the allowable values for CompareTypeEnum
const ( CompareTypeHour CompareTypeEnum = "HOUR" CompareTypeDay CompareTypeEnum = "DAY" )
func GetCompareTypeEnumValues() []CompareTypeEnum
GetCompareTypeEnumValues Enumerates the set of values for CompareTypeEnum
CreateJobDetails The details required to create a job.
type CreateJobDetails interface { // The name of the job. Valid characters are uppercase or lowercase letters, // numbers, and "_". The name of the job cannot be modified. It must be unique // in the compartment and must begin with an alphabetic character. GetName() *string // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment in which the job resides. GetCompartmentId() *string // The schedule type of the job. GetScheduleType() JobScheduleTypeEnum // The description of the job. GetDescription() *string // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database Group where the job has to be executed. GetManagedDatabaseGroupId() *string // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database where the job has to be executed. GetManagedDatabaseId() *string // The subtype of the Oracle Database where the job has to be executed. Only applicable when managedDatabaseGroupId is provided. GetDatabaseSubType() DatabaseSubTypeEnum // The job timeout duration, which is expressed like "1h 10m 15s". GetTimeout() *string GetResultLocation() JobExecutionResultLocation }
CreateJobRequest wrapper for the CreateJob operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/CreateJob.go.html to see an example of how to use CreateJobRequest.
type CreateJobRequest struct { // The details required to create a job. CreateJobDetails `contributesTo:"body"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A token that uniquely identifies a request so it can be retried in case of a timeout or // server error without risk of executing that same action again. Retry tokens expire after 24 // hours, but can be invalidated before then due to conflicting operations. For example, if a resource // has been deleted and purged from the system, then a retry of the original creation request // might be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request CreateJobRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateJobRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateJobRequest) String() string
CreateJobResponse wrapper for the CreateJob operation
type CreateJobResponse struct { // The underlying http response RawResponse *http.Response // The Job instance Job `presentIn:"body"` // A link to the created job. Location *string `presentIn:"header" name:"location"` // 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 CreateJobResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateJobResponse) String() string
CreateManagedDatabaseGroupDetails The details required to create a Managed Database Group.
type CreateManagedDatabaseGroupDetails struct { // The name of the Managed Database Group. Valid characters are uppercase or // lowercase letters, numbers, and "_". The name of the Managed Database Group // cannot be modified. It must be unique in the compartment and must begin with // an alphabetic character. Name *string `mandatory:"true" json:"name"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment // in which the Managed Database Group resides. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The information specified by the user about the Managed Database Group. Description *string `mandatory:"false" json:"description"` }
func (m CreateManagedDatabaseGroupDetails) String() string
CreateManagedDatabaseGroupRequest wrapper for the CreateManagedDatabaseGroup operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/CreateManagedDatabaseGroup.go.html to see an example of how to use CreateManagedDatabaseGroupRequest.
type CreateManagedDatabaseGroupRequest struct { // The details required to create a Managed Database Group. CreateManagedDatabaseGroupDetails `contributesTo:"body"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A token that uniquely identifies a request so it can be retried in case of a timeout or // server error without risk of executing that same action again. Retry tokens expire after 24 // hours, but can be invalidated before then due to conflicting operations. For example, if a resource // has been deleted and purged from the system, then a retry of the original creation request // might be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request CreateManagedDatabaseGroupRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateManagedDatabaseGroupRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateManagedDatabaseGroupRequest) String() string
CreateManagedDatabaseGroupResponse wrapper for the CreateManagedDatabaseGroup operation
type CreateManagedDatabaseGroupResponse struct { // The underlying http response RawResponse *http.Response // The ManagedDatabaseGroup instance ManagedDatabaseGroup `presentIn:"body"` // A link to the newly created Managed Database Group. Location *string `presentIn:"header" name:"location"` // 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 CreateManagedDatabaseGroupResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateManagedDatabaseGroupResponse) String() string
CreateSqlJobDetails The details specific to the SQL job request.
type CreateSqlJobDetails struct { // The name of the job. Valid characters are uppercase or lowercase letters, // numbers, and "_". The name of the job cannot be modified. It must be unique // in the compartment and must begin with an alphabetic character. Name *string `mandatory:"true" json:"name"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment in which the job resides. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The description of the job. Description *string `mandatory:"false" json:"description"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database Group where the job has to be executed. ManagedDatabaseGroupId *string `mandatory:"false" json:"managedDatabaseGroupId"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database where the job has to be executed. ManagedDatabaseId *string `mandatory:"false" json:"managedDatabaseId"` // The job timeout duration, which is expressed like "1h 10m 15s". Timeout *string `mandatory:"false" json:"timeout"` ResultLocation JobExecutionResultLocation `mandatory:"false" json:"resultLocation"` // The SQL text to be executed as part of the job. SqlText *string `mandatory:"false" json:"sqlText"` // The database user name used to execute the SQL job. If the job is being executed on a // Managed Database Group, then the user name should exist on all the databases in the // group with the same password. UserName *string `mandatory:"false" json:"userName"` // The password for the database user name used to execute the SQL job. Password *string `mandatory:"false" json:"password"` // The schedule type of the job. ScheduleType JobScheduleTypeEnum `mandatory:"true" json:"scheduleType"` // The subtype of the Oracle Database where the job has to be executed. Only applicable when managedDatabaseGroupId is provided. DatabaseSubType DatabaseSubTypeEnum `mandatory:"false" json:"databaseSubType,omitempty"` SqlType SqlJobSqlTypeEnum `mandatory:"false" json:"sqlType,omitempty"` // The SQL operation type. OperationType SqlJobOperationTypeEnum `mandatory:"true" json:"operationType"` // The role of the database user. Indicates whether the database user is a normal user or sysdba. Role SqlJobRoleEnum `mandatory:"false" json:"role,omitempty"` }
func (m CreateSqlJobDetails) GetCompartmentId() *string
GetCompartmentId returns CompartmentId
func (m CreateSqlJobDetails) GetDatabaseSubType() DatabaseSubTypeEnum
GetDatabaseSubType returns DatabaseSubType
func (m CreateSqlJobDetails) GetDescription() *string
GetDescription returns Description
func (m CreateSqlJobDetails) GetManagedDatabaseGroupId() *string
GetManagedDatabaseGroupId returns ManagedDatabaseGroupId
func (m CreateSqlJobDetails) GetManagedDatabaseId() *string
GetManagedDatabaseId returns ManagedDatabaseId
func (m CreateSqlJobDetails) GetName() *string
GetName returns Name
func (m CreateSqlJobDetails) GetResultLocation() JobExecutionResultLocation
GetResultLocation returns ResultLocation
func (m CreateSqlJobDetails) GetScheduleType() JobScheduleTypeEnum
GetScheduleType returns ScheduleType
func (m CreateSqlJobDetails) GetTimeout() *string
GetTimeout returns Timeout
func (m CreateSqlJobDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m CreateSqlJobDetails) String() string
func (m *CreateSqlJobDetails) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
DatabaseFleetHealthMetrics The details of the fleet health metrics.
type DatabaseFleetHealthMetrics struct { // The baseline date and time in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". // This is the date and time against which percentage change is calculated. CompareBaselineTime *string `mandatory:"true" json:"compareBaselineTime"` // The target date and time in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". // All the metrics are returned for the target date and time and the percentage change // is calculated against the baseline date and time. CompareTargetTime *string `mandatory:"true" json:"compareTargetTime"` // A list of the databases present in the fleet and their usage metrics. FleetDatabases []DatabaseUsageMetrics `mandatory:"true" json:"fleetDatabases"` // The time window used for metrics comparison. CompareType CompareTypeEnum `mandatory:"false" json:"compareType,omitempty"` FleetSummary *FleetSummary `mandatory:"false" json:"fleetSummary"` }
func (m DatabaseFleetHealthMetrics) String() string
DatabaseHomeMetricDefinition The response containing the CPU, Storage, Wait, DB Time, and Memory metrics for a specific database.
type DatabaseHomeMetricDefinition struct { // A list of the active session metrics for CPU and Wait time for a specific database. ActivityTimeSeriesMetrics []ActivityTimeSeriesMetrics `mandatory:"true" json:"activityTimeSeriesMetrics"` DbTimeAggregateMetrics *DatabaseTimeAggregateMetrics `mandatory:"true" json:"dbTimeAggregateMetrics"` IoAggregateMetrics *DatabaseIoAggregateMetrics `mandatory:"true" json:"ioAggregateMetrics"` MemoryAggregateMetrics *MemoryAggregateMetrics `mandatory:"true" json:"memoryAggregateMetrics"` DbStorageAggregateMetrics *DatabaseStorageAggregateMetrics `mandatory:"true" json:"dbStorageAggregateMetrics"` }
func (m DatabaseHomeMetricDefinition) String() string
DatabaseHomeMetrics The response containing the metric collection for a specific database.
type DatabaseHomeMetrics struct { DatabaseHomeMetrics *DatabaseHomeMetricDefinition `mandatory:"true" json:"databaseHomeMetrics"` }
func (m DatabaseHomeMetrics) String() string
DatabaseIoAggregateMetrics The database Input/Output metric details.
type DatabaseIoAggregateMetrics struct { // A list of the Input/Output Operations Per Second metrics grouped by IOType for a specific database. Iops []MetricDataPoint `mandatory:"false" json:"iops"` // A list of the IOThroughput metrics grouped for a specific database. IoThroughput []MetricDataPoint `mandatory:"false" json:"ioThroughput"` }
func (m DatabaseIoAggregateMetrics) String() string
DatabaseStatusEnum Enum with underlying type: string
type DatabaseStatusEnum string
Set of constants representing the allowable values for DatabaseStatusEnum
const ( DatabaseStatusUp DatabaseStatusEnum = "UP" DatabaseStatusDown DatabaseStatusEnum = "DOWN" DatabaseStatusUnknown DatabaseStatusEnum = "UNKNOWN" )
func GetDatabaseStatusEnumValues() []DatabaseStatusEnum
GetDatabaseStatusEnumValues Enumerates the set of values for DatabaseStatusEnum
DatabaseStorageAggregateMetrics The database storage metric values.
type DatabaseStorageAggregateMetrics struct { StorageAllocated *MetricDataPoint `mandatory:"false" json:"storageAllocated"` StorageUsed *MetricDataPoint `mandatory:"false" json:"storageUsed"` // A list of the storage metrics grouped by TableSpace for a specific database. StorageUsedByTableSpace []MetricDataPoint `mandatory:"false" json:"storageUsedByTableSpace"` }
func (m DatabaseStorageAggregateMetrics) String() string
DatabaseSubTypeEnum Enum with underlying type: string
type DatabaseSubTypeEnum string
Set of constants representing the allowable values for DatabaseSubTypeEnum
const ( DatabaseSubTypeCdb DatabaseSubTypeEnum = "CDB" DatabaseSubTypePdb DatabaseSubTypeEnum = "PDB" DatabaseSubTypeNonCdb DatabaseSubTypeEnum = "NON_CDB" )
func GetDatabaseSubTypeEnumValues() []DatabaseSubTypeEnum
GetDatabaseSubTypeEnumValues Enumerates the set of values for DatabaseSubTypeEnum
DatabaseTimeAggregateMetrics The database time metric details.
type DatabaseTimeAggregateMetrics struct { CpuCount *MetricDataPoint `mandatory:"false" json:"cpuCount"` CpuTime *MetricDataPoint `mandatory:"false" json:"cpuTime"` WaitTime *MetricDataPoint `mandatory:"false" json:"waitTime"` UserIoTime *MetricDataPoint `mandatory:"false" json:"userIoTime"` }
func (m DatabaseTimeAggregateMetrics) String() string
DatabaseTypeEnum Enum with underlying type: string
type DatabaseTypeEnum string
Set of constants representing the allowable values for DatabaseTypeEnum
const ( DatabaseTypeExternalSidb DatabaseTypeEnum = "EXTERNAL_SIDB" DatabaseTypeExternalRac DatabaseTypeEnum = "EXTERNAL_RAC" )
func GetDatabaseTypeEnumValues() []DatabaseTypeEnum
GetDatabaseTypeEnumValues Enumerates the set of values for DatabaseTypeEnum
DatabaseUsageMetrics The list of aggregated metrics for Managed Databases in the fleet.
type DatabaseUsageMetrics struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. DbId *string `mandatory:"false" json:"dbId"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment where the Managed Database resides. CompartmentId *string `mandatory:"false" json:"compartmentId"` // The type of Oracle Database installation. DatabaseType DatabaseTypeEnum `mandatory:"false" json:"databaseType,omitempty"` // The subtype of the Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, or a Non-container Database. DatabaseSubType DatabaseSubTypeEnum `mandatory:"false" json:"databaseSubType,omitempty"` // The display name of the Managed Database. DatabaseName *string `mandatory:"false" json:"databaseName"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the parent Container Database, in the case of a Pluggable Database. DatabaseContainerId *string `mandatory:"false" json:"databaseContainerId"` // A list of the database health metrics like CPU, Storage, and Memory. Metrics []FleetMetricDefinition `mandatory:"false" json:"metrics"` }
func (m DatabaseUsageMetrics) String() string
DbManagementClient a client for DbManagement
type DbManagementClient struct { common.BaseClient // contains filtered or unexported fields }
func NewDbManagementClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client DbManagementClient, err error)
NewDbManagementClientWithConfigurationProvider Creates a new default DbManagement client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region
func NewDbManagementClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client DbManagementClient, err error)
NewDbManagementClientWithOboToken Creates a new default DbManagement 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 DbManagementClient) AddManagedDatabaseToManagedDatabaseGroup(ctx context.Context, request AddManagedDatabaseToManagedDatabaseGroupRequest) (response AddManagedDatabaseToManagedDatabaseGroupResponse, err error)
AddManagedDatabaseToManagedDatabaseGroup Adds a Managed Database to a specific Managed Database Group. After the database is added, it will be included in the management activities performed on the Managed Database Group.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/AddManagedDatabaseToManagedDatabaseGroup.go.html to see an example of how to use AddManagedDatabaseToManagedDatabaseGroup API.
func (client DbManagementClient) ChangeJobCompartment(ctx context.Context, request ChangeJobCompartmentRequest) (response ChangeJobCompartmentResponse, err error)
ChangeJobCompartment Moves a job.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/ChangeJobCompartment.go.html to see an example of how to use ChangeJobCompartment API.
func (client DbManagementClient) ChangeManagedDatabaseGroupCompartment(ctx context.Context, request ChangeManagedDatabaseGroupCompartmentRequest) (response ChangeManagedDatabaseGroupCompartmentResponse, err error)
ChangeManagedDatabaseGroupCompartment Moves a Managed Database Group to a different compartment. The destination compartment must not have a Managed Database Group with the same name.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/ChangeManagedDatabaseGroupCompartment.go.html to see an example of how to use ChangeManagedDatabaseGroupCompartment API.
func (client *DbManagementClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (client DbManagementClient) CreateJob(ctx context.Context, request CreateJobRequest) (response CreateJobResponse, err error)
CreateJob Creates a job to be executed on a Managed Database or Managed Database Group. Only one of the parameters, managedDatabaseId or managedDatabaseGroupId should be provided as input in CreateJobDetails resource in request body.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/CreateJob.go.html to see an example of how to use CreateJob API.
func (client DbManagementClient) CreateManagedDatabaseGroup(ctx context.Context, request CreateManagedDatabaseGroupRequest) (response CreateManagedDatabaseGroupResponse, err error)
CreateManagedDatabaseGroup Creates a Managed Database Group. The group does not contain any Managed Databases when it is created, and they must be added later.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/CreateManagedDatabaseGroup.go.html to see an example of how to use CreateManagedDatabaseGroup API.
func (client DbManagementClient) DeleteJob(ctx context.Context, request DeleteJobRequest) (response DeleteJobResponse, err error)
DeleteJob Deletes the job specified by jobId.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/DeleteJob.go.html to see an example of how to use DeleteJob API.
func (client DbManagementClient) DeleteManagedDatabaseGroup(ctx context.Context, request DeleteManagedDatabaseGroupRequest) (response DeleteManagedDatabaseGroupResponse, err error)
DeleteManagedDatabaseGroup Deletes the Managed Database Group specified by managedDatabaseGroupId. If the group contains Managed Databases, then it cannot be deleted.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/DeleteManagedDatabaseGroup.go.html to see an example of how to use DeleteManagedDatabaseGroup API.
func (client DbManagementClient) GetDatabaseFleetHealthMetrics(ctx context.Context, request GetDatabaseFleetHealthMetricsRequest) (response GetDatabaseFleetHealthMetricsResponse, err error)
GetDatabaseFleetHealthMetrics Gets the health metrics for a fleet of databases in a compartment or in a Managed Database Group. Either the CompartmentId or the ManagedDatabaseGroupId query parameters must be provided to retrieve the health metrics.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/GetDatabaseFleetHealthMetrics.go.html to see an example of how to use GetDatabaseFleetHealthMetrics API.
func (client DbManagementClient) GetDatabaseHomeMetrics(ctx context.Context, request GetDatabaseHomeMetricsRequest) (response GetDatabaseHomeMetricsResponse, err error)
GetDatabaseHomeMetrics Gets a summary of the activity and resource usage metrics like DB Time, CPU, User I/O, Wait, Storage, and Memory for a Managed Database.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/GetDatabaseHomeMetrics.go.html to see an example of how to use GetDatabaseHomeMetrics API.
func (client DbManagementClient) GetJob(ctx context.Context, request GetJobRequest) (response GetJobResponse, err error)
GetJob Gets the details for the job specified by jobId.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/GetJob.go.html to see an example of how to use GetJob API.
func (client DbManagementClient) GetJobExecution(ctx context.Context, request GetJobExecutionRequest) (response GetJobExecutionResponse, err error)
GetJobExecution Gets the details for the job execution specified by jobExecutionId.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/GetJobExecution.go.html to see an example of how to use GetJobExecution API.
func (client DbManagementClient) GetJobRun(ctx context.Context, request GetJobRunRequest) (response GetJobRunResponse, err error)
GetJobRun Gets the details for the job run specified by jobRunId.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/GetJobRun.go.html to see an example of how to use GetJobRun API.
func (client DbManagementClient) GetManagedDatabase(ctx context.Context, request GetManagedDatabaseRequest) (response GetManagedDatabaseResponse, err error)
GetManagedDatabase Gets the details for the Managed Database specified by managedDatabaseId.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/GetManagedDatabase.go.html to see an example of how to use GetManagedDatabase API.
func (client DbManagementClient) GetManagedDatabaseGroup(ctx context.Context, request GetManagedDatabaseGroupRequest) (response GetManagedDatabaseGroupResponse, err error)
GetManagedDatabaseGroup Gets the details for the Managed Database Group specified by managedDatabaseGroupId.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/GetManagedDatabaseGroup.go.html to see an example of how to use GetManagedDatabaseGroup API.
func (client DbManagementClient) ListJobExecutions(ctx context.Context, request ListJobExecutionsRequest) (response ListJobExecutionsResponse, err error)
ListJobExecutions Gets the job execution for a specific ID or the list of job executions for a job, Managed Database or Managed Database Group in a specific compartment. Only one of the parameters, ID, jobId, managedDatabaseId or managedDatabaseGroupId should be provided. If none of these parameters is provided, all the job executions in the compartment are listed. Job executions can also be filtered based on the name and status parameters.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/ListJobExecutions.go.html to see an example of how to use ListJobExecutions API.
func (client DbManagementClient) ListJobRuns(ctx context.Context, request ListJobRunsRequest) (response ListJobRunsResponse, err error)
ListJobRuns Gets the job run for a specific ID or the list of job runs for a job, Managed Database or Managed Database Group in a specific compartment. Only one of the parameters, ID, jobId, managedDatabaseId, or managedDatabaseGroupId should be provided. If none of these parameters is provided, all the job runs in the compartment are listed. Job runs can also be filtered based on name and runStatus parameters.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/ListJobRuns.go.html to see an example of how to use ListJobRuns API.
func (client DbManagementClient) ListJobs(ctx context.Context, request ListJobsRequest) (response ListJobsResponse, err error)
ListJobs Gets the job for a specific ID or the list of jobs for a Managed Database or Managed Database Group in a specific compartment. Only one of the parameters, ID, managedDatabaseId or managedDatabaseGroupId, should be provided. If none of these parameters is provided, all the jobs in the compartment are listed. Jobs can also be filtered based on the name and lifecycleState parameters.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/ListJobs.go.html to see an example of how to use ListJobs API.
func (client DbManagementClient) ListManagedDatabaseGroups(ctx context.Context, request ListManagedDatabaseGroupsRequest) (response ListManagedDatabaseGroupsResponse, err error)
ListManagedDatabaseGroups Gets the Managed Database Group for a specific ID or the list of Managed Database Groups in a specific compartment. Managed Database Groups can also be filtered based on the name parameter. Only one of the parameters, ID or name should be provided. If none of these parameters is provided, all the Managed Database Groups in the compartment are listed.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/ListManagedDatabaseGroups.go.html to see an example of how to use ListManagedDatabaseGroups API.
func (client DbManagementClient) ListManagedDatabases(ctx context.Context, request ListManagedDatabasesRequest) (response ListManagedDatabasesResponse, err error)
ListManagedDatabases Gets the Managed Database for a specific ID or the list of Managed Databases in a specific compartment. Managed Databases can also be filtered based on the name parameter. Only one of the parameters, ID or name should be provided. If none of these parameters is provided, all the Managed Databases in the compartment are listed.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/ListManagedDatabases.go.html to see an example of how to use ListManagedDatabases API.
func (client DbManagementClient) RemoveManagedDatabaseFromManagedDatabaseGroup(ctx context.Context, request RemoveManagedDatabaseFromManagedDatabaseGroupRequest) (response RemoveManagedDatabaseFromManagedDatabaseGroupResponse, err error)
RemoveManagedDatabaseFromManagedDatabaseGroup Removes a Managed Database from a Managed Database Group. Any management activities that are currently running on this database will continue to run to completion. However, any activities scheduled to run in the future will not be performed on this database.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/RemoveManagedDatabaseFromManagedDatabaseGroup.go.html to see an example of how to use RemoveManagedDatabaseFromManagedDatabaseGroup API.
func (client *DbManagementClient) SetRegion(region string)
SetRegion overrides the region of this client.
func (client DbManagementClient) UpdateManagedDatabaseGroup(ctx context.Context, request UpdateManagedDatabaseGroupRequest) (response UpdateManagedDatabaseGroupResponse, err error)
UpdateManagedDatabaseGroup Updates the Managed Database Group specified by managedDatabaseGroupId.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/UpdateManagedDatabaseGroup.go.html to see an example of how to use UpdateManagedDatabaseGroup API.
DeleteJobRequest wrapper for the DeleteJob operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/DeleteJob.go.html to see an example of how to use DeleteJobRequest.
type DeleteJobRequest struct { // The identifier of the job. JobId *string `mandatory:"true" contributesTo:"path" name:"jobId"` // For optimistic concurrency control. In the PUT or DELETE call // for a resource, set the `if-match` parameter to the value of the // etag from a previous GET or POST response for that resource. // The resource will be updated or deleted only if the etag you // provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request DeleteJobRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteJobRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteJobRequest) String() string
DeleteJobResponse wrapper for the DeleteJob operation
type DeleteJobResponse struct { // The underlying http response RawResponse *http.Response // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response DeleteJobResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteJobResponse) String() string
DeleteManagedDatabaseGroupRequest wrapper for the DeleteManagedDatabaseGroup operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/DeleteManagedDatabaseGroup.go.html to see an example of how to use DeleteManagedDatabaseGroupRequest.
type DeleteManagedDatabaseGroupRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database Group. ManagedDatabaseGroupId *string `mandatory:"true" contributesTo:"path" name:"managedDatabaseGroupId"` // For optimistic concurrency control. In the PUT or DELETE call // for a resource, set the `if-match` parameter to the value of the // etag from a previous GET or POST response for that resource. // The resource will be updated or deleted only if the etag you // provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request DeleteManagedDatabaseGroupRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteManagedDatabaseGroupRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteManagedDatabaseGroupRequest) String() string
DeleteManagedDatabaseGroupResponse wrapper for the DeleteManagedDatabaseGroup operation
type DeleteManagedDatabaseGroupResponse struct { // The underlying http response RawResponse *http.Response // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response DeleteManagedDatabaseGroupResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteManagedDatabaseGroupResponse) String() string
FleetMetricDefinition The database metric details.
type FleetMetricDefinition struct { // The name of the metric. MetricName *string `mandatory:"false" json:"metricName"` // The baseline value of the metric. BaselineValue *float64 `mandatory:"false" json:"baselineValue"` // The target value of the metric. TargetValue *float64 `mandatory:"false" json:"targetValue"` // The unit of the value. Unit *string `mandatory:"false" json:"unit"` // The data point date and time in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". Timestamp *common.SDKTime `mandatory:"false" json:"timestamp"` // The percentage change in the metric aggregated value compared to the baseline value. PercentageChange *float64 `mandatory:"false" json:"percentageChange"` // The dimensions of the metric. Dimensions []MetricDimensionDefinition `mandatory:"false" json:"dimensions"` }
func (m FleetMetricDefinition) String() string
FleetMetricSummaryDefinition A summary of the fleet metrics, which provides the metric aggregated value of the databases in the fleet.
type FleetMetricSummaryDefinition struct { // The name of the metric. MetricName *string `mandatory:"false" json:"metricName"` // The metric aggregated value at the baseline date and time. BaselineValue *float64 `mandatory:"false" json:"baselineValue"` // The metric aggregated value at the target date and time. TargetValue *float64 `mandatory:"false" json:"targetValue"` // The unit of the value. Unit *string `mandatory:"false" json:"unit"` // The percentage change in the metric aggregated value compared to the baseline value. PercentageChange *float64 `mandatory:"false" json:"percentageChange"` // The unique dimension key and values of the baseline metric. Dimensions []MetricDimensionDefinition `mandatory:"false" json:"dimensions"` }
func (m FleetMetricSummaryDefinition) String() string
FleetStatusByCategory The number of databases in the fleet, grouped by database type and sub type.
type FleetStatusByCategory struct { // The type of Oracle Database installation. DatabaseType DatabaseTypeEnum `mandatory:"false" json:"databaseType,omitempty"` // The subtype of the Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, or a Non-container Database. DatabaseSubType DatabaseSubTypeEnum `mandatory:"false" json:"databaseSubType,omitempty"` // The number of databases in the fleet. InventoryCount *int `mandatory:"false" json:"inventoryCount"` }
func (m FleetStatusByCategory) String() string
FleetSummary A summary of the inventory count grouped by database type and subtype, and the metrics that describe the aggregated usage of CPU, storage, and so on of all the databases in the fleet.
type FleetSummary struct { // A list of databases present in the fleet and their usage metrics. AggregatedMetrics []FleetMetricSummaryDefinition `mandatory:"false" json:"aggregatedMetrics"` // A list of the databases in the fleet, grouped by database type and subtype. Inventory []FleetStatusByCategory `mandatory:"false" json:"inventory"` }
func (m FleetSummary) String() string
GetDatabaseFleetHealthMetricsCompareTypeEnum Enum with underlying type: string
type GetDatabaseFleetHealthMetricsCompareTypeEnum string
Set of constants representing the allowable values for GetDatabaseFleetHealthMetricsCompareTypeEnum
const ( GetDatabaseFleetHealthMetricsCompareTypeHour GetDatabaseFleetHealthMetricsCompareTypeEnum = "HOUR" GetDatabaseFleetHealthMetricsCompareTypeDay GetDatabaseFleetHealthMetricsCompareTypeEnum = "DAY" )
func GetGetDatabaseFleetHealthMetricsCompareTypeEnumValues() []GetDatabaseFleetHealthMetricsCompareTypeEnum
GetGetDatabaseFleetHealthMetricsCompareTypeEnumValues Enumerates the set of values for GetDatabaseFleetHealthMetricsCompareTypeEnum
GetDatabaseFleetHealthMetricsRequest wrapper for the GetDatabaseFleetHealthMetrics operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/GetDatabaseFleetHealthMetrics.go.html to see an example of how to use GetDatabaseFleetHealthMetricsRequest.
type GetDatabaseFleetHealthMetricsRequest struct { // The baseline time for metrics comparison. CompareBaselineTime *string `mandatory:"true" contributesTo:"query" name:"compareBaselineTime"` // The target time for metrics comparison. CompareTargetTime *string `mandatory:"true" contributesTo:"query" name:"compareTargetTime"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database Group. ManagedDatabaseGroupId *string `mandatory:"false" contributesTo:"query" name:"managedDatabaseGroupId"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` // The time window used for metrics comparison. CompareType GetDatabaseFleetHealthMetricsCompareTypeEnum `mandatory:"false" contributesTo:"query" name:"compareType" omitEmpty:"true"` // The filter used to retrieve a specific set of metrics by passing the desired metric names with a comma separator. Note that, by default, the service returns all supported metrics. FilterByMetricNames *string `mandatory:"false" contributesTo:"query" name:"filterByMetricNames"` // The filter used to filter the databases in the fleet by a specific Oracle Database type. FilterByDatabaseType *string `mandatory:"false" contributesTo:"query" name:"filterByDatabaseType"` // The filter used to filter the databases in the fleet by a specific Oracle Database subtype. FilterByDatabaseSubType *string `mandatory:"false" contributesTo:"query" name:"filterByDatabaseSubType"` // 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 GetDatabaseFleetHealthMetricsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetDatabaseFleetHealthMetricsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetDatabaseFleetHealthMetricsRequest) String() string
GetDatabaseFleetHealthMetricsResponse wrapper for the GetDatabaseFleetHealthMetrics operation
type GetDatabaseFleetHealthMetricsResponse struct { // The underlying http response RawResponse *http.Response // The DatabaseFleetHealthMetrics instance DatabaseFleetHealthMetrics `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetDatabaseFleetHealthMetricsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetDatabaseFleetHealthMetricsResponse) String() string
GetDatabaseHomeMetricsRequest wrapper for the GetDatabaseHomeMetrics operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/GetDatabaseHomeMetrics.go.html to see an example of how to use GetDatabaseHomeMetricsRequest.
type GetDatabaseHomeMetricsRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. ManagedDatabaseId *string `mandatory:"true" contributesTo:"query" name:"managedDatabaseId"` // The start time for the time range to retrieve the health metrics of a Managed Database // in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". StartTime *string `mandatory:"true" contributesTo:"query" name:"startTime"` // The end time for the time range to retrieve the health metrics of a Managed Database // in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". EndTime *string `mandatory:"true" contributesTo:"query" name:"endTime"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetDatabaseHomeMetricsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetDatabaseHomeMetricsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetDatabaseHomeMetricsRequest) String() string
GetDatabaseHomeMetricsResponse wrapper for the GetDatabaseHomeMetrics operation
type GetDatabaseHomeMetricsResponse struct { // The underlying http response RawResponse *http.Response // The DatabaseHomeMetrics instance DatabaseHomeMetrics `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetDatabaseHomeMetricsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetDatabaseHomeMetricsResponse) String() string
GetJobExecutionRequest wrapper for the GetJobExecution operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/GetJobExecution.go.html to see an example of how to use GetJobExecutionRequest.
type GetJobExecutionRequest struct { // The identifier of the job execution. JobExecutionId *string `mandatory:"true" contributesTo:"path" name:"jobExecutionId"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetJobExecutionRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetJobExecutionRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetJobExecutionRequest) String() string
GetJobExecutionResponse wrapper for the GetJobExecution operation
type GetJobExecutionResponse struct { // The underlying http response RawResponse *http.Response // The JobExecution instance JobExecution `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetJobExecutionResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetJobExecutionResponse) String() string
GetJobRequest wrapper for the GetJob operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/GetJob.go.html to see an example of how to use GetJobRequest.
type GetJobRequest struct { // The identifier of the job. JobId *string `mandatory:"true" contributesTo:"path" name:"jobId"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetJobRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetJobRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetJobRequest) String() string
GetJobResponse wrapper for the GetJob operation
type GetJobResponse struct { // The underlying http response RawResponse *http.Response // The Job instance Job `presentIn:"body"` // A link to the created job. Location *string `presentIn:"header" name:"location"` // 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 GetJobResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetJobResponse) String() string
GetJobRunRequest wrapper for the GetJobRun operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/GetJobRun.go.html to see an example of how to use GetJobRunRequest.
type GetJobRunRequest struct { // The identifier of the job run. JobRunId *string `mandatory:"true" contributesTo:"path" name:"jobRunId"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetJobRunRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetJobRunRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetJobRunRequest) String() string
GetJobRunResponse wrapper for the GetJobRun operation
type GetJobRunResponse struct { // The underlying http response RawResponse *http.Response // The JobRun instance JobRun `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetJobRunResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetJobRunResponse) String() string
GetManagedDatabaseGroupRequest wrapper for the GetManagedDatabaseGroup operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/GetManagedDatabaseGroup.go.html to see an example of how to use GetManagedDatabaseGroupRequest.
type GetManagedDatabaseGroupRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database Group. ManagedDatabaseGroupId *string `mandatory:"true" contributesTo:"path" name:"managedDatabaseGroupId"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetManagedDatabaseGroupRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetManagedDatabaseGroupRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetManagedDatabaseGroupRequest) String() string
GetManagedDatabaseGroupResponse wrapper for the GetManagedDatabaseGroup operation
type GetManagedDatabaseGroupResponse struct { // The underlying http response RawResponse *http.Response // The ManagedDatabaseGroup instance ManagedDatabaseGroup `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 GetManagedDatabaseGroupResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetManagedDatabaseGroupResponse) String() string
GetManagedDatabaseRequest wrapper for the GetManagedDatabase operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/GetManagedDatabase.go.html to see an example of how to use GetManagedDatabaseRequest.
type GetManagedDatabaseRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. ManagedDatabaseId *string `mandatory:"true" contributesTo:"path" name:"managedDatabaseId"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetManagedDatabaseRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetManagedDatabaseRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetManagedDatabaseRequest) String() string
GetManagedDatabaseResponse wrapper for the GetManagedDatabase operation
type GetManagedDatabaseResponse struct { // The underlying http response RawResponse *http.Response // The ManagedDatabase instance ManagedDatabase `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetManagedDatabaseResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetManagedDatabaseResponse) String() string
Job The details of the job.
type Job interface { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the job. GetId() *string // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment in which the job resides. GetCompartmentId() *string // The display name of the job. GetName() *string // The schedule type of the job. GetScheduleType() JobScheduleTypeEnum // The lifecycle state of the job. GetLifecycleState() JobLifecycleStateEnum // The date and time when the job was created. GetTimeCreated() *common.SDKTime // The date and time when the job was last updated. GetTimeUpdated() *common.SDKTime // The description of the job. GetDescription() *string // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database Group where the job has to be executed. GetManagedDatabaseGroupId() *string // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database where the job has to be executed. GetManagedDatabaseId() *string // The details of the Managed Databases where the job has to be executed. GetManagedDatabasesDetails() []JobDatabase // The subtype of the Oracle Database where the job has to be executed. Applicable only when managedDatabaseGroupId is provided. GetDatabaseSubType() DatabaseSubTypeEnum // The job timeout duration, which is expressed like "1h 10m 15s". GetTimeout() *string GetResultLocation() JobExecutionResultLocation // The error message that is returned if the job submission fails. Null is returned in all other scenarios. GetSubmissionErrorMessage() *string }
JobCollection A collection of job objects.
type JobCollection struct { // A list of JobSummary objects. Items []JobSummary `mandatory:"true" json:"items"` }
func (m JobCollection) String() string
JobDatabase The Managed Database on which the job is executed.
type JobDatabase struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. Id *string `mandatory:"true" json:"id"` // The name of the Managed Database. Name *string `mandatory:"true" json:"name"` }
func (m JobDatabase) String() string
JobExecution The details of a job execution.
type JobExecution struct { // The identifier of the job execution. Id *string `mandatory:"true" json:"id"` // The name of the job execution. Name *string `mandatory:"true" json:"name"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment in which the parent job resides. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database associated with the job execution. ManagedDatabaseId *string `mandatory:"true" json:"managedDatabaseId"` // The name of the Managed Database associated with the job execution. ManagedDatabaseName *string `mandatory:"true" json:"managedDatabaseName"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the parent job. JobId *string `mandatory:"true" json:"jobId"` // The name of the parent job. JobName *string `mandatory:"true" json:"jobName"` // The identifier of the associated job run. JobRunId *string `mandatory:"true" json:"jobRunId"` // The status of the job execution. Status JobExecutionStatusEnum `mandatory:"true" json:"status"` // The date and time when the job execution was created. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database Group where the parent job has to be executed. ManagedDatabaseGroupId *string `mandatory:"false" json:"managedDatabaseGroupId"` // The error message that is returned if the job execution fails. Null is returned if the job is // still running or if the job execution is successful. ErrorMessage *string `mandatory:"false" json:"errorMessage"` ResultDetails JobExecutionResultDetails `mandatory:"false" json:"resultDetails"` // The date and time when the job execution completed. TimeCompleted *common.SDKTime `mandatory:"false" json:"timeCompleted"` }
func (m JobExecution) String() string
func (m *JobExecution) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
JobExecutionCollection A collection of job execution objects.
type JobExecutionCollection struct { // A list of JobExecutionSummary objects. Items []JobExecutionSummary `mandatory:"true" json:"items"` }
func (m JobExecutionCollection) String() string
JobExecutionResultDetails The job execution result details.
type JobExecutionResultDetails interface { }
JobExecutionResultDetailsTypeEnum Enum with underlying type: string
type JobExecutionResultDetailsTypeEnum string
Set of constants representing the allowable values for JobExecutionResultDetailsTypeEnum
const ( JobExecutionResultDetailsTypeObjectStorage JobExecutionResultDetailsTypeEnum = "OBJECT_STORAGE" )
func GetJobExecutionResultDetailsTypeEnumValues() []JobExecutionResultDetailsTypeEnum
GetJobExecutionResultDetailsTypeEnumValues Enumerates the set of values for JobExecutionResultDetailsTypeEnum
JobExecutionResultLocation The location of the job execution result.
type JobExecutionResultLocation interface { }
JobExecutionResultLocationTypeEnum Enum with underlying type: string
type JobExecutionResultLocationTypeEnum string
Set of constants representing the allowable values for JobExecutionResultLocationTypeEnum
const ( JobExecutionResultLocationTypeObjectStorage JobExecutionResultLocationTypeEnum = "OBJECT_STORAGE" )
func GetJobExecutionResultLocationTypeEnumValues() []JobExecutionResultLocationTypeEnum
GetJobExecutionResultLocationTypeEnumValues Enumerates the set of values for JobExecutionResultLocationTypeEnum
JobExecutionStatusEnum Enum with underlying type: string
type JobExecutionStatusEnum string
Set of constants representing the allowable values for JobExecutionStatusEnum
const ( JobExecutionStatusSucceeded JobExecutionStatusEnum = "SUCCEEDED" JobExecutionStatusFailed JobExecutionStatusEnum = "FAILED" JobExecutionStatusInProgress JobExecutionStatusEnum = "IN_PROGRESS" )
func GetJobExecutionStatusEnumValues() []JobExecutionStatusEnum
GetJobExecutionStatusEnumValues Enumerates the set of values for JobExecutionStatusEnum
JobExecutionSummary A summary of a job execution on a Managed Database.
type JobExecutionSummary struct { // The identifier of the job execution. Id *string `mandatory:"true" json:"id"` // The name of the job execution. Name *string `mandatory:"true" json:"name"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment in which the parent job resides. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of Managed Database associated with the job execution. ManagedDatabaseId *string `mandatory:"true" json:"managedDatabaseId"` // The name of the Managed Database associated with the job execution. ManagedDatabaseName *string `mandatory:"true" json:"managedDatabaseName"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the parent job. JobId *string `mandatory:"true" json:"jobId"` // The name of the parent job. JobName *string `mandatory:"true" json:"jobName"` // The status of the job execution. Status JobExecutionStatusEnum `mandatory:"true" json:"status"` // The date and time when the job execution was created. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database Group where the parent job has to be executed. ManagedDatabaseGroupId *string `mandatory:"false" json:"managedDatabaseGroupId"` // The date and time when the job execution was completed. TimeCompleted *common.SDKTime `mandatory:"false" json:"timeCompleted"` }
func (m JobExecutionSummary) String() string
JobLifecycleStateEnum Enum with underlying type: string
type JobLifecycleStateEnum string
Set of constants representing the allowable values for JobLifecycleStateEnum
const ( JobLifecycleStateActive JobLifecycleStateEnum = "ACTIVE" JobLifecycleStateInactive JobLifecycleStateEnum = "INACTIVE" )
func GetJobLifecycleStateEnumValues() []JobLifecycleStateEnum
GetJobLifecycleStateEnumValues Enumerates the set of values for JobLifecycleStateEnum
JobRun The details of a specific job run.
type JobRun struct { // The identifier of the job run. Id *string `mandatory:"true" json:"id"` // The name of the job run. Name *string `mandatory:"true" json:"name"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment in which the parent job resides. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the parent job. JobId *string `mandatory:"true" json:"jobId"` // The name of the parent job. JobName *string `mandatory:"true" json:"jobName"` // The status of the job run. RunStatus JobRunRunStatusEnum `mandatory:"true" json:"runStatus"` // The date and time when the job run was submitted. TimeSubmitted *common.SDKTime `mandatory:"true" json:"timeSubmitted"` // The date and time when the job run was last updated. TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database Group where the parent job has to be executed. ManagedDatabaseGroupId *string `mandatory:"false" json:"managedDatabaseGroupId"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of Managed Database where the parent job has to be executed. ManagedDatabaseId *string `mandatory:"false" json:"managedDatabaseId"` }
func (m JobRun) String() string
JobRunCollection A collection of job run objects.
type JobRunCollection struct { // A list of JobRunSummary objects. Items []JobRunSummary `mandatory:"true" json:"items"` }
func (m JobRunCollection) String() string
JobRunRunStatusEnum Enum with underlying type: string
type JobRunRunStatusEnum string
Set of constants representing the allowable values for JobRunRunStatusEnum
const ( JobRunRunStatusCompleted JobRunRunStatusEnum = "COMPLETED" JobRunRunStatusFailed JobRunRunStatusEnum = "FAILED" JobRunRunStatusInProgress JobRunRunStatusEnum = "IN_PROGRESS" )
func GetJobRunRunStatusEnumValues() []JobRunRunStatusEnum
GetJobRunRunStatusEnumValues Enumerates the set of values for JobRunRunStatusEnum
JobRunSummary A summary of a specific job run.
type JobRunSummary struct { // The identifier of the job run. Id *string `mandatory:"true" json:"id"` // The name of the job run. Name *string `mandatory:"true" json:"name"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment in which the parent job resides. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the parent job. JobId *string `mandatory:"true" json:"jobId"` // The name of the parent job. JobName *string `mandatory:"true" json:"jobName"` // The status of the job run. RunStatus JobRunRunStatusEnum `mandatory:"true" json:"runStatus"` // The date and time when the job run was submitted. TimeSubmitted *common.SDKTime `mandatory:"true" json:"timeSubmitted"` // The date and time when the job run was last updated. TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database Group where the parent job has to be executed. ManagedDatabaseGroupId *string `mandatory:"false" json:"managedDatabaseGroupId"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database where the parent job has to be executed. ManagedDatabaseId *string `mandatory:"false" json:"managedDatabaseId"` }
func (m JobRunSummary) String() string
JobScheduleTypeEnum Enum with underlying type: string
type JobScheduleTypeEnum string
Set of constants representing the allowable values for JobScheduleTypeEnum
const ( JobScheduleTypeImmediate JobScheduleTypeEnum = "IMMEDIATE" )
func GetJobScheduleTypeEnumValues() []JobScheduleTypeEnum
GetJobScheduleTypeEnumValues Enumerates the set of values for JobScheduleTypeEnum
JobSummary A summary of the job.
type JobSummary struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the job. Id *string `mandatory:"true" json:"id"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment in which the job resides. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The display name of the job. Name *string `mandatory:"true" json:"name"` // The schedule type of the job. ScheduleType JobScheduleTypeEnum `mandatory:"true" json:"scheduleType"` // The type of job. JobType JobTypesEnum `mandatory:"true" json:"jobType"` // The lifecycle state of the job. LifecycleState JobLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // The date and time when the job was created. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The date and time when the job was last updated. TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` // The description of the job. Description *string `mandatory:"false" json:"description"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database Group where the job has to be executed. ManagedDatabaseGroupId *string `mandatory:"false" json:"managedDatabaseGroupId"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database where the job has to be executed. ManagedDatabaseId *string `mandatory:"false" json:"managedDatabaseId"` // The subtype of the Oracle Database where the job has to be executed. Only applicable when managedDatabaseGroupId is provided. DatabaseSubType DatabaseSubTypeEnum `mandatory:"false" json:"databaseSubType,omitempty"` // The job timeout duration, which is expressed like "1h 10m 15s". Timeout *string `mandatory:"false" json:"timeout"` // The error message that is returned if the job submission fails. Null is returned in all other scenarios. SubmissionErrorMessage *string `mandatory:"false" json:"submissionErrorMessage"` }
func (m JobSummary) String() string
JobTypesEnum Enum with underlying type: string
type JobTypesEnum string
Set of constants representing the allowable values for JobTypesEnum
const ( JobTypesSql JobTypesEnum = "SQL" )
func GetJobTypesEnumValues() []JobTypesEnum
GetJobTypesEnumValues Enumerates the set of values for JobTypesEnum
LifecycleStatesEnum Enum with underlying type: string
type LifecycleStatesEnum string
Set of constants representing the allowable values for LifecycleStatesEnum
const ( LifecycleStatesCreating LifecycleStatesEnum = "CREATING" LifecycleStatesUpdating LifecycleStatesEnum = "UPDATING" LifecycleStatesActive LifecycleStatesEnum = "ACTIVE" LifecycleStatesDeleting LifecycleStatesEnum = "DELETING" LifecycleStatesDeleted LifecycleStatesEnum = "DELETED" LifecycleStatesFailed LifecycleStatesEnum = "FAILED" )
func GetLifecycleStatesEnumValues() []LifecycleStatesEnum
GetLifecycleStatesEnumValues Enumerates the set of values for LifecycleStatesEnum
ListJobExecutionsRequest wrapper for the ListJobExecutions operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/ListJobExecutions.go.html to see an example of how to use ListJobExecutionsRequest.
type ListJobExecutionsRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The identifier of the resource. Id *string `mandatory:"false" contributesTo:"query" name:"id"` // The identifier of the job. JobId *string `mandatory:"false" contributesTo:"query" name:"jobId"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. ManagedDatabaseId *string `mandatory:"false" contributesTo:"query" name:"managedDatabaseId"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database Group. ManagedDatabaseGroupId *string `mandatory:"false" contributesTo:"query" name:"managedDatabaseGroupId"` // The status of the job execution. Status *string `mandatory:"false" contributesTo:"query" name:"status"` // A filter to return only resources that match the entire name. Name *string `mandatory:"false" contributesTo:"query" name:"name"` // The maximum number of records returned in paginated response. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The page token representing the page, from where the next set of paginated results // are retrieved. This is usually retrieved from a previous list call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The field to sort information by. Only one sortOrder can be used. The default sort order // for ‘TIMECREATED’ is descending and the default sort order for ‘NAME’ is ascending. // The ‘NAME’ sort order is case-sensitive. SortBy ListJobExecutionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The option to sort information in ascending (‘ASC’) or descending (‘DESC’) order. SortOrder ListJobExecutionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListJobExecutionsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListJobExecutionsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListJobExecutionsRequest) String() string
ListJobExecutionsResponse wrapper for the ListJobExecutions operation
type ListJobExecutionsResponse struct { // The underlying http response RawResponse *http.Response // A list of JobExecutionCollection instances JobExecutionCollection `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 ListJobExecutionsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListJobExecutionsResponse) String() string
ListJobExecutionsSortByEnum Enum with underlying type: string
type ListJobExecutionsSortByEnum string
Set of constants representing the allowable values for ListJobExecutionsSortByEnum
const ( ListJobExecutionsSortByTimecreated ListJobExecutionsSortByEnum = "TIMECREATED" ListJobExecutionsSortByName ListJobExecutionsSortByEnum = "NAME" )
func GetListJobExecutionsSortByEnumValues() []ListJobExecutionsSortByEnum
GetListJobExecutionsSortByEnumValues Enumerates the set of values for ListJobExecutionsSortByEnum
ListJobExecutionsSortOrderEnum Enum with underlying type: string
type ListJobExecutionsSortOrderEnum string
Set of constants representing the allowable values for ListJobExecutionsSortOrderEnum
const ( ListJobExecutionsSortOrderAsc ListJobExecutionsSortOrderEnum = "ASC" ListJobExecutionsSortOrderDesc ListJobExecutionsSortOrderEnum = "DESC" )
func GetListJobExecutionsSortOrderEnumValues() []ListJobExecutionsSortOrderEnum
GetListJobExecutionsSortOrderEnumValues Enumerates the set of values for ListJobExecutionsSortOrderEnum
ListJobRunsRequest wrapper for the ListJobRuns operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/ListJobRuns.go.html to see an example of how to use ListJobRunsRequest.
type ListJobRunsRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The identifier of the resource. Id *string `mandatory:"false" contributesTo:"query" name:"id"` // The identifier of the job. JobId *string `mandatory:"false" contributesTo:"query" name:"jobId"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. ManagedDatabaseId *string `mandatory:"false" contributesTo:"query" name:"managedDatabaseId"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database Group. ManagedDatabaseGroupId *string `mandatory:"false" contributesTo:"query" name:"managedDatabaseGroupId"` // The status of the job run. RunStatus *string `mandatory:"false" contributesTo:"query" name:"runStatus"` // A filter to return only resources that match the entire name. Name *string `mandatory:"false" contributesTo:"query" name:"name"` // The maximum number of records returned in paginated response. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The page token representing the page, from where the next set of paginated results // are retrieved. This is usually retrieved from a previous list call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The field to sort information by. Only one sortOrder can be used. The default sort order // for ‘TIMECREATED’ is descending and the default sort order for ‘NAME’ is ascending. // The ‘NAME’ sort order is case-sensitive. SortBy ListJobRunsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The option to sort information in ascending (‘ASC’) or descending (‘DESC’) order. SortOrder ListJobRunsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListJobRunsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListJobRunsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListJobRunsRequest) String() string
ListJobRunsResponse wrapper for the ListJobRuns operation
type ListJobRunsResponse struct { // The underlying http response RawResponse *http.Response // A list of JobRunCollection instances JobRunCollection `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 ListJobRunsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListJobRunsResponse) String() string
ListJobRunsSortByEnum Enum with underlying type: string
type ListJobRunsSortByEnum string
Set of constants representing the allowable values for ListJobRunsSortByEnum
const ( ListJobRunsSortByTimecreated ListJobRunsSortByEnum = "TIMECREATED" ListJobRunsSortByName ListJobRunsSortByEnum = "NAME" )
func GetListJobRunsSortByEnumValues() []ListJobRunsSortByEnum
GetListJobRunsSortByEnumValues Enumerates the set of values for ListJobRunsSortByEnum
ListJobRunsSortOrderEnum Enum with underlying type: string
type ListJobRunsSortOrderEnum string
Set of constants representing the allowable values for ListJobRunsSortOrderEnum
const ( ListJobRunsSortOrderAsc ListJobRunsSortOrderEnum = "ASC" ListJobRunsSortOrderDesc ListJobRunsSortOrderEnum = "DESC" )
func GetListJobRunsSortOrderEnumValues() []ListJobRunsSortOrderEnum
GetListJobRunsSortOrderEnumValues Enumerates the set of values for ListJobRunsSortOrderEnum
ListJobsRequest wrapper for the ListJobs operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/ListJobs.go.html to see an example of how to use ListJobsRequest.
type ListJobsRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The identifier of the resource. Id *string `mandatory:"false" contributesTo:"query" name:"id"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database Group. ManagedDatabaseGroupId *string `mandatory:"false" contributesTo:"query" name:"managedDatabaseGroupId"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. ManagedDatabaseId *string `mandatory:"false" contributesTo:"query" name:"managedDatabaseId"` // A filter to return only resources that match the entire name. Name *string `mandatory:"false" contributesTo:"query" name:"name"` // The lifecycle state of the job. LifecycleState JobLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` // The maximum number of records returned in paginated response. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The page token representing the page, from where the next set of paginated results // are retrieved. This is usually retrieved from a previous list call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The field to sort information by. Only one sortOrder can be used. The default sort order // for ‘TIMECREATED’ is descending and the default sort order for ‘NAME’ is ascending. // The ‘NAME’ sort order is case-sensitive. SortBy ListJobsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The option to sort information in ascending (‘ASC’) or descending (‘DESC’) order. SortOrder ListJobsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListJobsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListJobsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListJobsRequest) String() string
ListJobsResponse wrapper for the ListJobs operation
type ListJobsResponse struct { // The underlying http response RawResponse *http.Response // A list of JobCollection instances JobCollection `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 ListJobsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListJobsResponse) String() string
ListJobsSortByEnum Enum with underlying type: string
type ListJobsSortByEnum string
Set of constants representing the allowable values for ListJobsSortByEnum
const ( ListJobsSortByTimecreated ListJobsSortByEnum = "TIMECREATED" ListJobsSortByName ListJobsSortByEnum = "NAME" )
func GetListJobsSortByEnumValues() []ListJobsSortByEnum
GetListJobsSortByEnumValues Enumerates the set of values for ListJobsSortByEnum
ListJobsSortOrderEnum Enum with underlying type: string
type ListJobsSortOrderEnum string
Set of constants representing the allowable values for ListJobsSortOrderEnum
const ( ListJobsSortOrderAsc ListJobsSortOrderEnum = "ASC" ListJobsSortOrderDesc ListJobsSortOrderEnum = "DESC" )
func GetListJobsSortOrderEnumValues() []ListJobsSortOrderEnum
GetListJobsSortOrderEnumValues Enumerates the set of values for ListJobsSortOrderEnum
ListManagedDatabaseGroupsLifecycleStateEnum Enum with underlying type: string
type ListManagedDatabaseGroupsLifecycleStateEnum string
Set of constants representing the allowable values for ListManagedDatabaseGroupsLifecycleStateEnum
const ( ListManagedDatabaseGroupsLifecycleStateCreating ListManagedDatabaseGroupsLifecycleStateEnum = "CREATING" ListManagedDatabaseGroupsLifecycleStateUpdating ListManagedDatabaseGroupsLifecycleStateEnum = "UPDATING" ListManagedDatabaseGroupsLifecycleStateActive ListManagedDatabaseGroupsLifecycleStateEnum = "ACTIVE" ListManagedDatabaseGroupsLifecycleStateDeleting ListManagedDatabaseGroupsLifecycleStateEnum = "DELETING" ListManagedDatabaseGroupsLifecycleStateDeleted ListManagedDatabaseGroupsLifecycleStateEnum = "DELETED" ListManagedDatabaseGroupsLifecycleStateFailed ListManagedDatabaseGroupsLifecycleStateEnum = "FAILED" )
func GetListManagedDatabaseGroupsLifecycleStateEnumValues() []ListManagedDatabaseGroupsLifecycleStateEnum
GetListManagedDatabaseGroupsLifecycleStateEnumValues Enumerates the set of values for ListManagedDatabaseGroupsLifecycleStateEnum
ListManagedDatabaseGroupsRequest wrapper for the ListManagedDatabaseGroups operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/ListManagedDatabaseGroups.go.html to see an example of how to use ListManagedDatabaseGroupsRequest.
type ListManagedDatabaseGroupsRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The identifier of the resource. Id *string `mandatory:"false" contributesTo:"query" name:"id"` // A filter to return only resources that match the entire name. Name *string `mandatory:"false" contributesTo:"query" name:"name"` // The lifecycle state of a resource. LifecycleState ListManagedDatabaseGroupsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` // The page token representing the page, from where the next set of paginated results // are retrieved. This is usually retrieved from a previous list call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The maximum number of records returned in paginated response. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The field to sort information by. Only one sortOrder can be used. The default sort order // for ‘TIMECREATED’ is descending and the default sort order for ‘NAME’ is ascending. // The ‘NAME’ sort order is case-sensitive. SortBy ListManagedDatabaseGroupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The option to sort information in ascending (‘ASC’) or descending (‘DESC’) order. SortOrder ListManagedDatabaseGroupsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListManagedDatabaseGroupsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListManagedDatabaseGroupsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListManagedDatabaseGroupsRequest) String() string
ListManagedDatabaseGroupsResponse wrapper for the ListManagedDatabaseGroups operation
type ListManagedDatabaseGroupsResponse struct { // The underlying http response RawResponse *http.Response // A list of ManagedDatabaseGroupCollection instances ManagedDatabaseGroupCollection `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 ListManagedDatabaseGroupsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListManagedDatabaseGroupsResponse) String() string
ListManagedDatabaseGroupsSortByEnum Enum with underlying type: string
type ListManagedDatabaseGroupsSortByEnum string
Set of constants representing the allowable values for ListManagedDatabaseGroupsSortByEnum
const ( ListManagedDatabaseGroupsSortByTimecreated ListManagedDatabaseGroupsSortByEnum = "TIMECREATED" ListManagedDatabaseGroupsSortByName ListManagedDatabaseGroupsSortByEnum = "NAME" )
func GetListManagedDatabaseGroupsSortByEnumValues() []ListManagedDatabaseGroupsSortByEnum
GetListManagedDatabaseGroupsSortByEnumValues Enumerates the set of values for ListManagedDatabaseGroupsSortByEnum
ListManagedDatabaseGroupsSortOrderEnum Enum with underlying type: string
type ListManagedDatabaseGroupsSortOrderEnum string
Set of constants representing the allowable values for ListManagedDatabaseGroupsSortOrderEnum
const ( ListManagedDatabaseGroupsSortOrderAsc ListManagedDatabaseGroupsSortOrderEnum = "ASC" ListManagedDatabaseGroupsSortOrderDesc ListManagedDatabaseGroupsSortOrderEnum = "DESC" )
func GetListManagedDatabaseGroupsSortOrderEnumValues() []ListManagedDatabaseGroupsSortOrderEnum
GetListManagedDatabaseGroupsSortOrderEnumValues Enumerates the set of values for ListManagedDatabaseGroupsSortOrderEnum
ListManagedDatabasesRequest wrapper for the ListManagedDatabases operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/ListManagedDatabases.go.html to see an example of how to use ListManagedDatabasesRequest.
type ListManagedDatabasesRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The identifier of the resource. Id *string `mandatory:"false" contributesTo:"query" name:"id"` // A filter to return only resources that match the entire name. Name *string `mandatory:"false" contributesTo:"query" name:"name"` // The page token representing the page, from where the next set of paginated results // are retrieved. This is usually retrieved from a previous list call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The maximum number of records returned in paginated response. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The field to sort information by. Only one sortOrder can be used. The default sort order // for ‘TIMECREATED’ is descending and the default sort order for ‘NAME’ is ascending. // The ‘NAME’ sort order is case-sensitive. SortBy ListManagedDatabasesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The option to sort information in ascending (‘ASC’) or descending (‘DESC’) order. SortOrder ListManagedDatabasesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListManagedDatabasesRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListManagedDatabasesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListManagedDatabasesRequest) String() string
ListManagedDatabasesResponse wrapper for the ListManagedDatabases operation
type ListManagedDatabasesResponse struct { // The underlying http response RawResponse *http.Response // A list of ManagedDatabaseCollection instances ManagedDatabaseCollection `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 ListManagedDatabasesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListManagedDatabasesResponse) String() string
ListManagedDatabasesSortByEnum Enum with underlying type: string
type ListManagedDatabasesSortByEnum string
Set of constants representing the allowable values for ListManagedDatabasesSortByEnum
const ( ListManagedDatabasesSortByTimecreated ListManagedDatabasesSortByEnum = "TIMECREATED" ListManagedDatabasesSortByName ListManagedDatabasesSortByEnum = "NAME" )
func GetListManagedDatabasesSortByEnumValues() []ListManagedDatabasesSortByEnum
GetListManagedDatabasesSortByEnumValues Enumerates the set of values for ListManagedDatabasesSortByEnum
ListManagedDatabasesSortOrderEnum Enum with underlying type: string
type ListManagedDatabasesSortOrderEnum string
Set of constants representing the allowable values for ListManagedDatabasesSortOrderEnum
const ( ListManagedDatabasesSortOrderAsc ListManagedDatabasesSortOrderEnum = "ASC" ListManagedDatabasesSortOrderDesc ListManagedDatabasesSortOrderEnum = "DESC" )
func GetListManagedDatabasesSortOrderEnumValues() []ListManagedDatabasesSortOrderEnum
GetListManagedDatabasesSortOrderEnumValues Enumerates the set of values for ListManagedDatabasesSortOrderEnum
ManagedDatabase The details of a Managed Database.
type ManagedDatabase struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. Id *string `mandatory:"true" json:"id"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The name of the Managed Database. Name *string `mandatory:"true" json:"name"` // The type of Oracle Database installation. DatabaseType DatabaseTypeEnum `mandatory:"true" json:"databaseType"` // The subtype of the Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, or a Non-container Database. DatabaseSubType DatabaseSubTypeEnum `mandatory:"true" json:"databaseSubType"` // Indicates whether the Oracle Database is part of a cluster. IsCluster *bool `mandatory:"true" json:"isCluster"` // The date and time the Managed Database was created. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the parent Container Database // if Managed Database is a Pluggable Database. ParentContainerId *string `mandatory:"false" json:"parentContainerId"` // A list of Managed Database Groups that the Managed Database belongs to. ManagedDatabaseGroups []ParentGroup `mandatory:"false" json:"managedDatabaseGroups"` // The status of the Oracle Database. Indicates whether the status of the database // is UP, DOWN, or UNKNOWN at the current time. DatabaseStatus DatabaseStatusEnum `mandatory:"false" json:"databaseStatus,omitempty"` // The additional details specific to a type of database defined in `{"key": "value"}` format. // Example: `{"bar-key": "value"}` AdditionalDetails map[string]string `mandatory:"false" json:"additionalDetails"` }
func (m ManagedDatabase) String() string
ManagedDatabaseCollection A collection of Managed Database objects.
type ManagedDatabaseCollection struct { // An array of ManagedDatabaseSummary resources. Items []ManagedDatabaseSummary `mandatory:"true" json:"items"` }
func (m ManagedDatabaseCollection) String() string
ManagedDatabaseGroup The details of a Managed Database Group.
type ManagedDatabaseGroup struct { // The name of the Managed Database Group. Name *string `mandatory:"true" json:"name"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database Group. Id *string `mandatory:"true" json:"id"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" json:"compartmentId"` // A list of Managed Databases in the Managed Database Group. ManagedDatabases []ChildDatabase `mandatory:"true" json:"managedDatabases"` // The current lifecycle state of the Managed Database Group. LifecycleState LifecycleStatesEnum `mandatory:"true" json:"lifecycleState"` // The date and time the Managed Database Group was created. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The information specified by the user about the Managed Database Group. Description *string `mandatory:"false" json:"description"` // The date and time the Managed Database Group was last updated. TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` }
func (m ManagedDatabaseGroup) String() string
ManagedDatabaseGroupCollection A collection of Managed Database Group resources.
type ManagedDatabaseGroupCollection struct { // An array of ManagedDatabaseGroupSummary resources. Items []ManagedDatabaseGroupSummary `mandatory:"true" json:"items"` }
func (m ManagedDatabaseGroupCollection) String() string
ManagedDatabaseGroupSummary A group of Managed Databases that will be managed together.
type ManagedDatabaseGroupSummary struct { // The name of the Managed Database Group. Name *string `mandatory:"true" json:"name"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database Group. Id *string `mandatory:"true" json:"id"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The number of Managed Databases in the Managed Database Group. ManagedDatabaseCount *int `mandatory:"true" json:"managedDatabaseCount"` // The current lifecycle state of the Managed Database Group. LifecycleState LifecycleStatesEnum `mandatory:"true" json:"lifecycleState"` // The date and time the Managed Database Group was created. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The information specified by the user about the Managed Database Group. Description *string `mandatory:"false" json:"description"` }
func (m ManagedDatabaseGroupSummary) String() string
ManagedDatabaseSummary A summary of the Managed Database.
type ManagedDatabaseSummary struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. Id *string `mandatory:"true" json:"id"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The name of the Managed Database. Name *string `mandatory:"true" json:"name"` // The type of Oracle Database installation. DatabaseType DatabaseTypeEnum `mandatory:"true" json:"databaseType"` // The subtype of the Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, or a Non-container Database. DatabaseSubType DatabaseSubTypeEnum `mandatory:"true" json:"databaseSubType"` // Indicates whether the Oracle Database is part of a cluster. IsCluster *bool `mandatory:"true" json:"isCluster"` // The date and time the Managed Database was created. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the parent Container Database // if the Managed Database is a Pluggable Database. ParentContainerId *string `mandatory:"false" json:"parentContainerId"` }
func (m ManagedDatabaseSummary) String() string
MemoryAggregateMetrics The memory aggregate metric details.
type MemoryAggregateMetrics struct { // A list of the memory usage metrics grouped by memorypool for a specific database. MemoryUsage []MetricDataPoint `mandatory:"false" json:"memoryUsage"` }
func (m MemoryAggregateMetrics) String() string
MetricDataPoint The metric values with dimension details.
type MetricDataPoint struct { // The value of the metric. Value *float64 `mandatory:"false" json:"value"` // The unit of the metric value. Unit *string `mandatory:"false" json:"unit"` // The dimensions of the metric. Dimensions []MetricDimensionDefinition `mandatory:"false" json:"dimensions"` }
func (m MetricDataPoint) String() string
MetricDimensionDefinition The metric dimension details.
type MetricDimensionDefinition struct { // The name of the dimension. DimensionName *string `mandatory:"false" json:"dimensionName"` // The value of the dimension. DimensionValue *string `mandatory:"false" json:"dimensionValue"` }
func (m MetricDimensionDefinition) String() string
ObjectStorageJobExecutionResultDetails The details of the job execution result stored in Object Storage. The job execution result could be accessed using the Object Storage API.
type ObjectStorageJobExecutionResultDetails struct { // The Object Storage namespace used for job execution result storage. NamespaceName *string `mandatory:"false" json:"namespaceName"` // The name of the bucket used for job execution result storage. BucketName *string `mandatory:"false" json:"bucketName"` // The name of the object containing the job execution result. ObjectName *string `mandatory:"false" json:"objectName"` // The number of rows returned in the result. Only applicable for QUERY SqlType. RowCount *int `mandatory:"false" json:"rowCount"` }
func (m ObjectStorageJobExecutionResultDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m ObjectStorageJobExecutionResultDetails) String() string
ObjectStorageJobExecutionResultLocation The details about Object Storage job execution result location type.
type ObjectStorageJobExecutionResultLocation struct { // The Object Storage namespace used for job execution result storage. NamespaceName *string `mandatory:"false" json:"namespaceName"` // The name of the bucket used for job execution result storage. BucketName *string `mandatory:"false" json:"bucketName"` }
func (m ObjectStorageJobExecutionResultLocation) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m ObjectStorageJobExecutionResultLocation) String() string
ParentGroup The parent Managed Database Group of a Managed Database.
type ParentGroup struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database Group. Id *string `mandatory:"true" json:"id"` // The name of the Managed Database Group. Name *string `mandatory:"true" json:"name"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment in which the Managed Database Group resides. CompartmentId *string `mandatory:"true" json:"compartmentId"` }
func (m ParentGroup) String() string
RemoveManagedDatabaseFromManagedDatabaseGroupDetails The Managed Database details required to remove it from a Managed Database Group.
type RemoveManagedDatabaseFromManagedDatabaseGroupDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. ManagedDatabaseId *string `mandatory:"true" json:"managedDatabaseId"` }
func (m RemoveManagedDatabaseFromManagedDatabaseGroupDetails) String() string
RemoveManagedDatabaseFromManagedDatabaseGroupRequest wrapper for the RemoveManagedDatabaseFromManagedDatabaseGroup operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/RemoveManagedDatabaseFromManagedDatabaseGroup.go.html to see an example of how to use RemoveManagedDatabaseFromManagedDatabaseGroupRequest.
type RemoveManagedDatabaseFromManagedDatabaseGroupRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database Group. ManagedDatabaseGroupId *string `mandatory:"true" contributesTo:"path" name:"managedDatabaseGroupId"` // The Managed Database details required to remove the Managed Database from a Managed Database Group. RemoveManagedDatabaseFromManagedDatabaseGroupDetails `contributesTo:"body"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A token that uniquely identifies a request so it can be retried in case of a timeout or // server error without risk of executing that same action again. Retry tokens expire after 24 // hours, but can be invalidated before then due to conflicting operations. For example, if a resource // has been deleted and purged from the system, then a retry of the original creation request // might be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request RemoveManagedDatabaseFromManagedDatabaseGroupRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request RemoveManagedDatabaseFromManagedDatabaseGroupRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request RemoveManagedDatabaseFromManagedDatabaseGroupRequest) String() string
RemoveManagedDatabaseFromManagedDatabaseGroupResponse wrapper for the RemoveManagedDatabaseFromManagedDatabaseGroup operation
type RemoveManagedDatabaseFromManagedDatabaseGroupResponse struct { // The underlying http response RawResponse *http.Response // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response RemoveManagedDatabaseFromManagedDatabaseGroupResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response RemoveManagedDatabaseFromManagedDatabaseGroupResponse) String() string
SortOrdersEnum Enum with underlying type: string
type SortOrdersEnum string
Set of constants representing the allowable values for SortOrdersEnum
const ( SortOrdersAsc SortOrdersEnum = "ASC" SortOrdersDesc SortOrdersEnum = "DESC" )
func GetSortOrdersEnumValues() []SortOrdersEnum
GetSortOrdersEnumValues Enumerates the set of values for SortOrdersEnum
SqlJob The details of the SQL job.
type SqlJob struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the job. Id *string `mandatory:"true" json:"id"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment in which the job resides. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The display name of the job. Name *string `mandatory:"true" json:"name"` // The date and time when the job was created. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The date and time when the job was last updated. TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` // The description of the job. Description *string `mandatory:"false" json:"description"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database Group where the job has to be executed. ManagedDatabaseGroupId *string `mandatory:"false" json:"managedDatabaseGroupId"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database where the job has to be executed. ManagedDatabaseId *string `mandatory:"false" json:"managedDatabaseId"` // The details of the Managed Databases where the job has to be executed. ManagedDatabasesDetails []JobDatabase `mandatory:"false" json:"managedDatabasesDetails"` // The job timeout duration, which is expressed like "1h 10m 15s". Timeout *string `mandatory:"false" json:"timeout"` ResultLocation JobExecutionResultLocation `mandatory:"false" json:"resultLocation"` // The error message that is returned if the job submission fails. Null is returned in all other scenarios. SubmissionErrorMessage *string `mandatory:"false" json:"submissionErrorMessage"` // The SQL text to be executed in the job. This is a mandatory field for the EXECUTE_SQL operationType. SqlText *string `mandatory:"false" json:"sqlText"` // The database user name used to execute the SQL job. If the job is being executed on a Managed Database Group, // then the user name should exist on all the databases in the group with the same password. UserName *string `mandatory:"false" json:"userName"` // The type of SQL. This is a mandatory field for the EXECUTE_SQL operationType. SqlType SqlJobSqlTypeEnum `mandatory:"false" json:"sqlType,omitempty"` // The SQL operation type. OperationType SqlJobOperationTypeEnum `mandatory:"true" json:"operationType"` // The role of the database user. Indicates whether the database user is a normal user or sysdba. Role SqlJobRoleEnum `mandatory:"false" json:"role,omitempty"` // The subtype of the Oracle Database where the job has to be executed. Applicable only when managedDatabaseGroupId is provided. DatabaseSubType DatabaseSubTypeEnum `mandatory:"false" json:"databaseSubType,omitempty"` // The schedule type of the job. ScheduleType JobScheduleTypeEnum `mandatory:"true" json:"scheduleType"` // The lifecycle state of the job. LifecycleState JobLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` }
func (m SqlJob) GetCompartmentId() *string
GetCompartmentId returns CompartmentId
func (m SqlJob) GetDatabaseSubType() DatabaseSubTypeEnum
GetDatabaseSubType returns DatabaseSubType
func (m SqlJob) GetDescription() *string
GetDescription returns Description
func (m SqlJob) GetId() *string
GetId returns Id
func (m SqlJob) GetLifecycleState() JobLifecycleStateEnum
GetLifecycleState returns LifecycleState
func (m SqlJob) GetManagedDatabaseGroupId() *string
GetManagedDatabaseGroupId returns ManagedDatabaseGroupId
func (m SqlJob) GetManagedDatabaseId() *string
GetManagedDatabaseId returns ManagedDatabaseId
func (m SqlJob) GetManagedDatabasesDetails() []JobDatabase
GetManagedDatabasesDetails returns ManagedDatabasesDetails
func (m SqlJob) GetName() *string
GetName returns Name
func (m SqlJob) GetResultLocation() JobExecutionResultLocation
GetResultLocation returns ResultLocation
func (m SqlJob) GetScheduleType() JobScheduleTypeEnum
GetScheduleType returns ScheduleType
func (m SqlJob) GetSubmissionErrorMessage() *string
GetSubmissionErrorMessage returns SubmissionErrorMessage
func (m SqlJob) GetTimeCreated() *common.SDKTime
GetTimeCreated returns TimeCreated
func (m SqlJob) GetTimeUpdated() *common.SDKTime
GetTimeUpdated returns TimeUpdated
func (m SqlJob) GetTimeout() *string
GetTimeout returns Timeout
func (m SqlJob) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m SqlJob) String() string
func (m *SqlJob) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
SqlJobOperationTypeEnum Enum with underlying type: string
type SqlJobOperationTypeEnum string
Set of constants representing the allowable values for SqlJobOperationTypeEnum
const ( SqlJobOperationTypeExecuteSql SqlJobOperationTypeEnum = "EXECUTE_SQL" )
func GetSqlJobOperationTypeEnumValues() []SqlJobOperationTypeEnum
GetSqlJobOperationTypeEnumValues Enumerates the set of values for SqlJobOperationTypeEnum
SqlJobRoleEnum Enum with underlying type: string
type SqlJobRoleEnum string
Set of constants representing the allowable values for SqlJobRoleEnum
const ( SqlJobRoleNormal SqlJobRoleEnum = "NORMAL" SqlJobRoleSysdba SqlJobRoleEnum = "SYSDBA" )
func GetSqlJobRoleEnumValues() []SqlJobRoleEnum
GetSqlJobRoleEnumValues Enumerates the set of values for SqlJobRoleEnum
SqlJobSqlTypeEnum Enum with underlying type: string
type SqlJobSqlTypeEnum string
Set of constants representing the allowable values for SqlJobSqlTypeEnum
const ( SqlJobSqlTypeQuery SqlJobSqlTypeEnum = "QUERY" SqlJobSqlTypeDml SqlJobSqlTypeEnum = "DML" SqlJobSqlTypeDdl SqlJobSqlTypeEnum = "DDL" SqlJobSqlTypePlsql SqlJobSqlTypeEnum = "PLSQL" )
func GetSqlJobSqlTypeEnumValues() []SqlJobSqlTypeEnum
GetSqlJobSqlTypeEnumValues Enumerates the set of values for SqlJobSqlTypeEnum
UpdateManagedDatabaseGroupDetails The details required to update a Managed Database Group.
type UpdateManagedDatabaseGroupDetails struct { // The information specified by the user about the Managed Database Group. Description *string `mandatory:"false" json:"description"` }
func (m UpdateManagedDatabaseGroupDetails) String() string
UpdateManagedDatabaseGroupRequest wrapper for the UpdateManagedDatabaseGroup operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/databasemanagement/UpdateManagedDatabaseGroup.go.html to see an example of how to use UpdateManagedDatabaseGroupRequest.
type UpdateManagedDatabaseGroupRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database Group. ManagedDatabaseGroupId *string `mandatory:"true" contributesTo:"path" name:"managedDatabaseGroupId"` // The details required to update a Managed Database Group. UpdateManagedDatabaseGroupDetails `contributesTo:"body"` // For optimistic concurrency control. In the PUT or DELETE call // for a resource, set the `if-match` parameter to the value of the // etag from a previous GET or POST response for that resource. // The resource will be updated or deleted only if the etag you // provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request UpdateManagedDatabaseGroupRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request UpdateManagedDatabaseGroupRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateManagedDatabaseGroupRequest) String() string
UpdateManagedDatabaseGroupResponse wrapper for the UpdateManagedDatabaseGroup operation
type UpdateManagedDatabaseGroupResponse struct { // The underlying http response RawResponse *http.Response // The ManagedDatabaseGroup instance ManagedDatabaseGroup `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 UpdateManagedDatabaseGroupResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response UpdateManagedDatabaseGroupResponse) String() string