Documentation ¶
Index ¶
- type AggregatedDatapoint
- type Alarm
- type AlarmHistoryCollection
- type AlarmHistoryEntry
- type AlarmLifecycleStateEnum
- type AlarmSeverityEnum
- type AlarmStatusSummary
- type AlarmStatusSummarySeverityEnum
- type AlarmStatusSummaryStatusEnum
- type AlarmSummary
- type AlarmSummarySeverityEnum
- type ChangeAlarmCompartmentDetails
- type ChangeAlarmCompartmentRequest
- type ChangeAlarmCompartmentResponse
- type CreateAlarmDetails
- type CreateAlarmRequest
- type CreateAlarmResponse
- type Datapoint
- type DeleteAlarmRequest
- type DeleteAlarmResponse
- type FailedMetricRecord
- type GetAlarmHistoryAlarmHistorytypeEnum
- type GetAlarmHistoryRequest
- type GetAlarmHistoryResponse
- type GetAlarmRequest
- type GetAlarmResponse
- type ListAlarmsRequest
- type ListAlarmsResponse
- type ListAlarmsSortByEnum
- type ListAlarmsSortOrderEnum
- type ListAlarmsStatusRequest
- type ListAlarmsStatusResponse
- type ListAlarmsStatusSortByEnum
- type ListAlarmsStatusSortOrderEnum
- type ListMetricsDetails
- type ListMetricsDetailsSortByEnum
- type ListMetricsDetailsSortOrderEnum
- type ListMetricsRequest
- type ListMetricsResponse
- type Metric
- type MetricData
- type MetricDataDetails
- type MonitoringClient
- func (client MonitoringClient) ChangeAlarmCompartment(ctx context.Context, request ChangeAlarmCompartmentRequest) (response ChangeAlarmCompartmentResponse, err error)
- func (client *MonitoringClient) ConfigurationProvider() *common.ConfigurationProvider
- func (client MonitoringClient) CreateAlarm(ctx context.Context, request CreateAlarmRequest) (response CreateAlarmResponse, err error)
- func (client MonitoringClient) DeleteAlarm(ctx context.Context, request DeleteAlarmRequest) (response DeleteAlarmResponse, err error)
- func (client MonitoringClient) GetAlarm(ctx context.Context, request GetAlarmRequest) (response GetAlarmResponse, err error)
- func (client MonitoringClient) GetAlarmHistory(ctx context.Context, request GetAlarmHistoryRequest) (response GetAlarmHistoryResponse, err error)
- func (client MonitoringClient) ListAlarms(ctx context.Context, request ListAlarmsRequest) (response ListAlarmsResponse, err error)
- func (client MonitoringClient) ListAlarmsStatus(ctx context.Context, request ListAlarmsStatusRequest) (response ListAlarmsStatusResponse, err error)
- func (client MonitoringClient) ListMetrics(ctx context.Context, request ListMetricsRequest) (response ListMetricsResponse, err error)
- func (client MonitoringClient) PostMetricData(ctx context.Context, request PostMetricDataRequest) (response PostMetricDataResponse, err error)
- func (client MonitoringClient) RemoveAlarmSuppression(ctx context.Context, request RemoveAlarmSuppressionRequest) (response RemoveAlarmSuppressionResponse, err error)
- func (client *MonitoringClient) SetRegion(region string)
- func (client MonitoringClient) SummarizeMetricsData(ctx context.Context, request SummarizeMetricsDataRequest) (response SummarizeMetricsDataResponse, err error)
- func (client MonitoringClient) UpdateAlarm(ctx context.Context, request UpdateAlarmRequest) (response UpdateAlarmResponse, err error)
- type PostMetricDataDetails
- type PostMetricDataDetailsBatchAtomicityEnum
- type PostMetricDataRequest
- type PostMetricDataResponse
- type PostMetricDataResponseDetails
- type RemoveAlarmSuppressionRequest
- type RemoveAlarmSuppressionResponse
- type SummarizeMetricsDataDetails
- type SummarizeMetricsDataRequest
- type SummarizeMetricsDataResponse
- type Suppression
- type UpdateAlarmDetails
- type UpdateAlarmRequest
- type UpdateAlarmResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregatedDatapoint ¶
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"` }
AggregatedDatapoint A timestamp-value pair returned for the specified request.
func (AggregatedDatapoint) String ¶
func (m AggregatedDatapoint) String() string
type Alarm ¶
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"` }
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 AlarmHistoryCollection ¶
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"` }
AlarmHistoryCollection The configuration details for retrieving alarm history.
func (AlarmHistoryCollection) String ¶
func (m AlarmHistoryCollection) String() string
type AlarmHistoryEntry ¶
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"` }
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.
func (AlarmHistoryEntry) String ¶
func (m AlarmHistoryEntry) String() string
type AlarmLifecycleStateEnum ¶
type AlarmLifecycleStateEnum string
AlarmLifecycleStateEnum Enum with underlying type: string
const ( AlarmLifecycleStateActive AlarmLifecycleStateEnum = "ACTIVE" AlarmLifecycleStateDeleting AlarmLifecycleStateEnum = "DELETING" AlarmLifecycleStateDeleted AlarmLifecycleStateEnum = "DELETED" )
Set of constants representing the allowable values for AlarmLifecycleStateEnum
func GetAlarmLifecycleStateEnumValues ¶
func GetAlarmLifecycleStateEnumValues() []AlarmLifecycleStateEnum
GetAlarmLifecycleStateEnumValues Enumerates the set of values for AlarmLifecycleStateEnum
type AlarmSeverityEnum ¶
type AlarmSeverityEnum string
AlarmSeverityEnum Enum with underlying type: string
const ( AlarmSeverityCritical AlarmSeverityEnum = "CRITICAL" AlarmSeverityError AlarmSeverityEnum = "ERROR" AlarmSeverityWarning AlarmSeverityEnum = "WARNING" AlarmSeverityInfo AlarmSeverityEnum = "INFO" )
Set of constants representing the allowable values for AlarmSeverityEnum
func GetAlarmSeverityEnumValues ¶
func GetAlarmSeverityEnumValues() []AlarmSeverityEnum
GetAlarmSeverityEnumValues Enumerates the set of values for AlarmSeverityEnum
type AlarmStatusSummary ¶
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"` }
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).
func (AlarmStatusSummary) String ¶
func (m AlarmStatusSummary) String() string
type AlarmStatusSummarySeverityEnum ¶
type AlarmStatusSummarySeverityEnum string
AlarmStatusSummarySeverityEnum Enum with underlying type: string
const ( AlarmStatusSummarySeverityCritical AlarmStatusSummarySeverityEnum = "CRITICAL" AlarmStatusSummarySeverityError AlarmStatusSummarySeverityEnum = "ERROR" AlarmStatusSummarySeverityWarning AlarmStatusSummarySeverityEnum = "WARNING" AlarmStatusSummarySeverityInfo AlarmStatusSummarySeverityEnum = "INFO" )
Set of constants representing the allowable values for AlarmStatusSummarySeverityEnum
func GetAlarmStatusSummarySeverityEnumValues ¶
func GetAlarmStatusSummarySeverityEnumValues() []AlarmStatusSummarySeverityEnum
GetAlarmStatusSummarySeverityEnumValues Enumerates the set of values for AlarmStatusSummarySeverityEnum
type AlarmStatusSummaryStatusEnum ¶
type AlarmStatusSummaryStatusEnum string
AlarmStatusSummaryStatusEnum Enum with underlying type: string
const ( AlarmStatusSummaryStatusFiring AlarmStatusSummaryStatusEnum = "FIRING" AlarmStatusSummaryStatusOk AlarmStatusSummaryStatusEnum = "OK" AlarmStatusSummaryStatusSuspended AlarmStatusSummaryStatusEnum = "SUSPENDED" )
Set of constants representing the allowable values for AlarmStatusSummaryStatusEnum
func GetAlarmStatusSummaryStatusEnumValues ¶
func GetAlarmStatusSummaryStatusEnumValues() []AlarmStatusSummaryStatusEnum
GetAlarmStatusSummaryStatusEnumValues Enumerates the set of values for AlarmStatusSummaryStatusEnum
type AlarmSummary ¶
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"` }
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).
func (AlarmSummary) String ¶
func (m AlarmSummary) String() string
type AlarmSummarySeverityEnum ¶
type AlarmSummarySeverityEnum string
AlarmSummarySeverityEnum Enum with underlying type: string
const ( AlarmSummarySeverityCritical AlarmSummarySeverityEnum = "CRITICAL" AlarmSummarySeverityError AlarmSummarySeverityEnum = "ERROR" AlarmSummarySeverityWarning AlarmSummarySeverityEnum = "WARNING" AlarmSummarySeverityInfo AlarmSummarySeverityEnum = "INFO" )
Set of constants representing the allowable values for AlarmSummarySeverityEnum
func GetAlarmSummarySeverityEnumValues ¶
func GetAlarmSummarySeverityEnumValues() []AlarmSummarySeverityEnum
GetAlarmSummarySeverityEnumValues Enumerates the set of values for AlarmSummarySeverityEnum
type ChangeAlarmCompartmentDetails ¶
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"` }
ChangeAlarmCompartmentDetails The configuration details for moving an alarm.
func (ChangeAlarmCompartmentDetails) String ¶
func (m ChangeAlarmCompartmentDetails) String() string
type 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 }
ChangeAlarmCompartmentRequest wrapper for the ChangeAlarmCompartment operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/ChangeAlarmCompartment.go.html to see an example of how to use ChangeAlarmCompartmentRequest.
func (ChangeAlarmCompartmentRequest) HTTPRequest ¶
func (request ChangeAlarmCompartmentRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ChangeAlarmCompartmentRequest) RetryPolicy ¶
func (request ChangeAlarmCompartmentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ChangeAlarmCompartmentRequest) String ¶
func (request ChangeAlarmCompartmentRequest) String() string
type ChangeAlarmCompartmentResponse ¶
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"` }
ChangeAlarmCompartmentResponse wrapper for the ChangeAlarmCompartment operation
func (ChangeAlarmCompartmentResponse) HTTPResponse ¶
func (response ChangeAlarmCompartmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ChangeAlarmCompartmentResponse) String ¶
func (response ChangeAlarmCompartmentResponse) String() string
type CreateAlarmDetails ¶
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"` }
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.
func (CreateAlarmDetails) String ¶
func (m CreateAlarmDetails) String() string
type 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 }
CreateAlarmRequest wrapper for the CreateAlarm operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/CreateAlarm.go.html to see an example of how to use CreateAlarmRequest.
func (CreateAlarmRequest) HTTPRequest ¶
func (request CreateAlarmRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (CreateAlarmRequest) RetryPolicy ¶
func (request CreateAlarmRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (CreateAlarmRequest) String ¶
func (request CreateAlarmRequest) String() string
type CreateAlarmResponse ¶
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"` }
CreateAlarmResponse wrapper for the CreateAlarm operation
func (CreateAlarmResponse) HTTPResponse ¶
func (response CreateAlarmResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (CreateAlarmResponse) String ¶
func (response CreateAlarmResponse) String() string
type Datapoint ¶
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"` }
Datapoint Metric value for a specific timestamp.
type 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 }
DeleteAlarmRequest wrapper for the DeleteAlarm operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/DeleteAlarm.go.html to see an example of how to use DeleteAlarmRequest.
func (DeleteAlarmRequest) HTTPRequest ¶
func (request DeleteAlarmRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (DeleteAlarmRequest) RetryPolicy ¶
func (request DeleteAlarmRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (DeleteAlarmRequest) String ¶
func (request DeleteAlarmRequest) String() string
type DeleteAlarmResponse ¶
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"` }
DeleteAlarmResponse wrapper for the DeleteAlarm operation
func (DeleteAlarmResponse) HTTPResponse ¶
func (response DeleteAlarmResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (DeleteAlarmResponse) String ¶
func (response DeleteAlarmResponse) String() string
type FailedMetricRecord ¶
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"` }
FailedMetricRecord The record of a single metric object that failed input validation and the reason for the failure.
func (FailedMetricRecord) String ¶
func (m FailedMetricRecord) String() string
type GetAlarmHistoryAlarmHistorytypeEnum ¶
type GetAlarmHistoryAlarmHistorytypeEnum string
GetAlarmHistoryAlarmHistorytypeEnum Enum with underlying type: string
const ( GetAlarmHistoryAlarmHistorytypeHistory GetAlarmHistoryAlarmHistorytypeEnum = "STATE_HISTORY" GetAlarmHistoryAlarmHistorytypeTransitionHistory GetAlarmHistoryAlarmHistorytypeEnum = "STATE_TRANSITION_HISTORY" )
Set of constants representing the allowable values for GetAlarmHistoryAlarmHistorytypeEnum
func GetGetAlarmHistoryAlarmHistorytypeEnumValues ¶
func GetGetAlarmHistoryAlarmHistorytypeEnumValues() []GetAlarmHistoryAlarmHistorytypeEnum
GetGetAlarmHistoryAlarmHistorytypeEnumValues Enumerates the set of values for GetAlarmHistoryAlarmHistorytypeEnum
type 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 }
GetAlarmHistoryRequest wrapper for the GetAlarmHistory operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/GetAlarmHistory.go.html to see an example of how to use GetAlarmHistoryRequest.
func (GetAlarmHistoryRequest) HTTPRequest ¶
func (request GetAlarmHistoryRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (GetAlarmHistoryRequest) RetryPolicy ¶
func (request GetAlarmHistoryRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (GetAlarmHistoryRequest) String ¶
func (request GetAlarmHistoryRequest) String() string
type GetAlarmHistoryResponse ¶
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"` }
GetAlarmHistoryResponse wrapper for the GetAlarmHistory operation
func (GetAlarmHistoryResponse) HTTPResponse ¶
func (response GetAlarmHistoryResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (GetAlarmHistoryResponse) String ¶
func (response GetAlarmHistoryResponse) String() string
type 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 }
GetAlarmRequest wrapper for the GetAlarm operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/GetAlarm.go.html to see an example of how to use GetAlarmRequest.
func (GetAlarmRequest) HTTPRequest ¶
func (request GetAlarmRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (GetAlarmRequest) RetryPolicy ¶
func (request GetAlarmRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (GetAlarmRequest) String ¶
func (request GetAlarmRequest) String() string
type GetAlarmResponse ¶
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"` }
GetAlarmResponse wrapper for the GetAlarm operation
func (GetAlarmResponse) HTTPResponse ¶
func (response GetAlarmResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (GetAlarmResponse) String ¶
func (response GetAlarmResponse) String() string
type 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 }
ListAlarmsRequest wrapper for the ListAlarms operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/ListAlarms.go.html to see an example of how to use ListAlarmsRequest.
func (ListAlarmsRequest) HTTPRequest ¶
func (request ListAlarmsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ListAlarmsRequest) RetryPolicy ¶
func (request ListAlarmsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ListAlarmsRequest) String ¶
func (request ListAlarmsRequest) String() string
type ListAlarmsResponse ¶
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"` }
ListAlarmsResponse wrapper for the ListAlarms operation
func (ListAlarmsResponse) HTTPResponse ¶
func (response ListAlarmsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListAlarmsResponse) String ¶
func (response ListAlarmsResponse) String() string
type ListAlarmsSortByEnum ¶
type ListAlarmsSortByEnum string
ListAlarmsSortByEnum Enum with underlying type: string
const ( ListAlarmsSortByDisplayname ListAlarmsSortByEnum = "displayName" ListAlarmsSortBySeverity ListAlarmsSortByEnum = "severity" )
Set of constants representing the allowable values for ListAlarmsSortByEnum
func GetListAlarmsSortByEnumValues ¶
func GetListAlarmsSortByEnumValues() []ListAlarmsSortByEnum
GetListAlarmsSortByEnumValues Enumerates the set of values for ListAlarmsSortByEnum
type ListAlarmsSortOrderEnum ¶
type ListAlarmsSortOrderEnum string
ListAlarmsSortOrderEnum Enum with underlying type: string
const ( ListAlarmsSortOrderAsc ListAlarmsSortOrderEnum = "ASC" ListAlarmsSortOrderDesc ListAlarmsSortOrderEnum = "DESC" )
Set of constants representing the allowable values for ListAlarmsSortOrderEnum
func GetListAlarmsSortOrderEnumValues ¶
func GetListAlarmsSortOrderEnumValues() []ListAlarmsSortOrderEnum
GetListAlarmsSortOrderEnumValues Enumerates the set of values for ListAlarmsSortOrderEnum
type 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 }
ListAlarmsStatusRequest wrapper for the ListAlarmsStatus operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/ListAlarmsStatus.go.html to see an example of how to use ListAlarmsStatusRequest.
func (ListAlarmsStatusRequest) HTTPRequest ¶
func (request ListAlarmsStatusRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ListAlarmsStatusRequest) RetryPolicy ¶
func (request ListAlarmsStatusRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ListAlarmsStatusRequest) String ¶
func (request ListAlarmsStatusRequest) String() string
type ListAlarmsStatusResponse ¶
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"` }
ListAlarmsStatusResponse wrapper for the ListAlarmsStatus operation
func (ListAlarmsStatusResponse) HTTPResponse ¶
func (response ListAlarmsStatusResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListAlarmsStatusResponse) String ¶
func (response ListAlarmsStatusResponse) String() string
type ListAlarmsStatusSortByEnum ¶
type ListAlarmsStatusSortByEnum string
ListAlarmsStatusSortByEnum Enum with underlying type: string
const ( ListAlarmsStatusSortByDisplayname ListAlarmsStatusSortByEnum = "displayName" ListAlarmsStatusSortBySeverity ListAlarmsStatusSortByEnum = "severity" )
Set of constants representing the allowable values for ListAlarmsStatusSortByEnum
func GetListAlarmsStatusSortByEnumValues ¶
func GetListAlarmsStatusSortByEnumValues() []ListAlarmsStatusSortByEnum
GetListAlarmsStatusSortByEnumValues Enumerates the set of values for ListAlarmsStatusSortByEnum
type ListAlarmsStatusSortOrderEnum ¶
type ListAlarmsStatusSortOrderEnum string
ListAlarmsStatusSortOrderEnum Enum with underlying type: string
const ( ListAlarmsStatusSortOrderAsc ListAlarmsStatusSortOrderEnum = "ASC" ListAlarmsStatusSortOrderDesc ListAlarmsStatusSortOrderEnum = "DESC" )
Set of constants representing the allowable values for ListAlarmsStatusSortOrderEnum
func GetListAlarmsStatusSortOrderEnumValues ¶
func GetListAlarmsStatusSortOrderEnumValues() []ListAlarmsStatusSortOrderEnum
GetListAlarmsStatusSortOrderEnumValues Enumerates the set of values for ListAlarmsStatusSortOrderEnum
type ListMetricsDetails ¶
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"` }
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.
func (ListMetricsDetails) String ¶
func (m ListMetricsDetails) String() string
type ListMetricsDetailsSortByEnum ¶
type ListMetricsDetailsSortByEnum string
ListMetricsDetailsSortByEnum Enum with underlying type: string
const ( ListMetricsDetailsSortByNamespace ListMetricsDetailsSortByEnum = "NAMESPACE" ListMetricsDetailsSortByName ListMetricsDetailsSortByEnum = "NAME" ListMetricsDetailsSortByResourcegroup ListMetricsDetailsSortByEnum = "RESOURCEGROUP" )
Set of constants representing the allowable values for ListMetricsDetailsSortByEnum
func GetListMetricsDetailsSortByEnumValues ¶
func GetListMetricsDetailsSortByEnumValues() []ListMetricsDetailsSortByEnum
GetListMetricsDetailsSortByEnumValues Enumerates the set of values for ListMetricsDetailsSortByEnum
type ListMetricsDetailsSortOrderEnum ¶
type ListMetricsDetailsSortOrderEnum string
ListMetricsDetailsSortOrderEnum Enum with underlying type: string
const ( ListMetricsDetailsSortOrderAsc ListMetricsDetailsSortOrderEnum = "ASC" ListMetricsDetailsSortOrderDesc ListMetricsDetailsSortOrderEnum = "DESC" )
Set of constants representing the allowable values for ListMetricsDetailsSortOrderEnum
func GetListMetricsDetailsSortOrderEnumValues ¶
func GetListMetricsDetailsSortOrderEnumValues() []ListMetricsDetailsSortOrderEnum
GetListMetricsDetailsSortOrderEnumValues Enumerates the set of values for ListMetricsDetailsSortOrderEnum
type 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 }
ListMetricsRequest wrapper for the ListMetrics operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/ListMetrics.go.html to see an example of how to use ListMetricsRequest.
func (ListMetricsRequest) HTTPRequest ¶
func (request ListMetricsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ListMetricsRequest) RetryPolicy ¶
func (request ListMetricsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ListMetricsRequest) String ¶
func (request ListMetricsRequest) String() string
type ListMetricsResponse ¶
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"` }
ListMetricsResponse wrapper for the ListMetrics operation
func (ListMetricsResponse) HTTPResponse ¶
func (response ListMetricsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListMetricsResponse) String ¶
func (response ListMetricsResponse) String() string
type Metric ¶
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"` }
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 MetricData ¶
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"` }
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).
func (MetricData) String ¶
func (m MetricData) String() string
type MetricDataDetails ¶
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"` }
MetricDataDetails A metric object containing raw metric data points to be posted to the Monitoring service.
func (MetricDataDetails) String ¶
func (m MetricDataDetails) String() string
type MonitoringClient ¶
type MonitoringClient struct { common.BaseClient // contains filtered or unexported fields }
MonitoringClient a client for Monitoring
func NewMonitoringClientWithConfigurationProvider ¶
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 ¶
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 (MonitoringClient) ChangeAlarmCompartment ¶
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).
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/ChangeAlarmCompartment.go.html to see an example of how to use ChangeAlarmCompartment API.
func (*MonitoringClient) ConfigurationProvider ¶
func (client *MonitoringClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (MonitoringClient) CreateAlarm ¶
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.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/CreateAlarm.go.html to see an example of how to use CreateAlarm API.
func (MonitoringClient) DeleteAlarm ¶
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.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/DeleteAlarm.go.html to see an example of how to use DeleteAlarm API.
func (MonitoringClient) GetAlarm ¶
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.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/GetAlarm.go.html to see an example of how to use GetAlarm API.
func (MonitoringClient) GetAlarmHistory ¶
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.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/GetAlarmHistory.go.html to see an example of how to use GetAlarmHistory API.
func (MonitoringClient) ListAlarms ¶
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.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/ListAlarms.go.html to see an example of how to use ListAlarms API.
func (MonitoringClient) ListAlarmsStatus ¶
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.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/ListAlarmsStatus.go.html to see an example of how to use ListAlarmsStatus API.
func (MonitoringClient) ListMetrics ¶
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.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/ListMetrics.go.html to see an example of how to use ListMetrics API.
func (MonitoringClient) PostMetricData ¶
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
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/PostMetricData.go.html to see an example of how to use PostMetricData API.
func (MonitoringClient) RemoveAlarmSuppression ¶
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.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/RemoveAlarmSuppression.go.html to see an example of how to use RemoveAlarmSuppression API.
func (*MonitoringClient) SetRegion ¶
func (client *MonitoringClient) SetRegion(region string)
SetRegion overrides the region of this client.
func (MonitoringClient) SummarizeMetricsData ¶
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.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/SummarizeMetricsData.go.html to see an example of how to use SummarizeMetricsData API.
func (MonitoringClient) UpdateAlarm ¶
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.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/UpdateAlarm.go.html to see an example of how to use UpdateAlarm API.
type PostMetricDataDetails ¶
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"` }
PostMetricDataDetails An array of metric objects containing raw metric data points to be posted to the Monitoring service.
func (PostMetricDataDetails) String ¶
func (m PostMetricDataDetails) String() string
type PostMetricDataDetailsBatchAtomicityEnum ¶
type PostMetricDataDetailsBatchAtomicityEnum string
PostMetricDataDetailsBatchAtomicityEnum Enum with underlying type: string
const ( PostMetricDataDetailsBatchAtomicityAtomic PostMetricDataDetailsBatchAtomicityEnum = "ATOMIC" PostMetricDataDetailsBatchAtomicityNonAtomic PostMetricDataDetailsBatchAtomicityEnum = "NON_ATOMIC" )
Set of constants representing the allowable values for PostMetricDataDetailsBatchAtomicityEnum
func GetPostMetricDataDetailsBatchAtomicityEnumValues ¶
func GetPostMetricDataDetailsBatchAtomicityEnumValues() []PostMetricDataDetailsBatchAtomicityEnum
GetPostMetricDataDetailsBatchAtomicityEnumValues Enumerates the set of values for PostMetricDataDetailsBatchAtomicityEnum
type 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 }
PostMetricDataRequest wrapper for the PostMetricData operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/PostMetricData.go.html to see an example of how to use PostMetricDataRequest.
func (PostMetricDataRequest) HTTPRequest ¶
func (request PostMetricDataRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (PostMetricDataRequest) RetryPolicy ¶
func (request PostMetricDataRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (PostMetricDataRequest) String ¶
func (request PostMetricDataRequest) String() string
type PostMetricDataResponse ¶
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"` }
PostMetricDataResponse wrapper for the PostMetricData operation
func (PostMetricDataResponse) HTTPResponse ¶
func (response PostMetricDataResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (PostMetricDataResponse) String ¶
func (response PostMetricDataResponse) String() string
type PostMetricDataResponseDetails ¶
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"` }
PostMetricDataResponseDetails The response object returned from a PostMetricData operation.
func (PostMetricDataResponseDetails) String ¶
func (m PostMetricDataResponseDetails) String() string
type 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 }
RemoveAlarmSuppressionRequest wrapper for the RemoveAlarmSuppression operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/RemoveAlarmSuppression.go.html to see an example of how to use RemoveAlarmSuppressionRequest.
func (RemoveAlarmSuppressionRequest) HTTPRequest ¶
func (request RemoveAlarmSuppressionRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (RemoveAlarmSuppressionRequest) RetryPolicy ¶
func (request RemoveAlarmSuppressionRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (RemoveAlarmSuppressionRequest) String ¶
func (request RemoveAlarmSuppressionRequest) String() string
type RemoveAlarmSuppressionResponse ¶
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"` }
RemoveAlarmSuppressionResponse wrapper for the RemoveAlarmSuppression operation
func (RemoveAlarmSuppressionResponse) HTTPResponse ¶
func (response RemoveAlarmSuppressionResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (RemoveAlarmSuppressionResponse) String ¶
func (response RemoveAlarmSuppressionResponse) String() string
type SummarizeMetricsDataDetails ¶
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"` }
SummarizeMetricsDataDetails The request details for retrieving aggregated data. Use the query and optional properties to filter the returned results.
func (SummarizeMetricsDataDetails) String ¶
func (m SummarizeMetricsDataDetails) String() string
type 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 }
SummarizeMetricsDataRequest wrapper for the SummarizeMetricsData operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/SummarizeMetricsData.go.html to see an example of how to use SummarizeMetricsDataRequest.
func (SummarizeMetricsDataRequest) HTTPRequest ¶
func (request SummarizeMetricsDataRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (SummarizeMetricsDataRequest) RetryPolicy ¶
func (request SummarizeMetricsDataRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (SummarizeMetricsDataRequest) String ¶
func (request SummarizeMetricsDataRequest) String() string
type SummarizeMetricsDataResponse ¶
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"` }
SummarizeMetricsDataResponse wrapper for the SummarizeMetricsData operation
func (SummarizeMetricsDataResponse) HTTPResponse ¶
func (response SummarizeMetricsDataResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (SummarizeMetricsDataResponse) String ¶
func (response SummarizeMetricsDataResponse) String() string
type Suppression ¶
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"` }
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.
func (Suppression) String ¶
func (m Suppression) String() string
type UpdateAlarmDetails ¶
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"` }
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.
func (UpdateAlarmDetails) String ¶
func (m UpdateAlarmDetails) String() string
type 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 }
UpdateAlarmRequest wrapper for the UpdateAlarm operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/monitoring/UpdateAlarm.go.html to see an example of how to use UpdateAlarmRequest.
func (UpdateAlarmRequest) HTTPRequest ¶
func (request UpdateAlarmRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (UpdateAlarmRequest) RetryPolicy ¶
func (request UpdateAlarmRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (UpdateAlarmRequest) String ¶
func (request UpdateAlarmRequest) String() string
type UpdateAlarmResponse ¶
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"` }
UpdateAlarmResponse wrapper for the UpdateAlarm operation
func (UpdateAlarmResponse) HTTPResponse ¶
func (response UpdateAlarmResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (UpdateAlarmResponse) String ¶
func (response UpdateAlarmResponse) String() string
Source Files ¶
- aggregated_datapoint.go
- alarm.go
- alarm_history_collection.go
- alarm_history_entry.go
- alarm_status_summary.go
- alarm_summary.go
- change_alarm_compartment_details.go
- change_alarm_compartment_request_response.go
- create_alarm_details.go
- create_alarm_request_response.go
- datapoint.go
- delete_alarm_request_response.go
- failed_metric_record.go
- get_alarm_history_request_response.go
- get_alarm_request_response.go
- list_alarms_request_response.go
- list_alarms_status_request_response.go
- list_metrics_details.go
- list_metrics_request_response.go
- metric.go
- metric_data.go
- metric_data_details.go
- monitoring_client.go
- post_metric_data_details.go
- post_metric_data_request_response.go
- post_metric_data_response_details.go
- remove_alarm_suppression_request_response.go
- summarize_metrics_data_details.go
- summarize_metrics_data_request_response.go
- suppression.go
- update_alarm_details.go
- update_alarm_request_response.go