Class: OCI::LogAnalytics::LogAnalyticsClient
- Inherits:
-
Object
- Object
- OCI::LogAnalytics::LogAnalyticsClient
- Defined in:
- lib/oci/log_analytics/log_analytics_client.rb
Overview
The LogAnalytics API for the LogAnalytics service.
Instance Attribute Summary collapse
-
#api_client ⇒ OCI::ApiClient
readonly
Client used to make HTTP requests.
-
#endpoint ⇒ String
readonly
Fully qualified endpoint URL.
-
#region ⇒ String
The region, which will usually correspond to a value in Regions::REGION_ENUM.
-
#retry_config ⇒ OCI::Retry::RetryConfig
readonly
The default retry configuration to apply to all operations in this service client.
Instance Method Summary collapse
-
#add_entity_association(namespace_name, log_analytics_entity_id, add_entity_association_details, opts = {}) ⇒ Response
Adds association between input source log analytics entity and one or more existing destination entities.
-
#add_source_event_types(namespace_name, source_name, add_event_type_details, opts = {}) ⇒ Response
Add one or more event types to a source.
-
#append_lookup_data(namespace_name, lookup_name, append_lookup_file_body, opts = {}) ⇒ Response
Appends data to the lookup content.
-
#assign_encryption_key(namespace_name, assign_encryption_key_details, opts = {}) ⇒ Response
This API submits a work request to assign customer encryption key.
-
#batch_get_basic_info(namespace_name, basic_details, is_include_deleted, opts = {}) ⇒ Response
Lists basic information about a specified set of labels in batch.
-
#cancel_query_work_request(namespace_name, work_request_id, opts = {}) ⇒ Response
Cancel/Remove query job work request.
-
#change_ingest_time_rule_compartment(namespace_name, ingest_time_rule_id, change_ingest_time_rule_compartment_details, opts = {}) ⇒ Response
Moves the specified ingest time rule to a different compartment.
-
#change_log_analytics_em_bridge_compartment(namespace_name, log_analytics_em_bridge_id, change_log_analytics_em_bridge_compartment_details, opts = {}) ⇒ Response
Update the compartment of the log analytics enterprise manager bridge with the given id.
-
#change_log_analytics_entity_compartment(namespace_name, log_analytics_entity_id, change_log_analytics_entity_compartment_details, opts = {}) ⇒ Response
Update the compartment of the log analytics entity with the given id.
-
#change_log_analytics_log_group_compartment(namespace_name, log_analytics_log_group_id, change_log_analytics_log_group_compartment_details, opts = {}) ⇒ Response
Moves the specified log group to a different compartment.
-
#change_log_analytics_object_collection_rule_compartment(namespace_name, log_analytics_object_collection_rule_id, change_log_analytics_object_collection_rule_compartment_details, opts = {}) ⇒ Response
Move the rule from it's current compartment to the given compartment.
-
#change_scheduled_task_compartment(namespace_name, scheduled_task_id, change_scheduled_task_compartment_details, opts = {}) ⇒ Response
Move the scheduled task into a different compartment within the same tenancy.
-
#clean(namespace_name, scheduled_task_id, opts = {}) ⇒ Response
Clean accumulated acceleration data stored for the accelerated saved search.
-
#compare_content(namespace_name, compare_content_details, opts = {}) ⇒ Response
Returns the difference between the two input payloads, including intraline differences.
-
#create_ingest_time_rule(namespace_name, create_ingest_time_rule_details, opts = {}) ⇒ Response
Creates a new ingest time rule in the specified compartment.
-
#create_log_analytics_em_bridge(namespace_name, create_log_analytics_em_bridge_details, opts = {}) ⇒ Response
Add configuration for enterprise manager bridge.
-
#create_log_analytics_entity(namespace_name, create_log_analytics_entity_details, opts = {}) ⇒ Response
Create a new log analytics entity.
-
#create_log_analytics_entity_type(namespace_name, create_log_analytics_entity_type_details, opts = {}) ⇒ Response
Add custom log analytics entity type.
-
#create_log_analytics_log_group(namespace_name, create_log_analytics_log_group_details, opts = {}) ⇒ Response
Creates a new log group in the specified compartment with the input display name.
-
#create_log_analytics_object_collection_rule(namespace_name, create_log_analytics_object_collection_rule_details, opts = {}) ⇒ Response
Creates a rule to collect logs from an object storage bucket.
-
#create_scheduled_task(namespace_name, create_scheduled_task_details, opts = {}) ⇒ Response
Schedule a task as specified and return task info.
-
#delete_associations(namespace_name, delete_log_analytics_association_details, opts = {}) ⇒ Response
Deletes the associations between the sources and entities specified.
-
#delete_field(namespace_name, field_name, opts = {}) ⇒ Response
Deletes field with the specified name.
-
#delete_ingest_time_rule(namespace_name, ingest_time_rule_id, opts = {}) ⇒ Response
Deletes the specified ingest time rule.
-
#delete_label(namespace_name, label_name, opts = {}) ⇒ Response
Deletes label with the specified name.
-
#delete_log_analytics_em_bridge(namespace_name, log_analytics_em_bridge_id, opts = {}) ⇒ Response
Delete log analytics enterprise manager bridge with the given id.
-
#delete_log_analytics_entity(namespace_name, log_analytics_entity_id, opts = {}) ⇒ Response
Delete log analytics entity with the given id.
-
#delete_log_analytics_entity_type(namespace_name, entity_type_name, opts = {}) ⇒ Response
Delete log analytics entity type with the given name.
-
#delete_log_analytics_log_group(namespace_name, log_analytics_log_group_id, opts = {}) ⇒ Response
Deletes the specified log group.
-
#delete_log_analytics_object_collection_rule(namespace_name, log_analytics_object_collection_rule_id, opts = {}) ⇒ Response
Deletes the configured object storage bucket based collection rule and stop the log collection.
-
#delete_lookup(namespace_name, lookup_name, opts = {}) ⇒ Response
Deletes lookup with the specified name.
-
#delete_parser(namespace_name, parser_name, opts = {}) ⇒ Response
Deletes parser with the specified name.
-
#delete_scheduled_task(namespace_name, scheduled_task_id, opts = {}) ⇒ Response
Delete the scheduled task.
-
#delete_source(namespace_name, source_name, opts = {}) ⇒ Response
Deletes source with the specified name.
-
#delete_upload(namespace_name, upload_reference, opts = {}) ⇒ Response
Deletes an Upload by its reference.
-
#delete_upload_file(namespace_name, upload_reference, file_reference, opts = {}) ⇒ Response
Deletes a specific log file inside an upload by upload file reference.
-
#delete_upload_warning(namespace_name, upload_reference, warning_reference, opts = {}) ⇒ Response
Suppresses a specific warning inside an upload.
-
#disable_archiving(namespace_name, opts = {}) ⇒ Response
This API disables archiving.
-
#disable_auto_association(namespace_name, source_name, disable_auto_association_details, opts = {}) ⇒ Response
Disables auto association for a log source.
-
#disable_ingest_time_rule(namespace_name, ingest_time_rule_id, opts = {}) ⇒ Response
Disables the specified ingest time rule.
-
#disable_source_event_types(namespace_name, source_name, disable_event_type_details, opts = {}) ⇒ Response
Disable one or more event types in a source.
-
#enable_archiving(namespace_name, opts = {}) ⇒ Response
THis API enables archiving.
-
#enable_auto_association(namespace_name, source_name, enable_auto_association_details, opts = {}) ⇒ Response
Enables auto association for a log source.
-
#enable_ingest_time_rule(namespace_name, ingest_time_rule_id, opts = {}) ⇒ Response
Enables the specified ingest time rule.
-
#enable_source_event_types(namespace_name, source_name, enable_event_type_details, opts = {}) ⇒ Response
Enable one or more event types in a source.
-
#estimate_purge_data_size(namespace_name, estimate_purge_data_size_details, opts = {}) ⇒ Response
This API estimates the size of data to be purged based based on time interval, purge query etc.
-
#estimate_recall_data_size(namespace_name, estimate_recall_data_size_details, opts = {}) ⇒ Response
This API gives an active storage usage estimate for archived data to be recalled and the time range of such data.
-
#estimate_release_data_size(namespace_name, estimate_release_data_size_details, opts = {}) ⇒ Response
This API gives an active storage usage estimate for recalled data to be released and the time range of such data.
-
#export_custom_content(namespace_name, export_custom_content_details, opts = {}, &block) ⇒ Response
Exports all custom details of the specified sources, parsers, fields and labels, in zip format.
-
#export_query_result(namespace_name, export_details, opts = {}, &block) ⇒ Response
Export data based on query.
-
#extract_structured_log_field_paths(namespace_name, logan_parser_details, opts = {}) ⇒ Response
Extracts the field paths from the example json or xml content.
-
#extract_structured_log_header_paths(namespace_name, logan_parser_details, opts = {}) ⇒ Response
Extracts the header paths from the example json or xml content.
-
#filter(namespace_name, filter_details, opts = {}) ⇒ Response
Each filter specifies an operator, a field and one or more values to be inserted into the provided query as criteria.
-
#get_association_summary(namespace_name, compartment_id, opts = {}) ⇒ Response
Returns the count of source associations for entities in the specified compartment.
-
#get_category(namespace_name, category_name, opts = {}) ⇒ Response
Gets detailed information about the category with the specified name.
-
#get_column_names(namespace_name, sql_query, opts = {}) ⇒ Response
Extracts column names from the input SQL query.
-
#get_config_work_request(namespace_name, work_request_id, opts = {}) ⇒ Response
Returns detailed information about the configuration work request with the specified id.
-
#get_field(namespace_name, field_name, opts = {}) ⇒ Response
Gets detailed information about the field with the specified name.
-
#get_fields_summary(namespace_name, opts = {}) ⇒ Response
Returns the count of fields.
-
#get_ingest_time_rule(namespace_name, ingest_time_rule_id, opts = {}) ⇒ Response
Gets detailed information about the specified ingest time rule such as description, defined tags, and free-form tags.
-
#get_label(namespace_name, label_name, opts = {}) ⇒ Response
Gets detailed information about the label with the specified name.
-
#get_label_summary(namespace_name, opts = {}) ⇒ Response
Returns the count of labels.
-
#get_log_analytics_em_bridge(namespace_name, log_analytics_em_bridge_id, opts = {}) ⇒ Response
Retrieve the log analytics enterprise manager bridge with the given id.
-
#get_log_analytics_em_bridge_summary(namespace_name, compartment_id, opts = {}) ⇒ Response
Returns log analytics enterprise manager bridges summary report.
-
#get_log_analytics_entities_summary(namespace_name, compartment_id, opts = {}) ⇒ Response
Returns log analytics entities count summary report.
-
#get_log_analytics_entity(namespace_name, log_analytics_entity_id, opts = {}) ⇒ Response
Retrieve the log analytics entity with the given id.
-
#get_log_analytics_entity_type(namespace_name, entity_type_name, opts = {}) ⇒ Response
Retrieve the log analytics entity type with the given name.
-
#get_log_analytics_log_group(namespace_name, log_analytics_log_group_id, opts = {}) ⇒ Response
Gets detailed information about the specified log group such as display name, description, defined tags, and free-form tags.
-
#get_log_analytics_log_groups_summary(namespace_name, compartment_id, opts = {}) ⇒ Response
Returns the count of log groups in a compartment.
-
#get_log_analytics_object_collection_rule(namespace_name, log_analytics_object_collection_rule_id, opts = {}) ⇒ Response
Gets a configured object storage based collection rule by given id.
-
#get_log_sets_count(namespace_name, opts = {}) ⇒ Response
This API returns the count of distinct log sets.
-
#get_lookup(namespace_name, lookup_name, opts = {}) ⇒ Response
Gets detailed information about the lookup with the specified name.
-
#get_lookup_summary(namespace_name, opts = {}) ⇒ Response
Returns the count of user created and oracle defined lookups.
-
#get_namespace(namespace_name, opts = {}) ⇒ Response
This API gets the namespace details of a tenancy already onboarded in Logging Analytics Application.
-
#get_parser(namespace_name, parser_name, opts = {}) ⇒ Response
Gets detailed information about the parser with the specified name.
-
#get_parser_summary(namespace_name, opts = {}) ⇒ Response
Returns the count of parsers.
-
#get_preferences(namespace_name, opts = {}) ⇒ Response
Lists the tenant preferences such as DEFAULT_HOMEPAGE and collection properties.
-
#get_query_result(namespace_name, work_request_id, opts = {}) ⇒ Response
Returns the intermediate results for a query that was specified to run asynchronously if the query has not completed, otherwise the final query results identified by a queryWorkRequestId returned when submitting the query execute asynchronously.
-
#get_query_work_request(namespace_name, work_request_id, opts = {}) ⇒ Response
Retrieve work request details by workRequestId.
-
#get_recall_count(namespace_name, opts = {}) ⇒ Response
This API gets the number of recalls made and the maximum recalls that can be made.
-
#get_recalled_data_size(namespace_name, opts = {}) ⇒ Response
This API gets the datasize of recalls for a given timeframe.
-
#get_rules_summary(namespace_name, compartment_id, opts = {}) ⇒ Response
Returns the count of detection rules in a compartment.
-
#get_scheduled_task(namespace_name, scheduled_task_id, opts = {}) ⇒ Response
Get the scheduled task for the specified task identifier.
-
#get_source(namespace_name, source_name, compartment_id, opts = {}) ⇒ Response
Gets detailed information about the source with the specified name.
-
#get_source_summary(namespace_name, opts = {}) ⇒ Response
Returns the count of sources.
-
#get_storage(namespace_name, opts = {}) ⇒ Response
This API gets the storage configuration of a tenancy.
-
#get_storage_usage(namespace_name, opts = {}) ⇒ Response
This API gets storage usage information of a tenancy.
-
#get_storage_work_request(work_request_id, namespace_name, opts = {}) ⇒ Response
This API returns work request details specified by workRequestId.
-
#get_unprocessed_data_bucket(namespace_name, opts = {}) ⇒ Response
This API retrieves details of the configured bucket that stores unprocessed payloads.
-
#get_upload(namespace_name, upload_reference, opts = {}) ⇒ Response
Gets an On-Demand Upload info by reference.
-
#get_work_request(namespace_name, work_request_id, opts = {}) ⇒ Response
Gets the status of the work request with the given ID.
-
#import_custom_content(namespace_name, import_custom_content_file_body, opts = {}) ⇒ Response
Imports the specified custom content from the input in zip format.
-
#initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) ⇒ LogAnalyticsClient
constructor
Creates a new LogAnalyticsClient.
-
#list_associable_entities(namespace_name, source_name, compartment_id, opts = {}) ⇒ Response
Lists the entities in the specified compartment which are (in)eligible for association with this source.
-
#list_associated_entities(namespace_name, compartment_id, opts = {}) ⇒ Response
Lists the association details of entities in the specified compartment that are associated with at least one source.
-
#list_auto_associations(namespace_name, source_name, opts = {}) ⇒ Response
Gets information related to auto association for the source with the specified name.
-
#list_categories(namespace_name, opts = {}) ⇒ Response
Returns a list of categories, containing detailed information about them.
-
#list_config_work_requests(namespace_name, compartment_id, opts = {}) ⇒ Response
Returns the list of configuration work requests such as association or lookup operations, containing detailed information about them.
-
#list_effective_properties(namespace_name, opts = {}) ⇒ Response
Returns a list of effective properties for the specified resource.
-
#list_encryption_key_info(namespace_name, opts = {}) ⇒ Response
This API returns the list of customer owned encryption key info.
-
#list_entity_associations(namespace_name, log_analytics_entity_id, opts = {}) ⇒ Response
Return a list of log analytics entities associated with input source log analytics entity.
-
#list_entity_source_associations(namespace_name, compartment_id, opts = {}) ⇒ Response
Returns the list of source associations for the specified entity.
-
#list_fields(namespace_name, opts = {}) ⇒ Response
Returns a list of log fields, containing detailed information about them.
-
#list_ingest_time_rules(namespace_name, compartment_id, opts = {}) ⇒ Response
Returns a list of ingest time rules in a compartment.
-
#list_label_priorities(namespace_name, opts = {}) ⇒ Response
Lists the available problem priorities that could be associated with a label.
-
#list_label_source_details(namespace_name, opts = {}) ⇒ Response
Lists sources using the label, along with configuration details like base field, operator and condition.
-
#list_labels(namespace_name, opts = {}) ⇒ Response
Returns a list of labels, containing detailed information about them.
-
#list_log_analytics_em_bridges(namespace_name, compartment_id, opts = {}) ⇒ Response
Return a list of log analytics enterprise manager bridges.
-
#list_log_analytics_entities(namespace_name, compartment_id, opts = {}) ⇒ Response
Return a list of log analytics entities.
-
#list_log_analytics_entity_topology(namespace_name, log_analytics_entity_id, opts = {}) ⇒ Response
Return a log analytics entity topology collection that contains a set of log analytics entities and a set of relationships between those, for the input source entity.
-
#list_log_analytics_entity_types(namespace_name, opts = {}) ⇒ Response
Return a list of log analytics entity types.
-
#list_log_analytics_log_groups(namespace_name, compartment_id, opts = {}) ⇒ Response
Returns a list of log groups in a compartment.
-
#list_log_analytics_object_collection_rules(namespace_name, compartment_id, opts = {}) ⇒ Response
Gets list of collection rules.
-
#list_log_sets(namespace_name, opts = {}) ⇒ Response
This API returns a list of log sets.
-
#list_lookups(namespace_name, type, opts = {}) ⇒ Response
Returns a list of lookups, containing detailed information about them.
-
#list_meta_source_types(namespace_name, opts = {}) ⇒ Response
Lists the types of log sources supported.
-
#list_namespaces(compartment_id, opts = {}) ⇒ Response
Given a tenancy OCID, this API returns the namespace of the tenancy if it is valid and subscribed to the region.
-
#list_overlapping_recalls(namespace_name, opts = {}) ⇒ Response
This API gets the list of overlapping recalls made in the given timeframe.
-
#list_parser_functions(namespace_name, opts = {}) ⇒ Response
Lists the parser functions defined for the specified parser.
-
#list_parser_meta_plugins(namespace_name, opts = {}) ⇒ Response
Lists the parser meta plugins available for defining parser functions.
-
#list_parsers(namespace_name, opts = {}) ⇒ Response
Returns a list of parsers, containing detailed information about them.
-
#list_properties_metadata(namespace_name, opts = {}) ⇒ Response
Returns a list of properties along with their metadata.
-
#list_query_work_requests(namespace_name, compartment_id, opts = {}) ⇒ Response
List active asynchronous queries.
-
#list_recalled_data(namespace_name, opts = {}) ⇒ Response
This API returns the list of recalled data of a tenancy.
-
#list_resource_categories(namespace_name, opts = {}) ⇒ Response
Returns a list of resources and their category assignments.
-
#list_rules(namespace_name, compartment_id, opts = {}) ⇒ Response
Returns a list of ingest time rules and scheduled tasks in a compartment.
-
#list_scheduled_tasks(namespace_name, task_type, compartment_id, opts = {}) ⇒ Response
Lists scheduled tasks.
-
#list_source_associations(namespace_name, source_name, compartment_id, opts = {}) ⇒ Response
Returns the list of entity associations in the input compartment for the specified source.
-
#list_source_event_types(namespace_name, source_name, opts = {}) ⇒ Response
Lists the event types mapped to the source with the specified name.
-
#list_source_extended_field_definitions(namespace_name, source_name, opts = {}) ⇒ Response
Lists the extended field definitions for the source with the specified name.
-
#list_source_label_operators(namespace_name, opts = {}) ⇒ Response
Lists the supported conditional operators that could be used for matching log field values to generate a label.
-
#list_source_meta_functions(namespace_name, opts = {}) ⇒ Response
Lists the functions that could be used to enrich log entries based on meaningful information extracted from the log fields.
-
#list_source_patterns(namespace_name, source_name, opts = {}) ⇒ Response
Lists the source patterns for the source with the specified name.
-
#list_sources(namespace_name, compartment_id, opts = {}) ⇒ Response
Returns a list of sources, containing detailed information about them.
-
#list_storage_work_request_errors(compartment_id, work_request_id, namespace_name, opts = {}) ⇒ Response
This API returns the list of work request errors if any.
-
#list_storage_work_requests(compartment_id, namespace_name, opts = {}) ⇒ Response
This API lists storage work requests.
-
#list_supported_char_encodings(namespace_name, opts = {}) ⇒ Response
Gets list of character encodings which are supported by on-demand upload.
-
#list_supported_timezones(namespace_name, opts = {}) ⇒ Response
Gets list of timezones which are supported by on-demand upload.
-
#list_upload_files(namespace_name, upload_reference, opts = {}) ⇒ Response
Gets list of files in an upload along with its processing state.
-
#list_upload_warnings(namespace_name, upload_reference, opts = {}) ⇒ Response
Gets list of warnings in an upload caused by incorrect configuration.
-
#list_uploads(namespace_name, opts = {}) ⇒ Response
Gets a list of all On-demand uploads.
-
#list_warnings(namespace_name, compartment_id, opts = {}) ⇒ Response
Returns a list of collection warnings, containing detailed information about them.
-
#list_work_request_errors(namespace_name, work_request_id, opts = {}) ⇒ Response
Return a (paginated) list of errors for a given work request.
-
#list_work_request_logs(namespace_name, work_request_id, opts = {}) ⇒ Response
Return a (paginated) list of logs for a given work request.
-
#list_work_requests(namespace_name, compartment_id, opts = {}) ⇒ Response
Lists the work requests in a compartment.
-
#logger ⇒ Logger
The logger for this client.
-
#offboard_namespace(namespace_name, opts = {}) ⇒ Response
Off-boards a tenant from Logging Analytics.
-
#onboard_namespace(namespace_name, opts = {}) ⇒ Response
On-boards a tenant to Logging Analytics.
-
#parse_query(namespace_name, parse_query_details, opts = {}) ⇒ Response
Describe query.
-
#pause_scheduled_task(namespace_name, scheduled_task_id, opts = {}) ⇒ Response
Pause the scheduled task specified by scheduledTaskId.
-
#purge_storage_data(namespace_name, purge_storage_data_details, opts = {}) ⇒ Response
This API submits a work request to purge data.
-
#put_query_work_request_background(namespace_name, work_request_id, opts = {}) ⇒ Response
Put the work request specified by workRequestId into the background.
-
#query(namespace_name, query_details, opts = {}) ⇒ Response
Performs a log analytics search, if shouldRunAsync is false returns the query results once they become available subject to 60 second timeout.
-
#recall_archived_data(namespace_name, recall_archived_data_details, opts = {}) ⇒ Response
This API submits a work request to recall archived data based on time interval and data type.
-
#register_lookup(namespace_name, type, register_lookup_content_file_body, opts = {}) ⇒ Response
Creates a lookup with the specified name, type and description.
-
#release_recalled_data(namespace_name, release_recalled_data_details, opts = {}) ⇒ Response
This API submits a work request to release recalled data based on time interval and data type.
-
#remove_entity_associations(namespace_name, log_analytics_entity_id, remove_entity_associations_details, opts = {}) ⇒ Response
Delete association between input source log analytics entity and destination entities.
-
#remove_preferences(namespace_name, remove_preferences_details, opts = {}) ⇒ Response
Removes the tenant preferences such as DEFAULT_HOMEPAGE and collection properties.
-
#remove_resource_categories(namespace_name, remove_resource_categories_details, opts = {}) ⇒ Response
Removes the category assignments of DASHBOARD and SAVEDSEARCH resources.
-
#remove_source_event_types(namespace_name, source_name, remove_event_type_details, opts = {}) ⇒ Response
Remove one or more event types from a source.
-
#resume_scheduled_task(namespace_name, scheduled_task_id, opts = {}) ⇒ Response
Resume the scheduled task specified by scheduledTaskId.
-
#run(namespace_name, scheduled_task_id, opts = {}) ⇒ Response
Execute the saved search acceleration task in the foreground.
-
#set_unprocessed_data_bucket(namespace_name, bucket_name, opts = {}) ⇒ Response
This API configures a bucket to store unprocessed payloads.
-
#suggest(namespace_name, suggest_details, opts = {}) ⇒ Response
Returns a context specific list of either commands, fields, or values to append to the end of the specified query string if applicable.
-
#suppress_warning(namespace_name, warning_reference_details, compartment_id, opts = {}) ⇒ Response
Supresses a list of warnings.
-
#test_parser(namespace_name, test_parser_payload_details, opts = {}) ⇒ Response
Tests the parser definition against the specified example content to ensure fields are successfully extracted.
-
#unsuppress_warning(namespace_name, warning_reference_details, compartment_id, opts = {}) ⇒ Response
Unsupresses a list of warnings.
-
#update_ingest_time_rule(namespace_name, ingest_time_rule_id, update_ingest_time_rule_details, opts = {}) ⇒ Response
Updates the specified ingest time rule's description, defined tags, and free-form tags.
-
#update_log_analytics_em_bridge(namespace_name, log_analytics_em_bridge_id, update_log_analytics_em_bridge_details, opts = {}) ⇒ Response
Update log analytics enterprise manager bridge with the given id.
-
#update_log_analytics_entity(namespace_name, log_analytics_entity_id, update_log_analytics_entity_details, opts = {}) ⇒ Response
Update the log analytics entity with the given id.
-
#update_log_analytics_entity_type(namespace_name, update_log_analytics_entity_type_details, entity_type_name, opts = {}) ⇒ Response
Update custom log analytics entity type.
-
#update_log_analytics_log_group(namespace_name, log_analytics_log_group_id, update_log_analytics_log_group_details, opts = {}) ⇒ Response
Updates the specified log group's display name, description, defined tags, and free-form tags.
-
#update_log_analytics_object_collection_rule(namespace_name, log_analytics_object_collection_rule_id, update_log_analytics_object_collection_rule_details, opts = {}) ⇒ Response
Updates configuration of the object collection rule for the given id.
-
#update_lookup(namespace_name, lookup_name, update_lookup_metadata_details, opts = {}) ⇒ Response
Updates the metadata of the specified lookup, such as the lookup description.
-
#update_lookup_data(namespace_name, lookup_name, update_lookup_file_body, opts = {}) ⇒ Response
Updates the lookup content.
-
#update_preferences(namespace_name, update_preferences_details, opts = {}) ⇒ Response
Updates the tenant preferences such as DEFAULT_HOMEPAGE and collection properties.
-
#update_resource_categories(namespace_name, update_resource_categories_details, opts = {}) ⇒ Response
Updates the category assignments of DASHBOARD and SAVEDSEARCH resources.
-
#update_scheduled_task(namespace_name, scheduled_task_id, update_scheduled_task_details, opts = {}) ⇒ Response
Update the scheduled task.
-
#update_storage(namespace_name, update_storage_details, opts = {}) ⇒ Response
This API updates the archiving configuration.
-
#upload_discovery_data(namespace_name, upload_discovery_data_details, opts = {}) ⇒ Response
Accepts discovery data for processing by Logging Analytics.
-
#upload_log_events_file(namespace_name, log_group_id, upload_log_events_file_details, opts = {}) ⇒ Response
Accepts log events for processing by Logging Analytics.
-
#upload_log_file(namespace_name, upload_name, log_source_name, filename, opc_meta_loggrpid, upload_log_file_body, opts = {}) ⇒ Response
Accepts log data for processing by Logging Analytics.
-
#upsert_associations(namespace_name, upsert_log_analytics_association_details, opts = {}) ⇒ Response
Creates or updates associations between sources and entities.
-
#upsert_field(namespace_name, upsert_log_analytics_field_details, opts = {}) ⇒ Response
Creates or updates a field that could be used in parser expressions to extract and assign value.
-
#upsert_label(namespace_name, upsert_log_analytics_label_details, opts = {}) ⇒ Response
Creates or updates a label that could be used to tag a log entry.
-
#upsert_parser(namespace_name, upsert_log_analytics_parser_details, opts = {}) ⇒ Response
Creates or updates a parser, which defines how fields are extracted from a log entry.
-
#upsert_source(namespace_name, upsert_log_analytics_source_details, opts = {}) ⇒ Response
Creates or updates a log source.
-
#validate_association_parameters(namespace_name, upsert_log_analytics_association_details, opts = {}) ⇒ Response
Checks if the passed in entities could be associated with the specified sources.
-
#validate_endpoint(namespace_name, validate_endpoint_details, opts = {}) ⇒ Response
Validates the REST endpoint configuration.
-
#validate_file(namespace_name, object_location, filename, opts = {}) ⇒ Response
Validates a log file to check whether it is eligible to be uploaded or not.
-
#validate_label_condition(namespace_name, validate_label_condition_details, opts = {}) ⇒ Response
Validates specified condition for a source label.
-
#validate_source(namespace_name, upsert_log_analytics_source_details, opts = {}) ⇒ Response
Checks if the specified input is a valid log source definition.
-
#validate_source_extended_field_details(namespace_name, log_analytics_source, opts = {}) ⇒ Response
Checks if the specified input contains valid extended field definitions against the provided example content.
-
#validate_source_mapping(namespace_name, object_location, filename, log_source_name, opts = {}) ⇒ Response
Validates the source mapping for a given file and provides match status and the parsed representation of log data.
-
#verify(namespace_name, scheduled_task_id, opts = {}) ⇒ Response
Verify the accelerated saved search task specified by scheduledTaskId.
Constructor Details
#initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) ⇒ LogAnalyticsClient
Creates a new LogAnalyticsClient. Notes: If a config is not specified, then the global OCI.config will be used.
This client is not thread-safe
Either a region or an endpoint must be specified. If an endpoint is specified, it will be used instead of the region. A region may be specified in the config or via or the region parameter. If specified in both, then the region parameter will be used.
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 55 def initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) # If the signer is an InstancePrincipalsSecurityTokenSigner or SecurityTokenSigner and no config was supplied (they are self-sufficient signers) # then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals # and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then # pass it to this constructor. # # If there is no signer (or the signer is not an instance principals signer) and no config was supplied, this is not valid # so try and load the config from the default file. config = OCI::Config.validate_and_build_config_with_signer(config, signer) signer = OCI::Signer.config_file_auth_builder(config) if signer.nil? @api_client = OCI::ApiClient.new(config, signer, proxy_settings: proxy_settings) @retry_config = retry_config if endpoint @endpoint = endpoint + '/20200601' else region ||= config.region region ||= signer.region if signer.respond_to?(:region) self.region = region end logger.info "LogAnalyticsClient endpoint set to '#{@endpoint}'." if logger end |
Instance Attribute Details
#api_client ⇒ OCI::ApiClient (readonly)
Client used to make HTTP requests.
15 16 17 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 15 def api_client @api_client end |
#endpoint ⇒ String (readonly)
Fully qualified endpoint URL
19 20 21 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 19 def endpoint @endpoint end |
#region ⇒ String
The region, which will usually correspond to a value in Regions::REGION_ENUM.
29 30 31 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 29 def region @region end |
#retry_config ⇒ OCI::Retry::RetryConfig (readonly)
The default retry configuration to apply to all operations in this service client. This can be overridden on a per-operation basis. The default retry configuration value is nil
, which means that an operation will not perform any retries
25 26 27 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 25 def retry_config @retry_config end |
Instance Method Details
#add_entity_association(namespace_name, log_analytics_entity_id, add_entity_association_details, opts = {}) ⇒ Response
Click here to see an example of how to use add_entity_association API.
Adds association between input source log analytics entity and one or more existing destination entities.
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 127 def add_entity_association(namespace_name, log_analytics_entity_id, add_entity_association_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#add_entity_association.' if logger raise "Missing the required parameter 'namespace_name' when calling add_entity_association." if namespace_name.nil? raise "Missing the required parameter 'log_analytics_entity_id' when calling add_entity_association." if log_analytics_entity_id.nil? raise "Missing the required parameter 'add_entity_association_details' when calling add_entity_association." if add_entity_association_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'log_analytics_entity_id' must not be blank" if OCI::Internal::Util.blank_string?(log_analytics_entity_id) path = '/namespaces/{namespaceName}/logAnalyticsEntities/{logAnalyticsEntityId}/actions/addEntityAssociations'.sub('{namespaceName}', namespace_name.to_s).sub('{logAnalyticsEntityId}', log_analytics_entity_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(add_entity_association_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#add_entity_association') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#add_source_event_types(namespace_name, source_name, add_event_type_details, opts = {}) ⇒ Response
Click here to see an example of how to use add_source_event_types API.
Add one or more event types to a source. An event type and version can be enabled only on one source.
198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 198 def add_source_event_types(namespace_name, source_name, add_event_type_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#add_source_event_types.' if logger raise "Missing the required parameter 'namespace_name' when calling add_source_event_types." if namespace_name.nil? raise "Missing the required parameter 'source_name' when calling add_source_event_types." if source_name.nil? raise "Missing the required parameter 'add_event_type_details' when calling add_source_event_types." if add_event_type_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'source_name' must not be blank" if OCI::Internal::Util.blank_string?(source_name) path = '/namespaces/{namespaceName}/sources/{sourceName}/actions/addEventTypes'.sub('{namespaceName}', namespace_name.to_s).sub('{sourceName}', source_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(add_event_type_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#add_source_event_types') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#append_lookup_data(namespace_name, lookup_name, append_lookup_file_body, opts = {}) ⇒ Response
Click here to see an example of how to use append_lookup_data API.
Appends data to the lookup content. The csv file containing the content to be appended is passed in as binary data in the request.
279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 279 def append_lookup_data(namespace_name, lookup_name, append_lookup_file_body, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#append_lookup_data.' if logger raise "Missing the required parameter 'namespace_name' when calling append_lookup_data." if namespace_name.nil? raise "Missing the required parameter 'lookup_name' when calling append_lookup_data." if lookup_name.nil? raise "Missing the required parameter 'append_lookup_file_body' when calling append_lookup_data." if append_lookup_file_body.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'lookup_name' must not be blank" if OCI::Internal::Util.blank_string?(lookup_name) path = '/namespaces/{namespaceName}/lookups/{lookupName}/actions/appendData'.sub('{namespaceName}', namespace_name.to_s).sub('{lookupName}', lookup_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isForce] = opts[:is_force] if !opts[:is_force].nil? query_params[:charEncoding] = opts[:char_encoding] if opts[:char_encoding] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:expect] = opts[:expect] if opts[:expect] # rubocop:enable Style/NegatedIf header_params[:'content-type'] ||= 'application/octet-stream' header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(append_lookup_file_body) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#append_lookup_data') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#assign_encryption_key(namespace_name, assign_encryption_key_details, opts = {}) ⇒ Response
Click here to see an example of how to use assign_encryption_key API.
This API submits a work request to assign customer encryption key.
357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 357 def assign_encryption_key(namespace_name, assign_encryption_key_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#assign_encryption_key.' if logger raise "Missing the required parameter 'namespace_name' when calling assign_encryption_key." if namespace_name.nil? raise "Missing the required parameter 'assign_encryption_key_details' when calling assign_encryption_key." if assign_encryption_key_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/storage/actions/assignEncryptionKey'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(assign_encryption_key_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#assign_encryption_key') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#batch_get_basic_info(namespace_name, basic_details, is_include_deleted, opts = {}) ⇒ Response
Click here to see an example of how to use batch_get_basic_info API.
Lists basic information about a specified set of labels in batch.
427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 427 def batch_get_basic_info(namespace_name, basic_details, is_include_deleted, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#batch_get_basic_info.' if logger raise "Missing the required parameter 'namespace_name' when calling batch_get_basic_info." if namespace_name.nil? raise "Missing the required parameter 'basic_details' when calling batch_get_basic_info." if basic_details.nil? raise "Missing the required parameter 'is_include_deleted' when calling batch_get_basic_info." if is_include_deleted.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:basic_label_sort_by] && !%w[name priority].include?(opts[:basic_label_sort_by]) raise 'Invalid value for "basic_label_sort_by", must be one of name, priority.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/labels/actions/basicInfo'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isIncludeDeleted] = is_include_deleted query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:basicLabelSortBy] = opts[:basic_label_sort_by] if opts[:basic_label_sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' post_body = @api_client.object_to_http_body(basic_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#batch_get_basic_info') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsLabelCollection' ) end # rubocop:enable Metrics/BlockLength end |
#cancel_query_work_request(namespace_name, work_request_id, opts = {}) ⇒ Response
Click here to see an example of how to use cancel_query_work_request API.
Cancel/Remove query job work request.
505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 505 def cancel_query_work_request(namespace_name, work_request_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#cancel_query_work_request.' if logger raise "Missing the required parameter 'namespace_name' when calling cancel_query_work_request." if namespace_name.nil? raise "Missing the required parameter 'work_request_id' when calling cancel_query_work_request." if work_request_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id) path = '/namespaces/{namespaceName}/queryWorkRequests/{workRequestId}'.sub('{namespaceName}', namespace_name.to_s).sub('{workRequestId}', work_request_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#cancel_query_work_request') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_ingest_time_rule_compartment(namespace_name, ingest_time_rule_id, change_ingest_time_rule_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_ingest_time_rule_compartment API.
Moves the specified ingest time rule to a different compartment.
578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 578 def change_ingest_time_rule_compartment(namespace_name, ingest_time_rule_id, change_ingest_time_rule_compartment_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#change_ingest_time_rule_compartment.' if logger raise "Missing the required parameter 'namespace_name' when calling change_ingest_time_rule_compartment." if namespace_name.nil? raise "Missing the required parameter 'ingest_time_rule_id' when calling change_ingest_time_rule_compartment." if ingest_time_rule_id.nil? raise "Missing the required parameter 'change_ingest_time_rule_compartment_details' when calling change_ingest_time_rule_compartment." if change_ingest_time_rule_compartment_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'ingest_time_rule_id' must not be blank" if OCI::Internal::Util.blank_string?(ingest_time_rule_id) path = '/namespaces/{namespaceName}/ingestTimeRules/{ingestTimeRuleId}/actions/changeCompartment'.sub('{namespaceName}', namespace_name.to_s).sub('{ingestTimeRuleId}', ingest_time_rule_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_ingest_time_rule_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#change_ingest_time_rule_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_log_analytics_em_bridge_compartment(namespace_name, log_analytics_em_bridge_id, change_log_analytics_em_bridge_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_log_analytics_em_bridge_compartment API.
Update the compartment of the log analytics enterprise manager bridge with the given id.
654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 654 def change_log_analytics_em_bridge_compartment(namespace_name, log_analytics_em_bridge_id, change_log_analytics_em_bridge_compartment_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#change_log_analytics_em_bridge_compartment.' if logger raise "Missing the required parameter 'namespace_name' when calling change_log_analytics_em_bridge_compartment." if namespace_name.nil? raise "Missing the required parameter 'log_analytics_em_bridge_id' when calling change_log_analytics_em_bridge_compartment." if log_analytics_em_bridge_id.nil? raise "Missing the required parameter 'change_log_analytics_em_bridge_compartment_details' when calling change_log_analytics_em_bridge_compartment." if change_log_analytics_em_bridge_compartment_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'log_analytics_em_bridge_id' must not be blank" if OCI::Internal::Util.blank_string?(log_analytics_em_bridge_id) path = '/namespaces/{namespaceName}/logAnalyticsEmBridges/{logAnalyticsEmBridgeId}/actions/changeCompartment'.sub('{namespaceName}', namespace_name.to_s).sub('{logAnalyticsEmBridgeId}', log_analytics_em_bridge_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_log_analytics_em_bridge_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#change_log_analytics_em_bridge_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_log_analytics_entity_compartment(namespace_name, log_analytics_entity_id, change_log_analytics_entity_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_log_analytics_entity_compartment API.
Update the compartment of the log analytics entity with the given id.
730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 730 def change_log_analytics_entity_compartment(namespace_name, log_analytics_entity_id, change_log_analytics_entity_compartment_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#change_log_analytics_entity_compartment.' if logger raise "Missing the required parameter 'namespace_name' when calling change_log_analytics_entity_compartment." if namespace_name.nil? raise "Missing the required parameter 'log_analytics_entity_id' when calling change_log_analytics_entity_compartment." if log_analytics_entity_id.nil? raise "Missing the required parameter 'change_log_analytics_entity_compartment_details' when calling change_log_analytics_entity_compartment." if change_log_analytics_entity_compartment_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'log_analytics_entity_id' must not be blank" if OCI::Internal::Util.blank_string?(log_analytics_entity_id) path = '/namespaces/{namespaceName}/logAnalyticsEntities/{logAnalyticsEntityId}/actions/changeCompartment'.sub('{namespaceName}', namespace_name.to_s).sub('{logAnalyticsEntityId}', log_analytics_entity_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_log_analytics_entity_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#change_log_analytics_entity_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_log_analytics_log_group_compartment(namespace_name, log_analytics_log_group_id, change_log_analytics_log_group_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_log_analytics_log_group_compartment API.
Moves the specified log group to a different compartment.
806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 806 def change_log_analytics_log_group_compartment(namespace_name, log_analytics_log_group_id, change_log_analytics_log_group_compartment_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#change_log_analytics_log_group_compartment.' if logger raise "Missing the required parameter 'namespace_name' when calling change_log_analytics_log_group_compartment." if namespace_name.nil? raise "Missing the required parameter 'log_analytics_log_group_id' when calling change_log_analytics_log_group_compartment." if log_analytics_log_group_id.nil? raise "Missing the required parameter 'change_log_analytics_log_group_compartment_details' when calling change_log_analytics_log_group_compartment." if change_log_analytics_log_group_compartment_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'log_analytics_log_group_id' must not be blank" if OCI::Internal::Util.blank_string?(log_analytics_log_group_id) path = '/namespaces/{namespaceName}/logAnalyticsLogGroups/{logAnalyticsLogGroupId}/actions/changeCompartment'.sub('{namespaceName}', namespace_name.to_s).sub('{logAnalyticsLogGroupId}', log_analytics_log_group_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_log_analytics_log_group_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#change_log_analytics_log_group_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_log_analytics_object_collection_rule_compartment(namespace_name, log_analytics_object_collection_rule_id, change_log_analytics_object_collection_rule_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_log_analytics_object_collection_rule_compartment API.
Move the rule from it's current compartment to the given compartment.
875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 875 def change_log_analytics_object_collection_rule_compartment(namespace_name, log_analytics_object_collection_rule_id, change_log_analytics_object_collection_rule_compartment_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#change_log_analytics_object_collection_rule_compartment.' if logger raise "Missing the required parameter 'namespace_name' when calling change_log_analytics_object_collection_rule_compartment." if namespace_name.nil? raise "Missing the required parameter 'log_analytics_object_collection_rule_id' when calling change_log_analytics_object_collection_rule_compartment." if log_analytics_object_collection_rule_id.nil? raise "Missing the required parameter 'change_log_analytics_object_collection_rule_compartment_details' when calling change_log_analytics_object_collection_rule_compartment." if change_log_analytics_object_collection_rule_compartment_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'log_analytics_object_collection_rule_id' must not be blank" if OCI::Internal::Util.blank_string?(log_analytics_object_collection_rule_id) path = '/namespaces/{namespaceName}/logAnalyticsObjectCollectionRules/{logAnalyticsObjectCollectionRuleId}/actions/changeCompartment'.sub('{namespaceName}', namespace_name.to_s).sub('{logAnalyticsObjectCollectionRuleId}', log_analytics_object_collection_rule_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' post_body = @api_client.object_to_http_body(change_log_analytics_object_collection_rule_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#change_log_analytics_object_collection_rule_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_scheduled_task_compartment(namespace_name, scheduled_task_id, change_scheduled_task_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_scheduled_task_compartment API.
Move the scheduled task into a different compartment within the same tenancy.
951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 951 def change_scheduled_task_compartment(namespace_name, scheduled_task_id, change_scheduled_task_compartment_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#change_scheduled_task_compartment.' if logger raise "Missing the required parameter 'namespace_name' when calling change_scheduled_task_compartment." if namespace_name.nil? raise "Missing the required parameter 'scheduled_task_id' when calling change_scheduled_task_compartment." if scheduled_task_id.nil? raise "Missing the required parameter 'change_scheduled_task_compartment_details' when calling change_scheduled_task_compartment." if change_scheduled_task_compartment_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'scheduled_task_id' must not be blank" if OCI::Internal::Util.blank_string?(scheduled_task_id) path = '/namespaces/{namespaceName}/scheduledTasks/{scheduledTaskId}/actions/changeCompartment'.sub('{namespaceName}', namespace_name.to_s).sub('{scheduledTaskId}', scheduled_task_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_scheduled_task_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#change_scheduled_task_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#clean(namespace_name, scheduled_task_id, opts = {}) ⇒ Response
Click here to see an example of how to use clean API.
Clean accumulated acceleration data stored for the accelerated saved search. The ScheduledTask taskType must be ACCELERATION.
1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 1029 def clean(namespace_name, scheduled_task_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#clean.' if logger raise "Missing the required parameter 'namespace_name' when calling clean." if namespace_name.nil? raise "Missing the required parameter 'scheduled_task_id' when calling clean." if scheduled_task_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'scheduled_task_id' must not be blank" if OCI::Internal::Util.blank_string?(scheduled_task_id) path = '/namespaces/{namespaceName}/scheduledTasks/{scheduledTaskId}/actions/clean'.sub('{namespaceName}', namespace_name.to_s).sub('{scheduledTaskId}', scheduled_task_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:timeStart] = opts[:time_start] if opts[:time_start] query_params[:timeEnd] = opts[:time_end] if opts[:time_end] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#clean') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#compare_content(namespace_name, compare_content_details, opts = {}) ⇒ Response
Click here to see an example of how to use compare_content API.
Returns the difference between the two input payloads, including intraline differences.
1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 1091 def compare_content(namespace_name, compare_content_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#compare_content.' if logger raise "Missing the required parameter 'namespace_name' when calling compare_content." if namespace_name.nil? raise "Missing the required parameter 'compare_content_details' when calling compare_content." if compare_content_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/search/actions/compareContent'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' post_body = @api_client.object_to_http_body(compare_content_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#compare_content') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::CompareContentResult' ) end # rubocop:enable Metrics/BlockLength end |
#create_ingest_time_rule(namespace_name, create_ingest_time_rule_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_ingest_time_rule API.
Creates a new ingest time rule in the specified compartment. You may also specify optional information such as description, defined tags, and free-form tags.
1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 1156 def create_ingest_time_rule(namespace_name, create_ingest_time_rule_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#create_ingest_time_rule.' if logger raise "Missing the required parameter 'namespace_name' when calling create_ingest_time_rule." if namespace_name.nil? raise "Missing the required parameter 'create_ingest_time_rule_details' when calling create_ingest_time_rule." if create_ingest_time_rule_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/ingestTimeRules'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_ingest_time_rule_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#create_ingest_time_rule') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::IngestTimeRule' ) end # rubocop:enable Metrics/BlockLength end |
#create_log_analytics_em_bridge(namespace_name, create_log_analytics_em_bridge_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_log_analytics_em_bridge API.
Add configuration for enterprise manager bridge. Enterprise manager bridge is used to automatically add selected entities from enterprise manager cloud control. A corresponding OCI bridge configuration is required in enterprise manager.
1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 1222 def create_log_analytics_em_bridge(namespace_name, create_log_analytics_em_bridge_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#create_log_analytics_em_bridge.' if logger raise "Missing the required parameter 'namespace_name' when calling create_log_analytics_em_bridge." if namespace_name.nil? raise "Missing the required parameter 'create_log_analytics_em_bridge_details' when calling create_log_analytics_em_bridge." if create_log_analytics_em_bridge_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/logAnalyticsEmBridges'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_log_analytics_em_bridge_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#create_log_analytics_em_bridge') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsEmBridge' ) end # rubocop:enable Metrics/BlockLength end |
#create_log_analytics_entity(namespace_name, create_log_analytics_entity_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_log_analytics_entity API.
Create a new log analytics entity.
1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 1288 def create_log_analytics_entity(namespace_name, create_log_analytics_entity_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#create_log_analytics_entity.' if logger raise "Missing the required parameter 'namespace_name' when calling create_log_analytics_entity." if namespace_name.nil? raise "Missing the required parameter 'create_log_analytics_entity_details' when calling create_log_analytics_entity." if create_log_analytics_entity_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/logAnalyticsEntities'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_log_analytics_entity_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#create_log_analytics_entity') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsEntity' ) end # rubocop:enable Metrics/BlockLength end |
#create_log_analytics_entity_type(namespace_name, create_log_analytics_entity_type_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_log_analytics_entity_type API.
Add custom log analytics entity type.
1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 1354 def create_log_analytics_entity_type(namespace_name, create_log_analytics_entity_type_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#create_log_analytics_entity_type.' if logger raise "Missing the required parameter 'namespace_name' when calling create_log_analytics_entity_type." if namespace_name.nil? raise "Missing the required parameter 'create_log_analytics_entity_type_details' when calling create_log_analytics_entity_type." if create_log_analytics_entity_type_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/logAnalyticsEntityTypes'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_log_analytics_entity_type_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#create_log_analytics_entity_type') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#create_log_analytics_log_group(namespace_name, create_log_analytics_log_group_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_log_analytics_log_group API.
Creates a new log group in the specified compartment with the input display name. You may also specify optional information such as description, defined tags, and free-form tags.
1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 1420 def create_log_analytics_log_group(namespace_name, create_log_analytics_log_group_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#create_log_analytics_log_group.' if logger raise "Missing the required parameter 'namespace_name' when calling create_log_analytics_log_group." if namespace_name.nil? raise "Missing the required parameter 'create_log_analytics_log_group_details' when calling create_log_analytics_log_group." if create_log_analytics_log_group_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/logAnalyticsLogGroups'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_log_analytics_log_group_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#create_log_analytics_log_group') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsLogGroup' ) end # rubocop:enable Metrics/BlockLength end |
#create_log_analytics_object_collection_rule(namespace_name, create_log_analytics_object_collection_rule_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_log_analytics_object_collection_rule API.
Creates a rule to collect logs from an object storage bucket.
1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 1480 def create_log_analytics_object_collection_rule(namespace_name, create_log_analytics_object_collection_rule_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#create_log_analytics_object_collection_rule.' if logger raise "Missing the required parameter 'namespace_name' when calling create_log_analytics_object_collection_rule." if namespace_name.nil? raise "Missing the required parameter 'create_log_analytics_object_collection_rule_details' when calling create_log_analytics_object_collection_rule." if create_log_analytics_object_collection_rule_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/logAnalyticsObjectCollectionRules'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' post_body = @api_client.object_to_http_body(create_log_analytics_object_collection_rule_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#create_log_analytics_object_collection_rule') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsObjectCollectionRule' ) end # rubocop:enable Metrics/BlockLength end |
#create_scheduled_task(namespace_name, create_scheduled_task_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_scheduled_task API.
Schedule a task as specified and return task info.
1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 1544 def create_scheduled_task(namespace_name, create_scheduled_task_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#create_scheduled_task.' if logger raise "Missing the required parameter 'namespace_name' when calling create_scheduled_task." if namespace_name.nil? raise "Missing the required parameter 'create_scheduled_task_details' when calling create_scheduled_task." if create_scheduled_task_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/scheduledTasks'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_scheduled_task_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#create_scheduled_task') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::ScheduledTask' ) end # rubocop:enable Metrics/BlockLength end |
#delete_associations(namespace_name, delete_log_analytics_association_details, opts = {}) ⇒ Response
Click here to see an example of how to use delete_associations API.
Deletes the associations between the sources and entities specified.
1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 1611 def delete_associations(namespace_name, delete_log_analytics_association_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#delete_associations.' if logger raise "Missing the required parameter 'namespace_name' when calling delete_associations." if namespace_name.nil? raise "Missing the required parameter 'delete_log_analytics_association_details' when calling delete_associations." if delete_log_analytics_association_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/associations/actions/delete'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(delete_log_analytics_association_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#delete_associations') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_field(namespace_name, field_name, opts = {}) ⇒ Response
Click here to see an example of how to use delete_field API.
Deletes field with the specified name.
1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 1683 def delete_field(namespace_name, field_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#delete_field.' if logger raise "Missing the required parameter 'namespace_name' when calling delete_field." if namespace_name.nil? raise "Missing the required parameter 'field_name' when calling delete_field." if field_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'field_name' must not be blank" if OCI::Internal::Util.blank_string?(field_name) path = '/namespaces/{namespaceName}/fields/{fieldName}'.sub('{namespaceName}', namespace_name.to_s).sub('{fieldName}', field_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#delete_field') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_ingest_time_rule(namespace_name, ingest_time_rule_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_ingest_time_rule API.
Deletes the specified ingest time rule.
1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 1751 def delete_ingest_time_rule(namespace_name, ingest_time_rule_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#delete_ingest_time_rule.' if logger raise "Missing the required parameter 'namespace_name' when calling delete_ingest_time_rule." if namespace_name.nil? raise "Missing the required parameter 'ingest_time_rule_id' when calling delete_ingest_time_rule." if ingest_time_rule_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'ingest_time_rule_id' must not be blank" if OCI::Internal::Util.blank_string?(ingest_time_rule_id) path = '/namespaces/{namespaceName}/ingestTimeRules/{ingestTimeRuleId}'.sub('{namespaceName}', namespace_name.to_s).sub('{ingestTimeRuleId}', ingest_time_rule_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#delete_ingest_time_rule') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_label(namespace_name, label_name, opts = {}) ⇒ Response
Click here to see an example of how to use delete_label API.
Deletes label with the specified name.
1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 1822 def delete_label(namespace_name, label_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#delete_label.' if logger raise "Missing the required parameter 'namespace_name' when calling delete_label." if namespace_name.nil? raise "Missing the required parameter 'label_name' when calling delete_label." if label_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'label_name' must not be blank" if OCI::Internal::Util.blank_string?(label_name) path = '/namespaces/{namespaceName}/labels/{labelName}'.sub('{namespaceName}', namespace_name.to_s).sub('{labelName}', label_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#delete_label') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_log_analytics_em_bridge(namespace_name, log_analytics_em_bridge_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_log_analytics_em_bridge API.
Delete log analytics enterprise manager bridge with the given id.
1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 1890 def delete_log_analytics_em_bridge(namespace_name, log_analytics_em_bridge_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#delete_log_analytics_em_bridge.' if logger raise "Missing the required parameter 'namespace_name' when calling delete_log_analytics_em_bridge." if namespace_name.nil? raise "Missing the required parameter 'log_analytics_em_bridge_id' when calling delete_log_analytics_em_bridge." if log_analytics_em_bridge_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'log_analytics_em_bridge_id' must not be blank" if OCI::Internal::Util.blank_string?(log_analytics_em_bridge_id) path = '/namespaces/{namespaceName}/logAnalyticsEmBridges/{logAnalyticsEmBridgeId}'.sub('{namespaceName}', namespace_name.to_s).sub('{logAnalyticsEmBridgeId}', log_analytics_em_bridge_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isDeleteEntities] = opts[:is_delete_entities] if !opts[:is_delete_entities].nil? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#delete_log_analytics_em_bridge') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_log_analytics_entity(namespace_name, log_analytics_entity_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_log_analytics_entity API.
Delete log analytics entity with the given id.
1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 1956 def delete_log_analytics_entity(namespace_name, log_analytics_entity_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#delete_log_analytics_entity.' if logger raise "Missing the required parameter 'namespace_name' when calling delete_log_analytics_entity." if namespace_name.nil? raise "Missing the required parameter 'log_analytics_entity_id' when calling delete_log_analytics_entity." if log_analytics_entity_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'log_analytics_entity_id' must not be blank" if OCI::Internal::Util.blank_string?(log_analytics_entity_id) path = '/namespaces/{namespaceName}/logAnalyticsEntities/{logAnalyticsEntityId}'.sub('{namespaceName}', namespace_name.to_s).sub('{logAnalyticsEntityId}', log_analytics_entity_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#delete_log_analytics_entity') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_log_analytics_entity_type(namespace_name, entity_type_name, opts = {}) ⇒ Response
Click here to see an example of how to use delete_log_analytics_entity_type API.
Delete log analytics entity type with the given name.
2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 2021 def delete_log_analytics_entity_type(namespace_name, entity_type_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#delete_log_analytics_entity_type.' if logger raise "Missing the required parameter 'namespace_name' when calling delete_log_analytics_entity_type." if namespace_name.nil? raise "Missing the required parameter 'entity_type_name' when calling delete_log_analytics_entity_type." if entity_type_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'entity_type_name' must not be blank" if OCI::Internal::Util.blank_string?(entity_type_name) path = '/namespaces/{namespaceName}/logAnalyticsEntityTypes/{entityTypeName}'.sub('{namespaceName}', namespace_name.to_s).sub('{entityTypeName}', entity_type_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#delete_log_analytics_entity_type') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_log_analytics_log_group(namespace_name, log_analytics_log_group_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_log_analytics_log_group API.
Deletes the specified log group. The log group cannot be part of an active association or have an active upload.
2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 2086 def delete_log_analytics_log_group(namespace_name, log_analytics_log_group_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#delete_log_analytics_log_group.' if logger raise "Missing the required parameter 'namespace_name' when calling delete_log_analytics_log_group." if namespace_name.nil? raise "Missing the required parameter 'log_analytics_log_group_id' when calling delete_log_analytics_log_group." if log_analytics_log_group_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'log_analytics_log_group_id' must not be blank" if OCI::Internal::Util.blank_string?(log_analytics_log_group_id) path = '/namespaces/{namespaceName}/logAnalyticsLogGroups/{logAnalyticsLogGroupId}'.sub('{namespaceName}', namespace_name.to_s).sub('{logAnalyticsLogGroupId}', log_analytics_log_group_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#delete_log_analytics_log_group') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_log_analytics_object_collection_rule(namespace_name, log_analytics_object_collection_rule_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_log_analytics_object_collection_rule API.
Deletes the configured object storage bucket based collection rule and stop the log collection. It will not delete the existing processed data associated with this bucket from logging analytics storage.
2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 2152 def delete_log_analytics_object_collection_rule(namespace_name, log_analytics_object_collection_rule_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#delete_log_analytics_object_collection_rule.' if logger raise "Missing the required parameter 'namespace_name' when calling delete_log_analytics_object_collection_rule." if namespace_name.nil? raise "Missing the required parameter 'log_analytics_object_collection_rule_id' when calling delete_log_analytics_object_collection_rule." if log_analytics_object_collection_rule_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'log_analytics_object_collection_rule_id' must not be blank" if OCI::Internal::Util.blank_string?(log_analytics_object_collection_rule_id) path = '/namespaces/{namespaceName}/logAnalyticsObjectCollectionRules/{logAnalyticsObjectCollectionRuleId}'.sub('{namespaceName}', namespace_name.to_s).sub('{logAnalyticsObjectCollectionRuleId}', log_analytics_object_collection_rule_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#delete_log_analytics_object_collection_rule') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_lookup(namespace_name, lookup_name, opts = {}) ⇒ Response
Click here to see an example of how to use delete_lookup API.
Deletes lookup with the specified name.
2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 2224 def delete_lookup(namespace_name, lookup_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#delete_lookup.' if logger raise "Missing the required parameter 'namespace_name' when calling delete_lookup." if namespace_name.nil? raise "Missing the required parameter 'lookup_name' when calling delete_lookup." if lookup_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'lookup_name' must not be blank" if OCI::Internal::Util.blank_string?(lookup_name) path = '/namespaces/{namespaceName}/lookups/{lookupName}'.sub('{namespaceName}', namespace_name.to_s).sub('{lookupName}', lookup_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isForce] = opts[:is_force] if !opts[:is_force].nil? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#delete_lookup') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_parser(namespace_name, parser_name, opts = {}) ⇒ Response
Click here to see an example of how to use delete_parser API.
Deletes parser with the specified name.
2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 2298 def delete_parser(namespace_name, parser_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#delete_parser.' if logger raise "Missing the required parameter 'namespace_name' when calling delete_parser." if namespace_name.nil? raise "Missing the required parameter 'parser_name' when calling delete_parser." if parser_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'parser_name' must not be blank" if OCI::Internal::Util.blank_string?(parser_name) path = '/namespaces/{namespaceName}/parsers/{parserName}'.sub('{namespaceName}', namespace_name.to_s).sub('{parserName}', parser_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#delete_parser') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_scheduled_task(namespace_name, scheduled_task_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_scheduled_task API.
Delete the scheduled task.
2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 2366 def delete_scheduled_task(namespace_name, scheduled_task_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#delete_scheduled_task.' if logger raise "Missing the required parameter 'namespace_name' when calling delete_scheduled_task." if namespace_name.nil? raise "Missing the required parameter 'scheduled_task_id' when calling delete_scheduled_task." if scheduled_task_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'scheduled_task_id' must not be blank" if OCI::Internal::Util.blank_string?(scheduled_task_id) path = '/namespaces/{namespaceName}/scheduledTasks/{scheduledTaskId}'.sub('{namespaceName}', namespace_name.to_s).sub('{scheduledTaskId}', scheduled_task_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#delete_scheduled_task') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_source(namespace_name, source_name, opts = {}) ⇒ Response
Click here to see an example of how to use delete_source API.
Deletes source with the specified name.
2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 2437 def delete_source(namespace_name, source_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#delete_source.' if logger raise "Missing the required parameter 'namespace_name' when calling delete_source." if namespace_name.nil? raise "Missing the required parameter 'source_name' when calling delete_source." if source_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'source_name' must not be blank" if OCI::Internal::Util.blank_string?(source_name) path = '/namespaces/{namespaceName}/sources/{sourceName}'.sub('{namespaceName}', namespace_name.to_s).sub('{sourceName}', source_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#delete_source') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_upload(namespace_name, upload_reference, opts = {}) ⇒ Response
Click here to see an example of how to use delete_upload API.
Deletes an Upload by its reference. It deletes all the logs in storage asscoiated with the upload and the corresponding upload metadata.
2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 2505 def delete_upload(namespace_name, upload_reference, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#delete_upload.' if logger raise "Missing the required parameter 'namespace_name' when calling delete_upload." if namespace_name.nil? raise "Missing the required parameter 'upload_reference' when calling delete_upload." if upload_reference.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'upload_reference' must not be blank" if OCI::Internal::Util.blank_string?(upload_reference) path = '/namespaces/{namespaceName}/uploads/{uploadReference}'.sub('{namespaceName}', namespace_name.to_s).sub('{uploadReference}', upload_reference.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#delete_upload') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_upload_file(namespace_name, upload_reference, file_reference, opts = {}) ⇒ Response
Click here to see an example of how to use delete_upload_file API.
Deletes a specific log file inside an upload by upload file reference. It deletes all the logs from storage associated with the file and the corresponding metadata.
2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 2566 def delete_upload_file(namespace_name, upload_reference, file_reference, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#delete_upload_file.' if logger raise "Missing the required parameter 'namespace_name' when calling delete_upload_file." if namespace_name.nil? raise "Missing the required parameter 'upload_reference' when calling delete_upload_file." if upload_reference.nil? raise "Missing the required parameter 'file_reference' when calling delete_upload_file." if file_reference.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'upload_reference' must not be blank" if OCI::Internal::Util.blank_string?(upload_reference) raise "Parameter value for 'file_reference' must not be blank" if OCI::Internal::Util.blank_string?(file_reference) path = '/namespaces/{namespaceName}/uploads/{uploadReference}/files/{fileReference}'.sub('{namespaceName}', namespace_name.to_s).sub('{uploadReference}', upload_reference.to_s).sub('{fileReference}', file_reference.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#delete_upload_file') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_upload_warning(namespace_name, upload_reference, warning_reference, opts = {}) ⇒ Response
Click here to see an example of how to use delete_upload_warning API.
Suppresses a specific warning inside an upload.
2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 2627 def delete_upload_warning(namespace_name, upload_reference, warning_reference, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#delete_upload_warning.' if logger raise "Missing the required parameter 'namespace_name' when calling delete_upload_warning." if namespace_name.nil? raise "Missing the required parameter 'upload_reference' when calling delete_upload_warning." if upload_reference.nil? raise "Missing the required parameter 'warning_reference' when calling delete_upload_warning." if warning_reference.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'upload_reference' must not be blank" if OCI::Internal::Util.blank_string?(upload_reference) raise "Parameter value for 'warning_reference' must not be blank" if OCI::Internal::Util.blank_string?(warning_reference) path = '/namespaces/{namespaceName}/uploads/{uploadReference}/warnings/{warningReference}'.sub('{namespaceName}', namespace_name.to_s).sub('{uploadReference}', upload_reference.to_s).sub('{warningReference}', warning_reference.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#delete_upload_warning') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#disable_archiving(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use disable_archiving API.
This API disables archiving.
2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 2692 def disable_archiving(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#disable_archiving.' if logger raise "Missing the required parameter 'namespace_name' when calling disable_archiving." if namespace_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/storage/actions/disableArchiving'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#disable_archiving') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::Success' ) end # rubocop:enable Metrics/BlockLength end |
#disable_auto_association(namespace_name, source_name, disable_auto_association_details, opts = {}) ⇒ Response
Click here to see an example of how to use disable_auto_association API.
Disables auto association for a log source. In the future, this log source would not be automatically associated with any entity that becomes eligible for association. In addition, you may also optionally remove all existing associations for this log source.
2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 2759 def disable_auto_association(namespace_name, source_name, disable_auto_association_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#disable_auto_association.' if logger raise "Missing the required parameter 'namespace_name' when calling disable_auto_association." if namespace_name.nil? raise "Missing the required parameter 'source_name' when calling disable_auto_association." if source_name.nil? raise "Missing the required parameter 'disable_auto_association_details' when calling disable_auto_association." if disable_auto_association_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'source_name' must not be blank" if OCI::Internal::Util.blank_string?(source_name) path = '/namespaces/{namespaceName}/sources/{sourceName}/actions/disableAutoAssociation'.sub('{namespaceName}', namespace_name.to_s).sub('{sourceName}', source_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(disable_auto_association_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#disable_auto_association') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#disable_ingest_time_rule(namespace_name, ingest_time_rule_id, opts = {}) ⇒ Response
Click here to see an example of how to use disable_ingest_time_rule API.
Disables the specified ingest time rule.
2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 2828 def disable_ingest_time_rule(namespace_name, ingest_time_rule_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#disable_ingest_time_rule.' if logger raise "Missing the required parameter 'namespace_name' when calling disable_ingest_time_rule." if namespace_name.nil? raise "Missing the required parameter 'ingest_time_rule_id' when calling disable_ingest_time_rule." if ingest_time_rule_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'ingest_time_rule_id' must not be blank" if OCI::Internal::Util.blank_string?(ingest_time_rule_id) path = '/namespaces/{namespaceName}/ingestTimeRules/{ingestTimeRuleId}/actions/disableIngestTimeRule'.sub('{namespaceName}', namespace_name.to_s).sub('{ingestTimeRuleId}', ingest_time_rule_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#disable_ingest_time_rule') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#disable_source_event_types(namespace_name, source_name, disable_event_type_details, opts = {}) ⇒ Response
Click here to see an example of how to use disable_source_event_types API.
Disable one or more event types in a source.
2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 2894 def disable_source_event_types(namespace_name, source_name, disable_event_type_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#disable_source_event_types.' if logger raise "Missing the required parameter 'namespace_name' when calling disable_source_event_types." if namespace_name.nil? raise "Missing the required parameter 'source_name' when calling disable_source_event_types." if source_name.nil? raise "Missing the required parameter 'disable_event_type_details' when calling disable_source_event_types." if disable_event_type_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'source_name' must not be blank" if OCI::Internal::Util.blank_string?(source_name) path = '/namespaces/{namespaceName}/sources/{sourceName}/actions/disableEventTypes'.sub('{namespaceName}', namespace_name.to_s).sub('{sourceName}', source_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(disable_event_type_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#disable_source_event_types') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#enable_archiving(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use enable_archiving API.
THis API enables archiving.
2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 2961 def enable_archiving(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#enable_archiving.' if logger raise "Missing the required parameter 'namespace_name' when calling enable_archiving." if namespace_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/storage/actions/enableArchiving'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#enable_archiving') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::Success' ) end # rubocop:enable Metrics/BlockLength end |
#enable_auto_association(namespace_name, source_name, enable_auto_association_details, opts = {}) ⇒ Response
Click here to see an example of how to use enable_auto_association API.
Enables auto association for a log source. This would initiate immediate association of the source to any eligible entities it is not already associated with, and would also ensure the log source gets associated with entities that are added or become eligible in the future.
3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 3028 def enable_auto_association(namespace_name, source_name, enable_auto_association_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#enable_auto_association.' if logger raise "Missing the required parameter 'namespace_name' when calling enable_auto_association." if namespace_name.nil? raise "Missing the required parameter 'source_name' when calling enable_auto_association." if source_name.nil? raise "Missing the required parameter 'enable_auto_association_details' when calling enable_auto_association." if enable_auto_association_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'source_name' must not be blank" if OCI::Internal::Util.blank_string?(source_name) path = '/namespaces/{namespaceName}/sources/{sourceName}/actions/enableAutoAssociation'.sub('{namespaceName}', namespace_name.to_s).sub('{sourceName}', source_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(enable_auto_association_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#enable_auto_association') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#enable_ingest_time_rule(namespace_name, ingest_time_rule_id, opts = {}) ⇒ Response
Click here to see an example of how to use enable_ingest_time_rule API.
Enables the specified ingest time rule.
3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 3097 def enable_ingest_time_rule(namespace_name, ingest_time_rule_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#enable_ingest_time_rule.' if logger raise "Missing the required parameter 'namespace_name' when calling enable_ingest_time_rule." if namespace_name.nil? raise "Missing the required parameter 'ingest_time_rule_id' when calling enable_ingest_time_rule." if ingest_time_rule_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'ingest_time_rule_id' must not be blank" if OCI::Internal::Util.blank_string?(ingest_time_rule_id) path = '/namespaces/{namespaceName}/ingestTimeRules/{ingestTimeRuleId}/actions/enableIngestTimeRule'.sub('{namespaceName}', namespace_name.to_s).sub('{ingestTimeRuleId}', ingest_time_rule_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#enable_ingest_time_rule') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#enable_source_event_types(namespace_name, source_name, enable_event_type_details, opts = {}) ⇒ Response
Click here to see an example of how to use enable_source_event_types API.
Enable one or more event types in a source. An event type and version can be enabled only in one source.
3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 3163 def enable_source_event_types(namespace_name, source_name, enable_event_type_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#enable_source_event_types.' if logger raise "Missing the required parameter 'namespace_name' when calling enable_source_event_types." if namespace_name.nil? raise "Missing the required parameter 'source_name' when calling enable_source_event_types." if source_name.nil? raise "Missing the required parameter 'enable_event_type_details' when calling enable_source_event_types." if enable_event_type_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'source_name' must not be blank" if OCI::Internal::Util.blank_string?(source_name) path = '/namespaces/{namespaceName}/sources/{sourceName}/actions/enableEventTypes'.sub('{namespaceName}', namespace_name.to_s).sub('{sourceName}', source_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(enable_event_type_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#enable_source_event_types') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#estimate_purge_data_size(namespace_name, estimate_purge_data_size_details, opts = {}) ⇒ Response
Click here to see an example of how to use estimate_purge_data_size API.
This API estimates the size of data to be purged based based on time interval, purge query etc.
3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 3237 def estimate_purge_data_size(namespace_name, estimate_purge_data_size_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#estimate_purge_data_size.' if logger raise "Missing the required parameter 'namespace_name' when calling estimate_purge_data_size." if namespace_name.nil? raise "Missing the required parameter 'estimate_purge_data_size_details' when calling estimate_purge_data_size." if estimate_purge_data_size_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/storage/actions/estimatePurgeDataSize'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(estimate_purge_data_size_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#estimate_purge_data_size') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::EstimatePurgeDataSizeResult' ) end # rubocop:enable Metrics/BlockLength end |
#estimate_recall_data_size(namespace_name, estimate_recall_data_size_details, opts = {}) ⇒ Response
Click here to see an example of how to use estimate_recall_data_size API.
This API gives an active storage usage estimate for archived data to be recalled and the time range of such data.
3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 3299 def estimate_recall_data_size(namespace_name, estimate_recall_data_size_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#estimate_recall_data_size.' if logger raise "Missing the required parameter 'namespace_name' when calling estimate_recall_data_size." if namespace_name.nil? raise "Missing the required parameter 'estimate_recall_data_size_details' when calling estimate_recall_data_size." if estimate_recall_data_size_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/storage/actions/estimateRecallDataSize'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' post_body = @api_client.object_to_http_body(estimate_recall_data_size_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#estimate_recall_data_size') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::EstimateRecallDataSizeResult' ) end # rubocop:enable Metrics/BlockLength end |
#estimate_release_data_size(namespace_name, estimate_release_data_size_details, opts = {}) ⇒ Response
Click here to see an example of how to use estimate_release_data_size API.
This API gives an active storage usage estimate for recalled data to be released and the time range of such data.
3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 3358 def estimate_release_data_size(namespace_name, estimate_release_data_size_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#estimate_release_data_size.' if logger raise "Missing the required parameter 'namespace_name' when calling estimate_release_data_size." if namespace_name.nil? raise "Missing the required parameter 'estimate_release_data_size_details' when calling estimate_release_data_size." if estimate_release_data_size_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/storage/actions/estimateReleaseDataSize'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' post_body = @api_client.object_to_http_body(estimate_release_data_size_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#estimate_release_data_size') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::EstimateReleaseDataSizeResult' ) end # rubocop:enable Metrics/BlockLength end |
#export_custom_content(namespace_name, export_custom_content_details, opts = {}, &block) ⇒ Response
Click here to see an example of how to use export_custom_content API.
Exports all custom details of the specified sources, parsers, fields and labels, in zip format.
3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 3425 def export_custom_content(namespace_name, export_custom_content_details, opts = {}, &block) logger.debug 'Calling operation LogAnalyticsClient#export_custom_content.' if logger raise "Missing the required parameter 'namespace_name' when calling export_custom_content." if namespace_name.nil? raise "Missing the required parameter 'export_custom_content_details' when calling export_custom_content." if export_custom_content_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/contents/actions/exportCustomContent'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = opts[:accept] if opts[:accept] header_params[:accept] ||= 'application/octet-stream' header_params[:'accept-encoding'] = opts[:accept_encoding] if opts[:accept_encoding] header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(export_custom_content_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#export_custom_content') do if !block.nil? @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &block ) elsif opts[:response_target] if opts[:response_target].respond_to? :write @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &proc { |chunk, _response| opts[:response_target].write(chunk) } ) elsif opts[:response_target].is_a?(String) File.open(opts[:response_target], 'wb') do |output| return @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &proc { |chunk, _response| output.write(chunk) } ) end end else @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'String' ) end end # rubocop:enable Metrics/BlockLength end |
#export_query_result(namespace_name, export_details, opts = {}, &block) ⇒ Response
Click here to see an example of how to use export_query_result API.
Export data based on query. Endpoint returns a stream of data. Endpoint is synchronous. Queries must deliver first result within 60 seconds or calls are subject to timeout.
3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 3531 def export_query_result(namespace_name, export_details, opts = {}, &block) logger.debug 'Calling operation LogAnalyticsClient#export_query_result.' if logger raise "Missing the required parameter 'namespace_name' when calling export_query_result." if namespace_name.nil? raise "Missing the required parameter 'export_details' when calling export_query_result." if export_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/search/actions/export'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = opts[:accept] if opts[:accept] header_params[:accept] ||= 'application/octet-stream' header_params[:'accept-encoding'] = opts[:accept_encoding] if opts[:accept_encoding] header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' post_body = @api_client.object_to_http_body(export_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#export_query_result') do if !block.nil? @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &block ) elsif opts[:response_target] if opts[:response_target].respond_to? :write @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &proc { |chunk, _response| opts[:response_target].write(chunk) } ) elsif opts[:response_target].is_a?(String) File.open(opts[:response_target], 'wb') do |output| return @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &proc { |chunk, _response| output.write(chunk) } ) end end else @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'String' ) end end # rubocop:enable Metrics/BlockLength end |
#extract_structured_log_field_paths(namespace_name, logan_parser_details, opts = {}) ⇒ Response
Click here to see an example of how to use extract_structured_log_field_paths API.
Extracts the field paths from the example json or xml content.
3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 3642 def extract_structured_log_field_paths(namespace_name, logan_parser_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#extract_structured_log_field_paths.' if logger raise "Missing the required parameter 'namespace_name' when calling extract_structured_log_field_paths." if namespace_name.nil? raise "Missing the required parameter 'logan_parser_details' when calling extract_structured_log_field_paths." if logan_parser_details.nil? if opts[:parser_type] && !%w[XML JSON DELIMITED].include?(opts[:parser_type]) raise 'Invalid value for "parser_type", must be one of XML, JSON, DELIMITED.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/parsers/actions/extractLogFieldPaths'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:parserType] = opts[:parser_type] if opts[:parser_type] # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(logan_parser_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#extract_structured_log_field_paths') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::ExtractLogFieldResults' ) end # rubocop:enable Metrics/BlockLength end |
#extract_structured_log_header_paths(namespace_name, logan_parser_details, opts = {}) ⇒ Response
Click here to see an example of how to use extract_structured_log_header_paths API.
Extracts the header paths from the example json or xml content.
3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 3716 def extract_structured_log_header_paths(namespace_name, logan_parser_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#extract_structured_log_header_paths.' if logger raise "Missing the required parameter 'namespace_name' when calling extract_structured_log_header_paths." if namespace_name.nil? raise "Missing the required parameter 'logan_parser_details' when calling extract_structured_log_header_paths." if logan_parser_details.nil? if opts[:parser_type] && !%w[XML JSON DELIMITED].include?(opts[:parser_type]) raise 'Invalid value for "parser_type", must be one of XML, JSON, DELIMITED.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/parsers/actions/extractLogHeaderPaths'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:parserType] = opts[:parser_type] if opts[:parser_type] # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(logan_parser_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#extract_structured_log_header_paths') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::ExtractLogHeaderResults' ) end # rubocop:enable Metrics/BlockLength end |
#filter(namespace_name, filter_details, opts = {}) ⇒ Response
Click here to see an example of how to use filter API.
Each filter specifies an operator, a field and one or more values to be inserted into the provided query as criteria.
3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 3781 def filter(namespace_name, filter_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#filter.' if logger raise "Missing the required parameter 'namespace_name' when calling filter." if namespace_name.nil? raise "Missing the required parameter 'filter_details' when calling filter." if filter_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/search/actions/filter'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' post_body = @api_client.object_to_http_body(filter_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#filter') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::FilterOutput' ) end # rubocop:enable Metrics/BlockLength end |
#get_association_summary(namespace_name, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_association_summary API.
Returns the count of source associations for entities in the specified compartment.
3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 3840 def get_association_summary(namespace_name, compartment_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_association_summary.' if logger raise "Missing the required parameter 'namespace_name' when calling get_association_summary." if namespace_name.nil? raise "Missing the required parameter 'compartment_id' when calling get_association_summary." if compartment_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/associationSummary'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_association_summary') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::AssociationSummaryReport' ) end # rubocop:enable Metrics/BlockLength end |
#get_category(namespace_name, category_name, opts = {}) ⇒ Response
Click here to see an example of how to use get_category API.
Gets detailed information about the category with the specified name.
3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 3899 def get_category(namespace_name, category_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_category.' if logger raise "Missing the required parameter 'namespace_name' when calling get_category." if namespace_name.nil? raise "Missing the required parameter 'category_name' when calling get_category." if category_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'category_name' must not be blank" if OCI::Internal::Util.blank_string?(category_name) path = '/namespaces/{namespaceName}/categories/{categoryName}'.sub('{namespaceName}', namespace_name.to_s).sub('{categoryName}', category_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_category') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsCategory' ) end # rubocop:enable Metrics/BlockLength end |
#get_column_names(namespace_name, sql_query, opts = {}) ⇒ Response
Click here to see an example of how to use get_column_names API.
Extracts column names from the input SQL query.
3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 3964 def get_column_names(namespace_name, sql_query, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_column_names.' if logger raise "Missing the required parameter 'namespace_name' when calling get_column_names." if namespace_name.nil? raise "Missing the required parameter 'sql_query' when calling get_column_names." if sql_query.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/sources/sqlColumnNames'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:sqlQuery] = sql_query # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_column_names') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::ColumnNameCollection' ) end # rubocop:enable Metrics/BlockLength end |
#get_config_work_request(namespace_name, work_request_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_config_work_request API.
Returns detailed information about the configuration work request with the specified id.
4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 4025 def get_config_work_request(namespace_name, work_request_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_config_work_request.' if logger raise "Missing the required parameter 'namespace_name' when calling get_config_work_request." if namespace_name.nil? raise "Missing the required parameter 'work_request_id' when calling get_config_work_request." if work_request_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id) path = '/namespaces/{namespaceName}/configWorkRequests/{workRequestId}'.sub('{namespaceName}', namespace_name.to_s).sub('{workRequestId}', work_request_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_config_work_request') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsConfigWorkRequest' ) end # rubocop:enable Metrics/BlockLength end |
#get_field(namespace_name, field_name, opts = {}) ⇒ Response
Click here to see an example of how to use get_field API.
Gets detailed information about the field with the specified name.
4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 4084 def get_field(namespace_name, field_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_field.' if logger raise "Missing the required parameter 'namespace_name' when calling get_field." if namespace_name.nil? raise "Missing the required parameter 'field_name' when calling get_field." if field_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'field_name' must not be blank" if OCI::Internal::Util.blank_string?(field_name) path = '/namespaces/{namespaceName}/fields/{fieldName}'.sub('{namespaceName}', namespace_name.to_s).sub('{fieldName}', field_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_field') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsField' ) end # rubocop:enable Metrics/BlockLength end |
#get_fields_summary(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use get_fields_summary API.
Returns the count of fields. You may optionally specify isShowDetail=true to view a summary of each field data type.
4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 4144 def get_fields_summary(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_fields_summary.' if logger raise "Missing the required parameter 'namespace_name' when calling get_fields_summary." if namespace_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/fieldSummary'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isShowDetail] = opts[:is_show_detail] if !opts[:is_show_detail].nil? # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_fields_summary') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::FieldSummaryReport' ) end # rubocop:enable Metrics/BlockLength end |
#get_ingest_time_rule(namespace_name, ingest_time_rule_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_ingest_time_rule API.
Gets detailed information about the specified ingest time rule such as description, defined tags, and free-form tags.
4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 4203 def get_ingest_time_rule(namespace_name, ingest_time_rule_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_ingest_time_rule.' if logger raise "Missing the required parameter 'namespace_name' when calling get_ingest_time_rule." if namespace_name.nil? raise "Missing the required parameter 'ingest_time_rule_id' when calling get_ingest_time_rule." if ingest_time_rule_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'ingest_time_rule_id' must not be blank" if OCI::Internal::Util.blank_string?(ingest_time_rule_id) path = '/namespaces/{namespaceName}/ingestTimeRules/{ingestTimeRuleId}'.sub('{namespaceName}', namespace_name.to_s).sub('{ingestTimeRuleId}', ingest_time_rule_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_ingest_time_rule') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::IngestTimeRule' ) end # rubocop:enable Metrics/BlockLength end |
#get_label(namespace_name, label_name, opts = {}) ⇒ Response
Click here to see an example of how to use get_label API.
Gets detailed information about the label with the specified name.
4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 4262 def get_label(namespace_name, label_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_label.' if logger raise "Missing the required parameter 'namespace_name' when calling get_label." if namespace_name.nil? raise "Missing the required parameter 'label_name' when calling get_label." if label_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'label_name' must not be blank" if OCI::Internal::Util.blank_string?(label_name) path = '/namespaces/{namespaceName}/labels/{labelName}'.sub('{namespaceName}', namespace_name.to_s).sub('{labelName}', label_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_label') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsLabel' ) end # rubocop:enable Metrics/BlockLength end |
#get_label_summary(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use get_label_summary API.
Returns the count of labels.
4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 4320 def get_label_summary(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_label_summary.' if logger raise "Missing the required parameter 'namespace_name' when calling get_label_summary." if namespace_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/labelSummary'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_label_summary') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LabelSummaryReport' ) end # rubocop:enable Metrics/BlockLength end |
#get_log_analytics_em_bridge(namespace_name, log_analytics_em_bridge_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_log_analytics_em_bridge API.
Retrieve the log analytics enterprise manager bridge with the given id.
4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 4377 def get_log_analytics_em_bridge(namespace_name, log_analytics_em_bridge_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_log_analytics_em_bridge.' if logger raise "Missing the required parameter 'namespace_name' when calling get_log_analytics_em_bridge." if namespace_name.nil? raise "Missing the required parameter 'log_analytics_em_bridge_id' when calling get_log_analytics_em_bridge." if log_analytics_em_bridge_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'log_analytics_em_bridge_id' must not be blank" if OCI::Internal::Util.blank_string?(log_analytics_em_bridge_id) path = '/namespaces/{namespaceName}/logAnalyticsEmBridges/{logAnalyticsEmBridgeId}'.sub('{namespaceName}', namespace_name.to_s).sub('{logAnalyticsEmBridgeId}', log_analytics_em_bridge_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_log_analytics_em_bridge') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsEmBridge' ) end # rubocop:enable Metrics/BlockLength end |
#get_log_analytics_em_bridge_summary(namespace_name, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_log_analytics_em_bridge_summary API.
Returns log analytics enterprise manager bridges summary report.
4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 4435 def get_log_analytics_em_bridge_summary(namespace_name, compartment_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_log_analytics_em_bridge_summary.' if logger raise "Missing the required parameter 'namespace_name' when calling get_log_analytics_em_bridge_summary." if namespace_name.nil? raise "Missing the required parameter 'compartment_id' when calling get_log_analytics_em_bridge_summary." if compartment_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/logAnalyticsEmBridges/emBridgeSummary'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_log_analytics_em_bridge_summary') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsEmBridgeSummaryReport' ) end # rubocop:enable Metrics/BlockLength end |
#get_log_analytics_entities_summary(namespace_name, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_log_analytics_entities_summary API.
Returns log analytics entities count summary report.
4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 4493 def get_log_analytics_entities_summary(namespace_name, compartment_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_log_analytics_entities_summary.' if logger raise "Missing the required parameter 'namespace_name' when calling get_log_analytics_entities_summary." if namespace_name.nil? raise "Missing the required parameter 'compartment_id' when calling get_log_analytics_entities_summary." if compartment_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/logAnalyticsEntities/entitySummary'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_log_analytics_entities_summary') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsEntitySummaryReport' ) end # rubocop:enable Metrics/BlockLength end |
#get_log_analytics_entity(namespace_name, log_analytics_entity_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_log_analytics_entity API.
Retrieve the log analytics entity with the given id.
4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 4552 def get_log_analytics_entity(namespace_name, log_analytics_entity_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_log_analytics_entity.' if logger raise "Missing the required parameter 'namespace_name' when calling get_log_analytics_entity." if namespace_name.nil? raise "Missing the required parameter 'log_analytics_entity_id' when calling get_log_analytics_entity." if log_analytics_entity_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'log_analytics_entity_id' must not be blank" if OCI::Internal::Util.blank_string?(log_analytics_entity_id) path = '/namespaces/{namespaceName}/logAnalyticsEntities/{logAnalyticsEntityId}'.sub('{namespaceName}', namespace_name.to_s).sub('{logAnalyticsEntityId}', log_analytics_entity_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_log_analytics_entity') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsEntity' ) end # rubocop:enable Metrics/BlockLength end |
#get_log_analytics_entity_type(namespace_name, entity_type_name, opts = {}) ⇒ Response
Click here to see an example of how to use get_log_analytics_entity_type API.
Retrieve the log analytics entity type with the given name.
4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 4611 def get_log_analytics_entity_type(namespace_name, entity_type_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_log_analytics_entity_type.' if logger raise "Missing the required parameter 'namespace_name' when calling get_log_analytics_entity_type." if namespace_name.nil? raise "Missing the required parameter 'entity_type_name' when calling get_log_analytics_entity_type." if entity_type_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'entity_type_name' must not be blank" if OCI::Internal::Util.blank_string?(entity_type_name) path = '/namespaces/{namespaceName}/logAnalyticsEntityTypes/{entityTypeName}'.sub('{namespaceName}', namespace_name.to_s).sub('{entityTypeName}', entity_type_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_log_analytics_entity_type') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsEntityType' ) end # rubocop:enable Metrics/BlockLength end |
#get_log_analytics_log_group(namespace_name, log_analytics_log_group_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_log_analytics_log_group API.
Gets detailed information about the specified log group such as display name, description, defined tags, and free-form tags.
4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 4670 def get_log_analytics_log_group(namespace_name, log_analytics_log_group_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_log_analytics_log_group.' if logger raise "Missing the required parameter 'namespace_name' when calling get_log_analytics_log_group." if namespace_name.nil? raise "Missing the required parameter 'log_analytics_log_group_id' when calling get_log_analytics_log_group." if log_analytics_log_group_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'log_analytics_log_group_id' must not be blank" if OCI::Internal::Util.blank_string?(log_analytics_log_group_id) path = '/namespaces/{namespaceName}/logAnalyticsLogGroups/{logAnalyticsLogGroupId}'.sub('{namespaceName}', namespace_name.to_s).sub('{logAnalyticsLogGroupId}', log_analytics_log_group_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_log_analytics_log_group') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsLogGroup' ) end # rubocop:enable Metrics/BlockLength end |
#get_log_analytics_log_groups_summary(namespace_name, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_log_analytics_log_groups_summary API.
Returns the count of log groups in a compartment.
4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 4729 def get_log_analytics_log_groups_summary(namespace_name, compartment_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_log_analytics_log_groups_summary.' if logger raise "Missing the required parameter 'namespace_name' when calling get_log_analytics_log_groups_summary." if namespace_name.nil? raise "Missing the required parameter 'compartment_id' when calling get_log_analytics_log_groups_summary." if compartment_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/logAnalyticsLogGroupsSummary'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_log_analytics_log_groups_summary') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogGroupSummaryReport' ) end # rubocop:enable Metrics/BlockLength end |
#get_log_analytics_object_collection_rule(namespace_name, log_analytics_object_collection_rule_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_log_analytics_object_collection_rule API.
Gets a configured object storage based collection rule by given id
4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 4787 def get_log_analytics_object_collection_rule(namespace_name, log_analytics_object_collection_rule_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_log_analytics_object_collection_rule.' if logger raise "Missing the required parameter 'namespace_name' when calling get_log_analytics_object_collection_rule." if namespace_name.nil? raise "Missing the required parameter 'log_analytics_object_collection_rule_id' when calling get_log_analytics_object_collection_rule." if log_analytics_object_collection_rule_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'log_analytics_object_collection_rule_id' must not be blank" if OCI::Internal::Util.blank_string?(log_analytics_object_collection_rule_id) path = '/namespaces/{namespaceName}/logAnalyticsObjectCollectionRules/{logAnalyticsObjectCollectionRuleId}'.sub('{namespaceName}', namespace_name.to_s).sub('{logAnalyticsObjectCollectionRuleId}', log_analytics_object_collection_rule_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_log_analytics_object_collection_rule') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsObjectCollectionRule' ) end # rubocop:enable Metrics/BlockLength end |
#get_log_sets_count(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use get_log_sets_count API.
This API returns the count of distinct log sets.
4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 4845 def get_log_sets_count(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_log_sets_count.' if logger raise "Missing the required parameter 'namespace_name' when calling get_log_sets_count." if namespace_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/storage/logSetsCount'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_log_sets_count') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogSetsCount' ) end # rubocop:enable Metrics/BlockLength end |
#get_lookup(namespace_name, lookup_name, opts = {}) ⇒ Response
Click here to see an example of how to use get_lookup API.
Gets detailed information about the lookup with the specified name.
4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 4902 def get_lookup(namespace_name, lookup_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_lookup.' if logger raise "Missing the required parameter 'namespace_name' when calling get_lookup." if namespace_name.nil? raise "Missing the required parameter 'lookup_name' when calling get_lookup." if lookup_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'lookup_name' must not be blank" if OCI::Internal::Util.blank_string?(lookup_name) path = '/namespaces/{namespaceName}/lookups/{lookupName}'.sub('{namespaceName}', namespace_name.to_s).sub('{lookupName}', lookup_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_lookup') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsLookup' ) end # rubocop:enable Metrics/BlockLength end |
#get_lookup_summary(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use get_lookup_summary API.
Returns the count of user created and oracle defined lookups.
4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 4959 def get_lookup_summary(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_lookup_summary.' if logger raise "Missing the required parameter 'namespace_name' when calling get_lookup_summary." if namespace_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/lookupSummary'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_lookup_summary') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LookupSummaryReport' ) end # rubocop:enable Metrics/BlockLength end |
#get_namespace(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use get_namespace API.
This API gets the namespace details of a tenancy already onboarded in Logging Analytics Application
5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 5015 def get_namespace(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_namespace.' if logger raise "Missing the required parameter 'namespace_name' when calling get_namespace." if namespace_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_namespace') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::Namespace' ) end # rubocop:enable Metrics/BlockLength end |
#get_parser(namespace_name, parser_name, opts = {}) ⇒ Response
Click here to see an example of how to use get_parser API.
Gets detailed information about the parser with the specified name.
5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 5072 def get_parser(namespace_name, parser_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_parser.' if logger raise "Missing the required parameter 'namespace_name' when calling get_parser." if namespace_name.nil? raise "Missing the required parameter 'parser_name' when calling get_parser." if parser_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'parser_name' must not be blank" if OCI::Internal::Util.blank_string?(parser_name) path = '/namespaces/{namespaceName}/parsers/{parserName}'.sub('{namespaceName}', namespace_name.to_s).sub('{parserName}', parser_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_parser') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsParser' ) end # rubocop:enable Metrics/BlockLength end |
#get_parser_summary(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use get_parser_summary API.
Returns the count of parsers.
5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 5130 def get_parser_summary(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_parser_summary.' if logger raise "Missing the required parameter 'namespace_name' when calling get_parser_summary." if namespace_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/parsersSummary'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_parser_summary') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::ParserSummaryReport' ) end # rubocop:enable Metrics/BlockLength end |
#get_preferences(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use get_preferences API.
Lists the tenant preferences such as DEFAULT_HOMEPAGE and collection properties.
5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 5193 def get_preferences(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_preferences.' if logger raise "Missing the required parameter 'namespace_name' when calling get_preferences." if namespace_name.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[name].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of name.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/preferences'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_preferences') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsPreferenceCollection' ) end # rubocop:enable Metrics/BlockLength end |
#get_query_result(namespace_name, work_request_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_query_result API.
Returns the intermediate results for a query that was specified to run asynchronously if the query has not completed, otherwise the final query results identified by a queryWorkRequestId returned when submitting the query execute asynchronously.
5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 5269 def get_query_result(namespace_name, work_request_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_query_result.' if logger raise "Missing the required parameter 'namespace_name' when calling get_query_result." if namespace_name.nil? raise "Missing the required parameter 'work_request_id' when calling get_query_result." if work_request_id.nil? if opts[:output_mode] && !%w[JSON_ROWS].include?(opts[:output_mode]) raise 'Invalid value for "output_mode", must be one of JSON_ROWS.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/search/actions/query'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:workRequestId] = work_request_id query_params[:page] = opts[:page] if opts[:page] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:shouldIncludeColumns] = opts[:should_include_columns] if !opts[:should_include_columns].nil? query_params[:shouldIncludeFields] = opts[:should_include_fields] if !opts[:should_include_fields].nil? query_params[:outputMode] = opts[:output_mode] if opts[:output_mode] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_query_result') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::QueryAggregation' ) end # rubocop:enable Metrics/BlockLength end |
#get_query_work_request(namespace_name, work_request_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_query_work_request API.
Retrieve work request details by workRequestId. This endpoint can be polled for status tracking of work request. Clients should poll using the interval returned in the retry-after header.
5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 5336 def get_query_work_request(namespace_name, work_request_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_query_work_request.' if logger raise "Missing the required parameter 'namespace_name' when calling get_query_work_request." if namespace_name.nil? raise "Missing the required parameter 'work_request_id' when calling get_query_work_request." if work_request_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id) path = '/namespaces/{namespaceName}/queryWorkRequests/{workRequestId}'.sub('{namespaceName}', namespace_name.to_s).sub('{workRequestId}', work_request_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_query_work_request') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::QueryWorkRequest' ) end # rubocop:enable Metrics/BlockLength end |
#get_recall_count(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use get_recall_count API.
This API gets the number of recalls made and the maximum recalls that can be made
5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 5394 def get_recall_count(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_recall_count.' if logger raise "Missing the required parameter 'namespace_name' when calling get_recall_count." if namespace_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/storage/recallCount'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_recall_count') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::RecallCount' ) end # rubocop:enable Metrics/BlockLength end |
#get_recalled_data_size(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use get_recalled_data_size API.
This API gets the datasize of recalls for a given timeframe
5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 5452 def get_recalled_data_size(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_recalled_data_size.' if logger raise "Missing the required parameter 'namespace_name' when calling get_recalled_data_size." if namespace_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/storage/recalledDataSize'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:timeDataStarted] = opts[:time_data_started] if opts[:time_data_started] query_params[:timeDataEnded] = opts[:time_data_ended] if opts[:time_data_ended] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_recalled_data_size') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::RecalledDataSize' ) end # rubocop:enable Metrics/BlockLength end |
#get_rules_summary(namespace_name, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_rules_summary API.
Returns the count of detection rules in a compartment.
5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 5511 def get_rules_summary(namespace_name, compartment_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_rules_summary.' if logger raise "Missing the required parameter 'namespace_name' when calling get_rules_summary." if namespace_name.nil? raise "Missing the required parameter 'compartment_id' when calling get_rules_summary." if compartment_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/rulesSummary'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_rules_summary') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::RuleSummaryReport' ) end # rubocop:enable Metrics/BlockLength end |
#get_scheduled_task(namespace_name, scheduled_task_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_scheduled_task API.
Get the scheduled task for the specified task identifier.
5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 5571 def get_scheduled_task(namespace_name, scheduled_task_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_scheduled_task.' if logger raise "Missing the required parameter 'namespace_name' when calling get_scheduled_task." if namespace_name.nil? raise "Missing the required parameter 'scheduled_task_id' when calling get_scheduled_task." if scheduled_task_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'scheduled_task_id' must not be blank" if OCI::Internal::Util.blank_string?(scheduled_task_id) path = '/namespaces/{namespaceName}/scheduledTasks/{scheduledTaskId}'.sub('{namespaceName}', namespace_name.to_s).sub('{scheduledTaskId}', scheduled_task_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_scheduled_task') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::ScheduledTask' ) end # rubocop:enable Metrics/BlockLength end |
#get_source(namespace_name, source_name, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_source API.
Gets detailed information about the source with the specified name.
5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 5631 def get_source(namespace_name, source_name, compartment_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_source.' if logger raise "Missing the required parameter 'namespace_name' when calling get_source." if namespace_name.nil? raise "Missing the required parameter 'source_name' when calling get_source." if source_name.nil? raise "Missing the required parameter 'compartment_id' when calling get_source." if compartment_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'source_name' must not be blank" if OCI::Internal::Util.blank_string?(source_name) path = '/namespaces/{namespaceName}/sources/{sourceName}'.sub('{namespaceName}', namespace_name.to_s).sub('{sourceName}', source_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_source') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsSource' ) end # rubocop:enable Metrics/BlockLength end |
#get_source_summary(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use get_source_summary API.
Returns the count of sources.
5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 5691 def get_source_summary(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_source_summary.' if logger raise "Missing the required parameter 'namespace_name' when calling get_source_summary." if namespace_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/sourceSummary'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_source_summary') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::SourceSummaryReport' ) end # rubocop:enable Metrics/BlockLength end |
#get_storage(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use get_storage API.
This API gets the storage configuration of a tenancy
5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 5747 def get_storage(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_storage.' if logger raise "Missing the required parameter 'namespace_name' when calling get_storage." if namespace_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/storage'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_storage') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::Storage' ) end # rubocop:enable Metrics/BlockLength end |
#get_storage_usage(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use get_storage_usage API.
This API gets storage usage information of a tenancy. Storage usage information includes active, archived or recalled data. The unit of return data is in bytes.
5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 5804 def get_storage_usage(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_storage_usage.' if logger raise "Missing the required parameter 'namespace_name' when calling get_storage_usage." if namespace_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/storage/usage'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_storage_usage') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::StorageUsage' ) end # rubocop:enable Metrics/BlockLength end |
#get_storage_work_request(work_request_id, namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use get_storage_work_request API.
This API returns work request details specified by workRequestId. This API can be polled for status tracking of work request. Clients should poll using the interval returned in retry-after header.
5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 5862 def get_storage_work_request(work_request_id, namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_storage_work_request.' if logger raise "Missing the required parameter 'work_request_id' when calling get_storage_work_request." if work_request_id.nil? raise "Missing the required parameter 'namespace_name' when calling get_storage_work_request." if namespace_name.nil? raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id) raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/storageWorkRequests/{workRequestId}'.sub('{workRequestId}', work_request_id.to_s).sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_storage_work_request') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::StorageWorkRequest' ) end # rubocop:enable Metrics/BlockLength end |
#get_unprocessed_data_bucket(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use get_unprocessed_data_bucket API.
This API retrieves details of the configured bucket that stores unprocessed payloads.
5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 5920 def get_unprocessed_data_bucket(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_unprocessed_data_bucket.' if logger raise "Missing the required parameter 'namespace_name' when calling get_unprocessed_data_bucket." if namespace_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/unprocessedDataBucket'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_unprocessed_data_bucket') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::UnprocessedDataBucket' ) end # rubocop:enable Metrics/BlockLength end |
#get_upload(namespace_name, upload_reference, opts = {}) ⇒ Response
Click here to see an example of how to use get_upload API.
Gets an On-Demand Upload info by reference.
5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 5976 def get_upload(namespace_name, upload_reference, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_upload.' if logger raise "Missing the required parameter 'namespace_name' when calling get_upload." if namespace_name.nil? raise "Missing the required parameter 'upload_reference' when calling get_upload." if upload_reference.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'upload_reference' must not be blank" if OCI::Internal::Util.blank_string?(upload_reference) path = '/namespaces/{namespaceName}/uploads/{uploadReference}'.sub('{namespaceName}', namespace_name.to_s).sub('{uploadReference}', upload_reference.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_upload') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::Upload' ) end # rubocop:enable Metrics/BlockLength end |
#get_work_request(namespace_name, work_request_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_work_request API.
Gets the status of the work request with the given ID.
6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 6034 def get_work_request(namespace_name, work_request_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#get_work_request.' if logger raise "Missing the required parameter 'namespace_name' when calling get_work_request." if namespace_name.nil? raise "Missing the required parameter 'work_request_id' when calling get_work_request." if work_request_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id) path = '/namespaces/{namespaceName}/workRequests/{workRequestId}'.sub('{namespaceName}', namespace_name.to_s).sub('{workRequestId}', work_request_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#get_work_request') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::WorkRequest' ) end # rubocop:enable Metrics/BlockLength end |
#import_custom_content(namespace_name, import_custom_content_file_body, opts = {}) ⇒ Response
Click here to see an example of how to use import_custom_content API.
Imports the specified custom content from the input in zip format.
6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 6106 def import_custom_content(namespace_name, import_custom_content_file_body, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#import_custom_content.' if logger raise "Missing the required parameter 'namespace_name' when calling import_custom_content." if namespace_name.nil? raise "Missing the required parameter 'import_custom_content_file_body' when calling import_custom_content." if import_custom_content_file_body.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/contents/actions/importCustomContent'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isOverwrite] = opts[:is_overwrite] if !opts[:is_overwrite].nil? # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:expect] = opts[:expect] if opts[:expect] # rubocop:enable Style/NegatedIf header_params[:'content-type'] ||= 'application/octet-stream' header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(import_custom_content_file_body) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#import_custom_content') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsImportCustomContent' ) end # rubocop:enable Metrics/BlockLength end |
#list_associable_entities(namespace_name, source_name, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_associable_entities API.
Lists the entities in the specified compartment which are (in)eligible for association with this source.
6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 6182 def (namespace_name, source_name, compartment_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_associable_entities.' if logger raise "Missing the required parameter 'namespace_name' when calling list_associable_entities." if namespace_name.nil? raise "Missing the required parameter 'source_name' when calling list_associable_entities." if source_name.nil? raise "Missing the required parameter 'compartment_id' when calling list_associable_entities." if compartment_id.nil? if opts[:type] && !%w[ELIGIBLE INELIGIBLE].include?(opts[:type]) raise 'Invalid value for "type", must be one of ELIGIBLE, INELIGIBLE.' end if opts[:sort_by] && !%w[entityName entityTypeName host agentId].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of entityName, entityTypeName, host, agentId.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'source_name' must not be blank" if OCI::Internal::Util.blank_string?(source_name) path = '/namespaces/{namespaceName}/sources/{sourceName}/associableEntities'.sub('{namespaceName}', namespace_name.to_s).sub('{sourceName}', source_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:type] = opts[:type] if opts[:type] query_params[:searchText] = opts[:search_text] if opts[:search_text] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_associable_entities') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::AssociableEntityCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_associated_entities(namespace_name, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_associated_entities API.
Lists the association details of entities in the specified compartment that are associated with at least one source.
6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 6276 def list_associated_entities(namespace_name, compartment_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_associated_entities.' if logger raise "Missing the required parameter 'namespace_name' when calling list_associated_entities." if namespace_name.nil? raise "Missing the required parameter 'compartment_id' when calling list_associated_entities." if compartment_id.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[entityName entityTypeDisplayName associationCount].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of entityName, entityTypeDisplayName, associationCount.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/associatedEntities'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:entityId] = opts[:entity_id] if opts[:entity_id] query_params[:entityType] = opts[:entity_type] if opts[:entity_type] query_params[:entityTypeDisplayName] = opts[:entity_type_display_name] if opts[:entity_type_display_name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_associated_entities') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsAssociatedEntityCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_auto_associations(namespace_name, source_name, opts = {}) ⇒ Response
Click here to see an example of how to use list_auto_associations API.
Gets information related to auto association for the source with the specified name.
6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 6357 def list_auto_associations(namespace_name, source_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_auto_associations.' if logger raise "Missing the required parameter 'namespace_name' when calling list_auto_associations." if namespace_name.nil? raise "Missing the required parameter 'source_name' when calling list_auto_associations." if source_name.nil? if opts[:sort_by] && !%w[isEnabled].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of isEnabled.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'source_name' must not be blank" if OCI::Internal::Util.blank_string?(source_name) path = '/namespaces/{namespaceName}/sources/{sourceName}/autoAssociations'.sub('{namespaceName}', namespace_name.to_s).sub('{sourceName}', source_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_auto_associations') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::AutoAssociationCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_categories(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use list_categories API.
Returns a list of categories, containing detailed information about them. You may limit the number of results, provide sorting order, and filter by information such as category name or description.
6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 6443 def list_categories(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_categories.' if logger raise "Missing the required parameter 'namespace_name' when calling list_categories." if namespace_name.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[displayName type].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of displayName, type.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/categories'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:categoryType] = opts[:category_type] if opts[:category_type] query_params[:categoryDisplayText] = opts[:category_display_text] if opts[:category_display_text] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:name] = opts[:name] if opts[:name] # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_categories') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsCategoryCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_config_work_requests(namespace_name, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_config_work_requests API.
Returns the list of configuration work requests such as association or lookup operations, containing detailed information about them. You may paginate or limit the number of results.
6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 6521 def list_config_work_requests(namespace_name, compartment_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_config_work_requests.' if logger raise "Missing the required parameter 'namespace_name' when calling list_config_work_requests." if namespace_name.nil? raise "Missing the required parameter 'compartment_id' when calling list_config_work_requests." if compartment_id.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[timeAccepted].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeAccepted.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/configWorkRequests'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_config_work_requests') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsConfigWorkRequestCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_effective_properties(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use list_effective_properties API.
Returns a list of effective properties for the specified resource.
6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 6608 def list_effective_properties(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_effective_properties.' if logger raise "Missing the required parameter 'namespace_name' when calling list_effective_properties." if namespace_name.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[name displayName].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of name, displayName.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/effectiveProperties'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:agentId] = opts[:agent_id] if opts[:agent_id] query_params[:sourceName] = opts[:source_name] if opts[:source_name] query_params[:isIncludePatterns] = opts[:is_include_patterns] if !opts[:is_include_patterns].nil? query_params[:entityId] = opts[:entity_id] if opts[:entity_id] query_params[:patternId] = opts[:pattern_id] if opts[:pattern_id] query_params[:name] = opts[:name] if opts[:name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_effective_properties') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::EffectivePropertyCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_encryption_key_info(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use list_encryption_key_info API.
This API returns the list of customer owned encryption key info.
6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 6681 def list_encryption_key_info(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_encryption_key_info.' if logger raise "Missing the required parameter 'namespace_name' when calling list_encryption_key_info." if namespace_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/storage/encryptionKeyInfo'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_encryption_key_info') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::EncryptionKeyInfoCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_entity_associations(namespace_name, log_analytics_entity_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_entity_associations API.
Return a list of log analytics entities associated with input source log analytics entity. Allowed values are: DIRECT, ALL
6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 6750 def list_entity_associations(namespace_name, log_analytics_entity_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_entity_associations.' if logger raise "Missing the required parameter 'namespace_name' when calling list_entity_associations." if namespace_name.nil? raise "Missing the required parameter 'log_analytics_entity_id' when calling list_entity_associations." if log_analytics_entity_id.nil? if opts[:direct_or_all_associations] && !%w[DIRECT ALL].include?(opts[:direct_or_all_associations]) raise 'Invalid value for "direct_or_all_associations", must be one of DIRECT, ALL.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[timeCreated timeUpdated name].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeCreated, timeUpdated, name.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'log_analytics_entity_id' must not be blank" if OCI::Internal::Util.blank_string?(log_analytics_entity_id) path = '/namespaces/{namespaceName}/logAnalyticsEntities/{logAnalyticsEntityId}/entityAssociations'.sub('{namespaceName}', namespace_name.to_s).sub('{logAnalyticsEntityId}', log_analytics_entity_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:directOrAllAssociations] = opts[:direct_or_all_associations] if opts[:direct_or_all_associations] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_entity_associations') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsEntityCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_entity_source_associations(namespace_name, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_entity_source_associations API.
Returns the list of source associations for the specified entity.
6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 6846 def list_entity_source_associations(namespace_name, compartment_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_entity_source_associations.' if logger raise "Missing the required parameter 'namespace_name' when calling list_entity_source_associations." if namespace_name.nil? raise "Missing the required parameter 'compartment_id' when calling list_entity_source_associations." if compartment_id.nil? if opts[:life_cycle_state] && !%w[ALL ACCEPTED IN_PROGRESS SUCCEEDED FAILED].include?(opts[:life_cycle_state]) raise 'Invalid value for "life_cycle_state", must be one of ALL, ACCEPTED, IN_PROGRESS, SUCCEEDED, FAILED.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[sourceDisplayName timeLastAttempted status].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of sourceDisplayName, timeLastAttempted, status.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/entityAssociations'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:entityId] = opts[:entity_id] if opts[:entity_id] query_params[:entityType] = opts[:entity_type] if opts[:entity_type] query_params[:entityTypeDisplayName] = opts[:entity_type_display_name] if opts[:entity_type_display_name] query_params[:lifeCycleState] = opts[:life_cycle_state] if opts[:life_cycle_state] query_params[:isShowTotal] = opts[:is_show_total] if !opts[:is_show_total].nil? query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_entity_source_associations') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsAssociationCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_fields(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use list_fields API.
Returns a list of log fields, containing detailed information about them. You may limit the number of results, provide sorting order, and filter by specifying various options including parser and source names.
6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 6956 def list_fields(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_fields.' if logger raise "Missing the required parameter 'namespace_name' when calling list_fields." if namespace_name.nil? if opts[:parser_type] && !%w[ALL REGEX XML JSON ODL DELIMITED].include?(opts[:parser_type]) raise 'Invalid value for "parser_type", must be one of ALL, REGEX, XML, JSON, ODL, DELIMITED.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[name dataType].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of name, dataType.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/fields'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isMatchAll] = opts[:is_match_all] if !opts[:is_match_all].nil? query_params[:sourceIds] = opts[:source_ids] if opts[:source_ids] query_params[:sourceNames] = opts[:source_names] if opts[:source_names] query_params[:parserType] = opts[:parser_type] if opts[:parser_type] query_params[:parserIds] = opts[:parser_ids] if opts[:parser_ids] query_params[:parserNames] = opts[:parser_names] if opts[:parser_names] query_params[:isIncludeParser] = opts[:is_include_parser] if !opts[:is_include_parser].nil? query_params[:filter] = opts[:filter] if opts[:filter] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_fields') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsFieldCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_ingest_time_rules(namespace_name, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_ingest_time_rules API.
Returns a list of ingest time rules in a compartment. You may limit the number of rules, provide sorting options, and filter the results.
Allowed values are: timeCreated, timeUpdated, displayName
7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 7061 def list_ingest_time_rules(namespace_name, compartment_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_ingest_time_rules.' if logger raise "Missing the required parameter 'namespace_name' when calling list_ingest_time_rules." if namespace_name.nil? raise "Missing the required parameter 'compartment_id' when calling list_ingest_time_rules." if compartment_id.nil? if opts[:lifecycle_state] && !OCI::LogAnalytics::Models::CONFIG_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::LogAnalytics::Models::CONFIG_LIFECYCLE_STATE_ENUM.' end if opts[:condition_kind] && !%w[FIELD].include?(opts[:condition_kind]) raise 'Invalid value for "condition_kind", must be one of FIELD.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[timeCreated timeUpdated displayName].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeCreated, timeUpdated, displayName.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/ingestTimeRules'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:conditionKind] = opts[:condition_kind] if opts[:condition_kind] query_params[:fieldName] = opts[:field_name] if opts[:field_name] query_params[:fieldValue] = opts[:field_value] if opts[:field_value] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_ingest_time_rules') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::IngestTimeRuleSummaryCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_label_priorities(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use list_label_priorities API.
Lists the available problem priorities that could be associated with a label.
7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 7146 def list_label_priorities(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_label_priorities.' if logger raise "Missing the required parameter 'namespace_name' when calling list_label_priorities." if namespace_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/labelPriorities'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_label_priorities') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LabelPriorityCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_label_source_details(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use list_label_source_details API.
Lists sources using the label, along with configuration details like base field, operator and condition.
7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 7214 def list_label_source_details(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_label_source_details.' if logger raise "Missing the required parameter 'namespace_name' when calling list_label_source_details." if namespace_name.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:label_source_sort_by] && !%w[sourceDisplayName labelFieldDisplayName].include?(opts[:label_source_sort_by]) raise 'Invalid value for "label_source_sort_by", must be one of sourceDisplayName, labelFieldDisplayName.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/labelSourceDetails'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:labelName] = opts[:label_name] if opts[:label_name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:labelSourceSortBy] = opts[:label_source_sort_by] if opts[:label_source_sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_label_source_details') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LabelSourceCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_labels(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use list_labels API.
Returns a list of labels, containing detailed information about them. You may limit the number of results, provide sorting order, and filter by information such as label name, display name, description and priority.
7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 7309 def list_labels(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_labels.' if logger raise "Missing the required parameter 'namespace_name' when calling list_labels." if namespace_name.nil? if opts[:is_system] && !%w[ALL CUSTOM BUILT_IN].include?(opts[:is_system]) raise 'Invalid value for "is_system", must be one of ALL, CUSTOM, BUILT_IN.' end if opts[:label_priority] && !%w[NONE LOW MEDIUM HIGH].include?(opts[:label_priority]) raise 'Invalid value for "label_priority", must be one of NONE, LOW, MEDIUM, HIGH.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:label_sort_by] && !%w[name priority sourceUsing].include?(opts[:label_sort_by]) raise 'Invalid value for "label_sort_by", must be one of name, priority, sourceUsing.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/labels'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:labelName] = opts[:label_name] if opts[:label_name] query_params[:labelDisplayText] = opts[:label_display_text] if opts[:label_display_text] query_params[:isSystem] = opts[:is_system] if opts[:is_system] query_params[:labelPriority] = opts[:label_priority] if opts[:label_priority] query_params[:isCountPop] = opts[:is_count_pop] if !opts[:is_count_pop].nil? query_params[:isAliasPop] = opts[:is_alias_pop] if !opts[:is_alias_pop].nil? query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:labelSortBy] = opts[:label_sort_by] if opts[:label_sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_labels') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsLabelCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_log_analytics_em_bridges(namespace_name, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_log_analytics_em_bridges API.
Return a list of log analytics enterprise manager bridges. Allowed values are: CREATING, ACTIVE, DELETED, NEEDS_ATTENTION Allowed values are: NOT_STARTED, SUCCESS, IN_PROGRESS, FAILED, PARTIAL_SUCCESS
7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 7411 def list_log_analytics_em_bridges(namespace_name, compartment_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_log_analytics_em_bridges.' if logger raise "Missing the required parameter 'namespace_name' when calling list_log_analytics_em_bridges." if namespace_name.nil? raise "Missing the required parameter 'compartment_id' when calling list_log_analytics_em_bridges." if compartment_id.nil? lifecycle_state_allowable_values = %w[CREATING ACTIVE DELETED NEEDS_ATTENTION] if opts[:lifecycle_state] && !opts[:lifecycle_state].empty? opts[:lifecycle_state].each do |val_to_check| unless lifecycle_state_allowable_values.include?(val_to_check) raise 'Invalid value for "lifecycle_state", must be one of CREATING, ACTIVE, DELETED, NEEDS_ATTENTION.' end end end import_status_allowable_values = %w[NOT_STARTED SUCCESS IN_PROGRESS FAILED PARTIAL_SUCCESS] if opts[:import_status] && !opts[:import_status].empty? opts[:import_status].each do |val_to_check| unless import_status_allowable_values.include?(val_to_check) raise 'Invalid value for "import_status", must be one of NOT_STARTED, SUCCESS, IN_PROGRESS, FAILED, PARTIAL_SUCCESS.' end end end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[timeCreated timeUpdated displayName].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeCreated, timeUpdated, displayName.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/logAnalyticsEmBridges'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:lifecycleState] = OCI::ApiClient.build_collection_params(opts[:lifecycle_state], :multi) if opts[:lifecycle_state] && !opts[:lifecycle_state].empty? query_params[:lifecycleDetailsContains] = opts[:lifecycle_details_contains] if opts[:lifecycle_details_contains] query_params[:importStatus] = OCI::ApiClient.build_collection_params(opts[:import_status], :multi) if opts[:import_status] && !opts[:import_status].empty? query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_log_analytics_em_bridges') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsEmBridgeCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_log_analytics_entities(namespace_name, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_log_analytics_entities API.
Return a list of log analytics entities. Allowed values are: EM_BRIDGE, BULK_DISCOVERY, SERVICE_CONNECTOR_HUB, DISCOVERY, LOGGING_ANALYTICS, NONE
7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 7548 def list_log_analytics_entities(namespace_name, compartment_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_log_analytics_entities.' if logger raise "Missing the required parameter 'namespace_name' when calling list_log_analytics_entities." if namespace_name.nil? raise "Missing the required parameter 'compartment_id' when calling list_log_analytics_entities." if compartment_id.nil? if opts[:lifecycle_state] && !OCI::LogAnalytics::Models::ENTITY_LIFECYCLE_STATES_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::LogAnalytics::Models::ENTITY_LIFECYCLE_STATES_ENUM.' end if opts[:is_management_agent_id_null] && !%w[true false].include?(opts[:is_management_agent_id_null]) raise 'Invalid value for "is_management_agent_id_null", must be one of true, false.' end creation_source_type_allowable_values = %w[EM_BRIDGE BULK_DISCOVERY SERVICE_CONNECTOR_HUB DISCOVERY LOGGING_ANALYTICS NONE] if opts[:creation_source_type] && !opts[:creation_source_type].empty? opts[:creation_source_type].each do |val_to_check| unless creation_source_type_allowable_values.include?(val_to_check) raise 'Invalid value for "creation_source_type", must be one of EM_BRIDGE, BULK_DISCOVERY, SERVICE_CONNECTOR_HUB, DISCOVERY, LOGGING_ANALYTICS, NONE.' end end end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[timeCreated timeUpdated name].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeCreated, timeUpdated, name.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/logAnalyticsEntities'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:name] = opts[:name] if opts[:name] query_params[:nameContains] = opts[:name_contains] if opts[:name_contains] query_params[:entityTypeName] = OCI::ApiClient.build_collection_params(opts[:entity_type_name], :multi) if opts[:entity_type_name] && !opts[:entity_type_name].empty? query_params[:cloudResourceId] = opts[:cloud_resource_id] if opts[:cloud_resource_id] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:lifecycleDetailsContains] = opts[:lifecycle_details_contains] if opts[:lifecycle_details_contains] query_params[:isManagementAgentIdNull] = opts[:is_management_agent_id_null] if opts[:is_management_agent_id_null] query_params[:hostname] = opts[:hostname] if opts[:hostname] query_params[:hostnameContains] = opts[:hostname_contains] if opts[:hostname_contains] query_params[:sourceId] = opts[:source_id] if opts[:source_id] query_params[:creationSourceType] = OCI::ApiClient.build_collection_params(opts[:creation_source_type], :multi) if opts[:creation_source_type] && !opts[:creation_source_type].empty? query_params[:creationSourceDetails] = opts[:creation_source_details] if opts[:creation_source_details] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:metadataEquals] = OCI::ApiClient.build_collection_params(opts[:metadata_equals], :multi) if opts[:metadata_equals] && !opts[:metadata_equals].empty? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_log_analytics_entities') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsEntityCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_log_analytics_entity_topology(namespace_name, log_analytics_entity_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_log_analytics_entity_topology API.
Return a log analytics entity topology collection that contains a set of log analytics entities and a set of relationships between those, for the input source entity.
7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 7665 def list_log_analytics_entity_topology(namespace_name, log_analytics_entity_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_log_analytics_entity_topology.' if logger raise "Missing the required parameter 'namespace_name' when calling list_log_analytics_entity_topology." if namespace_name.nil? raise "Missing the required parameter 'log_analytics_entity_id' when calling list_log_analytics_entity_topology." if log_analytics_entity_id.nil? if opts[:lifecycle_state] && !OCI::LogAnalytics::Models::ENTITY_LIFECYCLE_STATES_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::LogAnalytics::Models::ENTITY_LIFECYCLE_STATES_ENUM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[timeCreated timeUpdated name].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeCreated, timeUpdated, name.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'log_analytics_entity_id' must not be blank" if OCI::Internal::Util.blank_string?(log_analytics_entity_id) path = '/namespaces/{namespaceName}/logAnalyticsEntities/{logAnalyticsEntityId}/entityTopology'.sub('{namespaceName}', namespace_name.to_s).sub('{logAnalyticsEntityId}', log_analytics_entity_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:metadataEquals] = OCI::ApiClient.build_collection_params(opts[:metadata_equals], :multi) if opts[:metadata_equals] && !opts[:metadata_equals].empty? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_log_analytics_entity_topology') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsEntityTopologyCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_log_analytics_entity_types(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use list_log_analytics_entity_types API.
Return a list of log analytics entity types.
7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 7760 def list_log_analytics_entity_types(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_log_analytics_entity_types.' if logger raise "Missing the required parameter 'namespace_name' when calling list_log_analytics_entity_types." if namespace_name.nil? if opts[:cloud_type] && !OCI::LogAnalytics::Models::ENTITY_CLOUD_TYPE_ENUM.include?(opts[:cloud_type]) raise 'Invalid value for "cloud_type", must be one of the values in OCI::LogAnalytics::Models::ENTITY_CLOUD_TYPE_ENUM.' end if opts[:lifecycle_state] && !OCI::LogAnalytics::Models::ENTITY_LIFECYCLE_STATES_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::LogAnalytics::Models::ENTITY_LIFECYCLE_STATES_ENUM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[timeCreated timeUpdated name].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeCreated, timeUpdated, name.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/logAnalyticsEntityTypes'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:name] = opts[:name] if opts[:name] query_params[:nameContains] = opts[:name_contains] if opts[:name_contains] query_params[:cloudType] = opts[:cloud_type] if opts[:cloud_type] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_log_analytics_entity_types') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsEntityTypeCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_log_analytics_log_groups(namespace_name, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_log_analytics_log_groups API.
Returns a list of log groups in a compartment. You may limit the number of log groups, provide sorting options, and filter the results by specifying a display name.
Allowed values are: timeCreated, timeUpdated, displayName
7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 7852 def list_log_analytics_log_groups(namespace_name, compartment_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_log_analytics_log_groups.' if logger raise "Missing the required parameter 'namespace_name' when calling list_log_analytics_log_groups." if namespace_name.nil? raise "Missing the required parameter 'compartment_id' when calling list_log_analytics_log_groups." if compartment_id.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[timeCreated timeUpdated displayName].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeCreated, timeUpdated, displayName.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/logAnalyticsLogGroups'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_log_analytics_log_groups') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsLogGroupSummaryCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_log_analytics_object_collection_rules(namespace_name, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_log_analytics_object_collection_rules API.
Gets list of collection rules.
7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 7935 def list_log_analytics_object_collection_rules(namespace_name, compartment_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_log_analytics_object_collection_rules.' if logger raise "Missing the required parameter 'namespace_name' when calling list_log_analytics_object_collection_rules." if namespace_name.nil? raise "Missing the required parameter 'compartment_id' when calling list_log_analytics_object_collection_rules." if compartment_id.nil? if opts[:lifecycle_state] && !OCI::LogAnalytics::Models::LIFECYCLE_STATES_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::LogAnalytics::Models::LIFECYCLE_STATES_ENUM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[timeUpdated timeCreated name].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeUpdated, timeCreated, name.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/logAnalyticsObjectCollectionRules'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:name] = opts[:name] if opts[:name] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_log_analytics_object_collection_rules') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsObjectCollectionRuleCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_log_sets(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use list_log_sets API.
This API returns a list of log sets.
8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 8018 def list_log_sets(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_log_sets.' if logger raise "Missing the required parameter 'namespace_name' when calling list_log_sets." if namespace_name.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/storage/logSets'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:logSetNameContains] = OCI::ApiClient.build_collection_params(opts[:log_set_name_contains], :multi) if opts[:log_set_name_contains] && !opts[:log_set_name_contains].empty? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_log_sets') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogSetCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_lookups(namespace_name, type, opts = {}) ⇒ Response
Click here to see an example of how to use list_lookups API.
Returns a list of lookups, containing detailed information about them. You may limit the number of results, provide sorting order, and filter by information such as lookup name, description and type.
8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 8104 def list_lookups(namespace_name, type, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_lookups.' if logger raise "Missing the required parameter 'namespace_name' when calling list_lookups." if namespace_name.nil? raise "Missing the required parameter 'type' when calling list_lookups." if type.nil? unless %w[Lookup Dictionary Module].include?(type) raise "Invalid value for 'type', must be one of Lookup, Dictionary, Module." end if opts[:is_system] && !%w[ALL CUSTOM BUILT_IN].include?(opts[:is_system]) raise 'Invalid value for "is_system", must be one of ALL, CUSTOM, BUILT_IN.' end if opts[:sort_by] && !%w[displayName status type updatedTime creationType].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of displayName, status, type, updatedTime, creationType.' end if opts[:status] && !%w[ALL SUCCESSFUL FAILED INPROGRESS].include?(opts[:status]) raise 'Invalid value for "status", must be one of ALL, SUCCESSFUL, FAILED, INPROGRESS.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/lookups'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:type] = type query_params[:lookupDisplayText] = opts[:lookup_display_text] if opts[:lookup_display_text] query_params[:isSystem] = opts[:is_system] if opts[:is_system] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:status] = opts[:status] if opts[:status] query_params[:categories] = opts[:categories] if opts[:categories] query_params[:isHideSpecial] = opts[:is_hide_special] if !opts[:is_hide_special].nil? query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_lookups') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsLookupCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_meta_source_types(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use list_meta_source_types API.
Lists the types of log sources supported.
8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 8197 def (namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_meta_source_types.' if logger raise "Missing the required parameter 'namespace_name' when calling list_meta_source_types." if namespace_name.nil? if opts[:sort_by] && !%w[name].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of name.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/sourceMetaTypes'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_meta_source_types') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsMetaSourceTypeCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_namespaces(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_namespaces API.
Given a tenancy OCID, this API returns the namespace of the tenancy if it is valid and subscribed to the region. The result also indicates if the tenancy is onboarded with Logging Analytics.
8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 8265 def list_namespaces(compartment_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_namespaces.' if logger raise "Missing the required parameter 'compartment_id' when calling list_namespaces." if compartment_id.nil? path = '/namespaces' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_namespaces') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::NamespaceCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_overlapping_recalls(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use list_overlapping_recalls API.
This API gets the list of overlapping recalls made in the given timeframe
8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 8332 def list_overlapping_recalls(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_overlapping_recalls.' if logger raise "Missing the required parameter 'namespace_name' when calling list_overlapping_recalls." if namespace_name.nil? if opts[:sort_by] && !%w[timeStarted timeDataStarted].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeStarted, timeDataStarted.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/storage/overlappingRecalls'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:timeDataStarted] = opts[:time_data_started] if opts[:time_data_started] query_params[:timeDataEnded] = opts[:time_data_ended] if opts[:time_data_ended] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_overlapping_recalls') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::OverlappingRecallCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_parser_functions(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use list_parser_functions API.
Lists the parser functions defined for the specified parser.
8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 8411 def list_parser_functions(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_parser_functions.' if logger raise "Missing the required parameter 'namespace_name' when calling list_parser_functions." if namespace_name.nil? if opts[:sort_by] && !%w[name].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of name.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/parserFunctions'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:parserName] = opts[:parser_name] if opts[:parser_name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_parser_functions') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsParserFunctionCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_parser_meta_plugins(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use list_parser_meta_plugins API.
Lists the parser meta plugins available for defining parser functions.
8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 8487 def (namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_parser_meta_plugins.' if logger raise "Missing the required parameter 'namespace_name' when calling list_parser_meta_plugins." if namespace_name.nil? if opts[:sort_by] && !%w[name].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of name.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/parserMetaPlugins'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_parser_meta_plugins') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsParserMetaPluginCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_parsers(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use list_parsers API.
Returns a list of parsers, containing detailed information about them. You may limit the number of results, provide sorting order, and filter by information such as parser name, type, display name and description.
8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 8587 def list_parsers(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_parsers.' if logger raise "Missing the required parameter 'namespace_name' when calling list_parsers." if namespace_name.nil? if opts[:source_type] && !%w[OS_FILE SYSLOG ODL OS_WINDOWS_SYS].include?(opts[:source_type]) raise 'Invalid value for "source_type", must be one of OS_FILE, SYSLOG, ODL, OS_WINDOWS_SYS.' end if opts[:parser_type] && !%w[ALL REGEX XML JSON ODL DELIMITED].include?(opts[:parser_type]) raise 'Invalid value for "parser_type", must be one of ALL, REGEX, XML, JSON, ODL, DELIMITED.' end if opts[:is_system] && !%w[ALL CUSTOM BUILT_IN].include?(opts[:is_system]) raise 'Invalid value for "is_system", must be one of ALL, CUSTOM, BUILT_IN.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[name type sourcesCount timeUpdated].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of name, type, sourcesCount, timeUpdated.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/parsers'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isMatchAll] = opts[:is_match_all] if !opts[:is_match_all].nil? query_params[:sourceType] = opts[:source_type] if opts[:source_type] query_params[:parserName] = opts[:parser_name] if opts[:parser_name] query_params[:parserDisplayText] = opts[:parser_display_text] if opts[:parser_display_text] query_params[:parserType] = opts[:parser_type] if opts[:parser_type] query_params[:categories] = opts[:categories] if opts[:categories] query_params[:isSystem] = opts[:is_system] if opts[:is_system] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_parsers') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsParserCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_properties_metadata(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use list_properties_metadata API.
Returns a list of properties along with their metadata.
8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 8690 def (namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_properties_metadata.' if logger raise "Missing the required parameter 'namespace_name' when calling list_properties_metadata." if namespace_name.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[name displayName].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of name, displayName.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/propertiesMetadata'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:name] = opts[:name] if opts[:name] query_params[:displayText] = opts[:display_text] if opts[:display_text] query_params[:level] = opts[:level] if opts[:level] query_params[:constraints] = opts[:constraints] if opts[:constraints] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_properties_metadata') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::PropertyMetadataSummaryCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_query_work_requests(namespace_name, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_query_work_requests API.
List active asynchronous queries. Allowed values are: timeStarted, timeExpires
8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 8771 def list_query_work_requests(namespace_name, compartment_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_query_work_requests.' if logger raise "Missing the required parameter 'namespace_name' when calling list_query_work_requests." if namespace_name.nil? raise "Missing the required parameter 'compartment_id' when calling list_query_work_requests." if compartment_id.nil? if opts[:mode] && !OCI::LogAnalytics::Models::JOB_MODE_FILTER_ENUM.include?(opts[:mode]) raise 'Invalid value for "mode", must be one of the values in OCI::LogAnalytics::Models::JOB_MODE_FILTER_ENUM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[timeStarted timeExpires].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeStarted, timeExpires.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/queryWorkRequests'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:mode] = opts[:mode] if opts[:mode] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_query_work_requests') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::QueryWorkRequestCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_recalled_data(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use list_recalled_data API.
This API returns the list of recalled data of a tenancy.
8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 8857 def list_recalled_data(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_recalled_data.' if logger raise "Missing the required parameter 'namespace_name' when calling list_recalled_data." if namespace_name.nil? if opts[:sort_by] && !%w[timeStarted timeDataStarted].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeStarted, timeDataStarted.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/storage/recalledData'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:timeDataStartedGreaterThanOrEqual] = opts[:time_data_started_greater_than_or_equal] if opts[:time_data_started_greater_than_or_equal] query_params[:timeDataEndedLessThan] = opts[:time_data_ended_less_than] if opts[:time_data_ended_less_than] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_recalled_data') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::RecalledDataCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_resource_categories(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use list_resource_categories API.
Returns a list of resources and their category assignments. You may limit the number of results, provide sorting order, and filter by information such as resource type.
8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 8942 def list_resource_categories(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_resource_categories.' if logger raise "Missing the required parameter 'namespace_name' when calling list_resource_categories." if namespace_name.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[resourceType categoryName resourceId].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of resourceType, categoryName, resourceId.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/categories/resourceCategories'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:categories] = opts[:categories] if opts[:categories] query_params[:resourceTypes] = opts[:resource_types] if opts[:resource_types] query_params[:resourceIds] = opts[:resource_ids] if opts[:resource_ids] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_resource_categories') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsResourceCategoryCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_rules(namespace_name, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_rules API.
Returns a list of ingest time rules and scheduled tasks in a compartment. You may limit the number of items returned, provide sorting options, and filter the results.
Allowed values are: timeCreated, timeUpdated, displayName
9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 9034 def list_rules(namespace_name, compartment_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_rules.' if logger raise "Missing the required parameter 'namespace_name' when calling list_rules." if namespace_name.nil? raise "Missing the required parameter 'compartment_id' when calling list_rules." if compartment_id.nil? if opts[:kind] && !%w[INGEST_TIME SAVED_SEARCH ALL].include?(opts[:kind]) raise 'Invalid value for "kind", must be one of INGEST_TIME, SAVED_SEARCH, ALL.' end if opts[:lifecycle_state] && !OCI::LogAnalytics::Models::CONFIG_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::LogAnalytics::Models::CONFIG_LIFECYCLE_STATE_ENUM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[timeCreated timeUpdated displayName].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeCreated, timeUpdated, displayName.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/rules'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:kind] = opts[:kind] if opts[:kind] query_params[:targetService] = opts[:target_service] if opts[:target_service] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_rules') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::RuleSummaryCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_scheduled_tasks(namespace_name, task_type, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_scheduled_tasks API.
Lists scheduled tasks. Allowed values are: timeCreated, timeUpdated, displayName
9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 9134 def list_scheduled_tasks(namespace_name, task_type, compartment_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_scheduled_tasks.' if logger raise "Missing the required parameter 'namespace_name' when calling list_scheduled_tasks." if namespace_name.nil? raise "Missing the required parameter 'task_type' when calling list_scheduled_tasks." if task_type.nil? unless OCI::LogAnalytics::Models::TASK_TYPE_ENUM.include?(task_type) raise 'Invalid value for "task_type", must be one of the values in OCI::LogAnalytics::Models::TASK_TYPE_ENUM.' end raise "Missing the required parameter 'compartment_id' when calling list_scheduled_tasks." if compartment_id.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[timeCreated timeUpdated displayName].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeCreated, timeUpdated, displayName.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/scheduledTasks'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:taskType] = task_type query_params[:compartmentId] = compartment_id query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:savedSearchId] = opts[:saved_search_id] if opts[:saved_search_id] query_params[:displayNameContains] = opts[:display_name_contains] if opts[:display_name_contains] query_params[:targetService] = opts[:target_service] if opts[:target_service] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_scheduled_tasks') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::ScheduledTaskCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_source_associations(namespace_name, source_name, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_source_associations API.
Returns the list of entity associations in the input compartment for the specified source.
9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 9230 def list_source_associations(namespace_name, source_name, compartment_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_source_associations.' if logger raise "Missing the required parameter 'namespace_name' when calling list_source_associations." if namespace_name.nil? raise "Missing the required parameter 'source_name' when calling list_source_associations." if source_name.nil? raise "Missing the required parameter 'compartment_id' when calling list_source_associations." if compartment_id.nil? if opts[:life_cycle_state] && !%w[ALL ACCEPTED IN_PROGRESS SUCCEEDED FAILED].include?(opts[:life_cycle_state]) raise 'Invalid value for "life_cycle_state", must be one of ALL, ACCEPTED, IN_PROGRESS, SUCCEEDED, FAILED.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[entityName timeLastAttempted status].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of entityName, timeLastAttempted, status.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/sourceAssociations'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:sourceName] = source_name query_params[:compartmentId] = compartment_id query_params[:entityId] = opts[:entity_id] if opts[:entity_id] query_params[:lifeCycleState] = opts[:life_cycle_state] if opts[:life_cycle_state] query_params[:isShowTotal] = opts[:is_show_total] if !opts[:is_show_total].nil? query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_source_associations') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsAssociationCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_source_event_types(namespace_name, source_name, opts = {}) ⇒ Response
Click here to see an example of how to use list_source_event_types API.
Lists the event types mapped to the source with the specified name. The event type string could be the fully qualified name or a prefix that matches the event type.
9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 9327 def list_source_event_types(namespace_name, source_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_source_event_types.' if logger raise "Missing the required parameter 'namespace_name' when calling list_source_event_types." if namespace_name.nil? raise "Missing the required parameter 'source_name' when calling list_source_event_types." if source_name.nil? if opts[:is_system] && !%w[ALL CUSTOM BUILT_IN].include?(opts[:is_system]) raise 'Invalid value for "is_system", must be one of ALL, CUSTOM, BUILT_IN.' end if opts[:sort_by] && !%w[eventType timeUpdated].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of eventType, timeUpdated.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'source_name' must not be blank" if OCI::Internal::Util.blank_string?(source_name) path = '/namespaces/{namespaceName}/sources/{sourceName}/eventTypes'.sub('{namespaceName}', namespace_name.to_s).sub('{sourceName}', source_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:displayText] = opts[:display_text] if opts[:display_text] query_params[:isSystem] = opts[:is_system] if opts[:is_system] query_params[:isEnabled] = opts[:is_enabled] if !opts[:is_enabled].nil? query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_source_event_types') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::EventTypeCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_source_extended_field_definitions(namespace_name, source_name, opts = {}) ⇒ Response
Click here to see an example of how to use list_source_extended_field_definitions API.
Lists the extended field definitions for the source with the specified name.
9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 9412 def list_source_extended_field_definitions(namespace_name, source_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_source_extended_field_definitions.' if logger raise "Missing the required parameter 'namespace_name' when calling list_source_extended_field_definitions." if namespace_name.nil? raise "Missing the required parameter 'source_name' when calling list_source_extended_field_definitions." if source_name.nil? if opts[:sort_by] && !%w[baseFieldName regularExpression].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of baseFieldName, regularExpression.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'source_name' must not be blank" if OCI::Internal::Util.blank_string?(source_name) path = '/namespaces/{namespaceName}/sources/{sourceName}/extendedFieldDefinitions'.sub('{namespaceName}', namespace_name.to_s).sub('{sourceName}', source_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_source_extended_field_definitions') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsSourceExtendedFieldDefinitionCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_source_label_operators(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use list_source_label_operators API.
Lists the supported conditional operators that could be used for matching log field values to generate a label. You may use patterns to specify a condition. If a log entry matches that condition, it is tagged with the corresponding label.
9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 9489 def list_source_label_operators(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_source_label_operators.' if logger raise "Missing the required parameter 'namespace_name' when calling list_source_label_operators." if namespace_name.nil? if opts[:sort_by] && !%w[name].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of name.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/sourceLabelOperators'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_source_label_operators') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsLabelOperatorCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_source_meta_functions(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use list_source_meta_functions API.
Lists the functions that could be used to enrich log entries based on meaningful information extracted from the log fields.
9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 9564 def (namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_source_meta_functions.' if logger raise "Missing the required parameter 'namespace_name' when calling list_source_meta_functions." if namespace_name.nil? if opts[:sort_by] && !%w[name].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of name.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/sourceMetaFunctions'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_source_meta_functions') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsMetaFunctionCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_source_patterns(namespace_name, source_name, opts = {}) ⇒ Response
Click here to see an example of how to use list_source_patterns API.
Lists the source patterns for the source with the specified name.
9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 9641 def list_source_patterns(namespace_name, source_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_source_patterns.' if logger raise "Missing the required parameter 'namespace_name' when calling list_source_patterns." if namespace_name.nil? raise "Missing the required parameter 'source_name' when calling list_source_patterns." if source_name.nil? if opts[:sort_by] && !%w[patternText].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of patternText.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'source_name' must not be blank" if OCI::Internal::Util.blank_string?(source_name) path = '/namespaces/{namespaceName}/sources/{sourceName}/patterns'.sub('{namespaceName}', namespace_name.to_s).sub('{sourceName}', source_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isInclude] = opts[:is_include] if !opts[:is_include].nil? query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_source_patterns') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsSourcePatternCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_sources(namespace_name, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_sources API.
Returns a list of sources, containing detailed information about them. You may limit the number of results, provide sorting order, and filter by information such as display name, description and entity type.
9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 9744 def list_sources(namespace_name, compartment_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_sources.' if logger raise "Missing the required parameter 'namespace_name' when calling list_sources." if namespace_name.nil? raise "Missing the required parameter 'compartment_id' when calling list_sources." if compartment_id.nil? if opts[:is_system] && !%w[ALL CUSTOM BUILT_IN].include?(opts[:is_system]) raise 'Invalid value for "is_system", must be one of ALL, CUSTOM, BUILT_IN.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[name timeUpdated associationCount sourceType].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of name, timeUpdated, associationCount, sourceType.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/sources'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:entityType] = opts[:entity_type] if opts[:entity_type] query_params[:sourceDisplayText] = opts[:source_display_text] if opts[:source_display_text] query_params[:isSystem] = opts[:is_system] if opts[:is_system] query_params[:isAutoAssociated] = opts[:is_auto_associated] if !opts[:is_auto_associated].nil? query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:name] = opts[:name] if opts[:name] query_params[:sourceType] = opts[:source_type] if opts[:source_type] query_params[:categories] = opts[:categories] if opts[:categories] query_params[:isSimplified] = opts[:is_simplified] if !opts[:is_simplified].nil? # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_sources') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsSourceCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_storage_work_request_errors(compartment_id, work_request_id, namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use list_storage_work_request_errors API.
This API returns the list of work request errors if any. Allowed values are: timeCreated
9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 9835 def list_storage_work_request_errors(compartment_id, work_request_id, namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_storage_work_request_errors.' if logger raise "Missing the required parameter 'compartment_id' when calling list_storage_work_request_errors." if compartment_id.nil? raise "Missing the required parameter 'work_request_id' when calling list_storage_work_request_errors." if work_request_id.nil? raise "Missing the required parameter 'namespace_name' when calling list_storage_work_request_errors." if namespace_name.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[timeCreated].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeCreated.' end raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id) raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/storageWorkRequests/{workRequestId}/errors'.sub('{workRequestId}', work_request_id.to_s).sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_storage_work_request_errors') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::WorkRequestErrorCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_storage_work_requests(compartment_id, namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use list_storage_work_requests API.
This API lists storage work requests. Use query parameters to narrow down or sort the result list.
9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 9923 def list_storage_work_requests(compartment_id, namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_storage_work_requests.' if logger raise "Missing the required parameter 'compartment_id' when calling list_storage_work_requests." if compartment_id.nil? raise "Missing the required parameter 'namespace_name' when calling list_storage_work_requests." if namespace_name.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[timeAccepted timeExpires timeFinished].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeAccepted, timeExpires, timeFinished.' end if opts[:operation_type] && !OCI::LogAnalytics::Models::STORAGE_OPERATION_TYPE_ENUM.include?(opts[:operation_type]) raise 'Invalid value for "operation_type", must be one of the values in OCI::LogAnalytics::Models::STORAGE_OPERATION_TYPE_ENUM.' end if opts[:status] && !OCI::LogAnalytics::Models::WORK_REQUEST_STATUS_ENUM.include?(opts[:status]) raise 'Invalid value for "status", must be one of the values in OCI::LogAnalytics::Models::WORK_REQUEST_STATUS_ENUM.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/storageWorkRequests'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:operationType] = opts[:operation_type] if opts[:operation_type] query_params[:status] = opts[:status] if opts[:status] query_params[:timeStarted] = opts[:time_started] if opts[:time_started] query_params[:timeFinished] = opts[:time_finished] if opts[:time_finished] query_params[:policyName] = opts[:policy_name] if opts[:policy_name] query_params[:policyId] = opts[:policy_id] if opts[:policy_id] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_storage_work_requests') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::StorageWorkRequestCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_supported_char_encodings(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use list_supported_char_encodings API.
Gets list of character encodings which are supported by on-demand upload.
10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 10008 def list_supported_char_encodings(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_supported_char_encodings.' if logger raise "Missing the required parameter 'namespace_name' when calling list_supported_char_encodings." if namespace_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/supportedCharEncodings'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_supported_char_encodings') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::CharEncodingCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_supported_timezones(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use list_supported_timezones API.
Gets list of timezones which are supported by on-demand upload.
10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 10067 def list_supported_timezones(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_supported_timezones.' if logger raise "Missing the required parameter 'namespace_name' when calling list_supported_timezones." if namespace_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/supportedTimezones'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_supported_timezones') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::TimezoneCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_upload_files(namespace_name, upload_reference, opts = {}) ⇒ Response
Click here to see an example of how to use list_upload_files API.
Gets list of files in an upload along with its processing state.
10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 10137 def list_upload_files(namespace_name, upload_reference, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_upload_files.' if logger raise "Missing the required parameter 'namespace_name' when calling list_upload_files." if namespace_name.nil? raise "Missing the required parameter 'upload_reference' when calling list_upload_files." if upload_reference.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[timeStarted name logGroupName sourceName status timeCreated fileName logGroup].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeStarted, name, logGroupName, sourceName, status, timeCreated, fileName, logGroup.' end status_allowable_values = %w[IN_PROGRESS SUCCESSFUL FAILED] if opts[:status] && !opts[:status].empty? opts[:status].each do |val_to_check| unless status_allowable_values.include?(val_to_check) raise 'Invalid value for "status", must be one of IN_PROGRESS, SUCCESSFUL, FAILED.' end end end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'upload_reference' must not be blank" if OCI::Internal::Util.blank_string?(upload_reference) path = '/namespaces/{namespaceName}/uploads/{uploadReference}/files'.sub('{namespaceName}', namespace_name.to_s).sub('{uploadReference}', upload_reference.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:searchStr] = opts[:search_str] if opts[:search_str] query_params[:status] = OCI::ApiClient.build_collection_params(opts[:status], :multi) if opts[:status] && !opts[:status].empty? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_upload_files') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::UploadFileCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_upload_warnings(namespace_name, upload_reference, opts = {}) ⇒ Response
Click here to see an example of how to use list_upload_warnings API.
Gets list of warnings in an upload caused by incorrect configuration.
10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 10221 def list_upload_warnings(namespace_name, upload_reference, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_upload_warnings.' if logger raise "Missing the required parameter 'namespace_name' when calling list_upload_warnings." if namespace_name.nil? raise "Missing the required parameter 'upload_reference' when calling list_upload_warnings." if upload_reference.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'upload_reference' must not be blank" if OCI::Internal::Util.blank_string?(upload_reference) path = '/namespaces/{namespaceName}/uploads/{uploadReference}/warnings'.sub('{namespaceName}', namespace_name.to_s).sub('{uploadReference}', upload_reference.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_upload_warnings') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::UploadWarningCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_uploads(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use list_uploads API.
Gets a list of all On-demand uploads. To use this and other API operations, you must be authorized in an IAM policy.
10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 10298 def list_uploads(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_uploads.' if logger raise "Missing the required parameter 'namespace_name' when calling list_uploads." if namespace_name.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[timeUpdated timeCreated name].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeUpdated, timeCreated, name.' end if opts[:warnings_filter] && !%w[WITH_WARNINGS WITHOUT_WARNINGS ALL].include?(opts[:warnings_filter]) raise 'Invalid value for "warnings_filter", must be one of WITH_WARNINGS, WITHOUT_WARNINGS, ALL.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/uploads'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:name] = opts[:name] if opts[:name] query_params[:nameContains] = opts[:name_contains] if opts[:name_contains] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:warningsFilter] = opts[:warnings_filter] if opts[:warnings_filter] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_uploads') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::UploadCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_warnings(namespace_name, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_warnings API.
Returns a list of collection warnings, containing detailed information about them. You may limit the number of results, provide sorting order, and filter by information such as start time, end time, warning type, warning state, source name, source pattern and entity name.
10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 10405 def list_warnings(namespace_name, compartment_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_warnings.' if logger raise "Missing the required parameter 'namespace_name' when calling list_warnings." if namespace_name.nil? raise "Missing the required parameter 'compartment_id' when calling list_warnings." if compartment_id.nil? if opts[:warning_state] && !%w[ALL SUPPRESSED UNSUPPRESSED].include?(opts[:warning_state]) raise 'Invalid value for "warning_state", must be one of ALL, SUPPRESSED, UNSUPPRESSED.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[EntityType SourceName PatternText FirstReported WarningMessage Host EntityName InitialWarningDate].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of EntityType, SourceName, PatternText, FirstReported, WarningMessage, Host, EntityName, InitialWarningDate.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/warnings'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:warningState] = opts[:warning_state] if opts[:warning_state] query_params[:sourceName] = opts[:source_name] if opts[:source_name] query_params[:sourcePattern] = opts[:source_pattern] if opts[:source_pattern] query_params[:warningMessage] = opts[:warning_message] if opts[:warning_message] query_params[:entityName] = opts[:entity_name] if opts[:entity_name] query_params[:entityType] = opts[:entity_type] if opts[:entity_type] query_params[:warningType] = opts[:warning_type] if opts[:warning_type] query_params[:isNoSource] = opts[:is_no_source] if !opts[:is_no_source].nil? query_params[:startTime] = opts[:start_time] if opts[:start_time] query_params[:endTime] = opts[:end_time] if opts[:end_time] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_warnings') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsWarningCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_work_request_errors(namespace_name, work_request_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_work_request_errors API.
Return a (paginated) list of errors for a given work request.
10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 10492 def list_work_request_errors(namespace_name, work_request_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_work_request_errors.' if logger raise "Missing the required parameter 'namespace_name' when calling list_work_request_errors." if namespace_name.nil? raise "Missing the required parameter 'work_request_id' when calling list_work_request_errors." if work_request_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id) path = '/namespaces/{namespaceName}/workRequests/{workRequestId}/errors'.sub('{namespaceName}', namespace_name.to_s).sub('{workRequestId}', work_request_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:page] = opts[:page] if opts[:page] query_params[:limit] = opts[:limit] if opts[:limit] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_work_request_errors') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::WorkRequestErrorCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_work_request_logs(namespace_name, work_request_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_work_request_logs API.
Return a (paginated) list of logs for a given work request.
10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 10555 def list_work_request_logs(namespace_name, work_request_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_work_request_logs.' if logger raise "Missing the required parameter 'namespace_name' when calling list_work_request_logs." if namespace_name.nil? raise "Missing the required parameter 'work_request_id' when calling list_work_request_logs." if work_request_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id) path = '/namespaces/{namespaceName}/workRequests/{workRequestId}/logs'.sub('{namespaceName}', namespace_name.to_s).sub('{workRequestId}', work_request_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:page] = opts[:page] if opts[:page] query_params[:limit] = opts[:limit] if opts[:limit] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_work_request_logs') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::WorkRequestLogCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_work_requests(namespace_name, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_work_requests API.
Lists the work requests in a compartment.
10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 10618 def list_work_requests(namespace_name, compartment_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#list_work_requests.' if logger raise "Missing the required parameter 'namespace_name' when calling list_work_requests." if namespace_name.nil? raise "Missing the required parameter 'compartment_id' when calling list_work_requests." if compartment_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/workRequests'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:page] = opts[:page] if opts[:page] query_params[:limit] = opts[:limit] if opts[:limit] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#list_work_requests') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::WorkRequestCollection' ) end # rubocop:enable Metrics/BlockLength end |
#logger ⇒ Logger
Returns The logger for this client. May be nil.
94 95 96 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 94 def logger @api_client.config.logger end |
#offboard_namespace(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use offboard_namespace API.
Off-boards a tenant from Logging Analytics
10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 10683 def offboard_namespace(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#offboard_namespace.' if logger raise "Missing the required parameter 'namespace_name' when calling offboard_namespace." if namespace_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/actions/offboard'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#offboard_namespace') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#onboard_namespace(namespace_name, opts = {}) ⇒ Response
Click here to see an example of how to use onboard_namespace API.
On-boards a tenant to Logging Analytics.
10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 10746 def onboard_namespace(namespace_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#onboard_namespace.' if logger raise "Missing the required parameter 'namespace_name' when calling onboard_namespace." if namespace_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/actions/onboard'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#onboard_namespace') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#parse_query(namespace_name, parse_query_details, opts = {}) ⇒ Response
Click here to see an example of how to use parse_query API.
Describe query
10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 10803 def parse_query(namespace_name, parse_query_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#parse_query.' if logger raise "Missing the required parameter 'namespace_name' when calling parse_query." if namespace_name.nil? raise "Missing the required parameter 'parse_query_details' when calling parse_query." if parse_query_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/search/actions/parse'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' post_body = @api_client.object_to_http_body(parse_query_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#parse_query') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::ParseQueryOutput' ) end # rubocop:enable Metrics/BlockLength end |
#pause_scheduled_task(namespace_name, scheduled_task_id, opts = {}) ⇒ Response
Click here to see an example of how to use pause_scheduled_task API.
Pause the scheduled task specified by scheduledTaskId.
10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 10870 def pause_scheduled_task(namespace_name, scheduled_task_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#pause_scheduled_task.' if logger raise "Missing the required parameter 'namespace_name' when calling pause_scheduled_task." if namespace_name.nil? raise "Missing the required parameter 'scheduled_task_id' when calling pause_scheduled_task." if scheduled_task_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'scheduled_task_id' must not be blank" if OCI::Internal::Util.blank_string?(scheduled_task_id) path = '/namespaces/{namespaceName}/scheduledTasks/{scheduledTaskId}/actions/pause'.sub('{namespaceName}', namespace_name.to_s).sub('{scheduledTaskId}', scheduled_task_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#pause_scheduled_task') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::ScheduledTask' ) end # rubocop:enable Metrics/BlockLength end |
#purge_storage_data(namespace_name, purge_storage_data_details, opts = {}) ⇒ Response
Click here to see an example of how to use purge_storage_data API.
This API submits a work request to purge data. Only data from log groups that the user has permission to delete will be purged. To purge all data, the user must have permission to all log groups.
10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 10943 def purge_storage_data(namespace_name, purge_storage_data_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#purge_storage_data.' if logger raise "Missing the required parameter 'namespace_name' when calling purge_storage_data." if namespace_name.nil? raise "Missing the required parameter 'purge_storage_data_details' when calling purge_storage_data." if purge_storage_data_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/storage/actions/purgeData'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(purge_storage_data_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#purge_storage_data') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#put_query_work_request_background(namespace_name, work_request_id, opts = {}) ⇒ Response
Click here to see an example of how to use put_query_work_request_background API.
Put the work request specified by workRequestId into the background. Backgrounded queries will preserve query results on query completion for up to 7 days for recall. After 7 days the results and query expire.
11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 11009 def put_query_work_request_background(namespace_name, work_request_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#put_query_work_request_background.' if logger raise "Missing the required parameter 'namespace_name' when calling put_query_work_request_background." if namespace_name.nil? raise "Missing the required parameter 'work_request_id' when calling put_query_work_request_background." if work_request_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id) path = '/namespaces/{namespaceName}/queryWorkRequests/{workRequestId}/actions/background'.sub('{namespaceName}', namespace_name.to_s).sub('{workRequestId}', work_request_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#put_query_work_request_background') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::QueryWorkRequest' ) end # rubocop:enable Metrics/BlockLength end |
#query(namespace_name, query_details, opts = {}) ⇒ Response
Click here to see an example of how to use query API.
Performs a log analytics search, if shouldRunAsync is false returns the query results once they become available subject to 60 second timeout. If a query is subject to exceed that time then it should be run asynchronously. Asynchronous query submissions return the queryWorkRequestId to use for execution tracking, query submission lifecycle actions and to poll for query results.
11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 11071 def query(namespace_name, query_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#query.' if logger raise "Missing the required parameter 'namespace_name' when calling query." if namespace_name.nil? raise "Missing the required parameter 'query_details' when calling query." if query_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/search/actions/query'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:page] = opts[:page] if opts[:page] query_params[:limit] = opts[:limit] if opts[:limit] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' post_body = @api_client.object_to_http_body(query_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#query') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::QueryAggregation' ) end # rubocop:enable Metrics/BlockLength end |
#recall_archived_data(namespace_name, recall_archived_data_details, opts = {}) ⇒ Response
Click here to see an example of how to use recall_archived_data API.
This API submits a work request to recall archived data based on time interval and data type.
11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 11144 def recall_archived_data(namespace_name, recall_archived_data_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#recall_archived_data.' if logger raise "Missing the required parameter 'namespace_name' when calling recall_archived_data." if namespace_name.nil? raise "Missing the required parameter 'recall_archived_data_details' when calling recall_archived_data." if recall_archived_data_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/storage/actions/recallArchivedData'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(recall_archived_data_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#recall_archived_data') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::RecalledDataInfo' ) end # rubocop:enable Metrics/BlockLength end |
#register_lookup(namespace_name, type, register_lookup_content_file_body, opts = {}) ⇒ Response
Click here to see an example of how to use register_lookup API.
Creates a lookup with the specified name, type and description. The csv file containing the lookup content is passed in as binary data in the request.
11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 11226 def register_lookup(namespace_name, type, register_lookup_content_file_body, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#register_lookup.' if logger raise "Missing the required parameter 'namespace_name' when calling register_lookup." if namespace_name.nil? raise "Missing the required parameter 'type' when calling register_lookup." if type.nil? unless %w[Lookup Dictionary Module].include?(type) raise "Invalid value for 'type', must be one of Lookup, Dictionary, Module." end raise "Missing the required parameter 'register_lookup_content_file_body' when calling register_lookup." if register_lookup_content_file_body.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/lookups/actions/register'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:type] = type query_params[:name] = opts[:name] if opts[:name] query_params[:description] = opts[:description] if opts[:description] query_params[:charEncoding] = opts[:char_encoding] if opts[:char_encoding] query_params[:isHidden] = opts[:is_hidden] if !opts[:is_hidden].nil? # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:expect] = opts[:expect] if opts[:expect] # rubocop:enable Style/NegatedIf header_params[:'content-type'] ||= 'application/octet-stream' header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(register_lookup_content_file_body) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#register_lookup') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsLookup' ) end # rubocop:enable Metrics/BlockLength end |
#release_recalled_data(namespace_name, release_recalled_data_details, opts = {}) ⇒ Response
Click here to see an example of how to use release_recalled_data API.
This API submits a work request to release recalled data based on time interval and data type.
11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 11309 def release_recalled_data(namespace_name, release_recalled_data_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#release_recalled_data.' if logger raise "Missing the required parameter 'namespace_name' when calling release_recalled_data." if namespace_name.nil? raise "Missing the required parameter 'release_recalled_data_details' when calling release_recalled_data." if release_recalled_data_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/storage/actions/releaseRecalledData'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(release_recalled_data_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#release_recalled_data') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#remove_entity_associations(namespace_name, log_analytics_entity_id, remove_entity_associations_details, opts = {}) ⇒ Response
Click here to see an example of how to use remove_entity_associations API.
Delete association between input source log analytics entity and destination entities.
11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 11383 def remove_entity_associations(namespace_name, log_analytics_entity_id, remove_entity_associations_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#remove_entity_associations.' if logger raise "Missing the required parameter 'namespace_name' when calling remove_entity_associations." if namespace_name.nil? raise "Missing the required parameter 'log_analytics_entity_id' when calling remove_entity_associations." if log_analytics_entity_id.nil? raise "Missing the required parameter 'remove_entity_associations_details' when calling remove_entity_associations." if remove_entity_associations_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'log_analytics_entity_id' must not be blank" if OCI::Internal::Util.blank_string?(log_analytics_entity_id) path = '/namespaces/{namespaceName}/logAnalyticsEntities/{logAnalyticsEntityId}/actions/removeEntityAssociations'.sub('{namespaceName}', namespace_name.to_s).sub('{logAnalyticsEntityId}', log_analytics_entity_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(remove_entity_associations_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#remove_entity_associations') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#remove_preferences(namespace_name, remove_preferences_details, opts = {}) ⇒ Response
Click here to see an example of how to use remove_preferences API.
Removes the tenant preferences such as DEFAULT_HOMEPAGE and collection properties.
11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 11452 def remove_preferences(namespace_name, remove_preferences_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#remove_preferences.' if logger raise "Missing the required parameter 'namespace_name' when calling remove_preferences." if namespace_name.nil? raise "Missing the required parameter 'remove_preferences_details' when calling remove_preferences." if remove_preferences_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/preferences/actions/removePreferences'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(remove_preferences_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#remove_preferences') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#remove_resource_categories(namespace_name, remove_resource_categories_details, opts = {}) ⇒ Response
Click here to see an example of how to use remove_resource_categories API.
Removes the category assignments of DASHBOARD and SAVEDSEARCH resources.
11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 11512 def remove_resource_categories(namespace_name, remove_resource_categories_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#remove_resource_categories.' if logger raise "Missing the required parameter 'namespace_name' when calling remove_resource_categories." if namespace_name.nil? raise "Missing the required parameter 'remove_resource_categories_details' when calling remove_resource_categories." if remove_resource_categories_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/categories/actions/removeResourceCategories'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' post_body = @api_client.object_to_http_body(remove_resource_categories_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#remove_resource_categories') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#remove_source_event_types(namespace_name, source_name, remove_event_type_details, opts = {}) ⇒ Response
Click here to see an example of how to use remove_source_event_types API.
Remove one or more event types from a source.
11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 11577 def remove_source_event_types(namespace_name, source_name, remove_event_type_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#remove_source_event_types.' if logger raise "Missing the required parameter 'namespace_name' when calling remove_source_event_types." if namespace_name.nil? raise "Missing the required parameter 'source_name' when calling remove_source_event_types." if source_name.nil? raise "Missing the required parameter 'remove_event_type_details' when calling remove_source_event_types." if remove_event_type_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'source_name' must not be blank" if OCI::Internal::Util.blank_string?(source_name) path = '/namespaces/{namespaceName}/sources/{sourceName}/actions/removeEventTypes'.sub('{namespaceName}', namespace_name.to_s).sub('{sourceName}', source_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(remove_event_type_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#remove_source_event_types') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#resume_scheduled_task(namespace_name, scheduled_task_id, opts = {}) ⇒ Response
Click here to see an example of how to use resume_scheduled_task API.
Resume the scheduled task specified by scheduledTaskId.
11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 11647 def resume_scheduled_task(namespace_name, scheduled_task_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#resume_scheduled_task.' if logger raise "Missing the required parameter 'namespace_name' when calling resume_scheduled_task." if namespace_name.nil? raise "Missing the required parameter 'scheduled_task_id' when calling resume_scheduled_task." if scheduled_task_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'scheduled_task_id' must not be blank" if OCI::Internal::Util.blank_string?(scheduled_task_id) path = '/namespaces/{namespaceName}/scheduledTasks/{scheduledTaskId}/actions/resume'.sub('{namespaceName}', namespace_name.to_s).sub('{scheduledTaskId}', scheduled_task_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#resume_scheduled_task') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::ScheduledTask' ) end # rubocop:enable Metrics/BlockLength end |
#run(namespace_name, scheduled_task_id, opts = {}) ⇒ Response
Click here to see an example of how to use run API.
Execute the saved search acceleration task in the foreground. The ScheduledTask taskType must be ACCELERATION. Optionally specify time range (timeStart and timeEnd). The default is all time.
11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 11723 def run(namespace_name, scheduled_task_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#run.' if logger raise "Missing the required parameter 'namespace_name' when calling run." if namespace_name.nil? raise "Missing the required parameter 'scheduled_task_id' when calling run." if scheduled_task_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'scheduled_task_id' must not be blank" if OCI::Internal::Util.blank_string?(scheduled_task_id) path = '/namespaces/{namespaceName}/scheduledTasks/{scheduledTaskId}/actions/run'.sub('{namespaceName}', namespace_name.to_s).sub('{scheduledTaskId}', scheduled_task_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:timeStart] = opts[:time_start] if opts[:time_start] query_params[:timeEnd] = opts[:time_end] if opts[:time_end] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#run') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#set_unprocessed_data_bucket(namespace_name, bucket_name, opts = {}) ⇒ Response
Click here to see an example of how to use set_unprocessed_data_bucket API.
This API configures a bucket to store unprocessed payloads. While processing there could be reasons a payload cannot be processed (mismatched structure, corrupted archive format, etc), if configured the payload would be uploaded to the bucket for verification.
11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 11790 def set_unprocessed_data_bucket(namespace_name, bucket_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#set_unprocessed_data_bucket.' if logger raise "Missing the required parameter 'namespace_name' when calling set_unprocessed_data_bucket." if namespace_name.nil? raise "Missing the required parameter 'bucket_name' when calling set_unprocessed_data_bucket." if bucket_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/actions/setUnprocessedDataBucket'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:bucketName] = bucket_name query_params[:isEnabled] = opts[:is_enabled] if !opts[:is_enabled].nil? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#set_unprocessed_data_bucket') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::UnprocessedDataBucket' ) end # rubocop:enable Metrics/BlockLength end |
#suggest(namespace_name, suggest_details, opts = {}) ⇒ Response
Click here to see an example of how to use suggest API.
Returns a context specific list of either commands, fields, or values to append to the end of the specified query string if applicable.
11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 11849 def suggest(namespace_name, suggest_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#suggest.' if logger raise "Missing the required parameter 'namespace_name' when calling suggest." if namespace_name.nil? raise "Missing the required parameter 'suggest_details' when calling suggest." if suggest_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/search/actions/suggest'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' post_body = @api_client.object_to_http_body(suggest_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#suggest') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::SuggestOutput' ) end # rubocop:enable Metrics/BlockLength end |
#suppress_warning(namespace_name, warning_reference_details, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use suppress_warning API.
Supresses a list of warnings. Any unsuppressed warnings in the input list would be suppressed. Warnings in the input list which are already suppressed will not be modified.
11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 11915 def suppress_warning(namespace_name, warning_reference_details, compartment_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#suppress_warning.' if logger raise "Missing the required parameter 'namespace_name' when calling suppress_warning." if namespace_name.nil? raise "Missing the required parameter 'warning_reference_details' when calling suppress_warning." if warning_reference_details.nil? raise "Missing the required parameter 'compartment_id' when calling suppress_warning." if compartment_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/warnings/actions/suppress'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(warning_reference_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#suppress_warning') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#test_parser(namespace_name, test_parser_payload_details, opts = {}) ⇒ Response
Click here to see an example of how to use test_parser API.
Tests the parser definition against the specified example content to ensure fields are successfully extracted.
11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 11988 def test_parser(namespace_name, test_parser_payload_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#test_parser.' if logger raise "Missing the required parameter 'namespace_name' when calling test_parser." if namespace_name.nil? raise "Missing the required parameter 'test_parser_payload_details' when calling test_parser." if test_parser_payload_details.nil? if opts[:scope] && !%w[LOG_LINES LOG_ENTRIES LOG_LINES_LOG_ENTRIES].include?(opts[:scope]) raise 'Invalid value for "scope", must be one of LOG_LINES, LOG_ENTRIES, LOG_LINES_LOG_ENTRIES.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/parsers/actions/test'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:scope] = opts[:scope] if opts[:scope] query_params[:reqOriginModule] = opts[:req_origin_module] if opts[:req_origin_module] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(test_parser_payload_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#test_parser') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::ParserTestResult' ) end # rubocop:enable Metrics/BlockLength end |
#unsuppress_warning(namespace_name, warning_reference_details, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use unsuppress_warning API.
Unsupresses a list of warnings. Any suppressed warnings in the input list would be unsuppressed. Warnings in the input list which are already unsuppressed will not be modified.
12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 12062 def unsuppress_warning(namespace_name, warning_reference_details, compartment_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#unsuppress_warning.' if logger raise "Missing the required parameter 'namespace_name' when calling unsuppress_warning." if namespace_name.nil? raise "Missing the required parameter 'warning_reference_details' when calling unsuppress_warning." if warning_reference_details.nil? raise "Missing the required parameter 'compartment_id' when calling unsuppress_warning." if compartment_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/warnings/actions/unsuppress'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(warning_reference_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#unsuppress_warning') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_ingest_time_rule(namespace_name, ingest_time_rule_id, update_ingest_time_rule_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_ingest_time_rule API.
Updates the specified ingest time rule's description, defined tags, and free-form tags.
12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 12132 def update_ingest_time_rule(namespace_name, ingest_time_rule_id, update_ingest_time_rule_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#update_ingest_time_rule.' if logger raise "Missing the required parameter 'namespace_name' when calling update_ingest_time_rule." if namespace_name.nil? raise "Missing the required parameter 'ingest_time_rule_id' when calling update_ingest_time_rule." if ingest_time_rule_id.nil? raise "Missing the required parameter 'update_ingest_time_rule_details' when calling update_ingest_time_rule." if update_ingest_time_rule_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'ingest_time_rule_id' must not be blank" if OCI::Internal::Util.blank_string?(ingest_time_rule_id) path = '/namespaces/{namespaceName}/ingestTimeRules/{ingestTimeRuleId}'.sub('{namespaceName}', namespace_name.to_s).sub('{ingestTimeRuleId}', ingest_time_rule_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' post_body = @api_client.object_to_http_body(update_ingest_time_rule_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#update_ingest_time_rule') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::IngestTimeRule' ) end # rubocop:enable Metrics/BlockLength end |
#update_log_analytics_em_bridge(namespace_name, log_analytics_em_bridge_id, update_log_analytics_em_bridge_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_log_analytics_em_bridge API.
Update log analytics enterprise manager bridge with the given id.
12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 12201 def update_log_analytics_em_bridge(namespace_name, log_analytics_em_bridge_id, update_log_analytics_em_bridge_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#update_log_analytics_em_bridge.' if logger raise "Missing the required parameter 'namespace_name' when calling update_log_analytics_em_bridge." if namespace_name.nil? raise "Missing the required parameter 'log_analytics_em_bridge_id' when calling update_log_analytics_em_bridge." if log_analytics_em_bridge_id.nil? raise "Missing the required parameter 'update_log_analytics_em_bridge_details' when calling update_log_analytics_em_bridge." if update_log_analytics_em_bridge_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'log_analytics_em_bridge_id' must not be blank" if OCI::Internal::Util.blank_string?(log_analytics_em_bridge_id) path = '/namespaces/{namespaceName}/logAnalyticsEmBridges/{logAnalyticsEmBridgeId}'.sub('{namespaceName}', namespace_name.to_s).sub('{logAnalyticsEmBridgeId}', log_analytics_em_bridge_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' post_body = @api_client.object_to_http_body(update_log_analytics_em_bridge_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#update_log_analytics_em_bridge') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsEmBridge' ) end # rubocop:enable Metrics/BlockLength end |
#update_log_analytics_entity(namespace_name, log_analytics_entity_id, update_log_analytics_entity_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_log_analytics_entity API.
Update the log analytics entity with the given id.
12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 12270 def update_log_analytics_entity(namespace_name, log_analytics_entity_id, update_log_analytics_entity_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#update_log_analytics_entity.' if logger raise "Missing the required parameter 'namespace_name' when calling update_log_analytics_entity." if namespace_name.nil? raise "Missing the required parameter 'log_analytics_entity_id' when calling update_log_analytics_entity." if log_analytics_entity_id.nil? raise "Missing the required parameter 'update_log_analytics_entity_details' when calling update_log_analytics_entity." if update_log_analytics_entity_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'log_analytics_entity_id' must not be blank" if OCI::Internal::Util.blank_string?(log_analytics_entity_id) path = '/namespaces/{namespaceName}/logAnalyticsEntities/{logAnalyticsEntityId}'.sub('{namespaceName}', namespace_name.to_s).sub('{logAnalyticsEntityId}', log_analytics_entity_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' post_body = @api_client.object_to_http_body(update_log_analytics_entity_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#update_log_analytics_entity') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsEntity' ) end # rubocop:enable Metrics/BlockLength end |
#update_log_analytics_entity_type(namespace_name, update_log_analytics_entity_type_details, entity_type_name, opts = {}) ⇒ Response
Click here to see an example of how to use update_log_analytics_entity_type API.
Update custom log analytics entity type. Out of box entity types cannot be udpated.
12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 12339 def update_log_analytics_entity_type(namespace_name, update_log_analytics_entity_type_details, entity_type_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#update_log_analytics_entity_type.' if logger raise "Missing the required parameter 'namespace_name' when calling update_log_analytics_entity_type." if namespace_name.nil? raise "Missing the required parameter 'update_log_analytics_entity_type_details' when calling update_log_analytics_entity_type." if update_log_analytics_entity_type_details.nil? raise "Missing the required parameter 'entity_type_name' when calling update_log_analytics_entity_type." if entity_type_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'entity_type_name' must not be blank" if OCI::Internal::Util.blank_string?(entity_type_name) path = '/namespaces/{namespaceName}/logAnalyticsEntityTypes/{entityTypeName}'.sub('{namespaceName}', namespace_name.to_s).sub('{entityTypeName}', entity_type_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' post_body = @api_client.object_to_http_body(update_log_analytics_entity_type_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#update_log_analytics_entity_type') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_log_analytics_log_group(namespace_name, log_analytics_log_group_id, update_log_analytics_log_group_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_log_analytics_log_group API.
Updates the specified log group's display name, description, defined tags, and free-form tags.
12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 12407 def update_log_analytics_log_group(namespace_name, log_analytics_log_group_id, update_log_analytics_log_group_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#update_log_analytics_log_group.' if logger raise "Missing the required parameter 'namespace_name' when calling update_log_analytics_log_group." if namespace_name.nil? raise "Missing the required parameter 'log_analytics_log_group_id' when calling update_log_analytics_log_group." if log_analytics_log_group_id.nil? raise "Missing the required parameter 'update_log_analytics_log_group_details' when calling update_log_analytics_log_group." if update_log_analytics_log_group_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'log_analytics_log_group_id' must not be blank" if OCI::Internal::Util.blank_string?(log_analytics_log_group_id) path = '/namespaces/{namespaceName}/logAnalyticsLogGroups/{logAnalyticsLogGroupId}'.sub('{namespaceName}', namespace_name.to_s).sub('{logAnalyticsLogGroupId}', log_analytics_log_group_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' post_body = @api_client.object_to_http_body(update_log_analytics_log_group_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#update_log_analytics_log_group') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsLogGroup' ) end # rubocop:enable Metrics/BlockLength end |
#update_log_analytics_object_collection_rule(namespace_name, log_analytics_object_collection_rule_id, update_log_analytics_object_collection_rule_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_log_analytics_object_collection_rule API.
Updates configuration of the object collection rule for the given id.
12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 12475 def update_log_analytics_object_collection_rule(namespace_name, log_analytics_object_collection_rule_id, update_log_analytics_object_collection_rule_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#update_log_analytics_object_collection_rule.' if logger raise "Missing the required parameter 'namespace_name' when calling update_log_analytics_object_collection_rule." if namespace_name.nil? raise "Missing the required parameter 'log_analytics_object_collection_rule_id' when calling update_log_analytics_object_collection_rule." if log_analytics_object_collection_rule_id.nil? raise "Missing the required parameter 'update_log_analytics_object_collection_rule_details' when calling update_log_analytics_object_collection_rule." if update_log_analytics_object_collection_rule_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'log_analytics_object_collection_rule_id' must not be blank" if OCI::Internal::Util.blank_string?(log_analytics_object_collection_rule_id) path = '/namespaces/{namespaceName}/logAnalyticsObjectCollectionRules/{logAnalyticsObjectCollectionRuleId}'.sub('{namespaceName}', namespace_name.to_s).sub('{logAnalyticsObjectCollectionRuleId}', log_analytics_object_collection_rule_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' post_body = @api_client.object_to_http_body(update_log_analytics_object_collection_rule_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#update_log_analytics_object_collection_rule') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsObjectCollectionRule' ) end # rubocop:enable Metrics/BlockLength end |
#update_lookup(namespace_name, lookup_name, update_lookup_metadata_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_lookup API.
Updates the metadata of the specified lookup, such as the lookup description.
12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 12550 def update_lookup(namespace_name, lookup_name, , opts = {}) logger.debug 'Calling operation LogAnalyticsClient#update_lookup.' if logger raise "Missing the required parameter 'namespace_name' when calling update_lookup." if namespace_name.nil? raise "Missing the required parameter 'lookup_name' when calling update_lookup." if lookup_name.nil? raise "Missing the required parameter 'update_lookup_metadata_details' when calling update_lookup." if .nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'lookup_name' must not be blank" if OCI::Internal::Util.blank_string?(lookup_name) path = '/namespaces/{namespaceName}/lookups/{lookupName}'.sub('{namespaceName}', namespace_name.to_s).sub('{lookupName}', lookup_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body() # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#update_lookup') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsLookup' ) end # rubocop:enable Metrics/BlockLength end |
#update_lookup_data(namespace_name, lookup_name, update_lookup_file_body, opts = {}) ⇒ Response
Click here to see an example of how to use update_lookup_data API.
Updates the lookup content. The csv file containing the content to be updated is passed in as binary data in the request.
12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 12633 def update_lookup_data(namespace_name, lookup_name, update_lookup_file_body, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#update_lookup_data.' if logger raise "Missing the required parameter 'namespace_name' when calling update_lookup_data." if namespace_name.nil? raise "Missing the required parameter 'lookup_name' when calling update_lookup_data." if lookup_name.nil? raise "Missing the required parameter 'update_lookup_file_body' when calling update_lookup_data." if update_lookup_file_body.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'lookup_name' must not be blank" if OCI::Internal::Util.blank_string?(lookup_name) path = '/namespaces/{namespaceName}/lookups/{lookupName}/actions/updateData'.sub('{namespaceName}', namespace_name.to_s).sub('{lookupName}', lookup_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isForce] = opts[:is_force] if !opts[:is_force].nil? query_params[:charEncoding] = opts[:char_encoding] if opts[:char_encoding] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:expect] = opts[:expect] if opts[:expect] # rubocop:enable Style/NegatedIf header_params[:'content-type'] ||= 'application/octet-stream' header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(update_lookup_file_body) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#update_lookup_data') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_preferences(namespace_name, update_preferences_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_preferences API.
Updates the tenant preferences such as DEFAULT_HOMEPAGE and collection properties.
12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 12705 def update_preferences(namespace_name, update_preferences_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#update_preferences.' if logger raise "Missing the required parameter 'namespace_name' when calling update_preferences." if namespace_name.nil? raise "Missing the required parameter 'update_preferences_details' when calling update_preferences." if update_preferences_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/preferences/actions/updatePreferences'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(update_preferences_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#update_preferences') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_resource_categories(namespace_name, update_resource_categories_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_resource_categories API.
Updates the category assignments of DASHBOARD and SAVEDSEARCH resources.
12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 12765 def update_resource_categories(namespace_name, update_resource_categories_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#update_resource_categories.' if logger raise "Missing the required parameter 'namespace_name' when calling update_resource_categories." if namespace_name.nil? raise "Missing the required parameter 'update_resource_categories_details' when calling update_resource_categories." if update_resource_categories_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/categories/actions/updateResourceCategories'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' post_body = @api_client.object_to_http_body(update_resource_categories_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#update_resource_categories') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_scheduled_task(namespace_name, scheduled_task_id, update_scheduled_task_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_scheduled_task API.
Update the scheduled task. Schedules may be updated only for taskType SAVED_SEARCH and PURGE.
12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 12833 def update_scheduled_task(namespace_name, scheduled_task_id, update_scheduled_task_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#update_scheduled_task.' if logger raise "Missing the required parameter 'namespace_name' when calling update_scheduled_task." if namespace_name.nil? raise "Missing the required parameter 'scheduled_task_id' when calling update_scheduled_task." if scheduled_task_id.nil? raise "Missing the required parameter 'update_scheduled_task_details' when calling update_scheduled_task." if update_scheduled_task_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'scheduled_task_id' must not be blank" if OCI::Internal::Util.blank_string?(scheduled_task_id) path = '/namespaces/{namespaceName}/scheduledTasks/{scheduledTaskId}'.sub('{namespaceName}', namespace_name.to_s).sub('{scheduledTaskId}', scheduled_task_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' post_body = @api_client.object_to_http_body(update_scheduled_task_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#update_scheduled_task') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::ScheduledTask' ) end # rubocop:enable Metrics/BlockLength end |
#update_storage(namespace_name, update_storage_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_storage API.
This API updates the archiving configuration
12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 12901 def update_storage(namespace_name, update_storage_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#update_storage.' if logger raise "Missing the required parameter 'namespace_name' when calling update_storage." if namespace_name.nil? raise "Missing the required parameter 'update_storage_details' when calling update_storage." if update_storage_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/storage'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' post_body = @api_client.object_to_http_body(update_storage_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#update_storage') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::Storage' ) end # rubocop:enable Metrics/BlockLength end |
#upload_discovery_data(namespace_name, upload_discovery_data_details, opts = {}) ⇒ Response
Click here to see an example of how to use upload_discovery_data API.
Accepts discovery data for processing by Logging Analytics.
Allowed values are: ENTITY, K8S_OBJECTS
12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 12981 def upload_discovery_data(namespace_name, upload_discovery_data_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#upload_discovery_data.' if logger raise "Missing the required parameter 'namespace_name' when calling upload_discovery_data." if namespace_name.nil? raise "Missing the required parameter 'upload_discovery_data_details' when calling upload_discovery_data." if upload_discovery_data_details.nil? if opts[:discovery_data_type] && !%w[ENTITY K8S_OBJECTS].include?(opts[:discovery_data_type]) raise 'Invalid value for "discovery_data_type", must be one of ENTITY, K8S_OBJECTS.' end if opts[:payload_type] && !OCI::LogAnalytics::Models::PAYLOAD_TYPE_ENUM.include?(opts[:payload_type]) raise 'Invalid value for "payload_type", must be one of the values in OCI::LogAnalytics::Models::PAYLOAD_TYPE_ENUM.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/actions/uploadDiscoveryData'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :exclude_body # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:discoveryDataType] = opts[:discovery_data_type] if opts[:discovery_data_type] query_params[:logGroupId] = opts[:log_group_id] if opts[:log_group_id] query_params[:payloadType] = opts[:payload_type] if opts[:payload_type] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-meta-properties'] = opts[:opc_meta_properties] if opts[:opc_meta_properties] header_params[:'content-type'] = opts[:content_type] if opts[:content_type] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:expect] = opts[:expect] if opts[:expect] # rubocop:enable Style/NegatedIf header_params[:'content-type'] ||= 'application/octet-stream' header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(upload_discovery_data_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#upload_discovery_data') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#upload_log_events_file(namespace_name, log_group_id, upload_log_events_file_details, opts = {}) ⇒ Response
Click here to see an example of how to use upload_log_events_file API.
Accepts log events for processing by Logging Analytics.
13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 13079 def upload_log_events_file(namespace_name, log_group_id, upload_log_events_file_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#upload_log_events_file.' if logger raise "Missing the required parameter 'namespace_name' when calling upload_log_events_file." if namespace_name.nil? raise "Missing the required parameter 'log_group_id' when calling upload_log_events_file." if log_group_id.nil? raise "Missing the required parameter 'upload_log_events_file_details' when calling upload_log_events_file." if upload_log_events_file_details.nil? if opts[:payload_type] && !OCI::LogAnalytics::Models::PAYLOAD_TYPE_ENUM.include?(opts[:payload_type]) raise 'Invalid value for "payload_type", must be one of the values in OCI::LogAnalytics::Models::PAYLOAD_TYPE_ENUM.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/actions/uploadLogEventsFile'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :exclude_body # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:logGroupId] = log_group_id query_params[:logSet] = opts[:log_set] if opts[:log_set] query_params[:payloadType] = opts[:payload_type] if opts[:payload_type] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'content-type'] = opts[:content_type] if opts[:content_type] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-meta-properties'] = opts[:opc_meta_properties] if opts[:opc_meta_properties] header_params[:expect] = opts[:expect] if opts[:expect] # rubocop:enable Style/NegatedIf header_params[:'content-type'] ||= 'application/octet-stream' header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(upload_log_events_file_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#upload_log_events_file') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#upload_log_file(namespace_name, upload_name, log_source_name, filename, opc_meta_loggrpid, upload_log_file_body, opts = {}) ⇒ Response
Click here to see an example of how to use upload_log_file API.
Accepts log data for processing by Logging Analytics.
13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 13189 def upload_log_file(namespace_name, upload_name, log_source_name, filename, , upload_log_file_body, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#upload_log_file.' if logger raise "Missing the required parameter 'namespace_name' when calling upload_log_file." if namespace_name.nil? raise "Missing the required parameter 'upload_name' when calling upload_log_file." if upload_name.nil? raise "Missing the required parameter 'log_source_name' when calling upload_log_file." if log_source_name.nil? raise "Missing the required parameter 'filename' when calling upload_log_file." if filename.nil? raise "Missing the required parameter 'opc_meta_loggrpid' when calling upload_log_file." if .nil? raise "Missing the required parameter 'upload_log_file_body' when calling upload_log_file." if upload_log_file_body.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/actions/uploadLogFile'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :exclude_body # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:uploadName] = upload_name query_params[:logSourceName] = log_source_name query_params[:filename] = filename query_params[:entityId] = opts[:entity_id] if opts[:entity_id] query_params[:timezone] = opts[:timezone] if opts[:timezone] query_params[:charEncoding] = opts[:char_encoding] if opts[:char_encoding] query_params[:dateFormat] = opts[:date_format] if opts[:date_format] query_params[:dateYear] = opts[:date_year] if opts[:date_year] query_params[:invalidateCache] = opts[:invalidate_cache] if !opts[:invalidate_cache].nil? query_params[:logSet] = opts[:log_set] if opts[:log_set] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'opc-meta-loggrpid'] = header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'content-md5'] = opts[:content_md5] if opts[:content_md5] header_params[:'content-type'] = opts[:content_type] if opts[:content_type] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:expect] = opts[:expect] if opts[:expect] # rubocop:enable Style/NegatedIf header_params[:'content-type'] ||= 'application/octet-stream' header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(upload_log_file_body) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#upload_log_file') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::Upload' ) end # rubocop:enable Metrics/BlockLength end |
#upsert_associations(namespace_name, upsert_log_analytics_association_details, opts = {}) ⇒ Response
Click here to see an example of how to use upsert_associations API.
Creates or updates associations between sources and entities. All entities should belong to the specified input compartment.
13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 13275 def upsert_associations(namespace_name, upsert_log_analytics_association_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#upsert_associations.' if logger raise "Missing the required parameter 'namespace_name' when calling upsert_associations." if namespace_name.nil? raise "Missing the required parameter 'upsert_log_analytics_association_details' when calling upsert_associations." if upsert_log_analytics_association_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/associations/actions/upsert'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isFromRepublish] = opts[:is_from_republish] if !opts[:is_from_republish].nil? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(upsert_log_analytics_association_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#upsert_associations') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#upsert_field(namespace_name, upsert_log_analytics_field_details, opts = {}) ⇒ Response
Click here to see an example of how to use upsert_field API.
Creates or updates a field that could be used in parser expressions to extract and assign value. To create a field, specify its display name. A name would be generated for the field. For subsequent calls to update the field, include the name attribute.
13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 13348 def upsert_field(namespace_name, upsert_log_analytics_field_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#upsert_field.' if logger raise "Missing the required parameter 'namespace_name' when calling upsert_field." if namespace_name.nil? raise "Missing the required parameter 'upsert_log_analytics_field_details' when calling upsert_field." if upsert_log_analytics_field_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/fields/actions/upsert'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(upsert_log_analytics_field_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#upsert_field') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsField' ) end # rubocop:enable Metrics/BlockLength end |
#upsert_label(namespace_name, upsert_log_analytics_label_details, opts = {}) ⇒ Response
Click here to see an example of how to use upsert_label API.
Creates or updates a label that could be used to tag a log entry. You may optionally designate the label as a problem, and assign it a priority. You may also provide its related terms (aliases). To create a label, specify its display name. A name would be generated for the label. For subsequent calls to update the label, include the name attribute.
13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 13422 def upsert_label(namespace_name, upsert_log_analytics_label_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#upsert_label.' if logger raise "Missing the required parameter 'namespace_name' when calling upsert_label." if namespace_name.nil? raise "Missing the required parameter 'upsert_log_analytics_label_details' when calling upsert_label." if upsert_log_analytics_label_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/labels/actions/upsert'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(upsert_log_analytics_label_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#upsert_label') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsLabel' ) end # rubocop:enable Metrics/BlockLength end |
#upsert_parser(namespace_name, upsert_log_analytics_parser_details, opts = {}) ⇒ Response
Click here to see an example of how to use upsert_parser API.
Creates or updates a parser, which defines how fields are extracted from a log entry.
13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 13496 def upsert_parser(namespace_name, upsert_log_analytics_parser_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#upsert_parser.' if logger raise "Missing the required parameter 'namespace_name' when calling upsert_parser." if namespace_name.nil? raise "Missing the required parameter 'upsert_log_analytics_parser_details' when calling upsert_parser." if upsert_log_analytics_parser_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/parsers/actions/upsert'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(upsert_log_analytics_parser_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#upsert_parser') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsParser' ) end # rubocop:enable Metrics/BlockLength end |
#upsert_source(namespace_name, upsert_log_analytics_source_details, opts = {}) ⇒ Response
Click here to see an example of how to use upsert_source API.
Creates or updates a log source. You may also specify parsers, labels, extended fields etc., for the source.
13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 13577 def upsert_source(namespace_name, upsert_log_analytics_source_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#upsert_source.' if logger raise "Missing the required parameter 'namespace_name' when calling upsert_source." if namespace_name.nil? raise "Missing the required parameter 'upsert_log_analytics_source_details' when calling upsert_source." if upsert_log_analytics_source_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/sources/actions/upsert'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:createLikeSourceId] = opts[:create_like_source_id] if opts[:create_like_source_id] query_params[:isIncremental] = opts[:is_incremental] if !opts[:is_incremental].nil? query_params[:isIgnoreWarning] = opts[:is_ignore_warning] if !opts[:is_ignore_warning].nil? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(upsert_log_analytics_source_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#upsert_source') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsSource' ) end # rubocop:enable Metrics/BlockLength end |
#validate_association_parameters(namespace_name, upsert_log_analytics_association_details, opts = {}) ⇒ Response
Click here to see an example of how to use validate_association_parameters API.
Checks if the passed in entities could be associated with the specified sources. The validation is performed to ensure that the entities have the relevant property values that are used in the corresponding source patterns.
13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 13655 def validate_association_parameters(namespace_name, upsert_log_analytics_association_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#validate_association_parameters.' if logger raise "Missing the required parameter 'namespace_name' when calling validate_association_parameters." if namespace_name.nil? raise "Missing the required parameter 'upsert_log_analytics_association_details' when calling validate_association_parameters." if upsert_log_analytics_association_details.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[sourceDisplayName status].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of sourceDisplayName, status.' end raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/associations/actions/validateParameters'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(upsert_log_analytics_association_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#validate_association_parameters') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::LogAnalyticsAssociationParameterCollection' ) end # rubocop:enable Metrics/BlockLength end |
#validate_endpoint(namespace_name, validate_endpoint_details, opts = {}) ⇒ Response
Click here to see an example of how to use validate_endpoint API.
Validates the REST endpoint configuration.
13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 13728 def validate_endpoint(namespace_name, validate_endpoint_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#validate_endpoint.' if logger raise "Missing the required parameter 'namespace_name' when calling validate_endpoint." if namespace_name.nil? raise "Missing the required parameter 'validate_endpoint_details' when calling validate_endpoint." if validate_endpoint_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/sources/actions/validateEndpoint'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' post_body = @api_client.object_to_http_body(validate_endpoint_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#validate_endpoint') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::ValidateEndpointResult' ) end # rubocop:enable Metrics/BlockLength end |
#validate_file(namespace_name, object_location, filename, opts = {}) ⇒ Response
Click here to see an example of how to use validate_file API.
Validates a log file to check whether it is eligible to be uploaded or not.
13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 13788 def validate_file(namespace_name, object_location, filename, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#validate_file.' if logger raise "Missing the required parameter 'namespace_name' when calling validate_file." if namespace_name.nil? raise "Missing the required parameter 'object_location' when calling validate_file." if object_location.nil? raise "Missing the required parameter 'filename' when calling validate_file." if filename.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/uploads/actions/validateFile'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:objectLocation] = object_location query_params[:filename] = filename # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#validate_file') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::FileValidationResponse' ) end # rubocop:enable Metrics/BlockLength end |
#validate_label_condition(namespace_name, validate_label_condition_details, opts = {}) ⇒ Response
Click here to see an example of how to use validate_label_condition API.
Validates specified condition for a source label. If both conditionString and conditionBlocks are specified, they would be validated to ensure they represent identical conditions. If one of them is input, the response would include the validated representation of the other structure too. Additionally, if field values are passed, the condition specification would be evaluated against them.
13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 13853 def validate_label_condition(namespace_name, validate_label_condition_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#validate_label_condition.' if logger raise "Missing the required parameter 'namespace_name' when calling validate_label_condition." if namespace_name.nil? raise "Missing the required parameter 'validate_label_condition_details' when calling validate_label_condition." if validate_label_condition_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/sources/actions/validateLabelCondition'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' post_body = @api_client.object_to_http_body(validate_label_condition_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#validate_label_condition') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::ValidateLabelConditionResult' ) end # rubocop:enable Metrics/BlockLength end |
#validate_source(namespace_name, upsert_log_analytics_source_details, opts = {}) ⇒ Response
Click here to see an example of how to use validate_source API.
Checks if the specified input is a valid log source definition.
13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 13925 def validate_source(namespace_name, upsert_log_analytics_source_details, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#validate_source.' if logger raise "Missing the required parameter 'namespace_name' when calling validate_source." if namespace_name.nil? raise "Missing the required parameter 'upsert_log_analytics_source_details' when calling validate_source." if upsert_log_analytics_source_details.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/sources/actions/validate'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:createLikeSourceId] = opts[:create_like_source_id] if opts[:create_like_source_id] query_params[:isIncremental] = opts[:is_incremental] if !opts[:is_incremental].nil? query_params[:isIgnoreWarning] = opts[:is_ignore_warning] if !opts[:is_ignore_warning].nil? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(upsert_log_analytics_source_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#validate_source') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::SourceValidateResults' ) end # rubocop:enable Metrics/BlockLength end |
#validate_source_extended_field_details(namespace_name, log_analytics_source, opts = {}) ⇒ Response
Click here to see an example of how to use validate_source_extended_field_details API.
Checks if the specified input contains valid extended field definitions against the provided example content.
13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 13995 def validate_source_extended_field_details(namespace_name, log_analytics_source, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#validate_source_extended_field_details.' if logger raise "Missing the required parameter 'namespace_name' when calling validate_source_extended_field_details." if namespace_name.nil? raise "Missing the required parameter 'log_analytics_source' when calling validate_source_extended_field_details." if log_analytics_source.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/sources/actions/validateExtendedFields'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json;charset=UTF-8' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:expect] ||= '100-continue' header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(log_analytics_source) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#validate_source_extended_field_details') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::ExtendedFieldsValidationResult' ) end # rubocop:enable Metrics/BlockLength end |
#validate_source_mapping(namespace_name, object_location, filename, log_source_name, opts = {}) ⇒ Response
Click here to see an example of how to use validate_source_mapping API.
Validates the source mapping for a given file and provides match status and the parsed representation of log data.
14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 14059 def validate_source_mapping(namespace_name, object_location, filename, log_source_name, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#validate_source_mapping.' if logger raise "Missing the required parameter 'namespace_name' when calling validate_source_mapping." if namespace_name.nil? raise "Missing the required parameter 'object_location' when calling validate_source_mapping." if object_location.nil? raise "Missing the required parameter 'filename' when calling validate_source_mapping." if filename.nil? raise "Missing the required parameter 'log_source_name' when calling validate_source_mapping." if log_source_name.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) path = '/namespaces/{namespaceName}/uploads/actions/validateSourceMapping'.sub('{namespaceName}', namespace_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:objectLocation] = object_location query_params[:filename] = filename query_params[:logSourceName] = log_source_name # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#validate_source_mapping') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::SourceMappingResponse' ) end # rubocop:enable Metrics/BlockLength end |
#verify(namespace_name, scheduled_task_id, opts = {}) ⇒ Response
Click here to see an example of how to use verify API.
Verify the accelerated saved search task specified by scheduledTaskId. For internal use only. Optionally specify whether to return accelerated search results; the default is false. The ScheduledTask taskType must be ACCELERATION.
14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 |
# File 'lib/oci/log_analytics/log_analytics_client.rb', line 14136 def verify(namespace_name, scheduled_task_id, opts = {}) logger.debug 'Calling operation LogAnalyticsClient#verify.' if logger raise "Missing the required parameter 'namespace_name' when calling verify." if namespace_name.nil? raise "Missing the required parameter 'scheduled_task_id' when calling verify." if scheduled_task_id.nil? raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util.blank_string?(namespace_name) raise "Parameter value for 'scheduled_task_id' must not be blank" if OCI::Internal::Util.blank_string?(scheduled_task_id) path = '/namespaces/{namespaceName}/scheduledTasks/{scheduledTaskId}/actions/verify'.sub('{namespaceName}', namespace_name.to_s).sub('{scheduledTaskId}', scheduled_task_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:shouldIncludeResults] = opts[:should_include_results] if !opts[:should_include_results].nil? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LogAnalyticsClient#verify') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LogAnalytics::Models::VerifyOutput' ) end # rubocop:enable Metrics/BlockLength end |