instana-client 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- instana_client/__init__.py +534 -0
- instana_client/api/__init__.py +58 -0
- instana_client/api/action_catalog_api.py +1380 -0
- instana_client/api/action_history_api.py +1793 -0
- instana_client/api/apdex_report_api.py +338 -0
- instana_client/api/apdex_settings_api.py +1353 -0
- instana_client/api/api_token_api.py +1370 -0
- instana_client/api/application_alert_configuration_api.py +2865 -0
- instana_client/api/application_analyze_api.py +2017 -0
- instana_client/api/application_catalog_api.py +885 -0
- instana_client/api/application_metrics_api.py +1211 -0
- instana_client/api/application_resources_api.py +1487 -0
- instana_client/api/application_settings_api.py +7261 -0
- instana_client/api/application_topology_api.py +354 -0
- instana_client/api/audit_log_api.py +635 -0
- instana_client/api/authentication_api.py +1008 -0
- instana_client/api/business_monitoring_api.py +2177 -0
- instana_client/api/custom_dashboards_api.py +1930 -0
- instana_client/api/event_settings_api.py +14613 -0
- instana_client/api/events_api.py +1654 -0
- instana_client/api/global_application_alert_configuration_api.py +2606 -0
- instana_client/api/groups_api.py +4078 -0
- instana_client/api/health_api.py +527 -0
- instana_client/api/host_agent_api.py +2120 -0
- instana_client/api/infrastructure_alert_configuration_api.py +2524 -0
- instana_client/api/infrastructure_analyze_api.py +1141 -0
- instana_client/api/infrastructure_catalog_api.py +1822 -0
- instana_client/api/infrastructure_metrics_api.py +331 -0
- instana_client/api/infrastructure_resources_api.py +1880 -0
- instana_client/api/infrastructure_topology_api.py +595 -0
- instana_client/api/log_alert_configuration_api.py +2524 -0
- instana_client/api/maintenance_configuration_api.py +2683 -0
- instana_client/api/mobile_app_analyze_api.py +613 -0
- instana_client/api/mobile_app_catalog_api.py +825 -0
- instana_client/api/mobile_app_configuration_api.py +2847 -0
- instana_client/api/mobile_app_metrics_api.py +892 -0
- instana_client/api/policies_api.py +1755 -0
- instana_client/api/releases_api.py +1408 -0
- instana_client/api/service_levels_alert_configuration_api.py +2577 -0
- instana_client/api/service_levels_objective_slo_configurations_api.py +1825 -0
- instana_client/api/service_levels_objective_slo_report_api.py +335 -0
- instana_client/api/session_settings_api.py +801 -0
- instana_client/api/sli_report_api.py +352 -0
- instana_client/api/sli_settings_api.py +2677 -0
- instana_client/api/synthetic_alert_configuration_api.py +2606 -0
- instana_client/api/synthetic_calls_api.py +789 -0
- instana_client/api/synthetic_catalog_api.py +543 -0
- instana_client/api/synthetic_metrics_api.py +322 -0
- instana_client/api/synthetic_settings_api.py +5144 -0
- instana_client/api/synthetic_test_playback_results_api.py +2142 -0
- instana_client/api/usage_api.py +1404 -0
- instana_client/api/user_api.py +2404 -0
- instana_client/api/website_analyze_api.py +619 -0
- instana_client/api/website_catalog_api.py +832 -0
- instana_client/api/website_configuration_api.py +3745 -0
- instana_client/api/website_metrics_api.py +889 -0
- instana_client/api_client.py +798 -0
- instana_client/api_response.py +21 -0
- instana_client/configuration.py +616 -0
- instana_client/exceptions.py +217 -0
- instana_client/models/__init__.py +464 -0
- instana_client/models/abstract_integration.py +155 -0
- instana_client/models/abstract_rule.py +124 -0
- instana_client/models/access_log_entry.py +105 -0
- instana_client/models/access_log_response.py +98 -0
- instana_client/models/access_rule.py +107 -0
- instana_client/models/action.py +135 -0
- instana_client/models/action_configuration.py +104 -0
- instana_client/models/action_instance.py +185 -0
- instana_client/models/action_instance_metadata_entry.py +90 -0
- instana_client/models/action_instance_parameter.py +94 -0
- instana_client/models/action_instance_request.py +108 -0
- instana_client/models/action_instance_request_parameters.py +92 -0
- instana_client/models/action_match.py +98 -0
- instana_client/models/action_search_space.py +94 -0
- instana_client/models/adaptive_baseline.py +92 -0
- instana_client/models/adaptive_threshold_rule.py +91 -0
- instana_client/models/adjusted_timeframe.py +91 -0
- instana_client/models/agent_configuration_update.py +93 -0
- instana_client/models/alerting_configuration.py +113 -0
- instana_client/models/alerting_configuration_with_last_updated.py +115 -0
- instana_client/models/alerting_time_window.py +109 -0
- instana_client/models/apdex_configuration.py +99 -0
- instana_client/models/apdex_configuration_input.py +95 -0
- instana_client/models/apdex_entity.py +119 -0
- instana_client/models/apdex_report.py +94 -0
- instana_client/models/api_create_group.py +104 -0
- instana_client/models/api_group.py +107 -0
- instana_client/models/api_member.py +90 -0
- instana_client/models/api_permission_set.py +178 -0
- instana_client/models/api_restricted_application_filter.py +108 -0
- instana_client/models/api_token.py +250 -0
- instana_client/models/app_data_metric_configuration.py +105 -0
- instana_client/models/application.py +104 -0
- instana_client/models/application_alert_config.py +203 -0
- instana_client/models/application_alert_config_with_metadata.py +213 -0
- instana_client/models/application_alert_rule.py +135 -0
- instana_client/models/application_apdex_entity.py +111 -0
- instana_client/models/application_config.py +131 -0
- instana_client/models/application_event_result.py +108 -0
- instana_client/models/application_item.py +94 -0
- instana_client/models/application_metric_result.py +109 -0
- instana_client/models/application_node.py +106 -0
- instana_client/models/application_result.py +102 -0
- instana_client/models/application_scope.py +89 -0
- instana_client/models/application_scope_with_metadata.py +90 -0
- instana_client/models/application_sli_entity.py +103 -0
- instana_client/models/application_slo_entity.py +112 -0
- instana_client/models/application_time_threshold.py +115 -0
- instana_client/models/audit_log_entry.py +102 -0
- instana_client/models/audit_log_ui_response.py +98 -0
- instana_client/models/author.py +100 -0
- instana_client/models/availability_blueprint_indicator.py +106 -0
- instana_client/models/availability_sli_entity.py +138 -0
- instana_client/models/available_metrics.py +96 -0
- instana_client/models/available_plugins.py +88 -0
- instana_client/models/backend_trace_reference.py +88 -0
- instana_client/models/binary_operator_dto.py +107 -0
- instana_client/models/browser_script_configuration.py +127 -0
- instana_client/models/built_in_event_specification.py +123 -0
- instana_client/models/built_in_event_specification_with_last_updated.py +125 -0
- instana_client/models/business_activity.py +132 -0
- instana_client/models/business_perspective_config.py +99 -0
- instana_client/models/call_groups_item.py +95 -0
- instana_client/models/call_groups_result.py +111 -0
- instana_client/models/call_relation.py +100 -0
- instana_client/models/change_summary.py +101 -0
- instana_client/models/cloudfoundry_physical_context.py +104 -0
- instana_client/models/condition.py +88 -0
- instana_client/models/config_version.py +101 -0
- instana_client/models/crash_mobile_app_alert_rule.py +90 -0
- instana_client/models/cursor_paginated_business_activity_item.py +96 -0
- instana_client/models/cursor_pagination.py +93 -0
- instana_client/models/cursor_pagination_infra_explore_cursor.py +90 -0
- instana_client/models/custom_blueprint_indicator.py +104 -0
- instana_client/models/custom_dashboard.py +111 -0
- instana_client/models/custom_dashboard_preview.py +103 -0
- instana_client/models/custom_email_subject_prefix.py +94 -0
- instana_client/models/custom_event_mobile_app_alert_rule.py +92 -0
- instana_client/models/custom_event_specification.py +133 -0
- instana_client/models/custom_event_specification_with_last_updated.py +143 -0
- instana_client/models/custom_event_website_alert_rule.py +92 -0
- instana_client/models/custom_payload_configuration.py +97 -0
- instana_client/models/custom_payload_field.py +112 -0
- instana_client/models/custom_payload_with_last_updated.py +99 -0
- instana_client/models/dashboard_api_token.py +90 -0
- instana_client/models/database_integration.py +90 -0
- instana_client/models/deprecated_tag_filter.py +111 -0
- instana_client/models/dns_action_configuration.py +134 -0
- instana_client/models/dns_action_filter_query_time.py +99 -0
- instana_client/models/dns_action_filter_target_value.py +106 -0
- instana_client/models/duration.py +98 -0
- instana_client/models/dynamic_field.py +95 -0
- instana_client/models/dynamic_field_value.py +90 -0
- instana_client/models/dynamic_parameter.py +94 -0
- instana_client/models/edit_user.py +88 -0
- instana_client/models/email_integration.py +98 -0
- instana_client/models/empty_configuration.py +92 -0
- instana_client/models/endpoint.py +131 -0
- instana_client/models/endpoint_config.py +112 -0
- instana_client/models/endpoint_event_result.py +112 -0
- instana_client/models/endpoint_item.py +94 -0
- instana_client/models/endpoint_metric_result.py +109 -0
- instana_client/models/endpoint_node.py +91 -0
- instana_client/models/endpoint_result.py +102 -0
- instana_client/models/endpoint_simple.py +102 -0
- instana_client/models/entity_count_rule.py +100 -0
- instana_client/models/entity_count_verification_rule.py +114 -0
- instana_client/models/entity_health_info.py +99 -0
- instana_client/models/entity_id.py +92 -0
- instana_client/models/entity_verification_rule.py +105 -0
- instana_client/models/error_budget_alert_rule.py +97 -0
- instana_client/models/errors_application_alert_rule.py +90 -0
- instana_client/models/event.py +127 -0
- instana_client/models/event_filtering_configuration.py +106 -0
- instana_client/models/event_result.py +145 -0
- instana_client/models/event_specification_info.py +114 -0
- instana_client/models/extended_service.py +123 -0
- instana_client/models/failure_synthetic_alert_rule.py +90 -0
- instana_client/models/fixed_http_path_segment_matching_rule.py +90 -0
- instana_client/models/fixed_time_window.py +93 -0
- instana_client/models/full_trace.py +97 -0
- instana_client/models/generic_infra_alert_rule.py +93 -0
- instana_client/models/geo_location_configuration.py +106 -0
- instana_client/models/geo_mapping_rule.py +120 -0
- instana_client/models/geo_subdivision.py +91 -0
- instana_client/models/get_activities.py +115 -0
- instana_client/models/get_application_metrics.py +112 -0
- instana_client/models/get_applications.py +150 -0
- instana_client/models/get_available_metrics_query.py +103 -0
- instana_client/models/get_available_plugins_query.py +98 -0
- instana_client/models/get_call_groups.py +141 -0
- instana_client/models/get_combined_metrics.py +103 -0
- instana_client/models/get_dynamic_parameter_values.py +100 -0
- instana_client/models/get_endpoints.py +150 -0
- instana_client/models/get_infrastructure_groups_query.py +127 -0
- instana_client/models/get_infrastructure_query.py +127 -0
- instana_client/models/get_metrics_result.py +128 -0
- instana_client/models/get_mobile_app_beacon_groups.py +146 -0
- instana_client/models/get_mobile_app_beacons.py +118 -0
- instana_client/models/get_mobile_app_metrics.py +122 -0
- instana_client/models/get_mobile_app_metrics_v2.py +118 -0
- instana_client/models/get_payload_keys_result.py +88 -0
- instana_client/models/get_services.py +147 -0
- instana_client/models/get_snapshots_query.py +95 -0
- instana_client/models/get_test_result.py +139 -0
- instana_client/models/get_test_result_base.py +120 -0
- instana_client/models/get_test_result_list.py +125 -0
- instana_client/models/get_test_summary_result.py +130 -0
- instana_client/models/get_trace_download_result_item.py +114 -0
- instana_client/models/get_trace_groups.py +141 -0
- instana_client/models/get_traces.py +125 -0
- instana_client/models/get_website_beacon_groups.py +146 -0
- instana_client/models/get_website_beacons.py +118 -0
- instana_client/models/get_website_metrics.py +122 -0
- instana_client/models/get_website_metrics_v2.py +118 -0
- instana_client/models/global_application_alert_config_with_metadata.py +205 -0
- instana_client/models/global_applications_alert_config.py +191 -0
- instana_client/models/google_chat_integration.py +92 -0
- instana_client/models/graph_edge.py +102 -0
- instana_client/models/graph_node.py +100 -0
- instana_client/models/group.py +100 -0
- instana_client/models/group_by_tag.py +90 -0
- instana_client/models/group_mapping.py +95 -0
- instana_client/models/health_state.py +100 -0
- instana_client/models/historic_baseline.py +105 -0
- instana_client/models/host_availability_rule.py +100 -0
- instana_client/models/http_action_configuration.py +127 -0
- instana_client/models/http_endpoint_config.py +103 -0
- instana_client/models/http_endpoint_rule.py +101 -0
- instana_client/models/http_path_segment_matching_rule.py +124 -0
- instana_client/models/http_script_configuration.py +113 -0
- instana_client/models/hyper_param.py +111 -0
- instana_client/models/identity_provider_patch.py +88 -0
- instana_client/models/infra_alert_config.py +166 -0
- instana_client/models/infra_alert_config_with_metadata.py +176 -0
- instana_client/models/infra_alert_rule.py +133 -0
- instana_client/models/infra_event_result.py +109 -0
- instana_client/models/infra_metric_configuration.py +115 -0
- instana_client/models/infra_time_threshold.py +109 -0
- instana_client/models/infrastructure_entities_result.py +109 -0
- instana_client/models/infrastructure_group.py +92 -0
- instana_client/models/infrastructure_groups_result.py +109 -0
- instana_client/models/infrastructure_item.py +104 -0
- instana_client/models/infrastructure_metric_result.py +96 -0
- instana_client/models/instana_version_info.py +92 -0
- instana_client/models/integration_overview.py +94 -0
- instana_client/models/invitation.py +94 -0
- instana_client/models/invitation_response.py +96 -0
- instana_client/models/invitation_result.py +100 -0
- instana_client/models/ip_masking_configuration.py +95 -0
- instana_client/models/js_stack_trace_line.py +99 -0
- instana_client/models/kubernetes_physical_context.py +107 -0
- instana_client/models/latency_blueprint_indicator.py +106 -0
- instana_client/models/location_status.py +96 -0
- instana_client/models/log_alert_config.py +154 -0
- instana_client/models/log_alert_config_with_metadata.py +164 -0
- instana_client/models/log_alert_rule.py +120 -0
- instana_client/models/log_count_alert_rule.py +90 -0
- instana_client/models/log_entry_actor.py +101 -0
- instana_client/models/log_event_result.py +107 -0
- instana_client/models/log_time_threshold.py +109 -0
- instana_client/models/logs_application_alert_rule.py +122 -0
- instana_client/models/maintenance_config.py +103 -0
- instana_client/models/maintenance_config_scheduling.py +118 -0
- instana_client/models/maintenance_config_v2.py +111 -0
- instana_client/models/maintenance_config_v2_with_state_and_occurrence.py +131 -0
- instana_client/models/maintenance_config_with_last_updated.py +105 -0
- instana_client/models/maintenance_window.py +93 -0
- instana_client/models/manual_alerting_channel_configuration.py +99 -0
- instana_client/models/manual_close_info.py +99 -0
- instana_client/models/manual_service_config.py +103 -0
- instana_client/models/match_all_http_path_segment_matching_rule.py +88 -0
- instana_client/models/match_expression_dto.py +111 -0
- instana_client/models/meta_data.py +96 -0
- instana_client/models/metric_api_result.py +94 -0
- instana_client/models/metric_config.py +99 -0
- instana_client/models/metric_configuration.py +103 -0
- instana_client/models/metric_description.py +116 -0
- instana_client/models/metric_instance.py +105 -0
- instana_client/models/metric_item.py +102 -0
- instana_client/models/metric_metadata.py +132 -0
- instana_client/models/metric_pattern.py +101 -0
- instana_client/models/metrics_result.py +96 -0
- instana_client/models/metrics_result_item.py +100 -0
- instana_client/models/metrics_test_result_item.py +102 -0
- instana_client/models/mobile_app.py +91 -0
- instana_client/models/mobile_app_alert_config.py +162 -0
- instana_client/models/mobile_app_alert_rule.py +129 -0
- instana_client/models/mobile_app_beacon_groups_item.py +95 -0
- instana_client/models/mobile_app_beacon_groups_result.py +111 -0
- instana_client/models/mobile_app_beacon_result.py +111 -0
- instana_client/models/mobile_app_beacon_tag_group.py +100 -0
- instana_client/models/mobile_app_beacons_item.py +94 -0
- instana_client/models/mobile_app_event_result.py +108 -0
- instana_client/models/mobile_app_metric_result.py +88 -0
- instana_client/models/mobile_app_monitoring_beacon.py +259 -0
- instana_client/models/mobile_app_monitoring_metric_description.py +123 -0
- instana_client/models/mobile_app_monitoring_metrics_configuration.py +105 -0
- instana_client/models/mobile_app_time_threshold.py +115 -0
- instana_client/models/model_field.py +96 -0
- instana_client/models/monitoring_state.py +92 -0
- instana_client/models/multiple_scripts_configuration.py +90 -0
- instana_client/models/new_application_config.py +129 -0
- instana_client/models/new_business_perspective_config.py +97 -0
- instana_client/models/new_manual_service_config.py +100 -0
- instana_client/models/occurrence.py +91 -0
- instana_client/models/office365_integration.py +92 -0
- instana_client/models/one_time_maintenance_window.py +94 -0
- instana_client/models/opsgenie_integration.py +105 -0
- instana_client/models/order.py +99 -0
- instana_client/models/pagerduty_integration.py +92 -0
- instana_client/models/paginated_result.py +95 -0
- instana_client/models/pagination.py +91 -0
- instana_client/models/parameter.py +102 -0
- instana_client/models/parameter_value.py +90 -0
- instana_client/models/path_parameter_http_path_segment_matching_rule.py +90 -0
- instana_client/models/physical_context.py +119 -0
- instana_client/models/plugin_result.py +90 -0
- instana_client/models/policy.py +113 -0
- instana_client/models/policy_runnable.py +103 -0
- instana_client/models/post_snapshots_result.py +98 -0
- instana_client/models/problem.py +95 -0
- instana_client/models/prometheus_webhook_integration.py +94 -0
- instana_client/models/recurrent_maintenance_window.py +98 -0
- instana_client/models/release.py +111 -0
- instana_client/models/release_scope.py +94 -0
- instana_client/models/release_with_metadata.py +125 -0
- instana_client/models/rolling_time_window.py +90 -0
- instana_client/models/rule_input.py +98 -0
- instana_client/models/rule_with_threshold_application_alert_rule.py +116 -0
- instana_client/models/rule_with_threshold_infra_alert_rule.py +116 -0
- instana_client/models/rule_with_threshold_log_alert_rule.py +116 -0
- instana_client/models/rule_with_threshold_mobile_app_alert_rule.py +116 -0
- instana_client/models/rule_with_threshold_website_alert_rule.py +116 -0
- instana_client/models/run_configuration.py +96 -0
- instana_client/models/salesforce_integration.py +98 -0
- instana_client/models/scope_binding.py +91 -0
- instana_client/models/search_field_result.py +116 -0
- instana_client/models/service.py +116 -0
- instana_client/models/service_config.py +107 -0
- instana_client/models/service_event_result.py +110 -0
- instana_client/models/service_item.py +94 -0
- instana_client/models/service_level_indicator.py +172 -0
- instana_client/models/service_level_objective_alert_rule.py +100 -0
- instana_client/models/service_level_objective_configuration.py +118 -0
- instana_client/models/service_levels_alert_config.py +133 -0
- instana_client/models/service_levels_alert_rule.py +111 -0
- instana_client/models/service_levels_burn_rate_time_windows.py +97 -0
- instana_client/models/service_levels_time_threshold.py +90 -0
- instana_client/models/service_levelse_alert_config_with_metadata.py +143 -0
- instana_client/models/service_map.py +106 -0
- instana_client/models/service_map_connection.py +97 -0
- instana_client/models/service_matching_rule.py +90 -0
- instana_client/models/service_metric_result.py +109 -0
- instana_client/models/service_node.py +106 -0
- instana_client/models/service_now_enhanced_integration.py +116 -0
- instana_client/models/service_now_integration.py +98 -0
- instana_client/models/service_result.py +102 -0
- instana_client/models/service_scope.py +95 -0
- instana_client/models/service_scope_with_metadata.py +96 -0
- instana_client/models/service_scoped_to.py +97 -0
- instana_client/models/service_scoped_to_with_metadata.py +97 -0
- instana_client/models/service_simple.py +90 -0
- instana_client/models/session_settings.py +91 -0
- instana_client/models/slack_integration.py +98 -0
- instana_client/models/sli_configuration.py +105 -0
- instana_client/models/sli_configuration_with_last_updated.py +107 -0
- instana_client/models/sli_entity.py +117 -0
- instana_client/models/sli_report.py +100 -0
- instana_client/models/slo_entity.py +119 -0
- instana_client/models/slo_report.py +112 -0
- instana_client/models/slowness_application_alert_rule.py +90 -0
- instana_client/models/slowness_website_alert_rule.py +90 -0
- instana_client/models/snapshot_item.py +102 -0
- instana_client/models/snapshot_preview.py +97 -0
- instana_client/models/snapshot_result.py +96 -0
- instana_client/models/software_user.py +94 -0
- instana_client/models/software_version.py +124 -0
- instana_client/models/source_map_file_blob.py +92 -0
- instana_client/models/source_map_file_meta.py +115 -0
- instana_client/models/source_map_upload_config.py +106 -0
- instana_client/models/span.py +156 -0
- instana_client/models/span_excerpt.py +132 -0
- instana_client/models/span_relation.py +114 -0
- instana_client/models/specific_js_errors_website_alert_rule.py +101 -0
- instana_client/models/splunk_integration.py +94 -0
- instana_client/models/ssl_certificate_configuration.py +99 -0
- instana_client/models/stack_trace_item.py +92 -0
- instana_client/models/stack_trace_line.py +99 -0
- instana_client/models/static_baseline_threshold_rule.py +102 -0
- instana_client/models/static_string_field.py +91 -0
- instana_client/models/static_threshold.py +94 -0
- instana_client/models/static_threshold_rule.py +91 -0
- instana_client/models/status_code_application_alert_rule.py +95 -0
- instana_client/models/status_code_mobile_app_alert_rule.py +101 -0
- instana_client/models/status_code_website_alert_rule.py +101 -0
- instana_client/models/synthetic_alert_config.py +127 -0
- instana_client/models/synthetic_alert_config_with_metadata.py +137 -0
- instana_client/models/synthetic_alert_rule.py +120 -0
- instana_client/models/synthetic_call_config.py +99 -0
- instana_client/models/synthetic_call_rule.py +99 -0
- instana_client/models/synthetic_call_with_defaults_config.py +108 -0
- instana_client/models/synthetic_credential.py +111 -0
- instana_client/models/synthetic_datacenter.py +117 -0
- instana_client/models/synthetic_datacenter_configuration.py +88 -0
- instana_client/models/synthetic_geo_point.py +94 -0
- instana_client/models/synthetic_location.py +129 -0
- instana_client/models/synthetic_location_configuration.py +102 -0
- instana_client/models/synthetic_metric_configuration.py +99 -0
- instana_client/models/synthetic_metric_tag_group.py +100 -0
- instana_client/models/synthetic_playback_capabilities.py +98 -0
- instana_client/models/synthetic_slo_entity.py +95 -0
- instana_client/models/synthetic_test.py +149 -0
- instana_client/models/synthetic_time_threshold.py +110 -0
- instana_client/models/synthetic_type_configuration.py +141 -0
- instana_client/models/synthetics_event_result.py +110 -0
- instana_client/models/system_rule.py +91 -0
- instana_client/models/system_rule_label.py +90 -0
- instana_client/models/tag.py +123 -0
- instana_client/models/tag_catalog.py +106 -0
- instana_client/models/tag_filter.py +113 -0
- instana_client/models/tag_filter_expression.py +106 -0
- instana_client/models/tag_filter_expression_element.py +111 -0
- instana_client/models/tag_matcher_dto.py +110 -0
- instana_client/models/tag_tree_level.py +109 -0
- instana_client/models/tag_tree_node.py +113 -0
- instana_client/models/tag_tree_tag.py +103 -0
- instana_client/models/test_common_properties.py +136 -0
- instana_client/models/test_result.py +105 -0
- instana_client/models/test_result_common_properties.py +108 -0
- instana_client/models/test_result_detail_data.py +112 -0
- instana_client/models/test_result_item.py +106 -0
- instana_client/models/test_result_list_item.py +94 -0
- instana_client/models/test_result_list_result.py +103 -0
- instana_client/models/test_result_metadata.py +94 -0
- instana_client/models/test_result_subtransaction.py +90 -0
- instana_client/models/threshold.py +122 -0
- instana_client/models/threshold_config_rule.py +114 -0
- instana_client/models/threshold_rule.py +125 -0
- instana_client/models/throughput_application_alert_rule.py +90 -0
- instana_client/models/throughput_mobile_app_alert_rule.py +90 -0
- instana_client/models/throughput_website_alert_rule.py +90 -0
- instana_client/models/time_frame.py +91 -0
- instana_client/models/time_window.py +120 -0
- instana_client/models/topology.py +106 -0
- instana_client/models/trace.py +109 -0
- instana_client/models/trace_activity_tree_node_details.py +139 -0
- instana_client/models/trace_download_result.py +111 -0
- instana_client/models/trace_groups_item.py +95 -0
- instana_client/models/trace_groups_result.py +111 -0
- instana_client/models/trace_impact_application_time_threshold.py +92 -0
- instana_client/models/trace_item.py +94 -0
- instana_client/models/trace_result.py +111 -0
- instana_client/models/traffic_blueprint_indicator.py +104 -0
- instana_client/models/trigger.py +99 -0
- instana_client/models/type_configuration.py +107 -0
- instana_client/models/unsupported_http_path_segment_matching_rule.py +90 -0
- instana_client/models/updated_business_perspective_config.py +97 -0
- instana_client/models/usage_result.py +98 -0
- instana_client/models/usage_result_items.py +90 -0
- instana_client/models/user_basic_result.py +92 -0
- instana_client/models/user_impact_mobile_app_time_threshold.py +103 -0
- instana_client/models/user_impact_website_time_threshold.py +103 -0
- instana_client/models/user_result.py +98 -0
- instana_client/models/users_result.py +106 -0
- instana_client/models/validated_alerting_channel_input_info.py +123 -0
- instana_client/models/validated_alerting_configuration.py +121 -0
- instana_client/models/validated_maintenance_config_v2_with_state_and_occurrence.py +135 -0
- instana_client/models/validated_maintenance_config_with_status.py +116 -0
- instana_client/models/victor_ops_integration.py +94 -0
- instana_client/models/violations_in_period_application_time_threshold.py +92 -0
- instana_client/models/violations_in_period_mobile_app_time_threshold.py +92 -0
- instana_client/models/violations_in_period_website_time_threshold.py +92 -0
- instana_client/models/violations_in_sequence_application_time_threshold.py +89 -0
- instana_client/models/violations_in_sequence_infra_time_threshold.py +89 -0
- instana_client/models/violations_in_sequence_log_time_threshold.py +89 -0
- instana_client/models/violations_in_sequence_mobile_app_time_threshold.py +89 -0
- instana_client/models/violations_in_sequence_synthetic_time_threshold.py +89 -0
- instana_client/models/violations_in_sequence_website_time_threshold.py +89 -0
- instana_client/models/watson_ai_ops_webhook_integration.py +94 -0
- instana_client/models/webex_teams_webhook_integration.py +92 -0
- instana_client/models/webhook_integration.py +94 -0
- instana_client/models/webpage_action_configuration.py +109 -0
- instana_client/models/webpage_script_configuration.py +109 -0
- instana_client/models/website.py +92 -0
- instana_client/models/website_alert_config.py +166 -0
- instana_client/models/website_alert_config_with_metadata.py +176 -0
- instana_client/models/website_alert_rule.py +132 -0
- instana_client/models/website_apdex_entity.py +107 -0
- instana_client/models/website_beacon_groups_item.py +95 -0
- instana_client/models/website_beacon_groups_result.py +111 -0
- instana_client/models/website_beacon_result.py +111 -0
- instana_client/models/website_beacon_tag_group.py +100 -0
- instana_client/models/website_beacons_item.py +94 -0
- instana_client/models/website_event_based_sli_entity.py +110 -0
- instana_client/models/website_event_result.py +108 -0
- instana_client/models/website_metric_result.py +88 -0
- instana_client/models/website_monitoring_beacon.py +301 -0
- instana_client/models/website_monitoring_metric_description.py +123 -0
- instana_client/models/website_monitoring_metrics_configuration.py +99 -0
- instana_client/models/website_slo_entity.py +104 -0
- instana_client/models/website_time_based_sli_entity.py +105 -0
- instana_client/models/website_time_threshold.py +115 -0
- instana_client/models/widget.py +103 -0
- instana_client/models/with_metadata.py +172 -0
- instana_client/models/with_resolved_name.py +102 -0
- instana_client/models/z_chat_ops_integration.py +97 -0
- instana_client/py.typed +0 -0
- instana_client/rest.py +258 -0
- instana_client-1.0.0.dist-info/METADATA +25 -0
- instana_client-1.0.0.dist-info/RECORD +515 -0
- instana_client-1.0.0.dist-info/WHEEL +5 -0
- instana_client-1.0.0.dist-info/licenses/LICENSE +202 -0
- instana_client-1.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,889 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Instana REST API documentation
|
|
5
|
+
|
|
6
|
+
Searching for answers and best pratices? Check our [IBM Instana Community](https://community.ibm.com/community/user/aiops/communities/community-home?CommunityKey=58f324a3-3104-41be-9510-5b7c413cc48f). ## Overview The Instana REST API provides programmatic access to the Instana platform. It can be used to retrieve data available through the Instana UI Dashboard -- metrics, events, traces, etc -- and also to automate configuration tasks such as user management. ### Navigating the API documentation The API endpoints are grouped by product area and functionality. This generally maps to how our UI Dashboard is organized, hopefully making it easier to locate which endpoints you'd use to fetch the data you see visualized in our UI. The [UI sections](https://www.ibm.com/docs/en/instana-observability/current?topic=working-user-interface#navigation-menu) include: - Websites & Mobile Apps - Applications - Infrastructure - Synthetic Monitoring - Events - Automation - Service Levels - Settings - etc ### Rate Limiting A rate limit is applied to API usage. Up to 5,000 calls per hour can be made. How many remaining calls can be made and when this call limit resets, can inspected via three headers that are part of the responses of the API server. - **X-RateLimit-Limit:** Shows the maximum number of calls that may be executed per hour. - **X-RateLimit-Remaining:** How many calls may still be executed within the current hour. - **X-RateLimit-Reset:** Time when the remaining calls will be reset to the limit. For compatibility reasons with other rate limited APIs, this date is not the date in milliseconds, but instead in seconds since 1970-01-01T00:00:00+00:00. ### Further Reading We provide additional documentation for our REST API in our [product documentation](https://www.ibm.com/docs/en/instana-observability/current?topic=apis-web-rest-api). Here you'll also find some common queries for retrieving data and configuring Instana. ## Getting Started with the REST API ### API base URL The base URL for an specific instance of Instana can be determined using the tenant and unit information. - `base`: This is the base URL of a tenant unit, e.g. `https://test-example.instana.io`. This is the same URL that is used to access the Instana user interface. - `apiToken`: Requests against the Instana API require valid API tokens. An initial API token can be generated via the Instana user interface. Any additional API tokens can be generated via the API itself. ### Curl Example Here is an Example to use the REST API with Curl. First lets get all the available metrics with possible aggregations with a GET call. ```bash curl --request GET \\ --url https://test-instana.instana.io/api/application-monitoring/catalog/metrics \\ --header 'authorization: apiToken xxxxxxxxxxxxxxxx' ``` Next we can get every call grouped by the endpoint name that has an error count greater then zero. As a metric we could get the mean error rate for example. ```bash curl --request POST \\ --url https://test-instana.instana.io/api/application-monitoring/analyze/call-groups \\ --header 'authorization: apiToken xxxxxxxxxxxxxxxx' \\ --header 'content-type: application/json' \\ --data '{ \"group\":{ \"groupbyTag\":\"endpoint.name\" }, \"tagFilters\":[ { \"name\":\"call.error.count\", \"value\":\"0\", \"operator\":\"GREATER_THAN\" } ], \"metrics\":[ { \"metric\":\"errors\", \"aggregation\":\"MEAN\" } ] }' ``` ### Generating REST API clients The API is specified using the [OpenAPI v3](https://github.com/OAI/OpenAPI-Specification) (previously known as Swagger) format. You can download the current specification at our [GitHub API documentation](https://instana.github.io/openapi/openapi.yaml). OpenAPI tries to solve the issue of ever-evolving APIs and clients lagging behind. Please make sure that you always use the latest version of the generator, as a number of improvements are regularly made. To generate a client library for your language, you can use the [OpenAPI client generators](https://github.com/OpenAPITools/openapi-generator). #### Go For example, to generate a client library for Go to interact with our backend, you can use the following script; mind replacing the values of the `UNIT_NAME` and `TENANT_NAME` environment variables using those for your tenant unit: ```bash #!/bin/bash ### This script assumes you have the `java` and `wget` commands on the path export UNIT_NAME='myunit' # for example: prod export TENANT_NAME='mytenant' # for example: awesomecompany //Download the generator to your current working directory: wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/4.3.1/openapi-generator-cli-4.3.1.jar -O openapi-generator-cli.jar --server-variables \"tenant=${TENANT_NAME},unit=${UNIT_NAME}\" //generate a client library that you can vendor into your repository java -jar openapi-generator-cli.jar generate -i https://instana.github.io/openapi/openapi.yaml -g go \\ -o pkg/instana/openapi \\ --skip-validate-spec //(optional) format the Go code according to the Go code standard gofmt -s -w pkg/instana/openapi ``` The generated clients contain comprehensive READMEs, and you can start right away using the client from the example above: ```go import instana \"./pkg/instana/openapi\" // readTags will read all available application monitoring tags along with their type and category func readTags() { configuration := instana.NewConfiguration() configuration.Host = \"tenant-unit.instana.io\" configuration.BasePath = \"https://tenant-unit.instana.io\" client := instana.NewAPIClient(configuration) auth := context.WithValue(context.Background(), instana.ContextAPIKey, instana.APIKey{ Key: apiKey, Prefix: \"apiToken\", }) tags, _, err := client.ApplicationCatalogApi.GetApplicationTagCatalog(auth) if err != nil { fmt.Fatalf(\"Error calling the API, aborting.\") } for _, tag := range tags { fmt.Printf(\"%s (%s): %s\\n\", tag.Category, tag.Type, tag.Name) } } ``` #### Java Follow the instructions provided in the official documentation from [OpenAPI Tools](https://github.com/OpenAPITools) to download the [openapi-generator-cli.jar](https://github.com/OpenAPITools/openapi-generator?tab=readme-ov-file#13---download-jar). Depending on your environment, use one of the following java http client implementations which will create a valid client for our OpenAPI specification: ``` //Nativ Java HTTP Client java -jar openapi-generator-cli.jar generate -i https://instana.github.io/openapi/openapi.yaml -g java -o pkg/instana/openapi --skip-validate-spec -p dateLibrary=java8 --library native //Spring WebClient java -jar openapi-generator-cli.jar generate -i https://instana.github.io/openapi/openapi.yaml -g java -o pkg/instana/openapi --skip-validate-spec -p dateLibrary=java8,hideGenerationTimestamp=true --library webclient //Spring RestTemplate java -jar openapi-generator-cli.jar generate -i https://instana.github.io/openapi/openapi.yaml -g java -o pkg/instana/openapi --skip-validate-spec -p dateLibrary=java8,hideGenerationTimestamp=true --library resttemplate ```
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.291.1002
|
|
9
|
+
Contact: support@instana.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
import warnings
|
|
16
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
|
+
from typing_extensions import Annotated
|
|
19
|
+
|
|
20
|
+
from pydantic import Field, StrictInt, StrictStr
|
|
21
|
+
from typing import List, Optional
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from instana_client.models.get_website_metrics import GetWebsiteMetrics
|
|
24
|
+
from instana_client.models.get_website_metrics_v2 import GetWebsiteMetricsV2
|
|
25
|
+
from instana_client.models.metric_api_result import MetricAPIResult
|
|
26
|
+
from instana_client.models.website_metric_result import WebsiteMetricResult
|
|
27
|
+
from instana_client.models.website_monitoring_beacon import WebsiteMonitoringBeacon
|
|
28
|
+
|
|
29
|
+
from instana_client.api_client import ApiClient, RequestSerialized
|
|
30
|
+
from instana_client.api_response import ApiResponse
|
|
31
|
+
from instana_client.rest import RESTResponseType
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class WebsiteMetricsApi:
|
|
35
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
36
|
+
Ref: https://openapi-generator.tech
|
|
37
|
+
|
|
38
|
+
Do not edit the class manually.
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
def __init__(self, api_client=None) -> None:
|
|
42
|
+
if api_client is None:
|
|
43
|
+
api_client = ApiClient.get_default()
|
|
44
|
+
self.api_client = api_client
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
@validate_call
|
|
48
|
+
def get_beacon_metrics(
|
|
49
|
+
self,
|
|
50
|
+
get_website_metrics: Optional[GetWebsiteMetrics] = None,
|
|
51
|
+
_request_timeout: Union[
|
|
52
|
+
None,
|
|
53
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
54
|
+
Tuple[
|
|
55
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
56
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
57
|
+
]
|
|
58
|
+
] = None,
|
|
59
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
60
|
+
_content_type: Optional[StrictStr] = None,
|
|
61
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
62
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
63
|
+
) -> WebsiteMetricResult:
|
|
64
|
+
"""(Deprecated) Get beacon metrics
|
|
65
|
+
|
|
66
|
+
API request to get website monitoring beacon metrics.
|
|
67
|
+
|
|
68
|
+
:param get_website_metrics:
|
|
69
|
+
:type get_website_metrics: GetWebsiteMetrics
|
|
70
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
71
|
+
number provided, it will be total request
|
|
72
|
+
timeout. It can also be a pair (tuple) of
|
|
73
|
+
(connection, read) timeouts.
|
|
74
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
75
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
76
|
+
request; this effectively ignores the
|
|
77
|
+
authentication in the spec for a single request.
|
|
78
|
+
:type _request_auth: dict, optional
|
|
79
|
+
:param _content_type: force content-type for the request.
|
|
80
|
+
:type _content_type: str, Optional
|
|
81
|
+
:param _headers: set to override the headers for a single
|
|
82
|
+
request; this effectively ignores the headers
|
|
83
|
+
in the spec for a single request.
|
|
84
|
+
:type _headers: dict, optional
|
|
85
|
+
:param _host_index: set to override the host_index for a single
|
|
86
|
+
request; this effectively ignores the host_index
|
|
87
|
+
in the spec for a single request.
|
|
88
|
+
:type _host_index: int, optional
|
|
89
|
+
:return: Returns the result object.
|
|
90
|
+
""" # noqa: E501
|
|
91
|
+
warnings.warn("POST /api/website-monitoring/metrics is deprecated.", DeprecationWarning)
|
|
92
|
+
|
|
93
|
+
_param = self._get_beacon_metrics_serialize(
|
|
94
|
+
get_website_metrics=get_website_metrics,
|
|
95
|
+
_request_auth=_request_auth,
|
|
96
|
+
_content_type=_content_type,
|
|
97
|
+
_headers=_headers,
|
|
98
|
+
_host_index=_host_index
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
102
|
+
'200': "WebsiteMetricResult",
|
|
103
|
+
}
|
|
104
|
+
response_data = self.api_client.call_api(
|
|
105
|
+
*_param,
|
|
106
|
+
_request_timeout=_request_timeout
|
|
107
|
+
)
|
|
108
|
+
response_data.read()
|
|
109
|
+
return self.api_client.response_deserialize(
|
|
110
|
+
response_data=response_data,
|
|
111
|
+
response_types_map=_response_types_map,
|
|
112
|
+
).data
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
@validate_call
|
|
116
|
+
def get_beacon_metrics_with_http_info(
|
|
117
|
+
self,
|
|
118
|
+
get_website_metrics: Optional[GetWebsiteMetrics] = None,
|
|
119
|
+
_request_timeout: Union[
|
|
120
|
+
None,
|
|
121
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
122
|
+
Tuple[
|
|
123
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
124
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
125
|
+
]
|
|
126
|
+
] = None,
|
|
127
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
128
|
+
_content_type: Optional[StrictStr] = None,
|
|
129
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
130
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
131
|
+
) -> ApiResponse[WebsiteMetricResult]:
|
|
132
|
+
"""(Deprecated) Get beacon metrics
|
|
133
|
+
|
|
134
|
+
API request to get website monitoring beacon metrics.
|
|
135
|
+
|
|
136
|
+
:param get_website_metrics:
|
|
137
|
+
:type get_website_metrics: GetWebsiteMetrics
|
|
138
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
139
|
+
number provided, it will be total request
|
|
140
|
+
timeout. It can also be a pair (tuple) of
|
|
141
|
+
(connection, read) timeouts.
|
|
142
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
143
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
144
|
+
request; this effectively ignores the
|
|
145
|
+
authentication in the spec for a single request.
|
|
146
|
+
:type _request_auth: dict, optional
|
|
147
|
+
:param _content_type: force content-type for the request.
|
|
148
|
+
:type _content_type: str, Optional
|
|
149
|
+
:param _headers: set to override the headers for a single
|
|
150
|
+
request; this effectively ignores the headers
|
|
151
|
+
in the spec for a single request.
|
|
152
|
+
:type _headers: dict, optional
|
|
153
|
+
:param _host_index: set to override the host_index for a single
|
|
154
|
+
request; this effectively ignores the host_index
|
|
155
|
+
in the spec for a single request.
|
|
156
|
+
:type _host_index: int, optional
|
|
157
|
+
:return: Returns the result object.
|
|
158
|
+
""" # noqa: E501
|
|
159
|
+
warnings.warn("POST /api/website-monitoring/metrics is deprecated.", DeprecationWarning)
|
|
160
|
+
|
|
161
|
+
_param = self._get_beacon_metrics_serialize(
|
|
162
|
+
get_website_metrics=get_website_metrics,
|
|
163
|
+
_request_auth=_request_auth,
|
|
164
|
+
_content_type=_content_type,
|
|
165
|
+
_headers=_headers,
|
|
166
|
+
_host_index=_host_index
|
|
167
|
+
)
|
|
168
|
+
|
|
169
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
170
|
+
'200': "WebsiteMetricResult",
|
|
171
|
+
}
|
|
172
|
+
response_data = self.api_client.call_api(
|
|
173
|
+
*_param,
|
|
174
|
+
_request_timeout=_request_timeout
|
|
175
|
+
)
|
|
176
|
+
response_data.read()
|
|
177
|
+
return self.api_client.response_deserialize(
|
|
178
|
+
response_data=response_data,
|
|
179
|
+
response_types_map=_response_types_map,
|
|
180
|
+
)
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
@validate_call
|
|
184
|
+
def get_beacon_metrics_without_preload_content(
|
|
185
|
+
self,
|
|
186
|
+
get_website_metrics: Optional[GetWebsiteMetrics] = None,
|
|
187
|
+
_request_timeout: Union[
|
|
188
|
+
None,
|
|
189
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
190
|
+
Tuple[
|
|
191
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
192
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
193
|
+
]
|
|
194
|
+
] = None,
|
|
195
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
196
|
+
_content_type: Optional[StrictStr] = None,
|
|
197
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
198
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
199
|
+
) -> RESTResponseType:
|
|
200
|
+
"""(Deprecated) Get beacon metrics
|
|
201
|
+
|
|
202
|
+
API request to get website monitoring beacon metrics.
|
|
203
|
+
|
|
204
|
+
:param get_website_metrics:
|
|
205
|
+
:type get_website_metrics: GetWebsiteMetrics
|
|
206
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
207
|
+
number provided, it will be total request
|
|
208
|
+
timeout. It can also be a pair (tuple) of
|
|
209
|
+
(connection, read) timeouts.
|
|
210
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
211
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
212
|
+
request; this effectively ignores the
|
|
213
|
+
authentication in the spec for a single request.
|
|
214
|
+
:type _request_auth: dict, optional
|
|
215
|
+
:param _content_type: force content-type for the request.
|
|
216
|
+
:type _content_type: str, Optional
|
|
217
|
+
:param _headers: set to override the headers for a single
|
|
218
|
+
request; this effectively ignores the headers
|
|
219
|
+
in the spec for a single request.
|
|
220
|
+
:type _headers: dict, optional
|
|
221
|
+
:param _host_index: set to override the host_index for a single
|
|
222
|
+
request; this effectively ignores the host_index
|
|
223
|
+
in the spec for a single request.
|
|
224
|
+
:type _host_index: int, optional
|
|
225
|
+
:return: Returns the result object.
|
|
226
|
+
""" # noqa: E501
|
|
227
|
+
warnings.warn("POST /api/website-monitoring/metrics is deprecated.", DeprecationWarning)
|
|
228
|
+
|
|
229
|
+
_param = self._get_beacon_metrics_serialize(
|
|
230
|
+
get_website_metrics=get_website_metrics,
|
|
231
|
+
_request_auth=_request_auth,
|
|
232
|
+
_content_type=_content_type,
|
|
233
|
+
_headers=_headers,
|
|
234
|
+
_host_index=_host_index
|
|
235
|
+
)
|
|
236
|
+
|
|
237
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
238
|
+
'200': "WebsiteMetricResult",
|
|
239
|
+
}
|
|
240
|
+
response_data = self.api_client.call_api(
|
|
241
|
+
*_param,
|
|
242
|
+
_request_timeout=_request_timeout
|
|
243
|
+
)
|
|
244
|
+
return response_data.response
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
def _get_beacon_metrics_serialize(
|
|
248
|
+
self,
|
|
249
|
+
get_website_metrics,
|
|
250
|
+
_request_auth,
|
|
251
|
+
_content_type,
|
|
252
|
+
_headers,
|
|
253
|
+
_host_index,
|
|
254
|
+
) -> RequestSerialized:
|
|
255
|
+
|
|
256
|
+
_host = None
|
|
257
|
+
|
|
258
|
+
_collection_formats: Dict[str, str] = {
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
_path_params: Dict[str, str] = {}
|
|
262
|
+
_query_params: List[Tuple[str, str]] = []
|
|
263
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
264
|
+
_form_params: List[Tuple[str, str]] = []
|
|
265
|
+
_files: Dict[
|
|
266
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
267
|
+
] = {}
|
|
268
|
+
_body_params: Optional[bytes] = None
|
|
269
|
+
|
|
270
|
+
# process the path parameters
|
|
271
|
+
# process the query parameters
|
|
272
|
+
# process the header parameters
|
|
273
|
+
# process the form parameters
|
|
274
|
+
# process the body parameter
|
|
275
|
+
if get_website_metrics is not None:
|
|
276
|
+
_body_params = get_website_metrics
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
# set the HTTP header `Accept`
|
|
280
|
+
if 'Accept' not in _header_params:
|
|
281
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
282
|
+
[
|
|
283
|
+
'application/json'
|
|
284
|
+
]
|
|
285
|
+
)
|
|
286
|
+
|
|
287
|
+
# set the HTTP header `Content-Type`
|
|
288
|
+
if _content_type:
|
|
289
|
+
_header_params['Content-Type'] = _content_type
|
|
290
|
+
else:
|
|
291
|
+
_default_content_type = (
|
|
292
|
+
self.api_client.select_header_content_type(
|
|
293
|
+
[
|
|
294
|
+
'application/json'
|
|
295
|
+
]
|
|
296
|
+
)
|
|
297
|
+
)
|
|
298
|
+
if _default_content_type is not None:
|
|
299
|
+
_header_params['Content-Type'] = _default_content_type
|
|
300
|
+
|
|
301
|
+
# authentication setting
|
|
302
|
+
_auth_settings: List[str] = [
|
|
303
|
+
'ApiKeyAuth'
|
|
304
|
+
]
|
|
305
|
+
|
|
306
|
+
return self.api_client.param_serialize(
|
|
307
|
+
method='POST',
|
|
308
|
+
resource_path='/api/website-monitoring/metrics',
|
|
309
|
+
path_params=_path_params,
|
|
310
|
+
query_params=_query_params,
|
|
311
|
+
header_params=_header_params,
|
|
312
|
+
body=_body_params,
|
|
313
|
+
post_params=_form_params,
|
|
314
|
+
files=_files,
|
|
315
|
+
auth_settings=_auth_settings,
|
|
316
|
+
collection_formats=_collection_formats,
|
|
317
|
+
_host=_host,
|
|
318
|
+
_request_auth=_request_auth
|
|
319
|
+
)
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
@validate_call
|
|
325
|
+
def get_beacon_metrics_v2(
|
|
326
|
+
self,
|
|
327
|
+
get_website_metrics_v2: Optional[GetWebsiteMetricsV2] = None,
|
|
328
|
+
_request_timeout: Union[
|
|
329
|
+
None,
|
|
330
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
331
|
+
Tuple[
|
|
332
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
333
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
334
|
+
]
|
|
335
|
+
] = None,
|
|
336
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
337
|
+
_content_type: Optional[StrictStr] = None,
|
|
338
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
339
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
340
|
+
) -> MetricAPIResult:
|
|
341
|
+
"""Get beacon metrics
|
|
342
|
+
|
|
343
|
+
API request to get website monitoring beacon metrics.
|
|
344
|
+
|
|
345
|
+
:param get_website_metrics_v2:
|
|
346
|
+
:type get_website_metrics_v2: GetWebsiteMetricsV2
|
|
347
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
348
|
+
number provided, it will be total request
|
|
349
|
+
timeout. It can also be a pair (tuple) of
|
|
350
|
+
(connection, read) timeouts.
|
|
351
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
352
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
353
|
+
request; this effectively ignores the
|
|
354
|
+
authentication in the spec for a single request.
|
|
355
|
+
:type _request_auth: dict, optional
|
|
356
|
+
:param _content_type: force content-type for the request.
|
|
357
|
+
:type _content_type: str, Optional
|
|
358
|
+
:param _headers: set to override the headers for a single
|
|
359
|
+
request; this effectively ignores the headers
|
|
360
|
+
in the spec for a single request.
|
|
361
|
+
:type _headers: dict, optional
|
|
362
|
+
:param _host_index: set to override the host_index for a single
|
|
363
|
+
request; this effectively ignores the host_index
|
|
364
|
+
in the spec for a single request.
|
|
365
|
+
:type _host_index: int, optional
|
|
366
|
+
:return: Returns the result object.
|
|
367
|
+
""" # noqa: E501
|
|
368
|
+
|
|
369
|
+
_param = self._get_beacon_metrics_v2_serialize(
|
|
370
|
+
get_website_metrics_v2=get_website_metrics_v2,
|
|
371
|
+
_request_auth=_request_auth,
|
|
372
|
+
_content_type=_content_type,
|
|
373
|
+
_headers=_headers,
|
|
374
|
+
_host_index=_host_index
|
|
375
|
+
)
|
|
376
|
+
|
|
377
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
378
|
+
'200': "MetricAPIResult",
|
|
379
|
+
'401': None,
|
|
380
|
+
'404': None,
|
|
381
|
+
'422': None,
|
|
382
|
+
'500': None,
|
|
383
|
+
}
|
|
384
|
+
response_data = self.api_client.call_api(
|
|
385
|
+
*_param,
|
|
386
|
+
_request_timeout=_request_timeout
|
|
387
|
+
)
|
|
388
|
+
response_data.read()
|
|
389
|
+
return self.api_client.response_deserialize(
|
|
390
|
+
response_data=response_data,
|
|
391
|
+
response_types_map=_response_types_map,
|
|
392
|
+
).data
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
@validate_call
|
|
396
|
+
def get_beacon_metrics_v2_with_http_info(
|
|
397
|
+
self,
|
|
398
|
+
get_website_metrics_v2: Optional[GetWebsiteMetricsV2] = None,
|
|
399
|
+
_request_timeout: Union[
|
|
400
|
+
None,
|
|
401
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
402
|
+
Tuple[
|
|
403
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
404
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
405
|
+
]
|
|
406
|
+
] = None,
|
|
407
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
408
|
+
_content_type: Optional[StrictStr] = None,
|
|
409
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
410
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
411
|
+
) -> ApiResponse[MetricAPIResult]:
|
|
412
|
+
"""Get beacon metrics
|
|
413
|
+
|
|
414
|
+
API request to get website monitoring beacon metrics.
|
|
415
|
+
|
|
416
|
+
:param get_website_metrics_v2:
|
|
417
|
+
:type get_website_metrics_v2: GetWebsiteMetricsV2
|
|
418
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
419
|
+
number provided, it will be total request
|
|
420
|
+
timeout. It can also be a pair (tuple) of
|
|
421
|
+
(connection, read) timeouts.
|
|
422
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
423
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
424
|
+
request; this effectively ignores the
|
|
425
|
+
authentication in the spec for a single request.
|
|
426
|
+
:type _request_auth: dict, optional
|
|
427
|
+
:param _content_type: force content-type for the request.
|
|
428
|
+
:type _content_type: str, Optional
|
|
429
|
+
:param _headers: set to override the headers for a single
|
|
430
|
+
request; this effectively ignores the headers
|
|
431
|
+
in the spec for a single request.
|
|
432
|
+
:type _headers: dict, optional
|
|
433
|
+
:param _host_index: set to override the host_index for a single
|
|
434
|
+
request; this effectively ignores the host_index
|
|
435
|
+
in the spec for a single request.
|
|
436
|
+
:type _host_index: int, optional
|
|
437
|
+
:return: Returns the result object.
|
|
438
|
+
""" # noqa: E501
|
|
439
|
+
|
|
440
|
+
_param = self._get_beacon_metrics_v2_serialize(
|
|
441
|
+
get_website_metrics_v2=get_website_metrics_v2,
|
|
442
|
+
_request_auth=_request_auth,
|
|
443
|
+
_content_type=_content_type,
|
|
444
|
+
_headers=_headers,
|
|
445
|
+
_host_index=_host_index
|
|
446
|
+
)
|
|
447
|
+
|
|
448
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
449
|
+
'200': "MetricAPIResult",
|
|
450
|
+
'401': None,
|
|
451
|
+
'404': None,
|
|
452
|
+
'422': None,
|
|
453
|
+
'500': None,
|
|
454
|
+
}
|
|
455
|
+
response_data = self.api_client.call_api(
|
|
456
|
+
*_param,
|
|
457
|
+
_request_timeout=_request_timeout
|
|
458
|
+
)
|
|
459
|
+
response_data.read()
|
|
460
|
+
return self.api_client.response_deserialize(
|
|
461
|
+
response_data=response_data,
|
|
462
|
+
response_types_map=_response_types_map,
|
|
463
|
+
)
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
@validate_call
|
|
467
|
+
def get_beacon_metrics_v2_without_preload_content(
|
|
468
|
+
self,
|
|
469
|
+
get_website_metrics_v2: Optional[GetWebsiteMetricsV2] = None,
|
|
470
|
+
_request_timeout: Union[
|
|
471
|
+
None,
|
|
472
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
473
|
+
Tuple[
|
|
474
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
475
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
476
|
+
]
|
|
477
|
+
] = None,
|
|
478
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
479
|
+
_content_type: Optional[StrictStr] = None,
|
|
480
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
481
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
482
|
+
) -> RESTResponseType:
|
|
483
|
+
"""Get beacon metrics
|
|
484
|
+
|
|
485
|
+
API request to get website monitoring beacon metrics.
|
|
486
|
+
|
|
487
|
+
:param get_website_metrics_v2:
|
|
488
|
+
:type get_website_metrics_v2: GetWebsiteMetricsV2
|
|
489
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
490
|
+
number provided, it will be total request
|
|
491
|
+
timeout. It can also be a pair (tuple) of
|
|
492
|
+
(connection, read) timeouts.
|
|
493
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
494
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
495
|
+
request; this effectively ignores the
|
|
496
|
+
authentication in the spec for a single request.
|
|
497
|
+
:type _request_auth: dict, optional
|
|
498
|
+
:param _content_type: force content-type for the request.
|
|
499
|
+
:type _content_type: str, Optional
|
|
500
|
+
:param _headers: set to override the headers for a single
|
|
501
|
+
request; this effectively ignores the headers
|
|
502
|
+
in the spec for a single request.
|
|
503
|
+
:type _headers: dict, optional
|
|
504
|
+
:param _host_index: set to override the host_index for a single
|
|
505
|
+
request; this effectively ignores the host_index
|
|
506
|
+
in the spec for a single request.
|
|
507
|
+
:type _host_index: int, optional
|
|
508
|
+
:return: Returns the result object.
|
|
509
|
+
""" # noqa: E501
|
|
510
|
+
|
|
511
|
+
_param = self._get_beacon_metrics_v2_serialize(
|
|
512
|
+
get_website_metrics_v2=get_website_metrics_v2,
|
|
513
|
+
_request_auth=_request_auth,
|
|
514
|
+
_content_type=_content_type,
|
|
515
|
+
_headers=_headers,
|
|
516
|
+
_host_index=_host_index
|
|
517
|
+
)
|
|
518
|
+
|
|
519
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
520
|
+
'200': "MetricAPIResult",
|
|
521
|
+
'401': None,
|
|
522
|
+
'404': None,
|
|
523
|
+
'422': None,
|
|
524
|
+
'500': None,
|
|
525
|
+
}
|
|
526
|
+
response_data = self.api_client.call_api(
|
|
527
|
+
*_param,
|
|
528
|
+
_request_timeout=_request_timeout
|
|
529
|
+
)
|
|
530
|
+
return response_data.response
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
def _get_beacon_metrics_v2_serialize(
|
|
534
|
+
self,
|
|
535
|
+
get_website_metrics_v2,
|
|
536
|
+
_request_auth,
|
|
537
|
+
_content_type,
|
|
538
|
+
_headers,
|
|
539
|
+
_host_index,
|
|
540
|
+
) -> RequestSerialized:
|
|
541
|
+
|
|
542
|
+
_host = None
|
|
543
|
+
|
|
544
|
+
_collection_formats: Dict[str, str] = {
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
_path_params: Dict[str, str] = {}
|
|
548
|
+
_query_params: List[Tuple[str, str]] = []
|
|
549
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
550
|
+
_form_params: List[Tuple[str, str]] = []
|
|
551
|
+
_files: Dict[
|
|
552
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
553
|
+
] = {}
|
|
554
|
+
_body_params: Optional[bytes] = None
|
|
555
|
+
|
|
556
|
+
# process the path parameters
|
|
557
|
+
# process the query parameters
|
|
558
|
+
# process the header parameters
|
|
559
|
+
# process the form parameters
|
|
560
|
+
# process the body parameter
|
|
561
|
+
if get_website_metrics_v2 is not None:
|
|
562
|
+
_body_params = get_website_metrics_v2
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
# set the HTTP header `Accept`
|
|
566
|
+
if 'Accept' not in _header_params:
|
|
567
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
568
|
+
[
|
|
569
|
+
'application/json'
|
|
570
|
+
]
|
|
571
|
+
)
|
|
572
|
+
|
|
573
|
+
# set the HTTP header `Content-Type`
|
|
574
|
+
if _content_type:
|
|
575
|
+
_header_params['Content-Type'] = _content_type
|
|
576
|
+
else:
|
|
577
|
+
_default_content_type = (
|
|
578
|
+
self.api_client.select_header_content_type(
|
|
579
|
+
[
|
|
580
|
+
'application/json'
|
|
581
|
+
]
|
|
582
|
+
)
|
|
583
|
+
)
|
|
584
|
+
if _default_content_type is not None:
|
|
585
|
+
_header_params['Content-Type'] = _default_content_type
|
|
586
|
+
|
|
587
|
+
# authentication setting
|
|
588
|
+
_auth_settings: List[str] = [
|
|
589
|
+
'ApiKeyAuth'
|
|
590
|
+
]
|
|
591
|
+
|
|
592
|
+
return self.api_client.param_serialize(
|
|
593
|
+
method='POST',
|
|
594
|
+
resource_path='/api/website-monitoring/v2/metrics',
|
|
595
|
+
path_params=_path_params,
|
|
596
|
+
query_params=_query_params,
|
|
597
|
+
header_params=_header_params,
|
|
598
|
+
body=_body_params,
|
|
599
|
+
post_params=_form_params,
|
|
600
|
+
files=_files,
|
|
601
|
+
auth_settings=_auth_settings,
|
|
602
|
+
collection_formats=_collection_formats,
|
|
603
|
+
_host=_host,
|
|
604
|
+
_request_auth=_request_auth
|
|
605
|
+
)
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
@validate_call
|
|
611
|
+
def get_page_load(
|
|
612
|
+
self,
|
|
613
|
+
id: Annotated[StrictStr, Field(description="Identifier of the page load to be retrieved")],
|
|
614
|
+
timestamp: Annotated[StrictInt, Field(description="Timestamp of the page load to be retrieved")],
|
|
615
|
+
_request_timeout: Union[
|
|
616
|
+
None,
|
|
617
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
618
|
+
Tuple[
|
|
619
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
620
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
621
|
+
]
|
|
622
|
+
] = None,
|
|
623
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
624
|
+
_content_type: Optional[StrictStr] = None,
|
|
625
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
626
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
627
|
+
) -> List[WebsiteMonitoringBeacon]:
|
|
628
|
+
"""Get page load
|
|
629
|
+
|
|
630
|
+
API request to get website monitoring beacons for a page load.
|
|
631
|
+
|
|
632
|
+
:param id: Identifier of the page load to be retrieved (required)
|
|
633
|
+
:type id: str
|
|
634
|
+
:param timestamp: Timestamp of the page load to be retrieved (required)
|
|
635
|
+
:type timestamp: int
|
|
636
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
637
|
+
number provided, it will be total request
|
|
638
|
+
timeout. It can also be a pair (tuple) of
|
|
639
|
+
(connection, read) timeouts.
|
|
640
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
641
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
642
|
+
request; this effectively ignores the
|
|
643
|
+
authentication in the spec for a single request.
|
|
644
|
+
:type _request_auth: dict, optional
|
|
645
|
+
:param _content_type: force content-type for the request.
|
|
646
|
+
:type _content_type: str, Optional
|
|
647
|
+
:param _headers: set to override the headers for a single
|
|
648
|
+
request; this effectively ignores the headers
|
|
649
|
+
in the spec for a single request.
|
|
650
|
+
:type _headers: dict, optional
|
|
651
|
+
:param _host_index: set to override the host_index for a single
|
|
652
|
+
request; this effectively ignores the host_index
|
|
653
|
+
in the spec for a single request.
|
|
654
|
+
:type _host_index: int, optional
|
|
655
|
+
:return: Returns the result object.
|
|
656
|
+
""" # noqa: E501
|
|
657
|
+
|
|
658
|
+
_param = self._get_page_load_serialize(
|
|
659
|
+
id=id,
|
|
660
|
+
timestamp=timestamp,
|
|
661
|
+
_request_auth=_request_auth,
|
|
662
|
+
_content_type=_content_type,
|
|
663
|
+
_headers=_headers,
|
|
664
|
+
_host_index=_host_index
|
|
665
|
+
)
|
|
666
|
+
|
|
667
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
668
|
+
'200': "List[WebsiteMonitoringBeacon]",
|
|
669
|
+
'400': None,
|
|
670
|
+
'404': None,
|
|
671
|
+
}
|
|
672
|
+
response_data = self.api_client.call_api(
|
|
673
|
+
*_param,
|
|
674
|
+
_request_timeout=_request_timeout
|
|
675
|
+
)
|
|
676
|
+
response_data.read()
|
|
677
|
+
return self.api_client.response_deserialize(
|
|
678
|
+
response_data=response_data,
|
|
679
|
+
response_types_map=_response_types_map,
|
|
680
|
+
).data
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
@validate_call
|
|
684
|
+
def get_page_load_with_http_info(
|
|
685
|
+
self,
|
|
686
|
+
id: Annotated[StrictStr, Field(description="Identifier of the page load to be retrieved")],
|
|
687
|
+
timestamp: Annotated[StrictInt, Field(description="Timestamp of the page load to be retrieved")],
|
|
688
|
+
_request_timeout: Union[
|
|
689
|
+
None,
|
|
690
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
691
|
+
Tuple[
|
|
692
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
693
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
694
|
+
]
|
|
695
|
+
] = None,
|
|
696
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
697
|
+
_content_type: Optional[StrictStr] = None,
|
|
698
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
699
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
700
|
+
) -> ApiResponse[List[WebsiteMonitoringBeacon]]:
|
|
701
|
+
"""Get page load
|
|
702
|
+
|
|
703
|
+
API request to get website monitoring beacons for a page load.
|
|
704
|
+
|
|
705
|
+
:param id: Identifier of the page load to be retrieved (required)
|
|
706
|
+
:type id: str
|
|
707
|
+
:param timestamp: Timestamp of the page load to be retrieved (required)
|
|
708
|
+
:type timestamp: int
|
|
709
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
710
|
+
number provided, it will be total request
|
|
711
|
+
timeout. It can also be a pair (tuple) of
|
|
712
|
+
(connection, read) timeouts.
|
|
713
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
714
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
715
|
+
request; this effectively ignores the
|
|
716
|
+
authentication in the spec for a single request.
|
|
717
|
+
:type _request_auth: dict, optional
|
|
718
|
+
:param _content_type: force content-type for the request.
|
|
719
|
+
:type _content_type: str, Optional
|
|
720
|
+
:param _headers: set to override the headers for a single
|
|
721
|
+
request; this effectively ignores the headers
|
|
722
|
+
in the spec for a single request.
|
|
723
|
+
:type _headers: dict, optional
|
|
724
|
+
:param _host_index: set to override the host_index for a single
|
|
725
|
+
request; this effectively ignores the host_index
|
|
726
|
+
in the spec for a single request.
|
|
727
|
+
:type _host_index: int, optional
|
|
728
|
+
:return: Returns the result object.
|
|
729
|
+
""" # noqa: E501
|
|
730
|
+
|
|
731
|
+
_param = self._get_page_load_serialize(
|
|
732
|
+
id=id,
|
|
733
|
+
timestamp=timestamp,
|
|
734
|
+
_request_auth=_request_auth,
|
|
735
|
+
_content_type=_content_type,
|
|
736
|
+
_headers=_headers,
|
|
737
|
+
_host_index=_host_index
|
|
738
|
+
)
|
|
739
|
+
|
|
740
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
741
|
+
'200': "List[WebsiteMonitoringBeacon]",
|
|
742
|
+
'400': None,
|
|
743
|
+
'404': None,
|
|
744
|
+
}
|
|
745
|
+
response_data = self.api_client.call_api(
|
|
746
|
+
*_param,
|
|
747
|
+
_request_timeout=_request_timeout
|
|
748
|
+
)
|
|
749
|
+
response_data.read()
|
|
750
|
+
return self.api_client.response_deserialize(
|
|
751
|
+
response_data=response_data,
|
|
752
|
+
response_types_map=_response_types_map,
|
|
753
|
+
)
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
@validate_call
|
|
757
|
+
def get_page_load_without_preload_content(
|
|
758
|
+
self,
|
|
759
|
+
id: Annotated[StrictStr, Field(description="Identifier of the page load to be retrieved")],
|
|
760
|
+
timestamp: Annotated[StrictInt, Field(description="Timestamp of the page load to be retrieved")],
|
|
761
|
+
_request_timeout: Union[
|
|
762
|
+
None,
|
|
763
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
764
|
+
Tuple[
|
|
765
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
766
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
767
|
+
]
|
|
768
|
+
] = None,
|
|
769
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
770
|
+
_content_type: Optional[StrictStr] = None,
|
|
771
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
772
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
773
|
+
) -> RESTResponseType:
|
|
774
|
+
"""Get page load
|
|
775
|
+
|
|
776
|
+
API request to get website monitoring beacons for a page load.
|
|
777
|
+
|
|
778
|
+
:param id: Identifier of the page load to be retrieved (required)
|
|
779
|
+
:type id: str
|
|
780
|
+
:param timestamp: Timestamp of the page load to be retrieved (required)
|
|
781
|
+
:type timestamp: int
|
|
782
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
783
|
+
number provided, it will be total request
|
|
784
|
+
timeout. It can also be a pair (tuple) of
|
|
785
|
+
(connection, read) timeouts.
|
|
786
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
787
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
788
|
+
request; this effectively ignores the
|
|
789
|
+
authentication in the spec for a single request.
|
|
790
|
+
:type _request_auth: dict, optional
|
|
791
|
+
:param _content_type: force content-type for the request.
|
|
792
|
+
:type _content_type: str, Optional
|
|
793
|
+
:param _headers: set to override the headers for a single
|
|
794
|
+
request; this effectively ignores the headers
|
|
795
|
+
in the spec for a single request.
|
|
796
|
+
:type _headers: dict, optional
|
|
797
|
+
:param _host_index: set to override the host_index for a single
|
|
798
|
+
request; this effectively ignores the host_index
|
|
799
|
+
in the spec for a single request.
|
|
800
|
+
:type _host_index: int, optional
|
|
801
|
+
:return: Returns the result object.
|
|
802
|
+
""" # noqa: E501
|
|
803
|
+
|
|
804
|
+
_param = self._get_page_load_serialize(
|
|
805
|
+
id=id,
|
|
806
|
+
timestamp=timestamp,
|
|
807
|
+
_request_auth=_request_auth,
|
|
808
|
+
_content_type=_content_type,
|
|
809
|
+
_headers=_headers,
|
|
810
|
+
_host_index=_host_index
|
|
811
|
+
)
|
|
812
|
+
|
|
813
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
814
|
+
'200': "List[WebsiteMonitoringBeacon]",
|
|
815
|
+
'400': None,
|
|
816
|
+
'404': None,
|
|
817
|
+
}
|
|
818
|
+
response_data = self.api_client.call_api(
|
|
819
|
+
*_param,
|
|
820
|
+
_request_timeout=_request_timeout
|
|
821
|
+
)
|
|
822
|
+
return response_data.response
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
def _get_page_load_serialize(
|
|
826
|
+
self,
|
|
827
|
+
id,
|
|
828
|
+
timestamp,
|
|
829
|
+
_request_auth,
|
|
830
|
+
_content_type,
|
|
831
|
+
_headers,
|
|
832
|
+
_host_index,
|
|
833
|
+
) -> RequestSerialized:
|
|
834
|
+
|
|
835
|
+
_host = None
|
|
836
|
+
|
|
837
|
+
_collection_formats: Dict[str, str] = {
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
_path_params: Dict[str, str] = {}
|
|
841
|
+
_query_params: List[Tuple[str, str]] = []
|
|
842
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
843
|
+
_form_params: List[Tuple[str, str]] = []
|
|
844
|
+
_files: Dict[
|
|
845
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
846
|
+
] = {}
|
|
847
|
+
_body_params: Optional[bytes] = None
|
|
848
|
+
|
|
849
|
+
# process the path parameters
|
|
850
|
+
if id is not None:
|
|
851
|
+
_path_params['id'] = id
|
|
852
|
+
if timestamp is not None:
|
|
853
|
+
_path_params['timestamp'] = timestamp
|
|
854
|
+
# process the query parameters
|
|
855
|
+
# process the header parameters
|
|
856
|
+
# process the form parameters
|
|
857
|
+
# process the body parameter
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
# set the HTTP header `Accept`
|
|
861
|
+
if 'Accept' not in _header_params:
|
|
862
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
863
|
+
[
|
|
864
|
+
'application/json'
|
|
865
|
+
]
|
|
866
|
+
)
|
|
867
|
+
|
|
868
|
+
|
|
869
|
+
# authentication setting
|
|
870
|
+
_auth_settings: List[str] = [
|
|
871
|
+
'ApiKeyAuth'
|
|
872
|
+
]
|
|
873
|
+
|
|
874
|
+
return self.api_client.param_serialize(
|
|
875
|
+
method='GET',
|
|
876
|
+
resource_path='/api/website-monitoring/page-load',
|
|
877
|
+
path_params=_path_params,
|
|
878
|
+
query_params=_query_params,
|
|
879
|
+
header_params=_header_params,
|
|
880
|
+
body=_body_params,
|
|
881
|
+
post_params=_form_params,
|
|
882
|
+
files=_files,
|
|
883
|
+
auth_settings=_auth_settings,
|
|
884
|
+
collection_formats=_collection_formats,
|
|
885
|
+
_host=_host,
|
|
886
|
+
_request_auth=_request_auth
|
|
887
|
+
)
|
|
888
|
+
|
|
889
|
+
|