honeycomb-api 0.1.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.
- honeycomb/__init__.py +217 -0
- honeycomb/_generated/__init__.py +8 -0
- honeycomb/_generated/api/__init__.py +1 -0
- honeycomb/_generated/api/auth/__init__.py +0 -0
- honeycomb/_generated/api/auth/get_auth.py +172 -0
- honeycomb/_generated/api/auth/get_v2_auth.py +168 -0
- honeycomb/_generated/api/boards/__init__.py +0 -0
- honeycomb/_generated/api/boards/create_board.py +217 -0
- honeycomb/_generated/api/boards/create_board_view.py +237 -0
- honeycomb/_generated/api/boards/delete_board.py +191 -0
- honeycomb/_generated/api/boards/delete_board_view.py +210 -0
- honeycomb/_generated/api/boards/get_board.py +208 -0
- honeycomb/_generated/api/boards/get_board_view.py +214 -0
- honeycomb/_generated/api/boards/list_board_views.py +206 -0
- honeycomb/_generated/api/boards/list_boards.py +177 -0
- honeycomb/_generated/api/boards/update_board.py +238 -0
- honeycomb/_generated/api/boards/update_board_view.py +250 -0
- honeycomb/_generated/api/burn_alerts/__init__.py +0 -0
- honeycomb/_generated/api/burn_alerts/create_burn_alert.py +224 -0
- honeycomb/_generated/api/burn_alerts/delete_burn_alert.py +204 -0
- honeycomb/_generated/api/burn_alerts/get_burn_alert.py +208 -0
- honeycomb/_generated/api/burn_alerts/list_burn_alerts_by_slo.py +220 -0
- honeycomb/_generated/api/calculated_fields/__init__.py +0 -0
- honeycomb/_generated/api/calculated_fields/create_calculated_field.py +239 -0
- honeycomb/_generated/api/calculated_fields/delete_calculated_field.py +225 -0
- honeycomb/_generated/api/calculated_fields/get_calculated_field.py +207 -0
- honeycomb/_generated/api/calculated_fields/list_calculated_fields.py +252 -0
- honeycomb/_generated/api/calculated_fields/update_calculated_field.py +242 -0
- honeycomb/_generated/api/columns/__init__.py +0 -0
- honeycomb/_generated/api/columns/create_column.py +241 -0
- honeycomb/_generated/api/columns/delete_column.py +221 -0
- honeycomb/_generated/api/columns/get_column.py +206 -0
- honeycomb/_generated/api/columns/list_columns.py +256 -0
- honeycomb/_generated/api/columns/update_column.py +242 -0
- honeycomb/_generated/api/dataset_definitions/__init__.py +0 -0
- honeycomb/_generated/api/dataset_definitions/list_dataset_definitions.py +193 -0
- honeycomb/_generated/api/dataset_definitions/patch_dataset_definitions.py +235 -0
- honeycomb/_generated/api/datasets/__init__.py +0 -0
- honeycomb/_generated/api/datasets/create_dataset.py +227 -0
- honeycomb/_generated/api/datasets/delete_dataset.py +251 -0
- honeycomb/_generated/api/datasets/get_dataset.py +195 -0
- honeycomb/_generated/api/datasets/list_datasets.py +177 -0
- honeycomb/_generated/api/datasets/update_dataset.py +217 -0
- honeycomb/_generated/api/enhance/__init__.py +0 -0
- honeycomb/_generated/api/enhance/record_enhance_indexer_usage.py +231 -0
- honeycomb/_generated/api/environments/__init__.py +0 -0
- honeycomb/_generated/api/environments/create_environment.py +247 -0
- honeycomb/_generated/api/environments/delete_environment.py +245 -0
- honeycomb/_generated/api/environments/get_environment.py +213 -0
- honeycomb/_generated/api/environments/list_environments.py +245 -0
- honeycomb/_generated/api/environments/update_environment.py +254 -0
- honeycomb/_generated/api/events/__init__.py +0 -0
- honeycomb/_generated/api/events/create_event.py +269 -0
- honeycomb/_generated/api/events/create_events.py +314 -0
- honeycomb/_generated/api/key_management/__init__.py +0 -0
- honeycomb/_generated/api/key_management/create_api_key.py +286 -0
- honeycomb/_generated/api/key_management/delete_api_key.py +223 -0
- honeycomb/_generated/api/key_management/get_api_key.py +225 -0
- honeycomb/_generated/api/key_management/list_api_keys.py +281 -0
- honeycomb/_generated/api/key_management/update_api_key.py +270 -0
- honeycomb/_generated/api/kinesis_events/__init__.py +0 -0
- honeycomb/_generated/api/kinesis_events/create_kinesis_events.py +220 -0
- honeycomb/_generated/api/marker_settings/__init__.py +0 -0
- honeycomb/_generated/api/marker_settings/create_marker_setting.py +209 -0
- honeycomb/_generated/api/marker_settings/delete_marker_settings.py +194 -0
- honeycomb/_generated/api/marker_settings/list_marker_settings.py +186 -0
- honeycomb/_generated/api/marker_settings/update_marker_settings.py +230 -0
- honeycomb/_generated/api/markers/__init__.py +0 -0
- honeycomb/_generated/api/markers/create_marker.py +220 -0
- honeycomb/_generated/api/markers/create_marker_v2.py +253 -0
- honeycomb/_generated/api/markers/delete_marker.py +200 -0
- honeycomb/_generated/api/markers/get_marker.py +194 -0
- honeycomb/_generated/api/markers/update_marker.py +233 -0
- honeycomb/_generated/api/markers/update_marker_v2.py +262 -0
- honeycomb/_generated/api/pipelines/__init__.py +0 -0
- honeycomb/_generated/api/pipelines/get_pipeline_configuration.py +306 -0
- honeycomb/_generated/api/pipelines/record_pipeline_usage.py +244 -0
- honeycomb/_generated/api/pipelines/update_pipeline_configuration_rollout.py +261 -0
- honeycomb/_generated/api/queries/__init__.py +0 -0
- honeycomb/_generated/api/queries/create_query.py +224 -0
- honeycomb/_generated/api/queries/get_query.py +208 -0
- honeycomb/_generated/api/query_annotations/__init__.py +0 -0
- honeycomb/_generated/api/query_annotations/create_query_annotation.py +226 -0
- honeycomb/_generated/api/query_annotations/delete_query_annotation.py +198 -0
- honeycomb/_generated/api/query_annotations/get_query_annotation.py +202 -0
- honeycomb/_generated/api/query_annotations/list_query_annotations.py +217 -0
- honeycomb/_generated/api/query_annotations/update_query_annotation.py +237 -0
- honeycomb/_generated/api/query_data/__init__.py +0 -0
- honeycomb/_generated/api/query_data/create_query_result.py +247 -0
- honeycomb/_generated/api/query_data/get_query_result.py +208 -0
- honeycomb/_generated/api/recipients/__init__.py +0 -0
- honeycomb/_generated/api/recipients/create_recipient.py +317 -0
- honeycomb/_generated/api/recipients/delete_recipient.py +199 -0
- honeycomb/_generated/api/recipients/get_recipient.py +252 -0
- honeycomb/_generated/api/recipients/list_recipients.py +230 -0
- honeycomb/_generated/api/recipients/update_recipient.py +323 -0
- honeycomb/_generated/api/reporting/__init__.py +0 -0
- honeycomb/_generated/api/reporting/get_slo_history.py +218 -0
- honeycomb/_generated/api/service_maps/__init__.py +0 -0
- honeycomb/_generated/api/service_maps/create_map_dependency_request.py +252 -0
- honeycomb/_generated/api/service_maps/get_map_dependencies.py +265 -0
- honeycomb/_generated/api/sl_os/__init__.py +0 -0
- honeycomb/_generated/api/sl_os/create_slo.py +229 -0
- honeycomb/_generated/api/sl_os/delete_slo.py +210 -0
- honeycomb/_generated/api/sl_os/get_slo.py +256 -0
- honeycomb/_generated/api/sl_os/list_slos.py +210 -0
- honeycomb/_generated/api/sl_os/update_slo.py +242 -0
- honeycomb/_generated/api/triggers/__init__.py +0 -0
- honeycomb/_generated/api/triggers/create_trigger.py +250 -0
- honeycomb/_generated/api/triggers/delete_trigger.py +204 -0
- honeycomb/_generated/api/triggers/get_trigger.py +214 -0
- honeycomb/_generated/api/triggers/list_triggers.py +206 -0
- honeycomb/_generated/api/triggers/list_triggers_with_recipient.py +208 -0
- honeycomb/_generated/api/triggers/update_trigger.py +248 -0
- honeycomb/_generated/client.py +271 -0
- honeycomb/_generated/errors.py +14 -0
- honeycomb/_generated/models/__init__.py +561 -0
- honeycomb/_generated/models/api_key_create_request.py +78 -0
- honeycomb/_generated/models/api_key_create_request_data.py +130 -0
- honeycomb/_generated/models/api_key_create_request_data_relationships.py +78 -0
- honeycomb/_generated/models/api_key_create_request_data_type.py +7 -0
- honeycomb/_generated/models/api_key_list_response.py +112 -0
- honeycomb/_generated/models/api_key_object.py +189 -0
- honeycomb/_generated/models/api_key_object_links.py +74 -0
- honeycomb/_generated/models/api_key_object_relationships.py +150 -0
- honeycomb/_generated/models/api_key_object_type.py +7 -0
- honeycomb/_generated/models/api_key_response.py +78 -0
- honeycomb/_generated/models/api_key_update_request.py +104 -0
- honeycomb/_generated/models/auth.py +140 -0
- honeycomb/_generated/models/auth_api_key_access.py +154 -0
- honeycomb/_generated/models/auth_environment.py +82 -0
- honeycomb/_generated/models/auth_team.py +82 -0
- honeycomb/_generated/models/auth_type.py +8 -0
- honeycomb/_generated/models/auth_v2_response.py +108 -0
- honeycomb/_generated/models/auth_v2_response_data.py +122 -0
- honeycomb/_generated/models/auth_v2_response_data_attributes.py +141 -0
- honeycomb/_generated/models/auth_v2_response_data_attributes_key_type.py +7 -0
- honeycomb/_generated/models/auth_v2_response_data_attributes_timestamps.py +107 -0
- honeycomb/_generated/models/auth_v2_response_data_relationships.py +59 -0
- honeycomb/_generated/models/auth_v2_response_data_type.py +7 -0
- honeycomb/_generated/models/base_trigger.py +367 -0
- honeycomb/_generated/models/base_trigger_alert_type.py +8 -0
- honeycomb/_generated/models/base_trigger_baseline_details_type_0.py +92 -0
- honeycomb/_generated/models/base_trigger_baseline_details_type_0_offset_minutes.py +10 -0
- honeycomb/_generated/models/base_trigger_baseline_details_type_0_type.py +8 -0
- honeycomb/_generated/models/base_trigger_evaluation_schedule.py +83 -0
- honeycomb/_generated/models/base_trigger_evaluation_schedule_type.py +8 -0
- honeycomb/_generated/models/base_trigger_evaluation_schedule_window.py +103 -0
- honeycomb/_generated/models/base_trigger_evaluation_schedule_window_days_of_week_item.py +13 -0
- honeycomb/_generated/models/base_trigger_threshold.py +95 -0
- honeycomb/_generated/models/base_trigger_threshold_op.py +10 -0
- honeycomb/_generated/models/batch_event.py +110 -0
- honeycomb/_generated/models/board.py +276 -0
- honeycomb/_generated/models/board_layout_generation.py +8 -0
- honeycomb/_generated/models/board_links.py +74 -0
- honeycomb/_generated/models/board_panel_position.py +104 -0
- honeycomb/_generated/models/board_query_visualization_settings.py +141 -0
- honeycomb/_generated/models/board_query_visualization_settings_charts_item.py +113 -0
- honeycomb/_generated/models/board_query_visualization_settings_charts_item_chart_type.py +13 -0
- honeycomb/_generated/models/board_type.py +7 -0
- honeycomb/_generated/models/board_view_filter.py +93 -0
- honeycomb/_generated/models/board_view_filter_operation.py +22 -0
- honeycomb/_generated/models/board_view_response.py +111 -0
- honeycomb/_generated/models/budget_rate.py +189 -0
- honeycomb/_generated/models/budget_rate_alert_type.py +8 -0
- honeycomb/_generated/models/burn_alert_shared_params.py +136 -0
- honeycomb/_generated/models/calculated_field.py +117 -0
- honeycomb/_generated/models/configuration_key_attributes.py +140 -0
- honeycomb/_generated/models/configuration_key_attributes_key_type.py +7 -0
- honeycomb/_generated/models/configuration_key_attributes_timestamps.py +107 -0
- honeycomb/_generated/models/create_board_view_request.py +96 -0
- honeycomb/_generated/models/create_budget_rate_burn_alert_request.py +232 -0
- honeycomb/_generated/models/create_budget_rate_burn_alert_request_slo.py +74 -0
- honeycomb/_generated/models/create_column.py +149 -0
- honeycomb/_generated/models/create_column_type.py +11 -0
- honeycomb/_generated/models/create_enhance_indexer_usage_record_request.py +78 -0
- honeycomb/_generated/models/create_enhance_indexer_usage_record_request_data.py +90 -0
- honeycomb/_generated/models/create_enhance_indexer_usage_record_request_data_attributes.py +97 -0
- honeycomb/_generated/models/create_enhance_indexer_usage_record_request_data_attributes_usage_data.py +88 -0
- honeycomb/_generated/models/create_enhance_indexer_usage_record_request_data_attributes_usage_data_resource_metrics_item.py +89 -0
- honeycomb/_generated/models/create_enhance_indexer_usage_record_request_data_attributes_usage_data_resource_metrics_item_scope_metrics_item.py +89 -0
- honeycomb/_generated/models/create_enhance_indexer_usage_record_request_data_attributes_usage_data_resource_metrics_item_scope_metrics_item_metrics_item.py +97 -0
- honeycomb/_generated/models/create_enhance_indexer_usage_record_request_data_attributes_usage_data_resource_metrics_item_scope_metrics_item_metrics_item_sum.py +102 -0
- honeycomb/_generated/models/create_enhance_indexer_usage_record_request_data_attributes_usage_data_resource_metrics_item_scope_metrics_item_metrics_item_sum_aggregation_temporality.py +7 -0
- honeycomb/_generated/models/create_enhance_indexer_usage_record_request_data_attributes_usage_data_resource_metrics_item_scope_metrics_item_metrics_item_sum_datapoints_item.py +105 -0
- honeycomb/_generated/models/create_enhance_indexer_usage_record_request_data_attributes_usage_data_resource_metrics_item_scope_metrics_item_metrics_item_sum_datapoints_item_attributes_item.py +87 -0
- honeycomb/_generated/models/create_enhance_indexer_usage_record_request_data_attributes_usage_data_resource_metrics_item_scope_metrics_item_metrics_item_sum_datapoints_item_attributes_item_value.py +73 -0
- honeycomb/_generated/models/create_enhance_indexer_usage_record_request_data_type.py +7 -0
- honeycomb/_generated/models/create_environment_request.py +78 -0
- honeycomb/_generated/models/create_environment_request_data.py +90 -0
- honeycomb/_generated/models/create_environment_request_data_attributes.py +102 -0
- honeycomb/_generated/models/create_environment_request_data_type.py +7 -0
- honeycomb/_generated/models/create_events_content_encoding.py +8 -0
- honeycomb/_generated/models/create_events_response_200_item.py +82 -0
- honeycomb/_generated/models/create_exhaustion_time_burn_alert_request.py +217 -0
- honeycomb/_generated/models/create_exhaustion_time_burn_alert_request_slo.py +74 -0
- honeycomb/_generated/models/create_map_dependencies_request.py +128 -0
- honeycomb/_generated/models/create_map_dependencies_response.py +97 -0
- honeycomb/_generated/models/create_map_dependencies_response_status.py +9 -0
- honeycomb/_generated/models/create_pipeline_health_record_request.py +78 -0
- honeycomb/_generated/models/create_pipeline_health_record_request_data.py +98 -0
- honeycomb/_generated/models/create_pipeline_health_record_request_data_attributes.py +88 -0
- honeycomb/_generated/models/create_pipeline_health_record_request_data_attributes_usage_data.py +88 -0
- honeycomb/_generated/models/create_pipeline_health_record_request_data_attributes_usage_data_resource_metrics_item.py +89 -0
- honeycomb/_generated/models/create_pipeline_health_record_request_data_attributes_usage_data_resource_metrics_item_scope_metrics_item.py +89 -0
- honeycomb/_generated/models/create_pipeline_health_record_request_data_attributes_usage_data_resource_metrics_item_scope_metrics_item_metrics_item.py +97 -0
- honeycomb/_generated/models/create_pipeline_health_record_request_data_attributes_usage_data_resource_metrics_item_scope_metrics_item_metrics_item_sum.py +102 -0
- honeycomb/_generated/models/create_pipeline_health_record_request_data_attributes_usage_data_resource_metrics_item_scope_metrics_item_metrics_item_sum_aggregation_temporality.py +7 -0
- honeycomb/_generated/models/create_pipeline_health_record_request_data_attributes_usage_data_resource_metrics_item_scope_metrics_item_metrics_item_sum_datapoints_item.py +105 -0
- honeycomb/_generated/models/create_pipeline_health_record_request_data_attributes_usage_data_resource_metrics_item_scope_metrics_item_metrics_item_sum_datapoints_item_attributes_item.py +87 -0
- honeycomb/_generated/models/create_pipeline_health_record_request_data_attributes_usage_data_resource_metrics_item_scope_metrics_item_metrics_item_sum_datapoints_item_attributes_item_value.py +73 -0
- honeycomb/_generated/models/create_pipeline_health_record_request_data_type.py +7 -0
- honeycomb/_generated/models/create_query_result_request.py +118 -0
- honeycomb/_generated/models/dataset.py +183 -0
- honeycomb/_generated/models/dataset_creation_payload.py +93 -0
- honeycomb/_generated/models/dataset_definition_type_1.py +96 -0
- honeycomb/_generated/models/dataset_definition_type_1_column_type.py +8 -0
- honeycomb/_generated/models/dataset_definitions.py +599 -0
- honeycomb/_generated/models/dataset_relationship.py +79 -0
- honeycomb/_generated/models/dataset_relationship_data.py +82 -0
- honeycomb/_generated/models/dataset_relationship_data_type.py +7 -0
- honeycomb/_generated/models/dataset_settings.py +73 -0
- honeycomb/_generated/models/dataset_update_payload.py +105 -0
- honeycomb/_generated/models/dataset_update_payload_settings.py +73 -0
- honeycomb/_generated/models/detailed_error.py +115 -0
- honeycomb/_generated/models/email_recipient.py +160 -0
- honeycomb/_generated/models/email_recipient_details.py +71 -0
- honeycomb/_generated/models/email_recipient_type.py +7 -0
- honeycomb/_generated/models/environment.py +112 -0
- honeycomb/_generated/models/environment_attributes.py +140 -0
- honeycomb/_generated/models/environment_attributes_color_type_1.py +7 -0
- honeycomb/_generated/models/environment_attributes_settings.py +70 -0
- honeycomb/_generated/models/environment_color.py +16 -0
- honeycomb/_generated/models/environment_links.py +70 -0
- honeycomb/_generated/models/environment_list_response.py +112 -0
- honeycomb/_generated/models/environment_relationship.py +79 -0
- honeycomb/_generated/models/environment_relationship_data.py +82 -0
- honeycomb/_generated/models/environment_relationship_data_type.py +7 -0
- honeycomb/_generated/models/environment_response.py +78 -0
- honeycomb/_generated/models/environment_type.py +7 -0
- honeycomb/_generated/models/error.py +74 -0
- honeycomb/_generated/models/event.py +71 -0
- honeycomb/_generated/models/exhaustion_time.py +174 -0
- honeycomb/_generated/models/exhaustion_time_alert_type.py +8 -0
- honeycomb/_generated/models/exhaustion_time_burn_alert_list_response.py +198 -0
- honeycomb/_generated/models/exhaustion_time_burn_alert_list_response_slo.py +77 -0
- honeycomb/_generated/models/filter_op.py +22 -0
- honeycomb/_generated/models/get_map_dependencies_response.py +169 -0
- honeycomb/_generated/models/get_map_dependencies_response_status.py +9 -0
- honeycomb/_generated/models/having_calculate_op.py +29 -0
- honeycomb/_generated/models/having_op.py +12 -0
- honeycomb/_generated/models/included_resource.py +106 -0
- honeycomb/_generated/models/included_resource_attributes.py +62 -0
- honeycomb/_generated/models/ingest_key_attributes.py +153 -0
- honeycomb/_generated/models/ingest_key_attributes_key_type.py +7 -0
- honeycomb/_generated/models/ingest_key_attributes_permissions.py +74 -0
- honeycomb/_generated/models/ingest_key_attributes_timestamps.py +107 -0
- honeycomb/_generated/models/ingest_key_type.py +90 -0
- honeycomb/_generated/models/ingest_key_type_key_type.py +7 -0
- honeycomb/_generated/models/jsonapi_error_source.py +92 -0
- honeycomb/_generated/models/kinesis_event.py +111 -0
- honeycomb/_generated/models/kinesis_event_record.py +73 -0
- honeycomb/_generated/models/kinesis_response.py +91 -0
- honeycomb/_generated/models/list_api_keys_filtertype.py +8 -0
- honeycomb/_generated/models/map_dependency.py +118 -0
- honeycomb/_generated/models/map_node.py +97 -0
- honeycomb/_generated/models/map_node_type.py +7 -0
- honeycomb/_generated/models/marker.py +151 -0
- honeycomb/_generated/models/marker_create_request.py +78 -0
- honeycomb/_generated/models/marker_create_request_data.py +104 -0
- honeycomb/_generated/models/marker_create_request_data_attributes.py +110 -0
- honeycomb/_generated/models/marker_create_request_data_relationships.py +92 -0
- honeycomb/_generated/models/marker_create_request_data_type.py +7 -0
- honeycomb/_generated/models/marker_object.py +136 -0
- honeycomb/_generated/models/marker_object_attributes.py +146 -0
- honeycomb/_generated/models/marker_object_attributes_timestamps.py +107 -0
- honeycomb/_generated/models/marker_object_links.py +74 -0
- honeycomb/_generated/models/marker_object_relationships.py +111 -0
- honeycomb/_generated/models/marker_object_relationships_dataset.py +104 -0
- honeycomb/_generated/models/marker_object_relationships_dataset_data_type_0.py +94 -0
- honeycomb/_generated/models/marker_object_relationships_dataset_data_type_0_type.py +7 -0
- honeycomb/_generated/models/marker_object_type.py +7 -0
- honeycomb/_generated/models/marker_response.py +78 -0
- honeycomb/_generated/models/marker_setting.py +125 -0
- honeycomb/_generated/models/marker_update_request.py +78 -0
- honeycomb/_generated/models/marker_update_request_data.py +104 -0
- honeycomb/_generated/models/marker_update_request_data_attributes.py +111 -0
- honeycomb/_generated/models/marker_update_request_data_relationships.py +92 -0
- honeycomb/_generated/models/marker_update_request_data_type.py +7 -0
- honeycomb/_generated/models/ms_teams_recipient.py +161 -0
- honeycomb/_generated/models/ms_teams_recipient_details.py +80 -0
- honeycomb/_generated/models/ms_teams_recipient_type.py +7 -0
- honeycomb/_generated/models/ms_teams_workflow_recipient.py +161 -0
- honeycomb/_generated/models/ms_teams_workflow_recipient_details.py +80 -0
- honeycomb/_generated/models/ms_teams_workflow_recipient_type.py +7 -0
- honeycomb/_generated/models/notification_recipient.py +131 -0
- honeycomb/_generated/models/notification_recipient_details.py +117 -0
- honeycomb/_generated/models/notification_recipient_details_pagerduty_severity.py +10 -0
- honeycomb/_generated/models/notification_recipient_details_variables_item.py +81 -0
- honeycomb/_generated/models/pager_duty_recipient.py +160 -0
- honeycomb/_generated/models/pager_duty_recipient_details.py +79 -0
- honeycomb/_generated/models/pager_duty_recipient_type.py +7 -0
- honeycomb/_generated/models/pagination_links.py +80 -0
- honeycomb/_generated/models/payload_template.py +73 -0
- honeycomb/_generated/models/pipeline_configuration_response.py +112 -0
- honeycomb/_generated/models/pipeline_configuration_response_attributes.py +101 -0
- honeycomb/_generated/models/pipeline_configuration_response_attributes_configs_item.py +85 -0
- honeycomb/_generated/models/pipeline_configuration_response_links.py +73 -0
- honeycomb/_generated/models/pipeline_configuration_response_type.py +7 -0
- honeycomb/_generated/models/pipeline_configuration_rollout.py +112 -0
- honeycomb/_generated/models/pipeline_configuration_rollout_attributes.py +75 -0
- honeycomb/_generated/models/pipeline_configuration_rollout_attributes_status.py +12 -0
- honeycomb/_generated/models/pipeline_configuration_rollout_links.py +73 -0
- honeycomb/_generated/models/pipeline_configuration_rollout_type.py +7 -0
- honeycomb/_generated/models/preset_filter.py +78 -0
- honeycomb/_generated/models/query.py +346 -0
- honeycomb/_generated/models/query_annotation.py +166 -0
- honeycomb/_generated/models/query_annotation_source.py +8 -0
- honeycomb/_generated/models/query_calculated_fields_item.py +80 -0
- honeycomb/_generated/models/query_calculations_item.py +98 -0
- honeycomb/_generated/models/query_compare_time_offset_seconds.py +14 -0
- honeycomb/_generated/models/query_filter_combination.py +8 -0
- honeycomb/_generated/models/query_filters_item.py +126 -0
- honeycomb/_generated/models/query_havings_item.py +128 -0
- honeycomb/_generated/models/query_op.py +30 -0
- honeycomb/_generated/models/query_orders_item.py +115 -0
- honeycomb/_generated/models/query_orders_item_order.py +8 -0
- honeycomb/_generated/models/query_panel.py +114 -0
- honeycomb/_generated/models/query_panel_query_panel.py +143 -0
- honeycomb/_generated/models/query_panel_query_panel_query_style.py +9 -0
- honeycomb/_generated/models/query_result.py +130 -0
- honeycomb/_generated/models/query_result_details.py +156 -0
- honeycomb/_generated/models/query_result_details_data.py +188 -0
- honeycomb/_generated/models/query_result_details_links.py +85 -0
- honeycomb/_generated/models/query_result_links.py +85 -0
- honeycomb/_generated/models/query_results_data.py +89 -0
- honeycomb/_generated/models/query_results_data_data.py +71 -0
- honeycomb/_generated/models/query_results_series.py +97 -0
- honeycomb/_generated/models/recipient_properties.py +137 -0
- honeycomb/_generated/models/recipient_type.py +12 -0
- honeycomb/_generated/models/slack_recipient.py +160 -0
- honeycomb/_generated/models/slack_recipient_details.py +71 -0
- honeycomb/_generated/models/slack_recipient_type.py +7 -0
- honeycomb/_generated/models/slo.py +245 -0
- honeycomb/_generated/models/slo_create.py +245 -0
- honeycomb/_generated/models/slo_create_sli.py +75 -0
- honeycomb/_generated/models/slo_detailed_response.py +312 -0
- honeycomb/_generated/models/slo_detailed_response_status.py +10 -0
- honeycomb/_generated/models/slo_history.py +94 -0
- honeycomb/_generated/models/slo_history_request.py +93 -0
- honeycomb/_generated/models/slo_history_response.py +91 -0
- honeycomb/_generated/models/slo_panel.py +114 -0
- honeycomb/_generated/models/slo_panel_slo_panel.py +75 -0
- honeycomb/_generated/models/slo_sli.py +74 -0
- honeycomb/_generated/models/tag.py +79 -0
- honeycomb/_generated/models/team_relationship.py +78 -0
- honeycomb/_generated/models/team_relationship_team.py +78 -0
- honeycomb/_generated/models/team_relationship_team_data.py +82 -0
- honeycomb/_generated/models/team_relationship_team_data_type.py +7 -0
- honeycomb/_generated/models/template_variable_definition.py +81 -0
- honeycomb/_generated/models/text_panel.py +114 -0
- honeycomb/_generated/models/text_panel_text_panel.py +71 -0
- honeycomb/_generated/models/trigger_response.py +399 -0
- honeycomb/_generated/models/trigger_with_inline_query.py +390 -0
- honeycomb/_generated/models/trigger_with_inline_query_query.py +60 -0
- honeycomb/_generated/models/trigger_with_query_reference.py +376 -0
- honeycomb/_generated/models/update_board_view_request.py +107 -0
- honeycomb/_generated/models/update_environment_request.py +78 -0
- honeycomb/_generated/models/update_environment_request_data.py +98 -0
- honeycomb/_generated/models/update_environment_request_data_attributes.py +118 -0
- honeycomb/_generated/models/update_environment_request_data_attributes_settings.py +73 -0
- honeycomb/_generated/models/update_environment_request_data_type.py +7 -0
- honeycomb/_generated/models/update_exhaustion_time_burn_alert_request.py +202 -0
- honeycomb/_generated/models/update_pipeline_configuration_rollout.py +98 -0
- honeycomb/_generated/models/update_pipeline_configuration_rollout_attributes.py +75 -0
- honeycomb/_generated/models/update_pipeline_configuration_rollout_attributes_status.py +12 -0
- honeycomb/_generated/models/update_pipeline_configuration_rollout_request.py +78 -0
- honeycomb/_generated/models/update_pipeline_configuration_rollout_request_data.py +98 -0
- honeycomb/_generated/models/update_pipeline_configuration_rollout_request_data_attributes.py +75 -0
- honeycomb/_generated/models/update_pipeline_configuration_rollout_request_data_attributes_status.py +12 -0
- honeycomb/_generated/models/update_pipeline_configuration_rollout_request_data_type.py +7 -0
- honeycomb/_generated/models/update_pipeline_configuration_rollout_response.py +78 -0
- honeycomb/_generated/models/update_pipeline_configuration_rollout_type.py +7 -0
- honeycomb/_generated/models/user_relationship.py +78 -0
- honeycomb/_generated/models/user_relationship_data.py +82 -0
- honeycomb/_generated/models/user_relationship_data_type.py +7 -0
- honeycomb/_generated/models/validation_error.py +145 -0
- honeycomb/_generated/models/validation_error_type_detail_item.py +103 -0
- honeycomb/_generated/models/validation_error_type_detail_item_code.py +10 -0
- honeycomb/_generated/models/webhook_header.py +81 -0
- honeycomb/_generated/models/webhook_recipient.py +160 -0
- honeycomb/_generated/models/webhook_recipient_details.py +142 -0
- honeycomb/_generated/models/webhook_recipient_details_webhook_payloads.py +117 -0
- honeycomb/_generated/models/webhook_recipient_details_webhook_payloads_payload_templates.py +126 -0
- honeycomb/_generated/models/webhook_recipient_type.py +7 -0
- honeycomb/_generated/py.typed +1 -0
- honeycomb/_generated/types.py +46 -0
- honeycomb/auth.py +152 -0
- honeycomb/client.py +736 -0
- honeycomb/exceptions.py +236 -0
- honeycomb/models/__init__.py +157 -0
- honeycomb/models/api_keys.py +81 -0
- honeycomb/models/board_builder.py +387 -0
- honeycomb/models/boards.py +86 -0
- honeycomb/models/burn_alerts.py +124 -0
- honeycomb/models/columns.py +59 -0
- honeycomb/models/datasets.py +51 -0
- honeycomb/models/derived_columns.py +107 -0
- honeycomb/models/environments.py +106 -0
- honeycomb/models/events.py +35 -0
- honeycomb/models/marker_builder.py +136 -0
- honeycomb/models/markers.py +73 -0
- honeycomb/models/queries.py +210 -0
- honeycomb/models/query_annotations.py +63 -0
- honeycomb/models/query_builder.py +840 -0
- honeycomb/models/recipient_builder.py +248 -0
- honeycomb/models/recipients.py +43 -0
- honeycomb/models/service_map_dependencies.py +126 -0
- honeycomb/models/slo_builder.py +463 -0
- honeycomb/models/slos.py +66 -0
- honeycomb/models/tags_mixin.py +79 -0
- honeycomb/models/trigger_builder.py +561 -0
- honeycomb/models/triggers.py +208 -0
- honeycomb/resources/__init__.py +35 -0
- honeycomb/resources/_recipient_utils.py +156 -0
- honeycomb/resources/api_keys.py +303 -0
- honeycomb/resources/base.py +142 -0
- honeycomb/resources/boards.py +350 -0
- honeycomb/resources/burn_alerts.py +205 -0
- honeycomb/resources/columns.py +185 -0
- honeycomb/resources/datasets.py +163 -0
- honeycomb/resources/derived_columns.py +233 -0
- honeycomb/resources/environments.py +295 -0
- honeycomb/resources/events.py +156 -0
- honeycomb/resources/markers.py +334 -0
- honeycomb/resources/queries.py +256 -0
- honeycomb/resources/query_annotations.py +207 -0
- honeycomb/resources/query_results.py +886 -0
- honeycomb/resources/recipients.py +202 -0
- honeycomb/resources/service_map_dependencies.py +389 -0
- honeycomb/resources/slos.py +353 -0
- honeycomb/resources/triggers.py +284 -0
- honeycomb/tools/__init__.py +85 -0
- honeycomb/tools/__main__.py +204 -0
- honeycomb/tools/builders.py +512 -0
- honeycomb/tools/descriptions.py +523 -0
- honeycomb/tools/executor.py +860 -0
- honeycomb/tools/generator.py +2386 -0
- honeycomb/tools/schemas.py +184 -0
- honeycomb_api-0.1.0.dist-info/METADATA +451 -0
- honeycomb_api-0.1.0.dist-info/RECORD +453 -0
- honeycomb_api-0.1.0.dist-info/WHEEL +4 -0
- honeycomb_api-0.1.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
from typing import Any, TypeVar, Optional, BinaryIO, TextIO, TYPE_CHECKING
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
from ..types import UNSET, Unset
|
|
7
|
+
|
|
8
|
+
from ..models.query_panel_query_panel_query_style import QueryPanelQueryPanelQueryStyle
|
|
9
|
+
from ..types import UNSET, Unset
|
|
10
|
+
from typing import cast
|
|
11
|
+
from typing import Union
|
|
12
|
+
|
|
13
|
+
if TYPE_CHECKING:
|
|
14
|
+
from ..models.board_query_visualization_settings import BoardQueryVisualizationSettings
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
T = TypeVar("T", bound="QueryPanelQueryPanel")
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
@_attrs_define
|
|
25
|
+
class QueryPanelQueryPanel:
|
|
26
|
+
"""
|
|
27
|
+
Attributes:
|
|
28
|
+
query_id (str): The ID of the Query to display on the board. The Query must be in the same environment as the
|
|
29
|
+
board.
|
|
30
|
+
Example: abc1234e.
|
|
31
|
+
query_annotation_id (str): The ID of a Query Annotation that provides a name and description for the Query. The
|
|
32
|
+
Query Annotation must apply to the `query_id` or `query` specified.
|
|
33
|
+
Example: e4c24a35.
|
|
34
|
+
query_style (Union[Unset, QueryPanelQueryPanelQueryStyle]): How the query should be displayed on the board.
|
|
35
|
+
Default: QueryPanelQueryPanelQueryStyle.GRAPH.
|
|
36
|
+
dataset (Union[Unset, str]): The dataset name to which the query is scoped. Empty for environment-wide queries.
|
|
37
|
+
Example: My Dataset.
|
|
38
|
+
visualization_settings (Union[Unset, BoardQueryVisualizationSettings]): A map of values to control the display
|
|
39
|
+
settings for the Query on the Board. Unspecified boolean values are assumed to be `false`. Unspecified integers
|
|
40
|
+
are assumed to be `0`, unspecified arrays are assumed to be null and unspecified strings are assumed to be
|
|
41
|
+
empty. This is incompatible with the `graph_settings` field.
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
query_id: str
|
|
45
|
+
query_annotation_id: str
|
|
46
|
+
query_style: Union[Unset, QueryPanelQueryPanelQueryStyle] = QueryPanelQueryPanelQueryStyle.GRAPH
|
|
47
|
+
dataset: Union[Unset, str] = UNSET
|
|
48
|
+
visualization_settings: Union[Unset, 'BoardQueryVisualizationSettings'] = UNSET
|
|
49
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def to_dict(self) -> dict[str, Any]:
|
|
53
|
+
from ..models.board_query_visualization_settings import BoardQueryVisualizationSettings
|
|
54
|
+
query_id = self.query_id
|
|
55
|
+
|
|
56
|
+
query_annotation_id = self.query_annotation_id
|
|
57
|
+
|
|
58
|
+
query_style: Union[Unset, str] = UNSET
|
|
59
|
+
if not isinstance(self.query_style, Unset):
|
|
60
|
+
query_style = self.query_style.value
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
dataset = self.dataset
|
|
64
|
+
|
|
65
|
+
visualization_settings: Union[Unset, dict[str, Any]] = UNSET
|
|
66
|
+
if not isinstance(self.visualization_settings, Unset):
|
|
67
|
+
visualization_settings = self.visualization_settings.to_dict()
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
field_dict: dict[str, Any] = {}
|
|
71
|
+
field_dict.update(self.additional_properties)
|
|
72
|
+
field_dict.update({
|
|
73
|
+
"query_id": query_id,
|
|
74
|
+
"query_annotation_id": query_annotation_id,
|
|
75
|
+
})
|
|
76
|
+
if query_style is not UNSET:
|
|
77
|
+
field_dict["query_style"] = query_style
|
|
78
|
+
if dataset is not UNSET:
|
|
79
|
+
field_dict["dataset"] = dataset
|
|
80
|
+
if visualization_settings is not UNSET:
|
|
81
|
+
field_dict["visualization_settings"] = visualization_settings
|
|
82
|
+
|
|
83
|
+
return field_dict
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
@classmethod
|
|
88
|
+
def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
|
|
89
|
+
from ..models.board_query_visualization_settings import BoardQueryVisualizationSettings
|
|
90
|
+
d = src_dict.copy()
|
|
91
|
+
query_id = d.pop("query_id")
|
|
92
|
+
|
|
93
|
+
query_annotation_id = d.pop("query_annotation_id")
|
|
94
|
+
|
|
95
|
+
_query_style = d.pop("query_style", UNSET)
|
|
96
|
+
query_style: Union[Unset, QueryPanelQueryPanelQueryStyle]
|
|
97
|
+
if isinstance(_query_style, Unset):
|
|
98
|
+
query_style = UNSET
|
|
99
|
+
else:
|
|
100
|
+
query_style = QueryPanelQueryPanelQueryStyle(_query_style)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
dataset = d.pop("dataset", UNSET)
|
|
106
|
+
|
|
107
|
+
_visualization_settings = d.pop("visualization_settings", UNSET)
|
|
108
|
+
visualization_settings: Union[Unset, BoardQueryVisualizationSettings]
|
|
109
|
+
if isinstance(_visualization_settings, Unset):
|
|
110
|
+
visualization_settings = UNSET
|
|
111
|
+
else:
|
|
112
|
+
visualization_settings = BoardQueryVisualizationSettings.from_dict(_visualization_settings)
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
query_panel_query_panel = cls(
|
|
118
|
+
query_id=query_id,
|
|
119
|
+
query_annotation_id=query_annotation_id,
|
|
120
|
+
query_style=query_style,
|
|
121
|
+
dataset=dataset,
|
|
122
|
+
visualization_settings=visualization_settings,
|
|
123
|
+
)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
query_panel_query_panel.additional_properties = d
|
|
127
|
+
return query_panel_query_panel
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
def additional_keys(self) -> list[str]:
|
|
131
|
+
return list(self.additional_properties.keys())
|
|
132
|
+
|
|
133
|
+
def __getitem__(self, key: str) -> Any:
|
|
134
|
+
return self.additional_properties[key]
|
|
135
|
+
|
|
136
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
137
|
+
self.additional_properties[key] = value
|
|
138
|
+
|
|
139
|
+
def __delitem__(self, key: str) -> None:
|
|
140
|
+
del self.additional_properties[key]
|
|
141
|
+
|
|
142
|
+
def __contains__(self, key: str) -> bool:
|
|
143
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
from typing import Any, TypeVar, Optional, BinaryIO, TextIO, TYPE_CHECKING
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
from ..types import UNSET, Unset
|
|
7
|
+
|
|
8
|
+
from ..types import UNSET, Unset
|
|
9
|
+
from typing import cast
|
|
10
|
+
from typing import Union
|
|
11
|
+
|
|
12
|
+
if TYPE_CHECKING:
|
|
13
|
+
from ..models.query import Query
|
|
14
|
+
from ..models.query_result_links import QueryResultLinks
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
T = TypeVar("T", bound="QueryResult")
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
@_attrs_define
|
|
25
|
+
class QueryResult:
|
|
26
|
+
""" A Query Result is created with the Query ID.
|
|
27
|
+
|
|
28
|
+
Attributes:
|
|
29
|
+
query (Union[Unset, Query]):
|
|
30
|
+
id (Union[Unset, str]): The unique identifier (ID) of a Query Result. Example: sGUnkBHgRFN.
|
|
31
|
+
complete (Union[Unset, bool]): Indicates if the query results are available yet or not. For example, is the
|
|
32
|
+
query still being processed or complete?
|
|
33
|
+
links (Union[Unset, QueryResultLinks]): An object containing UI links to the query result and query result graph
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
query: Union[Unset, 'Query'] = UNSET
|
|
37
|
+
id: Union[Unset, str] = UNSET
|
|
38
|
+
complete: Union[Unset, bool] = UNSET
|
|
39
|
+
links: Union[Unset, 'QueryResultLinks'] = UNSET
|
|
40
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def to_dict(self) -> dict[str, Any]:
|
|
44
|
+
from ..models.query import Query
|
|
45
|
+
from ..models.query_result_links import QueryResultLinks
|
|
46
|
+
query: Union[Unset, dict[str, Any]] = UNSET
|
|
47
|
+
if not isinstance(self.query, Unset):
|
|
48
|
+
query = self.query.to_dict()
|
|
49
|
+
|
|
50
|
+
id = self.id
|
|
51
|
+
|
|
52
|
+
complete = self.complete
|
|
53
|
+
|
|
54
|
+
links: Union[Unset, dict[str, Any]] = UNSET
|
|
55
|
+
if not isinstance(self.links, Unset):
|
|
56
|
+
links = self.links.to_dict()
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
field_dict: dict[str, Any] = {}
|
|
60
|
+
field_dict.update(self.additional_properties)
|
|
61
|
+
field_dict.update({
|
|
62
|
+
})
|
|
63
|
+
if query is not UNSET:
|
|
64
|
+
field_dict["query"] = query
|
|
65
|
+
if id is not UNSET:
|
|
66
|
+
field_dict["id"] = id
|
|
67
|
+
if complete is not UNSET:
|
|
68
|
+
field_dict["complete"] = complete
|
|
69
|
+
if links is not UNSET:
|
|
70
|
+
field_dict["links"] = links
|
|
71
|
+
|
|
72
|
+
return field_dict
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
@classmethod
|
|
77
|
+
def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
|
|
78
|
+
from ..models.query import Query
|
|
79
|
+
from ..models.query_result_links import QueryResultLinks
|
|
80
|
+
d = src_dict.copy()
|
|
81
|
+
_query = d.pop("query", UNSET)
|
|
82
|
+
query: Union[Unset, Query]
|
|
83
|
+
if isinstance(_query, Unset):
|
|
84
|
+
query = UNSET
|
|
85
|
+
else:
|
|
86
|
+
query = Query.from_dict(_query)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
id = d.pop("id", UNSET)
|
|
92
|
+
|
|
93
|
+
complete = d.pop("complete", UNSET)
|
|
94
|
+
|
|
95
|
+
_links = d.pop("links", UNSET)
|
|
96
|
+
links: Union[Unset, QueryResultLinks]
|
|
97
|
+
if isinstance(_links, Unset):
|
|
98
|
+
links = UNSET
|
|
99
|
+
else:
|
|
100
|
+
links = QueryResultLinks.from_dict(_links)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
query_result = cls(
|
|
106
|
+
query=query,
|
|
107
|
+
id=id,
|
|
108
|
+
complete=complete,
|
|
109
|
+
links=links,
|
|
110
|
+
)
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
query_result.additional_properties = d
|
|
114
|
+
return query_result
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
def additional_keys(self) -> list[str]:
|
|
118
|
+
return list(self.additional_properties.keys())
|
|
119
|
+
|
|
120
|
+
def __getitem__(self, key: str) -> Any:
|
|
121
|
+
return self.additional_properties[key]
|
|
122
|
+
|
|
123
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
124
|
+
self.additional_properties[key] = value
|
|
125
|
+
|
|
126
|
+
def __delitem__(self, key: str) -> None:
|
|
127
|
+
del self.additional_properties[key]
|
|
128
|
+
|
|
129
|
+
def __contains__(self, key: str) -> bool:
|
|
130
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
from typing import Any, TypeVar, Optional, BinaryIO, TextIO, TYPE_CHECKING
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
from ..types import UNSET, Unset
|
|
7
|
+
|
|
8
|
+
from ..types import UNSET, Unset
|
|
9
|
+
from typing import cast
|
|
10
|
+
from typing import Union
|
|
11
|
+
|
|
12
|
+
if TYPE_CHECKING:
|
|
13
|
+
from ..models.query import Query
|
|
14
|
+
from ..models.query_result_details_links import QueryResultDetailsLinks
|
|
15
|
+
from ..models.query_result_details_data import QueryResultDetailsData
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
T = TypeVar("T", bound="QueryResultDetails")
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
@_attrs_define
|
|
26
|
+
class QueryResultDetails:
|
|
27
|
+
""" Query Results for the Query ID.
|
|
28
|
+
The response body will be a JSON object with "complete": true and the results populated once the query is complete.
|
|
29
|
+
The response body will contain caching headers to indicate that once complete, and the Query Result may be cached,
|
|
30
|
+
as it will not change.
|
|
31
|
+
|
|
32
|
+
Attributes:
|
|
33
|
+
query (Union[Unset, Query]):
|
|
34
|
+
id (Union[Unset, str]): The unique identifier (ID) of a Query Result Example: sGUnkBHgRFN.
|
|
35
|
+
complete (Union[Unset, bool]): Indicates if the query results are available yet or not. For example, is the
|
|
36
|
+
query still being processed or complete? Example: True.
|
|
37
|
+
data (Union[Unset, QueryResultDetailsData]): An object containing the query result data
|
|
38
|
+
links (Union[Unset, QueryResultDetailsLinks]): An object containing UI links to the query result and query
|
|
39
|
+
result graph
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
query: Union[Unset, 'Query'] = UNSET
|
|
43
|
+
id: Union[Unset, str] = UNSET
|
|
44
|
+
complete: Union[Unset, bool] = UNSET
|
|
45
|
+
data: Union[Unset, 'QueryResultDetailsData'] = UNSET
|
|
46
|
+
links: Union[Unset, 'QueryResultDetailsLinks'] = UNSET
|
|
47
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def to_dict(self) -> dict[str, Any]:
|
|
51
|
+
from ..models.query import Query
|
|
52
|
+
from ..models.query_result_details_links import QueryResultDetailsLinks
|
|
53
|
+
from ..models.query_result_details_data import QueryResultDetailsData
|
|
54
|
+
query: Union[Unset, dict[str, Any]] = UNSET
|
|
55
|
+
if not isinstance(self.query, Unset):
|
|
56
|
+
query = self.query.to_dict()
|
|
57
|
+
|
|
58
|
+
id = self.id
|
|
59
|
+
|
|
60
|
+
complete = self.complete
|
|
61
|
+
|
|
62
|
+
data: Union[Unset, dict[str, Any]] = UNSET
|
|
63
|
+
if not isinstance(self.data, Unset):
|
|
64
|
+
data = self.data.to_dict()
|
|
65
|
+
|
|
66
|
+
links: Union[Unset, dict[str, Any]] = UNSET
|
|
67
|
+
if not isinstance(self.links, Unset):
|
|
68
|
+
links = self.links.to_dict()
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
field_dict: dict[str, Any] = {}
|
|
72
|
+
field_dict.update(self.additional_properties)
|
|
73
|
+
field_dict.update({
|
|
74
|
+
})
|
|
75
|
+
if query is not UNSET:
|
|
76
|
+
field_dict["query"] = query
|
|
77
|
+
if id is not UNSET:
|
|
78
|
+
field_dict["id"] = id
|
|
79
|
+
if complete is not UNSET:
|
|
80
|
+
field_dict["complete"] = complete
|
|
81
|
+
if data is not UNSET:
|
|
82
|
+
field_dict["data"] = data
|
|
83
|
+
if links is not UNSET:
|
|
84
|
+
field_dict["links"] = links
|
|
85
|
+
|
|
86
|
+
return field_dict
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
@classmethod
|
|
91
|
+
def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
|
|
92
|
+
from ..models.query import Query
|
|
93
|
+
from ..models.query_result_details_links import QueryResultDetailsLinks
|
|
94
|
+
from ..models.query_result_details_data import QueryResultDetailsData
|
|
95
|
+
d = src_dict.copy()
|
|
96
|
+
_query = d.pop("query", UNSET)
|
|
97
|
+
query: Union[Unset, Query]
|
|
98
|
+
if isinstance(_query, Unset):
|
|
99
|
+
query = UNSET
|
|
100
|
+
else:
|
|
101
|
+
query = Query.from_dict(_query)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
id = d.pop("id", UNSET)
|
|
107
|
+
|
|
108
|
+
complete = d.pop("complete", UNSET)
|
|
109
|
+
|
|
110
|
+
_data = d.pop("data", UNSET)
|
|
111
|
+
data: Union[Unset, QueryResultDetailsData]
|
|
112
|
+
if isinstance(_data, Unset):
|
|
113
|
+
data = UNSET
|
|
114
|
+
else:
|
|
115
|
+
data = QueryResultDetailsData.from_dict(_data)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
_links = d.pop("links", UNSET)
|
|
121
|
+
links: Union[Unset, QueryResultDetailsLinks]
|
|
122
|
+
if isinstance(_links, Unset):
|
|
123
|
+
links = UNSET
|
|
124
|
+
else:
|
|
125
|
+
links = QueryResultDetailsLinks.from_dict(_links)
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
query_result_details = cls(
|
|
131
|
+
query=query,
|
|
132
|
+
id=id,
|
|
133
|
+
complete=complete,
|
|
134
|
+
data=data,
|
|
135
|
+
links=links,
|
|
136
|
+
)
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
query_result_details.additional_properties = d
|
|
140
|
+
return query_result_details
|
|
141
|
+
|
|
142
|
+
@property
|
|
143
|
+
def additional_keys(self) -> list[str]:
|
|
144
|
+
return list(self.additional_properties.keys())
|
|
145
|
+
|
|
146
|
+
def __getitem__(self, key: str) -> Any:
|
|
147
|
+
return self.additional_properties[key]
|
|
148
|
+
|
|
149
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
150
|
+
self.additional_properties[key] = value
|
|
151
|
+
|
|
152
|
+
def __delitem__(self, key: str) -> None:
|
|
153
|
+
del self.additional_properties[key]
|
|
154
|
+
|
|
155
|
+
def __contains__(self, key: str) -> bool:
|
|
156
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
from typing import Any, TypeVar, Optional, BinaryIO, TextIO, TYPE_CHECKING
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
from ..types import UNSET, Unset
|
|
7
|
+
|
|
8
|
+
from ..types import UNSET, Unset
|
|
9
|
+
from typing import cast
|
|
10
|
+
from typing import Union
|
|
11
|
+
|
|
12
|
+
if TYPE_CHECKING:
|
|
13
|
+
from ..models.query_results_series import QueryResultsSeries
|
|
14
|
+
from ..models.query_results_data import QueryResultsData
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
T = TypeVar("T", bound="QueryResultDetailsData")
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
@_attrs_define
|
|
25
|
+
class QueryResultDetailsData:
|
|
26
|
+
""" An object containing the query result data
|
|
27
|
+
|
|
28
|
+
Attributes:
|
|
29
|
+
series (Union[Unset, list['QueryResultsSeries']]): Timeseries data from the query result (equivalent to the
|
|
30
|
+
graph data in the Honeycomb UI)
|
|
31
|
+
results (Union[Unset, list['QueryResultsData']]): Query results data (equivalent to the Overview in the
|
|
32
|
+
Honeycomb UI below the graph)
|
|
33
|
+
total_by_aggregate (Union[Unset, QueryResultsData]): Query result details
|
|
34
|
+
total_by_aggregate_series (Union[Unset, list['QueryResultsSeries']]): Timeseries data showing the total value of
|
|
35
|
+
each aggregate returned in `total_by_aggregate` across the time range. Aggregate values returned do not respect
|
|
36
|
+
any Having clauses included in a query. Only available if both `disable_total_by_aggregate` and `disable_series`
|
|
37
|
+
are set to `false`.
|
|
38
|
+
other_by_aggregate (Union[Unset, QueryResultsData]): Query result details
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
series: Union[Unset, list['QueryResultsSeries']] = UNSET
|
|
42
|
+
results: Union[Unset, list['QueryResultsData']] = UNSET
|
|
43
|
+
total_by_aggregate: Union[Unset, 'QueryResultsData'] = UNSET
|
|
44
|
+
total_by_aggregate_series: Union[Unset, list['QueryResultsSeries']] = UNSET
|
|
45
|
+
other_by_aggregate: Union[Unset, 'QueryResultsData'] = UNSET
|
|
46
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def to_dict(self) -> dict[str, Any]:
|
|
50
|
+
from ..models.query_results_series import QueryResultsSeries
|
|
51
|
+
from ..models.query_results_data import QueryResultsData
|
|
52
|
+
series: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
53
|
+
if not isinstance(self.series, Unset):
|
|
54
|
+
series = []
|
|
55
|
+
for series_item_data in self.series:
|
|
56
|
+
series_item = series_item_data.to_dict()
|
|
57
|
+
series.append(series_item)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
results: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
62
|
+
if not isinstance(self.results, Unset):
|
|
63
|
+
results = []
|
|
64
|
+
for results_item_data in self.results:
|
|
65
|
+
results_item = results_item_data.to_dict()
|
|
66
|
+
results.append(results_item)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
total_by_aggregate: Union[Unset, dict[str, Any]] = UNSET
|
|
71
|
+
if not isinstance(self.total_by_aggregate, Unset):
|
|
72
|
+
total_by_aggregate = self.total_by_aggregate.to_dict()
|
|
73
|
+
|
|
74
|
+
total_by_aggregate_series: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
75
|
+
if not isinstance(self.total_by_aggregate_series, Unset):
|
|
76
|
+
total_by_aggregate_series = []
|
|
77
|
+
for total_by_aggregate_series_item_data in self.total_by_aggregate_series:
|
|
78
|
+
total_by_aggregate_series_item = total_by_aggregate_series_item_data.to_dict()
|
|
79
|
+
total_by_aggregate_series.append(total_by_aggregate_series_item)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
other_by_aggregate: Union[Unset, dict[str, Any]] = UNSET
|
|
84
|
+
if not isinstance(self.other_by_aggregate, Unset):
|
|
85
|
+
other_by_aggregate = self.other_by_aggregate.to_dict()
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
field_dict: dict[str, Any] = {}
|
|
89
|
+
field_dict.update(self.additional_properties)
|
|
90
|
+
field_dict.update({
|
|
91
|
+
})
|
|
92
|
+
if series is not UNSET:
|
|
93
|
+
field_dict["series"] = series
|
|
94
|
+
if results is not UNSET:
|
|
95
|
+
field_dict["results"] = results
|
|
96
|
+
if total_by_aggregate is not UNSET:
|
|
97
|
+
field_dict["total_by_aggregate"] = total_by_aggregate
|
|
98
|
+
if total_by_aggregate_series is not UNSET:
|
|
99
|
+
field_dict["total_by_aggregate_series"] = total_by_aggregate_series
|
|
100
|
+
if other_by_aggregate is not UNSET:
|
|
101
|
+
field_dict["other_by_aggregate"] = other_by_aggregate
|
|
102
|
+
|
|
103
|
+
return field_dict
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
@classmethod
|
|
108
|
+
def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
|
|
109
|
+
from ..models.query_results_series import QueryResultsSeries
|
|
110
|
+
from ..models.query_results_data import QueryResultsData
|
|
111
|
+
d = src_dict.copy()
|
|
112
|
+
series = []
|
|
113
|
+
_series = d.pop("series", UNSET)
|
|
114
|
+
for series_item_data in (_series or []):
|
|
115
|
+
series_item = QueryResultsSeries.from_dict(series_item_data)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
series.append(series_item)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
results = []
|
|
123
|
+
_results = d.pop("results", UNSET)
|
|
124
|
+
for results_item_data in (_results or []):
|
|
125
|
+
results_item = QueryResultsData.from_dict(results_item_data)
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
results.append(results_item)
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
_total_by_aggregate = d.pop("total_by_aggregate", UNSET)
|
|
133
|
+
total_by_aggregate: Union[Unset, QueryResultsData]
|
|
134
|
+
if isinstance(_total_by_aggregate, Unset):
|
|
135
|
+
total_by_aggregate = UNSET
|
|
136
|
+
else:
|
|
137
|
+
total_by_aggregate = QueryResultsData.from_dict(_total_by_aggregate)
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
total_by_aggregate_series = []
|
|
143
|
+
_total_by_aggregate_series = d.pop("total_by_aggregate_series", UNSET)
|
|
144
|
+
for total_by_aggregate_series_item_data in (_total_by_aggregate_series or []):
|
|
145
|
+
total_by_aggregate_series_item = QueryResultsSeries.from_dict(total_by_aggregate_series_item_data)
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
total_by_aggregate_series.append(total_by_aggregate_series_item)
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
_other_by_aggregate = d.pop("other_by_aggregate", UNSET)
|
|
153
|
+
other_by_aggregate: Union[Unset, QueryResultsData]
|
|
154
|
+
if isinstance(_other_by_aggregate, Unset):
|
|
155
|
+
other_by_aggregate = UNSET
|
|
156
|
+
else:
|
|
157
|
+
other_by_aggregate = QueryResultsData.from_dict(_other_by_aggregate)
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
query_result_details_data = cls(
|
|
163
|
+
series=series,
|
|
164
|
+
results=results,
|
|
165
|
+
total_by_aggregate=total_by_aggregate,
|
|
166
|
+
total_by_aggregate_series=total_by_aggregate_series,
|
|
167
|
+
other_by_aggregate=other_by_aggregate,
|
|
168
|
+
)
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
query_result_details_data.additional_properties = d
|
|
172
|
+
return query_result_details_data
|
|
173
|
+
|
|
174
|
+
@property
|
|
175
|
+
def additional_keys(self) -> list[str]:
|
|
176
|
+
return list(self.additional_properties.keys())
|
|
177
|
+
|
|
178
|
+
def __getitem__(self, key: str) -> Any:
|
|
179
|
+
return self.additional_properties[key]
|
|
180
|
+
|
|
181
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
182
|
+
self.additional_properties[key] = value
|
|
183
|
+
|
|
184
|
+
def __delitem__(self, key: str) -> None:
|
|
185
|
+
del self.additional_properties[key]
|
|
186
|
+
|
|
187
|
+
def __contains__(self, key: str) -> bool:
|
|
188
|
+
return key in self.additional_properties
|