Documentation ¶
Overview ¶
Package oci implements a steampipe plugin for OCI.
This plugin provides data that Steampipe uses to present foreign tables that represent Oracle Cloud Infrastructure resources.
Index ¶
- Constants
- Variables
- func BuildCompartementRegionList(ctx context.Context, d *plugin.QueryData) []map[string]interface{}
- func BuildCompartementZonalList(ctx context.Context, d *plugin.QueryData) []map[string]interface{}
- func BuildCompartmentList(ctx context.Context, d *plugin.QueryData) []map[string]interface{}
- func BuildRegionList(_ context.Context, d *plugin.QueryData) []map[string]interface{}
- func ConfigInstance() interface{}
- func GetConfig(connection *plugin.Connection) ociConfig
- func MonitoringMetricColumns(columns []*plugin.Column) []*plugin.Column
- func Plugin(ctx context.Context) *plugin.Plugin
- type AlertRuleInfo
- type KeyInfo
- type KeyVersionInfo
- type MetricData
- type MonitoringMetricRow
Constants ¶
const ( // Constants for Standard Column Descriptions ColumnDescriptionAkas = "Array of globally unique identifier strings (also known as) for the resource." ColumnDescriptionTags = "A map of tags for the resource." ColumnDescriptionTitle = "Title of the resource." ColumnDescriptionTenant = "The OCID of the Tenant in which the resource is located." ColumnDescriptionCompartment = "The OCID of the compartment in Tenant in which the resource is located." ColumnDescriptionRegion = "The OCI region in which the resource is located." // Other repetitive columns for the provider ColumnDescriptionFreefromTags = "Free-form tags for resource. This tags can be applied by any user with permissions on the resource." ColumnDescriptionDefinedTags = "" /* 176-byte string literal not displayed */ ColumnDescriptionSystemTags = "System tags for resource. System tags can be viewed by users, but can only be created by the system." )
Variables ¶
var ConfigSchema = map[string]*schema.Attribute{ "regions": { Type: schema.TypeList, Elem: &schema.Attribute{Type: schema.TypeString}, }, "auth": { Type: schema.TypeString, }, "tenancy_ocid": { Type: schema.TypeString, }, "config_file_profile": { Type: schema.TypeString, }, "config_path": { Type: schema.TypeString, }, "user_ocid": { Type: schema.TypeString, }, "fingerprint": { Type: schema.TypeString, }, "private_key": { Type: schema.TypeString, }, "private_key_path": { Type: schema.TypeString, }, "private_key_password": { Type: schema.TypeString, }, "max_error_retry_attempts": { Type: schema.TypeInt, }, "min_error_retry_delay": { Type: schema.TypeInt, }, }
Functions ¶
func BuildCompartementRegionList ¶
BuildCompartmentRegionList :: return a list of matrix items, one per region-compartment specified in the connection config
func BuildCompartementZonalList ¶ added in v0.0.9
BuildCompartmentZonalList :: return a list of matrix items, one per zone-compartment specified in the connection config
func BuildCompartmentList ¶ added in v0.0.6
BuildCompartmentList :: return a list of matrix items, one per compartment specified in the connection config
func BuildRegionList ¶
BuildRegionList :: return a list of matrix items, one per region specified in the connection config
func ConfigInstance ¶
func ConfigInstance() interface{}
func GetConfig ¶
func GetConfig(connection *plugin.Connection) ociConfig
GetConfig :: retrieve and cast connection config from query data
func MonitoringMetricColumns ¶ added in v0.0.16
append the common metric columns onto the column list
Types ¶
type AlertRuleInfo ¶ added in v0.0.15
type AlertRuleInfo struct { // The OCID of the alert rule Id *string `mandatory:"true" json:"id"` // The OCID of the budget BudgetId *string `mandatory:"true" json:"budgetId"` // The name of the alert rule. DisplayName *string `mandatory:"true" json:"displayName"` // The type of alert. Valid values are ACTUAL (the alert will trigger based on actual usage) or // FORECAST (the alert will trigger based on predicted usage). Type budget.AlertTypeEnum `mandatory:"true" json:"type"` // The threshold for triggering the alert. If thresholdType is PERCENTAGE, the maximum value is 10000. Threshold *float32 `mandatory:"true" json:"threshold"` // The type of threshold. ThresholdType budget.ThresholdTypeEnum `mandatory:"true" json:"thresholdType"` // The current state of the alert rule. LifecycleState budget.LifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // Delimited list of email addresses to receive the alert when it triggers. // Delimiter character can be comma, space, TAB, or semicolon. Recipients *string `mandatory:"true" json:"recipients"` // Time budget was created TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // Time budget was updated TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` // Custom message sent when alert is triggered Message *string `mandatory:"false" json:"message"` // The description of the alert rule. Description *string `mandatory:"false" json:"description"` // Version of the alert rule. Starts from 1 and increments by 1. Version *int `mandatory:"false" json:"version"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` // The compartment id CompartmentId string }
type KeyInfo ¶ added in v0.0.13
type KeyInfo struct { keymanagement.KeySummary ManagementEndpoint string VaultName string }
type KeyVersionInfo ¶ added in v0.0.13
type KeyVersionInfo struct { keymanagement.KeyVersionSummary ManagementEndpoint string Region string }
type MetricData ¶ added in v0.0.16
type MonitoringMetricRow ¶ added in v0.0.16
type MonitoringMetricRow struct { // The compartment id CompartmentId *string // The (single) metric Dimension name DimensionName *string // The value for the (single) metric Dimension DimensionValue *string // The namespace of the metric Namespace *string // The name of the metric MetricName *string // The average of the metric values that correspond to the data point. Average *float64 // The maximum metric value for the data point. Maximum *float64 // The minimum metric value for the data point. Minimum *float64 // The number of metric values that contributed to the aggregate value of this // data point. SampleCount *float64 // The sum of the metric values for the data point. Sum *float64 // The time stamp used for the data point. Timestamp *time.Time // The standard unit for the data point. Unit *string Metadata map[string]string Region string }
Source Files ¶
- common_columns.go
- connection_config.go
- monitoring_metric.go
- multi_region.go
- not_found.go
- plugin.go
- service.go
- table_oci_analytics_instance.go
- table_oci_apigateway_api.go
- table_oci_autoscaling_auto_scaling_configuration.go
- table_oci_bastion_bastion.go
- table_oci_bastion_session.go
- table_oci_budget_alert_rule.go
- table_oci_budget_budget.go
- table_oci_cloud_guard_configuration.go
- table_oci_cloud_guard_detector_recipe.go
- table_oci_cloud_guard_managed_list.go
- table_oci_cloud_guard_responder_recipe.go
- table_oci_cloud_guard_target.go
- table_oci_containerengine_cluster.go
- table_oci_core_block_volume_replica.go
- table_oci_core_boot_volume.go
- table_oci_core_boot_volume_attachment.go
- table_oci_core_boot_volume_backup.go
- table_oci_core_boot_volume_metric_read_ops.go
- table_oci_core_boot_volume_metric_read_ops_daily.go
- table_oci_core_boot_volume_metric_read_ops_hourly.go
- table_oci_core_boot_volume_metric_write_ops.go
- table_oci_core_boot_volume_metric_write_ops_daily.go
- table_oci_core_boot_volume_metric_write_ops_hourly.go
- table_oci_core_boot_volume_replica.go
- table_oci_core_cluster_network.go
- table_oci_core_dhcp_options.go
- table_oci_core_drg.go
- table_oci_core_image.go
- table_oci_core_image_custom.go
- table_oci_core_instance.go
- table_oci_core_instance_configuration.go
- table_oci_core_instance_metric_cpu_utilization.go
- table_oci_core_instance_metric_cpu_utilization_daily.go
- table_oci_core_instance_metric_cpu_utilization_hourly.go
- table_oci_core_internet_gateway.go
- table_oci_core_load_balancer.go
- table_oci_core_local_peering_gateway.go
- table_oci_core_nat_gateway.go
- table_oci_core_network_load_balancer.go
- table_oci_core_network_security_group.go
- table_oci_core_public_ip.go
- table_oci_core_public_ip_pool.go
- table_oci_core_route_table.go
- table_oci_core_security_list.go
- table_oci_core_service_gateway.go
- table_oci_core_subnet.go
- table_oci_core_vcn.go
- table_oci_core_vnic_attachment.go
- table_oci_core_volume.go
- table_oci_core_volume_attachment.go
- table_oci_core_volume_backup.go
- table_oci_core_volume_backup_policy.go
- table_oci_core_volume_default_backup_policy.go
- table_oci_core_volume_group.go
- table_oci_database_autonomous_database.go
- table_oci_database_autonomous_db_cpu_utilization.go
- table_oci_database_autonomous_db_metric_cpu_utilization_daily.go
- table_oci_database_autonomous_db_metric_cpu_utilization_hourly.go
- table_oci_database_autonomous_db_metric_storage_utilization.go
- table_oci_database_autonomous_db_metric_storage_utilization_daily.go
- table_oci_database_autonomous_db_metric_storage_utilization_hourly.go
- table_oci_database_db.go
- table_oci_database_db_home.go
- table_oci_database_db_system.go
- table_oci_database_pluggable_database.go
- table_oci_database_software_image.go
- table_oci_dns_rrset.go
- table_oci_dns_tsig_key.go
- table_oci_dns_zone.go
- table_oci_events_rule.go
- table_oci_file_storage_file_system.go
- table_oci_file_storage_mount_target.go
- table_oci_file_storage_snapshot.go
- table_oci_functions_application.go
- table_oci_functions_function.go
- table_oci_identity_api_key.go
- table_oci_identity_auth_token.go
- table_oci_identity_authentication_policy.go
- table_oci_identity_availability_domain.go
- table_oci_identity_compartment.go
- table_oci_identity_customer_secret_key.go
- table_oci_identity_dynamic_group.go
- table_oci_identity_group.go
- table_oci_identity_network_source.go
- table_oci_identity_policy.go
- table_oci_identity_tag_default.go
- table_oci_identity_tag_namespace.go
- table_oci_identity_tenancy.go
- table_oci_identity_user.go
- table_oci_kms_key.go
- table_oci_kms_key_version.go
- table_oci_kms_vault.go
- table_oci_logging_log.go
- table_oci_logging_log_group.go
- table_oci_mysql_backup.go
- table_oci_mysql_channel.go
- table_oci_mysql_configuration.go
- table_oci_mysql_configuration_custom.go
- table_oci_mysql_db_system.go
- table_oci_mysql_db_system_metric_connections.go
- table_oci_mysql_db_system_metric_connections_daily.go
- table_oci_mysql_db_system_metric_connections_hourly.go
- table_oci_mysql_db_system_metric_cpu_utilization.go
- table_oci_mysql_db_system_metric_cpu_utilization_daily.go
- table_oci_mysql_db_system_metric_cpu_utilization_hourly.go
- table_oci_mysql_db_system_metric_memory_utilization.go
- table_oci_mysql_db_system_metric_memory_utilization_daily.go
- table_oci_mysql_heat_wave_cluster.go
- table_oci_nosql_table.go
- table_oci_nosql_table_metric_read_throttle_count.go
- table_oci_nosql_table_metric_read_throttle_count_daily.go
- table_oci_nosql_table_metric_read_throttle_count_hourly.go
- table_oci_nosql_table_metric_storage_utilization.go
- table_oci_nosql_table_metric_storage_utilization_daily.go
- table_oci_nosql_table_metric_storage_utilization_hourly.go
- table_oci_nosql_table_metric_write_throttle_count.go
- table_oci_nosql_table_metric_write_throttle_count_daily.go
- table_oci_nosql_table_metric_write_throttle_count_hourly.go
- table_oci_objectstorage_bucket.go
- table_oci_objectstorage_object.go
- table_oci_ons_notification_topic.go
- table_oci_ons_subscription.go
- table_oci_queue_queue.go
- table_oci_region.go
- table_oci_resource_search.go
- table_oci_resourcemanager_stack.go
- table_oci_streaming_stream.go
- table_oci_vault_secret.go
- utils.go