AggregatedDatapoint A timestamp-value pair returned for the specified request.
type AggregatedDatapoint struct { // The date and time associated with the value of this data point. Format defined by RFC3339. // Example: `2019-02-01T01:02:29.600Z` Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` // Numeric value of the metric. // Example: `10.4` Value *float64 `mandatory:"true" json:"value"` }
func (m AggregatedDatapoint) String() string
Alarm The properties that define an alarm. For information about alarms, see Alarms Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#AlarmsOverview). To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). For information about endpoints and signing API requests, see About the API (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm). For information about available SDKs and tools, see SDKS and Other Tools (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/sdks.htm).
type Alarm struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm. Id *string `mandatory:"true" json:"id"` // A user-friendly name for the alarm. It does not have to be unique, and it's changeable. // Avoid entering confidential information. // This name is sent as the title for notifications related to this alarm. // Example: `High CPU Utilization` DisplayName *string `mandatory:"true" json:"displayName"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the alarm. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the metric // being evaluated by the alarm. MetricCompartmentId *string `mandatory:"true" json:"metricCompartmentId"` // The source service or application emitting the metric that is evaluated by the alarm. // Example: `oci_computeagent` Namespace *string `mandatory:"true" json:"namespace"` // The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of // the Monitoring service interprets results for each returned time series as Boolean values, // where zero represents false and a non-zero value represents true. A true value means that the trigger // rule condition has been met. The query must specify a metric, statistic, interval, and trigger // rule (threshold or absence). Supported values for interval: `1m`-`60m` (also `1h`). You can optionally // specify dimensions and grouping functions. Supported grouping functions: `grouping()`, `groupBy()`. // For details about Monitoring Query Language (MQL), see Monitoring Query Language (MQL) Reference (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Reference/mql.htm). // For available dimensions, review the metric definition for the supported service. // See Supported Services (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#SupportedServices). // Example of threshold alarm: // ----- // CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.groupBy(availabilityDomain).percentile(0.9) > 85 // ----- // Example of absence alarm: // ----- // CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent() // ----- Query *string `mandatory:"true" json:"query"` // The perceived type of response required when the alarm is in the "FIRING" state. // Example: `CRITICAL` Severity AlarmSeverityEnum `mandatory:"true" json:"severity"` // A list of destinations to which the notifications for this alarm will be delivered. // Each destination is represented by an OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) related to the supported destination service. // For example, a destination using the Notifications service is represented by a topic OCID. // Supported destination services: Notifications Service. Limit: One destination per supported destination service. Destinations []string `mandatory:"true" json:"destinations"` // Whether the alarm is enabled. // Example: `true` IsEnabled *bool `mandatory:"true" json:"isEnabled"` // The current lifecycle state of the alarm. // Example: `DELETED` LifecycleState AlarmLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // The date and time the alarm was created. Format defined by RFC3339. // Example: `2019-02-01T01:02:29.600Z` TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The date and time the alarm was last updated. Format defined by RFC3339. // Example: `2019-02-03T01:02:29.600Z` TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` // When true, the alarm evaluates metrics from all compartments and subcompartments. The parameter can // only be set to true when metricCompartmentId is the tenancy OCID (the tenancy is the root compartment). // A true value requires the user to have tenancy-level permissions. If this requirement is not met, // then the call is rejected. When false, the alarm evaluates metrics from only the compartment specified // in metricCompartmentId. Default is false. // Example: `true` MetricCompartmentIdInSubtree *bool `mandatory:"false" json:"metricCompartmentIdInSubtree"` // Resource group specified as a filter for metric data retrieved by the alarm. A resource group is a custom string that can be used as a filter. Only one resource group can be applied per metric. // A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($). // Avoid entering confidential information. // Example: `frontend-fleet` ResourceGroup *string `mandatory:"false" json:"resourceGroup"` // The time between calculated aggregation windows for the alarm. Supported value: `1m` Resolution *string `mandatory:"false" json:"resolution"` // The period of time that the condition defined in the alarm must persist before the alarm state // changes from "OK" to "FIRING". For example, a value of 5 minutes means that the // alarm must persist in breaching the condition for five minutes before the alarm updates its // state to "FIRING". // The duration is specified as a string in ISO 8601 format (`PT10M` for ten minutes or `PT1H` // for one hour). Minimum: PT1M. Maximum: PT1H. Default: PT1M. // Under the default value of PT1M, the first evaluation that breaches the alarm updates the // state to "FIRING". // The alarm updates its status to "OK" when the breaching condition has been clear for // the most recent minute. // Example: `PT5M` PendingDuration *string `mandatory:"false" json:"pendingDuration"` // The human-readable content of the notification delivered. Oracle recommends providing guidance // to operators for resolving the alarm condition. Consider adding links to standard runbook // practices. Avoid entering confidential information. // Example: `High CPU usage alert. Follow runbook instructions for resolution.` Body *string `mandatory:"false" json:"body"` // The frequency at which notifications are re-submitted, if the alarm keeps firing without // interruption. Format defined by ISO 8601. For example, `PT4H` indicates four hours. // Minimum: PT1M. Maximum: P30D. // Default value: null (notifications are not re-submitted). // Example: `PT2H` RepeatNotificationDuration *string `mandatory:"false" json:"repeatNotificationDuration"` // The configuration details for suppressing an alarm. Suppression *Suppression `mandatory:"false" json:"suppression"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Usage of predefined tag keys. These predefined keys are scoped to namespaces. // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
func (m Alarm) String() string
AlarmHistoryCollection The configuration details for retrieving alarm history.
type AlarmHistoryCollection struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm for which to retrieve history. AlarmId *string `mandatory:"true" json:"alarmId"` // Whether the alarm is enabled. // Example: `true` IsEnabled *bool `mandatory:"true" json:"isEnabled"` // The set of history entries retrieved for the alarm. Entries []AlarmHistoryEntry `mandatory:"true" json:"entries"` }
func (m AlarmHistoryCollection) String() string
AlarmHistoryEntry An alarm history entry indicating a description of the entry and the time that the entry occurred. If the entry corresponds to a state transition, such as OK to Firing, then the entry also includes a transition timestamp.
type AlarmHistoryEntry struct { // Description for this alarm history entry. Avoid entering confidential information. // Example 1 - alarm state history entry: `The alarm state is FIRING` // Example 2 - alarm state transition history entry: `State transitioned from OK to Firing` Summary *string `mandatory:"true" json:"summary"` // Timestamp for this alarm history entry. Format defined by RFC3339. // Example: `2019-02-01T01:02:29.600Z` Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` // Timestamp for the transition of the alarm state. For example, the time when the alarm transitioned from OK to Firing. // Available for state transition entries only. Note: A three-minute lag for this value accounts for any late-arriving metrics. // Example: `2019-02-01T0:59:00.789Z` TimestampTriggered *common.SDKTime `mandatory:"false" json:"timestampTriggered"` }
func (m AlarmHistoryEntry) String() string
AlarmLifecycleStateEnum Enum with underlying type: string
type AlarmLifecycleStateEnum string
Set of constants representing the allowable values for AlarmLifecycleStateEnum
const ( AlarmLifecycleStateActive AlarmLifecycleStateEnum = "ACTIVE" AlarmLifecycleStateDeleting AlarmLifecycleStateEnum = "DELETING" AlarmLifecycleStateDeleted AlarmLifecycleStateEnum = "DELETED" )
func GetAlarmLifecycleStateEnumValues() []AlarmLifecycleStateEnum
GetAlarmLifecycleStateEnumValues Enumerates the set of values for AlarmLifecycleStateEnum
AlarmSeverityEnum Enum with underlying type: string
type AlarmSeverityEnum string
Set of constants representing the allowable values for AlarmSeverityEnum
const ( AlarmSeverityCritical AlarmSeverityEnum = "CRITICAL" AlarmSeverityError AlarmSeverityEnum = "ERROR" AlarmSeverityWarning AlarmSeverityEnum = "WARNING" AlarmSeverityInfo AlarmSeverityEnum = "INFO" )
func GetAlarmSeverityEnumValues() []AlarmSeverityEnum
GetAlarmSeverityEnumValues Enumerates the set of values for AlarmSeverityEnum
AlarmStatusSummary A summary of properties for the specified alarm and its current evaluation status. For information about alarms, see Alarms Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#AlarmsOverview). To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). For information about endpoints and signing API requests, see About the API (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm). For information about available SDKs and tools, see SDKS and Other Tools (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/sdks.htm).
type AlarmStatusSummary struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm. Id *string `mandatory:"true" json:"id"` // The configured name of the alarm. // Example: `High CPU Utilization` DisplayName *string `mandatory:"true" json:"displayName"` // The configured severity of the alarm. // Example: `CRITICAL` Severity AlarmStatusSummarySeverityEnum `mandatory:"true" json:"severity"` // Timestamp for the transition of the alarm state. For example, the time when the alarm transitioned from OK to Firing. // Example: `2019-02-01T01:02:29.600Z` TimestampTriggered *common.SDKTime `mandatory:"true" json:"timestampTriggered"` // The status of this alarm. // Example: `FIRING` Status AlarmStatusSummaryStatusEnum `mandatory:"true" json:"status"` // The configuration details for suppressing an alarm. Suppression *Suppression `mandatory:"false" json:"suppression"` }
func (m AlarmStatusSummary) String() string
AlarmStatusSummarySeverityEnum Enum with underlying type: string
type AlarmStatusSummarySeverityEnum string
Set of constants representing the allowable values for AlarmStatusSummarySeverityEnum
const ( AlarmStatusSummarySeverityCritical AlarmStatusSummarySeverityEnum = "CRITICAL" AlarmStatusSummarySeverityError AlarmStatusSummarySeverityEnum = "ERROR" AlarmStatusSummarySeverityWarning AlarmStatusSummarySeverityEnum = "WARNING" AlarmStatusSummarySeverityInfo AlarmStatusSummarySeverityEnum = "INFO" )
func GetAlarmStatusSummarySeverityEnumValues() []AlarmStatusSummarySeverityEnum
GetAlarmStatusSummarySeverityEnumValues Enumerates the set of values for AlarmStatusSummarySeverityEnum
AlarmStatusSummaryStatusEnum Enum with underlying type: string
type AlarmStatusSummaryStatusEnum string
Set of constants representing the allowable values for AlarmStatusSummaryStatusEnum
const ( AlarmStatusSummaryStatusFiring AlarmStatusSummaryStatusEnum = "FIRING" AlarmStatusSummaryStatusOk AlarmStatusSummaryStatusEnum = "OK" AlarmStatusSummaryStatusSuspended AlarmStatusSummaryStatusEnum = "SUSPENDED" )
func GetAlarmStatusSummaryStatusEnumValues() []AlarmStatusSummaryStatusEnum
GetAlarmStatusSummaryStatusEnumValues Enumerates the set of values for AlarmStatusSummaryStatusEnum
AlarmSummary A summary of properties for the specified alarm. For information about alarms, see Alarms Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#AlarmsOverview). To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). For information about endpoints and signing API requests, see About the API (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm). For information about available SDKs and tools, see SDKS and Other Tools (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/sdks.htm).
type AlarmSummary struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm. Id *string `mandatory:"true" json:"id"` // A user-friendly name for the alarm. It does not have to be unique, and it's changeable. // Avoid entering confidential information. // This name is sent as the title for notifications related to this alarm. // Example: `High CPU Utilization` DisplayName *string `mandatory:"true" json:"displayName"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the alarm. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the metric // being evaluated by the alarm. MetricCompartmentId *string `mandatory:"true" json:"metricCompartmentId"` // The source service or application emitting the metric that is evaluated by the alarm. // Example: `oci_computeagent` Namespace *string `mandatory:"true" json:"namespace"` // The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of // the Monitoring service interprets results for each returned time series as Boolean values, // where zero represents false and a non-zero value represents true. A true value means that the trigger // rule condition has been met. The query must specify a metric, statistic, interval, and trigger // rule (threshold or absence). Supported values for interval: `1m`-`60m` (also `1h`). You can optionally // specify dimensions and grouping functions. Supported grouping functions: `grouping()`, `groupBy()`. // For details about Monitoring Query Language (MQL), see Monitoring Query Language (MQL) Reference (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Reference/mql.htm). // For available dimensions, review the metric definition for the supported service. // See Supported Services (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#SupportedServices). // Example of threshold alarm: // ----- // CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.groupBy(availabilityDomain).percentile(0.9) > 85 // ----- // Example of absence alarm: // ----- // CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent() // ----- Query *string `mandatory:"true" json:"query"` // The perceived severity of the alarm with regard to the affected system. // Example: `CRITICAL` Severity AlarmSummarySeverityEnum `mandatory:"true" json:"severity"` // A list of destinations to which the notifications for this alarm will be delivered. // Each destination is represented by an OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) related to the supported destination service. // For example, a destination using the Notifications service is represented by a topic OCID. // Supported destination services: Notifications Service. Limit: One destination per supported destination service. Destinations []string `mandatory:"true" json:"destinations"` // Whether the alarm is enabled. // Example: `true` IsEnabled *bool `mandatory:"true" json:"isEnabled"` // The current lifecycle state of the alarm. // Example: `DELETED` LifecycleState AlarmLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // The configuration details for suppressing an alarm. Suppression *Suppression `mandatory:"false" json:"suppression"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Usage of predefined tag keys. These predefined keys are scoped to namespaces. // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
func (m AlarmSummary) String() string
AlarmSummarySeverityEnum Enum with underlying type: string
type AlarmSummarySeverityEnum string
Set of constants representing the allowable values for AlarmSummarySeverityEnum
const ( AlarmSummarySeverityCritical AlarmSummarySeverityEnum = "CRITICAL" AlarmSummarySeverityError AlarmSummarySeverityEnum = "ERROR" AlarmSummarySeverityWarning AlarmSummarySeverityEnum = "WARNING" AlarmSummarySeverityInfo AlarmSummarySeverityEnum = "INFO" )
func GetAlarmSummarySeverityEnumValues() []AlarmSummarySeverityEnum
GetAlarmSummarySeverityEnumValues Enumerates the set of values for AlarmSummarySeverityEnum
ChangeAlarmCompartmentDetails The configuration details for moving an alarm.
type ChangeAlarmCompartmentDetails struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the alarm to. CompartmentId *string `mandatory:"true" json:"compartmentId"` }
func (m ChangeAlarmCompartmentDetails) String() string
ChangeAlarmCompartmentRequest wrapper for the ChangeAlarmCompartment operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/monitoring/ChangeAlarmCompartment.go.html to see an example of how to use ChangeAlarmCompartmentRequest.
type ChangeAlarmCompartmentRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an alarm. AlarmId *string `mandatory:"true" contributesTo:"path" name:"alarmId"` // The configuration details for moving an alarm. ChangeAlarmCompartmentDetails `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"` // Customer part of the request identifier token. If you need to contact Oracle about a particular // request, please provide the complete request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A token that uniquely identifies a request so it can be retried in case of a timeout or // server error without risk of executing that same action again. Retry tokens expire after 24 // hours, but can be invalidated before then due to conflicting operations. For example, if a resource // has been deleted and purged from the system, then a retry of the original creation request // might be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ChangeAlarmCompartmentRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ChangeAlarmCompartmentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ChangeAlarmCompartmentRequest) String() string
ChangeAlarmCompartmentResponse wrapper for the ChangeAlarmCompartment operation
type ChangeAlarmCompartmentResponse 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 ChangeAlarmCompartmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ChangeAlarmCompartmentResponse) String() string
CreateAlarmDetails The configuration details for creating an alarm. **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
type CreateAlarmDetails struct { // A user-friendly name for the alarm. It does not have to be unique, and it's changeable. // Avoid entering confidential information. // This name is sent as the title for notifications related to this alarm. // Example: `High CPU Utilization` DisplayName *string `mandatory:"true" json:"displayName"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the alarm. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the metric // being evaluated by the alarm. MetricCompartmentId *string `mandatory:"true" json:"metricCompartmentId"` // The source service or application emitting the metric that is evaluated by the alarm. // Example: `oci_computeagent` Namespace *string `mandatory:"true" json:"namespace"` // The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of // the Monitoring service interprets results for each returned time series as Boolean values, // where zero represents false and a non-zero value represents true. A true value means that the trigger // rule condition has been met. The query must specify a metric, statistic, interval, and trigger // rule (threshold or absence). Supported values for interval: `1m`-`60m` (also `1h`). You can optionally // specify dimensions and grouping functions. Supported grouping functions: `grouping()`, `groupBy()`. // For details about Monitoring Query Language (MQL), see Monitoring Query Language (MQL) Reference (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Reference/mql.htm). // For available dimensions, review the metric definition for the supported service. // See Supported Services (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#SupportedServices). // Example of threshold alarm: // ----- // CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.groupBy(availabilityDomain).percentile(0.9) > 85 // ----- // Example of absence alarm: // ----- // CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent() // ----- Query *string `mandatory:"true" json:"query"` // The perceived type of response required when the alarm is in the "FIRING" state. // Example: `CRITICAL` Severity AlarmSeverityEnum `mandatory:"true" json:"severity"` // A list of destinations to which the notifications for this alarm will be delivered. // Each destination is represented by an OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) related to the supported destination service. // For example, a destination using the Notifications service is represented by a topic OCID. // Supported destination services: Notifications Service. Limit: One destination per supported destination service. Destinations []string `mandatory:"true" json:"destinations"` // Whether the alarm is enabled. // Example: `true` IsEnabled *bool `mandatory:"true" json:"isEnabled"` // When true, the alarm evaluates metrics from all compartments and subcompartments. The parameter can // only be set to true when metricCompartmentId is the tenancy OCID (the tenancy is the root compartment). // A true value requires the user to have tenancy-level permissions. If this requirement is not met, // then the call is rejected. When false, the alarm evaluates metrics from only the compartment specified // in metricCompartmentId. Default is false. // Example: `true` MetricCompartmentIdInSubtree *bool `mandatory:"false" json:"metricCompartmentIdInSubtree"` // Resource group that you want to use as a filter. The alarm retrieves metric data associated with the specified resource group only. Only one resource group can be applied per metric. // A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($). // Avoid entering confidential information. // Example: `frontend-fleet` ResourceGroup *string `mandatory:"false" json:"resourceGroup"` // The time between calculated aggregation windows for the alarm. Supported value: `1m` Resolution *string `mandatory:"false" json:"resolution"` // The period of time that the condition defined in the alarm must persist before the alarm state // changes from "OK" to "FIRING". For example, a value of 5 minutes means that the // alarm must persist in breaching the condition for five minutes before the alarm updates its // state to "FIRING". // The duration is specified as a string in ISO 8601 format (`PT10M` for ten minutes or `PT1H` // for one hour). Minimum: PT1M. Maximum: PT1H. Default: PT1M. // Under the default value of PT1M, the first evaluation that breaches the alarm updates the // state to "FIRING". // The alarm updates its status to "OK" when the breaching condition has been clear for // the most recent minute. // Example: `PT5M` PendingDuration *string `mandatory:"false" json:"pendingDuration"` // The human-readable content of the notification delivered. Oracle recommends providing guidance // to operators for resolving the alarm condition. Consider adding links to standard runbook // practices. Avoid entering confidential information. // Example: `High CPU usage alert. Follow runbook instructions for resolution.` Body *string `mandatory:"false" json:"body"` // The frequency at which notifications are re-submitted, if the alarm keeps firing without // interruption. Format defined by ISO 8601. For example, `PT4H` indicates four hours. // Minimum: PT1M. Maximum: P30D. // Default value: null (notifications are not re-submitted). // Example: `PT2H` RepeatNotificationDuration *string `mandatory:"false" json:"repeatNotificationDuration"` // The configuration details for suppressing an alarm. Suppression *Suppression `mandatory:"false" json:"suppression"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Usage of predefined tag keys. These predefined keys are scoped to namespaces. // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
func (m CreateAlarmDetails) String() string
CreateAlarmRequest wrapper for the CreateAlarm operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/monitoring/CreateAlarm.go.html to see an example of how to use CreateAlarmRequest.
type CreateAlarmRequest struct { // Document for creating an alarm. CreateAlarmDetails `contributesTo:"body"` // Customer part of the request identifier token. If you need to contact Oracle about a particular // request, please provide the complete request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A token that uniquely identifies a request so it can be retried in case of a timeout or // server error without risk of executing that same action again. Retry tokens expire after 24 // hours, but can be invalidated before then due to conflicting operations. For example, if a resource // has been deleted and purged from the system, then a retry of the original creation request // might be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request CreateAlarmRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateAlarmRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateAlarmRequest) String() string
CreateAlarmResponse wrapper for the CreateAlarm operation
type CreateAlarmResponse struct { // The underlying http response RawResponse *http.Response // The Alarm instance Alarm `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about // a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response CreateAlarmResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateAlarmResponse) String() string
Datapoint Metric value for a specific timestamp.
type Datapoint struct { // Timestamp for this metric value. Format defined by RFC3339. // Example: `2019-02-01T01:02:29.600Z` Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` // Numeric value of the metric. // Example: `10.23` Value *float64 `mandatory:"true" json:"value"` // The number of occurrences of the associated value in the set of data. // Default is 1. Value must be greater than zero. Count *int `mandatory:"false" json:"count"` }
func (m Datapoint) String() string
DeleteAlarmRequest wrapper for the DeleteAlarm operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/monitoring/DeleteAlarm.go.html to see an example of how to use DeleteAlarmRequest.
type DeleteAlarmRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an alarm. AlarmId *string `mandatory:"true" contributesTo:"path" name:"alarmId"` // 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"` // Customer part of the request identifier token. If you need to contact Oracle about a particular // request, please provide the complete request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request DeleteAlarmRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteAlarmRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteAlarmRequest) String() string
DeleteAlarmResponse wrapper for the DeleteAlarm operation
type DeleteAlarmResponse 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 DeleteAlarmResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteAlarmResponse) String() string
FailedMetricRecord The record of a single metric object that failed input validation and the reason for the failure.
type FailedMetricRecord struct { // An error message indicating the reason that the indicated metric object failed input validation. Message *string `mandatory:"true" json:"message"` // Identifier of a metric object that failed input validation. MetricData *MetricDataDetails `mandatory:"true" json:"metricData"` }
func (m FailedMetricRecord) String() string
GetAlarmHistoryAlarmHistorytypeEnum Enum with underlying type: string
type GetAlarmHistoryAlarmHistorytypeEnum string
Set of constants representing the allowable values for GetAlarmHistoryAlarmHistorytypeEnum
const ( GetAlarmHistoryAlarmHistorytypeHistory GetAlarmHistoryAlarmHistorytypeEnum = "STATE_HISTORY" GetAlarmHistoryAlarmHistorytypeTransitionHistory GetAlarmHistoryAlarmHistorytypeEnum = "STATE_TRANSITION_HISTORY" )
func GetGetAlarmHistoryAlarmHistorytypeEnumValues() []GetAlarmHistoryAlarmHistorytypeEnum
GetGetAlarmHistoryAlarmHistorytypeEnumValues Enumerates the set of values for GetAlarmHistoryAlarmHistorytypeEnum
GetAlarmHistoryRequest wrapper for the GetAlarmHistory operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/monitoring/GetAlarmHistory.go.html to see an example of how to use GetAlarmHistoryRequest.
type GetAlarmHistoryRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an alarm. AlarmId *string `mandatory:"true" contributesTo:"path" name:"alarmId"` // Customer part of the request identifier token. If you need to contact Oracle about a particular // request, please provide the complete request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The type of history entries to retrieve. State history (STATE_HISTORY) or state transition history (STATE_TRANSITION_HISTORY). // If not specified, entries of both types are retrieved. // Example: `STATE_HISTORY` AlarmHistorytype GetAlarmHistoryAlarmHistorytypeEnum `mandatory:"false" contributesTo:"query" name:"alarmHistorytype" omitEmpty:"true"` // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). // Default: 1000 // Example: 500 Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // A filter to return only alarm history entries with timestamps occurring on or after the specified date and time. Format defined by RFC3339. // Example: `2019-01-01T01:00:00.789Z` TimestampGreaterThanOrEqualTo *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timestampGreaterThanOrEqualTo"` // A filter to return only alarm history entries with timestamps occurring before the specified date and time. Format defined by RFC3339. // Example: `2019-01-02T01:00:00.789Z` TimestampLessThan *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timestampLessThan"` // 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 GetAlarmHistoryRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetAlarmHistoryRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetAlarmHistoryRequest) String() string
GetAlarmHistoryResponse wrapper for the GetAlarmHistory operation
type GetAlarmHistoryResponse struct { // The underlying http response RawResponse *http.Response // A list of AlarmHistoryCollection instances AlarmHistoryCollection `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about // a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For list pagination. When this header appears in the response, additional pages of results remain. // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response GetAlarmHistoryResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetAlarmHistoryResponse) String() string
GetAlarmRequest wrapper for the GetAlarm operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/monitoring/GetAlarm.go.html to see an example of how to use GetAlarmRequest.
type GetAlarmRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an alarm. AlarmId *string `mandatory:"true" contributesTo:"path" name:"alarmId"` // Customer part of the request identifier token. If you need to contact Oracle about a particular // request, please provide the complete request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetAlarmRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetAlarmRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetAlarmRequest) String() string
GetAlarmResponse wrapper for the GetAlarm operation
type GetAlarmResponse struct { // The underlying http response RawResponse *http.Response // The Alarm instance Alarm `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about // a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetAlarmResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetAlarmResponse) String() string
ListAlarmsRequest wrapper for the ListAlarms operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/monitoring/ListAlarms.go.html to see an example of how to use ListAlarmsRequest.
type ListAlarmsRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the // resources monitored by the metric that you are searching for. Use tenancyId to search in // the root compartment. // Example: `ocid1.compartment.oc1..exampleuniqueID` CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // Customer part of the request identifier token. If you need to contact Oracle about a particular // request, please provide the complete request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). // Default: 1000 // Example: 500 Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // A filter to return only resources that match the given display name exactly. // Use this filter to list an alarm by name. Alternatively, when you know the alarm OCID, use the GetAlarm operation. DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` // A filter to return only alarms that match the given lifecycle state exactly. When not specified, only alarms in the ACTIVE lifecycle state are listed. LifecycleState AlarmLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` // The field to use when sorting returned alarm definitions. Only one sorting level is provided. // Example: `severity` SortBy ListAlarmsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The sort order to use when sorting returned alarm definitions. Ascending (ASC) or descending (DESC). // Example: `ASC` SortOrder ListAlarmsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // When true, returns resources from all compartments and subcompartments. The parameter can // only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). // A true value requires the user to have tenancy-level permissions. If this requirement is not met, // then the call is rejected. When false, returns resources from only the compartment specified in // compartmentId. Default is false. CompartmentIdInSubtree *bool `mandatory:"false" contributesTo:"query" name:"compartmentIdInSubtree"` // 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 ListAlarmsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListAlarmsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListAlarmsRequest) String() string
ListAlarmsResponse wrapper for the ListAlarms operation
type ListAlarmsResponse struct { // The underlying http response RawResponse *http.Response // A list of []AlarmSummary instances Items []AlarmSummary `presentIn:"body"` // For list pagination. When this header appears in the response, additional pages of results remain. // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about // a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ListAlarmsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListAlarmsResponse) String() string
ListAlarmsSortByEnum Enum with underlying type: string
type ListAlarmsSortByEnum string
Set of constants representing the allowable values for ListAlarmsSortByEnum
const ( ListAlarmsSortByDisplayname ListAlarmsSortByEnum = "displayName" ListAlarmsSortBySeverity ListAlarmsSortByEnum = "severity" )
func GetListAlarmsSortByEnumValues() []ListAlarmsSortByEnum
GetListAlarmsSortByEnumValues Enumerates the set of values for ListAlarmsSortByEnum
ListAlarmsSortOrderEnum Enum with underlying type: string
type ListAlarmsSortOrderEnum string
Set of constants representing the allowable values for ListAlarmsSortOrderEnum
const ( ListAlarmsSortOrderAsc ListAlarmsSortOrderEnum = "ASC" ListAlarmsSortOrderDesc ListAlarmsSortOrderEnum = "DESC" )
func GetListAlarmsSortOrderEnumValues() []ListAlarmsSortOrderEnum
GetListAlarmsSortOrderEnumValues Enumerates the set of values for ListAlarmsSortOrderEnum
ListAlarmsStatusRequest wrapper for the ListAlarmsStatus operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/monitoring/ListAlarmsStatus.go.html to see an example of how to use ListAlarmsStatusRequest.
type ListAlarmsStatusRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the // resources monitored by the metric that you are searching for. Use tenancyId to search in // the root compartment. // Example: `ocid1.compartment.oc1..exampleuniqueID` CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // Customer part of the request identifier token. If you need to contact Oracle about a particular // request, please provide the complete request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // When true, returns resources from all compartments and subcompartments. The parameter can // only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). // A true value requires the user to have tenancy-level permissions. If this requirement is not met, // then the call is rejected. When false, returns resources from only the compartment specified in // compartmentId. Default is false. CompartmentIdInSubtree *bool `mandatory:"false" contributesTo:"query" name:"compartmentIdInSubtree"` // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). // Default: 1000 // Example: 500 Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // A filter to return only resources that match the given display name exactly. // Use this filter to list an alarm by name. Alternatively, when you know the alarm OCID, use the GetAlarm operation. DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` // The field to use when sorting returned alarm definitions. Only one sorting level is provided. // Example: `severity` SortBy ListAlarmsStatusSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The sort order to use when sorting returned alarm definitions. Ascending (ASC) or descending (DESC). // Example: `ASC` SortOrder ListAlarmsStatusSortOrderEnum `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 ListAlarmsStatusRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListAlarmsStatusRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListAlarmsStatusRequest) String() string
ListAlarmsStatusResponse wrapper for the ListAlarmsStatus operation
type ListAlarmsStatusResponse struct { // The underlying http response RawResponse *http.Response // A list of []AlarmStatusSummary instances Items []AlarmStatusSummary `presentIn:"body"` // For list pagination. When this header appears in the response, additional pages of results remain. // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about // a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ListAlarmsStatusResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListAlarmsStatusResponse) String() string
ListAlarmsStatusSortByEnum Enum with underlying type: string
type ListAlarmsStatusSortByEnum string
Set of constants representing the allowable values for ListAlarmsStatusSortByEnum
const ( ListAlarmsStatusSortByDisplayname ListAlarmsStatusSortByEnum = "displayName" ListAlarmsStatusSortBySeverity ListAlarmsStatusSortByEnum = "severity" )
func GetListAlarmsStatusSortByEnumValues() []ListAlarmsStatusSortByEnum
GetListAlarmsStatusSortByEnumValues Enumerates the set of values for ListAlarmsStatusSortByEnum
ListAlarmsStatusSortOrderEnum Enum with underlying type: string
type ListAlarmsStatusSortOrderEnum string
Set of constants representing the allowable values for ListAlarmsStatusSortOrderEnum
const ( ListAlarmsStatusSortOrderAsc ListAlarmsStatusSortOrderEnum = "ASC" ListAlarmsStatusSortOrderDesc ListAlarmsStatusSortOrderEnum = "DESC" )
func GetListAlarmsStatusSortOrderEnumValues() []ListAlarmsStatusSortOrderEnum
GetListAlarmsStatusSortOrderEnumValues Enumerates the set of values for ListAlarmsStatusSortOrderEnum
ListMetricsDetails The request details for retrieving metric definitions. Specify optional properties to filter the returned results. Use an asterisk (*) as a wildcard character, placed anywhere in the string. For example, to search for all metrics with names that begin with "disk", specify "name" as "disk*". If no properties are specified, then all metric definitions within the request scope are returned.
type ListMetricsDetails struct { // The metric name to use when searching for metric definitions. // Example: `CpuUtilization` Name *string `mandatory:"false" json:"name"` // The source service or application to use when searching for metric definitions. // Example: `oci_computeagent` Namespace *string `mandatory:"false" json:"namespace"` // Resource group that you want to use as a filter. The specified resource group must exist in the definition of the posted metric. Only one resource group can be applied per metric. // A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($). // Avoid entering confidential information. // Example: `frontend-fleet` ResourceGroup *string `mandatory:"false" json:"resourceGroup"` // Qualifiers that you want to use when searching for metric definitions. // Available dimensions vary by metric namespace. Each dimension takes the form of a key-value pair. // Example: { "resourceId": "<var><instance_OCID></var>" } DimensionFilters map[string]string `mandatory:"false" json:"dimensionFilters"` // Group metrics by these fields in the response. For example, to list all metric namespaces available // in a compartment, groupBy the "namespace" field. Supported fields: namespace, name, resourceGroup. // Example - group by namespace: // `[ "namespace" ]` GroupBy []string `mandatory:"false" json:"groupBy"` // The field to use when sorting returned metric definitions. Only one sorting level is provided. // Example: `NAMESPACE` SortBy ListMetricsDetailsSortByEnum `mandatory:"false" json:"sortBy,omitempty"` // The sort order to use when sorting returned metric definitions. Ascending (ASC) or // descending (DESC). // Example: `ASC` SortOrder ListMetricsDetailsSortOrderEnum `mandatory:"false" json:"sortOrder,omitempty"` }
func (m ListMetricsDetails) String() string
ListMetricsDetailsSortByEnum Enum with underlying type: string
type ListMetricsDetailsSortByEnum string
Set of constants representing the allowable values for ListMetricsDetailsSortByEnum
const ( ListMetricsDetailsSortByNamespace ListMetricsDetailsSortByEnum = "NAMESPACE" ListMetricsDetailsSortByName ListMetricsDetailsSortByEnum = "NAME" ListMetricsDetailsSortByResourcegroup ListMetricsDetailsSortByEnum = "RESOURCEGROUP" )
func GetListMetricsDetailsSortByEnumValues() []ListMetricsDetailsSortByEnum
GetListMetricsDetailsSortByEnumValues Enumerates the set of values for ListMetricsDetailsSortByEnum
ListMetricsDetailsSortOrderEnum Enum with underlying type: string
type ListMetricsDetailsSortOrderEnum string
Set of constants representing the allowable values for ListMetricsDetailsSortOrderEnum
const ( ListMetricsDetailsSortOrderAsc ListMetricsDetailsSortOrderEnum = "ASC" ListMetricsDetailsSortOrderDesc ListMetricsDetailsSortOrderEnum = "DESC" )
func GetListMetricsDetailsSortOrderEnumValues() []ListMetricsDetailsSortOrderEnum
GetListMetricsDetailsSortOrderEnumValues Enumerates the set of values for ListMetricsDetailsSortOrderEnum
ListMetricsRequest wrapper for the ListMetrics operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/monitoring/ListMetrics.go.html to see an example of how to use ListMetricsRequest.
type ListMetricsRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the // resources monitored by the metric that you are searching for. Use tenancyId to search in // the root compartment. // Example: `ocid1.compartment.oc1..exampleuniqueID` CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The dimensions used to filter metrics. ListMetricsDetails `contributesTo:"body"` // Customer part of the request identifier token. If you need to contact Oracle about a particular // request, please provide the complete request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). // Default: 1000 // Example: 500 Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // When true, returns resources from all compartments and subcompartments. The parameter can // only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). // A true value requires the user to have tenancy-level permissions. If this requirement is not met, // then the call is rejected. When false, returns resources from only the compartment specified in // compartmentId. Default is false. CompartmentIdInSubtree *bool `mandatory:"false" contributesTo:"query" name:"compartmentIdInSubtree"` // 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 ListMetricsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListMetricsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListMetricsRequest) String() string
ListMetricsResponse wrapper for the ListMetrics operation
type ListMetricsResponse struct { // The underlying http response RawResponse *http.Response // A list of []Metric instances Items []Metric `presentIn:"body"` // For list pagination. When this header appears in the response, additional pages of results remain. // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about // a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ListMetricsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListMetricsResponse) String() string
Metric The properties that define a metric. For information about metrics, see Metrics Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#MetricsOverview).
type Metric struct { // The name of the metric. // Example: `CpuUtilization` Name *string `mandatory:"false" json:"name"` // The source service or application emitting the metric. // Example: `oci_computeagent` Namespace *string `mandatory:"false" json:"namespace"` // Resource group provided with the posted metric. A resource group is a custom string that can be used as a filter. Only one resource group can be applied per metric. // A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($). // Avoid entering confidential information. // Example: `frontend-fleet` ResourceGroup *string `mandatory:"false" json:"resourceGroup"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing // the resources monitored by the metric. CompartmentId *string `mandatory:"false" json:"compartmentId"` // Qualifiers provided in a metric definition. Available dimensions vary by metric namespace. // Each dimension takes the form of a key-value pair. // Example: `"resourceId": "ocid1.instance.region1.phx.exampleuniqueID"` Dimensions map[string]string `mandatory:"false" json:"dimensions"` }
func (m Metric) String() string
MetricData The set of aggregated data returned for a metric. For information about metrics, see Metrics Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#MetricsOverview). Limits information for returned data follows. * Data points: 100,000. * Metric streams* within data points: 2,000. * Time range returned for 1-hour resolution: 90 days. * Time range returned for 5-minute resolution: 30 days. * Time range returned for any other resolution: 7 days. *A metric stream is an individual set of aggregated data for a metric, typically specific to a single resource. Metric streams cannot be aggregated across metric groups. A metric group is the combination of a given metric, metric namespace, and tenancy for the purpose of determining limits. For more information about metric-related concepts, see Monitoring Concepts (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#concepts).
type MetricData struct { // The reference provided in a metric definition to indicate the source service or // application that emitted the metric. // Example: `oci_computeagent` Namespace *string `mandatory:"true" json:"namespace"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the // resources from which the aggregated data was returned. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The name of the metric. // Example: `CpuUtilization` Name *string `mandatory:"true" json:"name"` // Qualifiers provided in the definition of the returned metric. // Available dimensions vary by metric namespace. Each dimension takes the form of a key-value pair. // Example: `"resourceId": "ocid1.instance.region1.phx.exampleuniqueID"` Dimensions map[string]string `mandatory:"true" json:"dimensions"` // The list of timestamp-value pairs returned for the specified request. Metric values are rolled up to the start time specified in the request. // For important limits information related to data points, see MetricData Reference at the top of this page. AggregatedDatapoints []AggregatedDatapoint `mandatory:"true" json:"aggregatedDatapoints"` // Resource group provided with the posted metric. A resource group is a custom string that can be used as a filter. Only one resource group can be applied per metric. // A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($). // Avoid entering confidential information. // Example: `frontend-fleet` ResourceGroup *string `mandatory:"false" json:"resourceGroup"` // The references provided in a metric definition to indicate extra information about the metric. // Example: `"unit": "bytes"` Metadata map[string]string `mandatory:"false" json:"metadata"` // The time between calculated aggregation windows. Use with the query interval to vary the // frequency at which aggregated data points are returned. For example, use a query interval of // 5 minutes with a resolution of 1 minute to retrieve five-minute aggregations at a one-minute // frequency. The resolution must be equal or less than the interval in the query. The default // resolution is 1m (one minute). Supported values: `1m`-`60m` (also `1h`). // Example: `5m` Resolution *string `mandatory:"false" json:"resolution"` }
func (m MetricData) String() string
MetricDataDetails A metric object containing raw metric data points to be posted to the Monitoring service.
type MetricDataDetails struct { // The source service or application emitting the metric. // A valid namespace value starts with an alphabetical character and includes only alphanumeric characters and underscores. The "oci_" prefix is reserved. // Avoid entering confidential information. // Example: `my_namespace` Namespace *string `mandatory:"true" json:"namespace"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to use for metrics. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The name of the metric. // A valid name value starts with an alphabetical character and includes only alphanumeric characters, dots, underscores, hyphens, and dollar signs. The `oci_` prefix is reserved. // Avoid entering confidential information. // Example: `my_app.success_rate` Name *string `mandatory:"true" json:"name"` // Qualifiers provided in a metric definition. Available dimensions vary by metric namespace. // Each dimension takes the form of a key-value pair. // A valid dimension key includes only printable ASCII, excluding periods (.) and spaces. The character limit for a dimension key is 256. // A valid dimension value includes only Unicode characters. The character limit for a dimension value is 256. // Empty strings are not allowed for keys or values. Avoid entering confidential information. // Example: `"resourceId": "ocid1.instance.region1.phx.exampleuniqueID"` Dimensions map[string]string `mandatory:"true" json:"dimensions"` // A list of metric values with timestamps. At least one data point is required per call. Datapoints []Datapoint `mandatory:"true" json:"datapoints"` // Resource group to assign to the metric. A resource group is a custom string that can be used as a filter. Only one resource group can be applied per metric. // A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($). // Avoid entering confidential information. // Example: `frontend-fleet` ResourceGroup *string `mandatory:"false" json:"resourceGroup"` // Properties describing metrics. These are not part of the unique fields identifying the metric. // Each metadata item takes the form of a key-value pair. The character limit for a metadata key is 256. The character limit for a metadata value is 256. // Example: `"unit": "bytes"` Metadata map[string]string `mandatory:"false" json:"metadata"` }
func (m MetricDataDetails) String() string
MonitoringClient a client for Monitoring
type MonitoringClient struct { common.BaseClient // contains filtered or unexported fields }
func NewMonitoringClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client MonitoringClient, err error)
NewMonitoringClientWithConfigurationProvider Creates a new default Monitoring client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region
func NewMonitoringClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client MonitoringClient, err error)
NewMonitoringClientWithOboToken Creates a new default Monitoring 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 MonitoringClient) ChangeAlarmCompartment(ctx context.Context, request ChangeAlarmCompartmentRequest) (response ChangeAlarmCompartmentResponse, err error)
ChangeAlarmCompartment Moves an alarm into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources Between Compartments (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/monitoring/ChangeAlarmCompartment.go.html to see an example of how to use ChangeAlarmCompartment API.
func (client *MonitoringClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (client MonitoringClient) CreateAlarm(ctx context.Context, request CreateAlarmRequest) (response CreateAlarmResponse, err error)
CreateAlarm Creates a new alarm in the specified compartment. For important limits information, see Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#Limits). This call is subject to a Monitoring limit that applies to the total number of requests across all alarm operations. Monitoring might throttle this call to reject an otherwise valid request when the total rate of alarm operations exceeds 10 requests, or transactions, per second (TPS) for a given tenancy.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/monitoring/CreateAlarm.go.html to see an example of how to use CreateAlarm API.
func (client MonitoringClient) DeleteAlarm(ctx context.Context, request DeleteAlarmRequest) (response DeleteAlarmResponse, err error)
DeleteAlarm Deletes the specified alarm. For important limits information, see Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#Limits). This call is subject to a Monitoring limit that applies to the total number of requests across all alarm operations. Monitoring might throttle this call to reject an otherwise valid request when the total rate of alarm operations exceeds 10 requests, or transactions, per second (TPS) for a given tenancy.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/monitoring/DeleteAlarm.go.html to see an example of how to use DeleteAlarm API.
func (client MonitoringClient) GetAlarm(ctx context.Context, request GetAlarmRequest) (response GetAlarmResponse, err error)
GetAlarm Gets the specified alarm. For important limits information, see Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#Limits). This call is subject to a Monitoring limit that applies to the total number of requests across all alarm operations. Monitoring might throttle this call to reject an otherwise valid request when the total rate of alarm operations exceeds 10 requests, or transactions, per second (TPS) for a given tenancy.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/monitoring/GetAlarm.go.html to see an example of how to use GetAlarm API.
func (client MonitoringClient) GetAlarmHistory(ctx context.Context, request GetAlarmHistoryRequest) (response GetAlarmHistoryResponse, err error)
GetAlarmHistory Get the history of the specified alarm. For important limits information, see Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#Limits). This call is subject to a Monitoring limit that applies to the total number of requests across all alarm operations. Monitoring might throttle this call to reject an otherwise valid request when the total rate of alarm operations exceeds 10 requests, or transactions, per second (TPS) for a given tenancy.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/monitoring/GetAlarmHistory.go.html to see an example of how to use GetAlarmHistory API.
func (client MonitoringClient) ListAlarms(ctx context.Context, request ListAlarmsRequest) (response ListAlarmsResponse, err error)
ListAlarms Lists the alarms for the specified compartment. For important limits information, see Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#Limits). This call is subject to a Monitoring limit that applies to the total number of requests across all alarm operations. Monitoring might throttle this call to reject an otherwise valid request when the total rate of alarm operations exceeds 10 requests, or transactions, per second (TPS) for a given tenancy.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/monitoring/ListAlarms.go.html to see an example of how to use ListAlarms API.
func (client MonitoringClient) ListAlarmsStatus(ctx context.Context, request ListAlarmsStatusRequest) (response ListAlarmsStatusResponse, err error)
ListAlarmsStatus List the status of each alarm in the specified compartment. For important limits information, see Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#Limits). This call is subject to a Monitoring limit that applies to the total number of requests across all alarm operations. Monitoring might throttle this call to reject an otherwise valid request when the total rate of alarm operations exceeds 10 requests, or transactions, per second (TPS) for a given tenancy.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/monitoring/ListAlarmsStatus.go.html to see an example of how to use ListAlarmsStatus API.
func (client MonitoringClient) ListMetrics(ctx context.Context, request ListMetricsRequest) (response ListMetricsResponse, err error)
ListMetrics Returns metric definitions that match the criteria specified in the request. Compartment OCID required. For information about metrics, see Metrics Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#MetricsOverview). For important limits information, see Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#Limits). Transactions Per Second (TPS) per-tenancy limit for this operation: 10.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/monitoring/ListMetrics.go.html to see an example of how to use ListMetrics API.
func (client MonitoringClient) PostMetricData(ctx context.Context, request PostMetricDataRequest) (response PostMetricDataResponse, err error)
PostMetricData Publishes raw metric data points to the Monitoring service. For more information about publishing metrics, see Publishing Custom Metrics (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/publishingcustommetrics.htm). For important limits information, see Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#Limits). Per-call limits information follows. * Dimensions per metric group*. Maximum: 20. Minimum: 1. * Unique metric streams*. Maximum: 50. * Transactions Per Second (TPS) per-tenancy limit for this operation: 50. *A metric group is the combination of a given metric, metric namespace, and tenancy for the purpose of determining limits. A dimension is a qualifier provided in a metric definition. A metric stream is an individual set of aggregated data for a metric, typically specific to a resource. For more information about metric-related concepts, see Monitoring Concepts (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#concepts). The endpoints for this operation differ from other Monitoring operations. Replace the string `telemetry` with `telemetry-ingestion` in the endpoint, as in the following example: https://telemetry-ingestion.eu-frankfurt-1.oraclecloud.com
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/monitoring/PostMetricData.go.html to see an example of how to use PostMetricData API.
func (client MonitoringClient) RemoveAlarmSuppression(ctx context.Context, request RemoveAlarmSuppressionRequest) (response RemoveAlarmSuppressionResponse, err error)
RemoveAlarmSuppression Removes any existing suppression for the specified alarm. For important limits information, see Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#Limits). This call is subject to a Monitoring limit that applies to the total number of requests across all alarm operations. Monitoring might throttle this call to reject an otherwise valid request when the total rate of alarm operations exceeds 10 requests, or transactions, per second (TPS) for a given tenancy.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/monitoring/RemoveAlarmSuppression.go.html to see an example of how to use RemoveAlarmSuppression API.
func (client *MonitoringClient) SetRegion(region string)
SetRegion overrides the region of this client.
func (client MonitoringClient) SummarizeMetricsData(ctx context.Context, request SummarizeMetricsDataRequest) (response SummarizeMetricsDataResponse, err error)
SummarizeMetricsData Returns aggregated data that match the criteria specified in the request. Compartment OCID required. For information on metric queries, see Building Metric Queries (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/buildingqueries.htm). For important limits information, see Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#Limits). Transactions Per Second (TPS) per-tenancy limit for this operation: 10.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/monitoring/SummarizeMetricsData.go.html to see an example of how to use SummarizeMetricsData API.
func (client MonitoringClient) UpdateAlarm(ctx context.Context, request UpdateAlarmRequest) (response UpdateAlarmResponse, err error)
UpdateAlarm Updates the specified alarm. For important limits information, see Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#Limits). This call is subject to a Monitoring limit that applies to the total number of requests across all alarm operations. Monitoring might throttle this call to reject an otherwise valid request when the total rate of alarm operations exceeds 10 requests, or transactions, per second (TPS) for a given tenancy.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/monitoring/UpdateAlarm.go.html to see an example of how to use UpdateAlarm API.
PostMetricDataDetails An array of metric objects containing raw metric data points to be posted to the Monitoring service.
type PostMetricDataDetails struct { // A metric object containing raw metric data points to be posted to the Monitoring service. MetricData []MetricDataDetails `mandatory:"true" json:"metricData"` // Batch atomicity behavior. Requires either partial or full pass of input validation for // metric objects in PostMetricData requests. The default value of NON_ATOMIC requires a // partial pass: at least one metric object in the request must pass input validation, and // any objects that failed validation are identified in the returned summary, along with // their error messages. A value of ATOMIC requires a full pass: all metric objects in // the request must pass input validation. // Example: `NON_ATOMIC` BatchAtomicity PostMetricDataDetailsBatchAtomicityEnum `mandatory:"false" json:"batchAtomicity,omitempty"` }
func (m PostMetricDataDetails) String() string
PostMetricDataDetailsBatchAtomicityEnum Enum with underlying type: string
type PostMetricDataDetailsBatchAtomicityEnum string
Set of constants representing the allowable values for PostMetricDataDetailsBatchAtomicityEnum
const ( PostMetricDataDetailsBatchAtomicityAtomic PostMetricDataDetailsBatchAtomicityEnum = "ATOMIC" PostMetricDataDetailsBatchAtomicityNonAtomic PostMetricDataDetailsBatchAtomicityEnum = "NON_ATOMIC" )
func GetPostMetricDataDetailsBatchAtomicityEnumValues() []PostMetricDataDetailsBatchAtomicityEnum
GetPostMetricDataDetailsBatchAtomicityEnumValues Enumerates the set of values for PostMetricDataDetailsBatchAtomicityEnum
PostMetricDataRequest wrapper for the PostMetricData operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/monitoring/PostMetricData.go.html to see an example of how to use PostMetricDataRequest.
type PostMetricDataRequest struct { // An array of metric objects containing raw metric data points to be posted to the Monitoring service. PostMetricDataDetails `contributesTo:"body"` // Customer part of the request identifier token. If you need to contact Oracle about a particular // request, please provide the complete request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request PostMetricDataRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request PostMetricDataRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request PostMetricDataRequest) String() string
PostMetricDataResponse wrapper for the PostMetricData operation
type PostMetricDataResponse struct { // The underlying http response RawResponse *http.Response // The PostMetricDataResponseDetails instance PostMetricDataResponseDetails `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 PostMetricDataResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response PostMetricDataResponse) String() string
PostMetricDataResponseDetails The response object returned from a PostMetricData operation.
type PostMetricDataResponseDetails struct { // The number of metric objects that failed input validation. FailedMetricsCount *int `mandatory:"true" json:"failedMetricsCount"` // A list of records identifying metric objects that failed input validation // and the reasons for the failures. FailedMetrics []FailedMetricRecord `mandatory:"false" json:"failedMetrics"` }
func (m PostMetricDataResponseDetails) String() string
RemoveAlarmSuppressionRequest wrapper for the RemoveAlarmSuppression operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/monitoring/RemoveAlarmSuppression.go.html to see an example of how to use RemoveAlarmSuppressionRequest.
type RemoveAlarmSuppressionRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an alarm. AlarmId *string `mandatory:"true" contributesTo:"path" name:"alarmId"` // 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"` // Customer part of the request identifier token. If you need to contact Oracle about a particular // request, please provide the complete request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request RemoveAlarmSuppressionRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request RemoveAlarmSuppressionRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request RemoveAlarmSuppressionRequest) String() string
RemoveAlarmSuppressionResponse wrapper for the RemoveAlarmSuppression operation
type RemoveAlarmSuppressionResponse 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 RemoveAlarmSuppressionResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response RemoveAlarmSuppressionResponse) String() string
SummarizeMetricsDataDetails The request details for retrieving aggregated data. Use the query and optional properties to filter the returned results.
type SummarizeMetricsDataDetails struct { // The source service or application to use when searching for metric data points to aggregate. // Example: `oci_computeagent` Namespace *string `mandatory:"true" json:"namespace"` // The Monitoring Query Language (MQL) expression to use when searching for metric data points to // aggregate. The query must specify a metric, statistic, and interval. Supported values for // interval: `1m`-`60m` (also `1h`). You can optionally specify dimensions and grouping functions. // Supported grouping functions: `grouping()`, `groupBy()`. // Construct your query to avoid exceeding limits on returned data. See MetricData. // For details about Monitoring Query Language (MQL), see // Monitoring Query Language (MQL) Reference (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Reference/mql.htm). // For available dimensions, review the metric definition for the supported service. // See Supported Services (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#SupportedServices). // Example: `CpuUtilization[1m].sum()` Query *string `mandatory:"true" json:"query"` // Resource group that you want to use as a filter. The specified resource group must exist in the definition of the posted metric. Only one resource group can be applied per metric. // A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($). // Avoid entering confidential information. // Example: `frontend-fleet` ResourceGroup *string `mandatory:"false" json:"resourceGroup"` // The beginning of the time range to use when searching for metric data points. // Format is defined by RFC3339. The response includes metric data points for the startTime. // Default value: the timestamp 3 hours before the call was sent. // Example: `2019-02-01T01:02:29.600Z` StartTime *common.SDKTime `mandatory:"false" json:"startTime"` // The end of the time range to use when searching for metric data points. // Format is defined by RFC3339. The response excludes metric data points for the endTime. // Default value: the timestamp representing when the call was sent. // Example: `2019-02-01T02:02:29.600Z` EndTime *common.SDKTime `mandatory:"false" json:"endTime"` // The time between calculated aggregation windows. Use with the query interval to vary the // frequency at which aggregated data points are returned. For example, use a query interval of // 5 minutes with a resolution of 1 minute to retrieve five-minute aggregations at a one-minute // frequency. The resolution must be equal or less than the interval in the query. The default // resolution is 1m (one minute). Supported values: `1m`-`60m` (also `1h`). // Example: `5m` Resolution *string `mandatory:"false" json:"resolution"` }
func (m SummarizeMetricsDataDetails) String() string
SummarizeMetricsDataRequest wrapper for the SummarizeMetricsData operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/monitoring/SummarizeMetricsData.go.html to see an example of how to use SummarizeMetricsDataRequest.
type SummarizeMetricsDataRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the // resources monitored by the metric that you are searching for. Use tenancyId to search in // the root compartment. // Example: `ocid1.compartment.oc1..exampleuniqueID` CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The dimensions used to filter for metrics. SummarizeMetricsDataDetails `contributesTo:"body"` // Customer part of the request identifier token. If you need to contact Oracle about a particular // request, please provide the complete request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // When true, returns resources from all compartments and subcompartments. The parameter can // only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). // A true value requires the user to have tenancy-level permissions. If this requirement is not met, // then the call is rejected. When false, returns resources from only the compartment specified in // compartmentId. Default is false. CompartmentIdInSubtree *bool `mandatory:"false" contributesTo:"query" name:"compartmentIdInSubtree"` // 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 SummarizeMetricsDataRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request SummarizeMetricsDataRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request SummarizeMetricsDataRequest) String() string
SummarizeMetricsDataResponse wrapper for the SummarizeMetricsData operation
type SummarizeMetricsDataResponse struct { // The underlying http response RawResponse *http.Response // The []MetricData instance Items []MetricData `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 SummarizeMetricsDataResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response SummarizeMetricsDataResponse) String() string
Suppression The configuration details for suppressing an alarm. For information about alarms, see Alarms Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#AlarmsOverview). **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
type Suppression struct { // The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. // Example: `2019-02-01T01:02:29.600Z` TimeSuppressFrom *common.SDKTime `mandatory:"true" json:"timeSuppressFrom"` // The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. // Example: `2019-02-01T02:02:29.600Z` TimeSuppressUntil *common.SDKTime `mandatory:"true" json:"timeSuppressUntil"` // Human-readable reason for suppressing alarm notifications. // It does not have to be unique, and it's changeable. // Avoid entering confidential information. // Oracle recommends including tracking information for the event or associated work, // such as a ticket number. // Example: `Planned outage due to change IT-1234.` Description *string `mandatory:"false" json:"description"` }
func (m Suppression) String() string
UpdateAlarmDetails The configuration details for updating an alarm. **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
type UpdateAlarmDetails struct { // A user-friendly name for the alarm. It does not have to be unique, and it's changeable. // Avoid entering confidential information. // This name is sent as the title for notifications related to this alarm. // Example: `High CPU Utilization` DisplayName *string `mandatory:"false" json:"displayName"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the alarm. CompartmentId *string `mandatory:"false" json:"compartmentId"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the metric // being evaluated by the alarm. MetricCompartmentId *string `mandatory:"false" json:"metricCompartmentId"` // When true, the alarm evaluates metrics from all compartments and subcompartments. The parameter can // only be set to true when metricCompartmentId is the tenancy OCID (the tenancy is the root compartment). // A true value requires the user to have tenancy-level permissions. If this requirement is not met, // then the call is rejected. When false, the alarm evaluates metrics from only the compartment specified // in metricCompartmentId. Default is false. // Example: `true` MetricCompartmentIdInSubtree *bool `mandatory:"false" json:"metricCompartmentIdInSubtree"` // The source service or application emitting the metric that is evaluated by the alarm. // Example: `oci_computeagent` Namespace *string `mandatory:"false" json:"namespace"` // Resource group that you want to use as a filter. The alarm retrieves metric data associated with the specified resource group only. Only one resource group can be applied per metric. // A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($). // Avoid entering confidential information. // Example: `frontend-fleet` ResourceGroup *string `mandatory:"false" json:"resourceGroup"` // The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of // the Monitoring service interprets results for each returned time series as Boolean values, // where zero represents false and a non-zero value represents true. A true value means that the trigger // rule condition has been met. The query must specify a metric, statistic, interval, and trigger // rule (threshold or absence). Supported values for interval: `1m`-`60m` (also `1h`). You can optionally // specify dimensions and grouping functions. Supported grouping functions: `grouping()`, `groupBy()`. // For details about Monitoring Query Language (MQL), see Monitoring Query Language (MQL) Reference (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Reference/mql.htm). // For available dimensions, review the metric definition for the supported service. // See Supported Services (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#SupportedServices). // Example of threshold alarm: // ----- // CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.groupBy(availabilityDomain).percentile(0.9) > 85 // ----- // Example of absence alarm: // ----- // CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent() // ----- Query *string `mandatory:"false" json:"query"` // The time between calculated aggregation windows for the alarm. Supported value: `1m` Resolution *string `mandatory:"false" json:"resolution"` // The period of time that the condition defined in the alarm must persist before the alarm state // changes from "OK" to "FIRING". For example, a value of 5 minutes means that the // alarm must persist in breaching the condition for five minutes before the alarm updates its // state to "FIRING". // The duration is specified as a string in ISO 8601 format (`PT10M` for ten minutes or `PT1H` // for one hour). Minimum: PT1M. Maximum: PT1H. Default: PT1M. // Under the default value of PT1M, the first evaluation that breaches the alarm updates the // state to "FIRING". // The alarm updates its status to "OK" when the breaching condition has been clear for // the most recent minute. // Example: `PT5M` PendingDuration *string `mandatory:"false" json:"pendingDuration"` // The perceived severity of the alarm with regard to the affected system. // Example: `CRITICAL` Severity AlarmSeverityEnum `mandatory:"false" json:"severity,omitempty"` // The human-readable content of the notification delivered. Oracle recommends providing guidance // to operators for resolving the alarm condition. Consider adding links to standard runbook // practices. Avoid entering confidential information. // Example: `High CPU usage alert. Follow runbook instructions for resolution.` Body *string `mandatory:"false" json:"body"` // A list of destinations to which the notifications for this alarm will be delivered. // Each destination is represented by an OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) related to the supported destination service. // For example, a destination using the Notifications service is represented by a topic OCID. // Supported destination services: Notifications Service. Limit: One destination per supported destination service. Destinations []string `mandatory:"false" json:"destinations"` // The frequency at which notifications are re-submitted, if the alarm keeps firing without // interruption. Format defined by ISO 8601. For example, `PT4H` indicates four hours. // Minimum: PT1M. Maximum: P30D. // Default value: null (notifications are not re-submitted). // Example: `PT2H` RepeatNotificationDuration *string `mandatory:"false" json:"repeatNotificationDuration"` // The configuration details for suppressing an alarm. Suppression *Suppression `mandatory:"false" json:"suppression"` // Whether the alarm is enabled. // Example: `true` IsEnabled *bool `mandatory:"false" json:"isEnabled"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Usage of predefined tag keys. These predefined keys are scoped to namespaces. // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
func (m UpdateAlarmDetails) String() string
UpdateAlarmRequest wrapper for the UpdateAlarm operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/monitoring/UpdateAlarm.go.html to see an example of how to use UpdateAlarmRequest.
type UpdateAlarmRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an alarm. AlarmId *string `mandatory:"true" contributesTo:"path" name:"alarmId"` // Document for updating an alarm. UpdateAlarmDetails `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"` // Customer part of the request identifier token. If you need to contact Oracle about a particular // request, please provide the complete request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request UpdateAlarmRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request UpdateAlarmRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateAlarmRequest) String() string
UpdateAlarmResponse wrapper for the UpdateAlarm operation
type UpdateAlarmResponse struct { // The underlying http response RawResponse *http.Response // The Alarm instance Alarm `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about // a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response UpdateAlarmResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response UpdateAlarmResponse) String() string