diff --git a/.gitignore b/.gitignore index 43995bd..65b06b9 100644 --- a/.gitignore +++ b/.gitignore @@ -62,5 +62,5 @@ docs/_build/ # PyBuilder target/ -#Ipython Notebook +# Ipython Notebook .ipynb_checkpoints diff --git a/.openapi-generator-ignore b/.openapi-generator-ignore index 4ca0fa6..bbc5673 100644 --- a/.openapi-generator-ignore +++ b/.openapi-generator-ignore @@ -28,5 +28,6 @@ openapi-generator-config.json .github/ # Custom fixes for OpenAPI documentation issues -instana_client/api/application_resources_api.py +# application_resources_api.py - No longer needed, new spec fixes the API design +# tag_filter.py - STILL NEEDED: New spec uses Dict[str, Any] which doesn't support string/int/bool values instana_client/models/tag_filter.py diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index ea9d5e9..aeefcb3 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,7 +1,5 @@ -.github/workflows/python.yml .gitignore .gitlab-ci.yml -.openapi-generator-ignore .travis.yml README.md docs/AIManagementApi.md @@ -112,7 +110,6 @@ docs/CrashMobileAppAlertRule.md docs/CreateWebsiteRequestInner.md docs/CursorPaginatedBusinessActivityItem.md docs/CursorPagination.md -docs/CursorPaginationInfraExploreCursor.md docs/CustomBlueprintIndicator.md docs/CustomDashboard.md docs/CustomDashboardPreview.md @@ -132,12 +129,14 @@ docs/CustomPayloadConfiguration.md docs/CustomPayloadField.md docs/CustomPayloadWithLastUpdated.md docs/CustomPayloadWithVersion.md +docs/CustomTag.md docs/DNSConfiguration.md docs/DNSConfigurationUpdate.md docs/DNSFilterQueryTime.md docs/DNSFilterTargetValue.md docs/DashboardApiToken.md docs/DatabaseIntegration.md +docs/DefaultApi.md docs/DeprecatedTagFilter.md docs/Division.md docs/Duration.md @@ -195,6 +194,7 @@ docs/GetMobileAppMetrics.md docs/GetMobileAppMetricsV2.md docs/GetPayloadKeysResult.md docs/GetServices.md +docs/GetSessionReplayMetadataResult.md docs/GetSnapshotsQuery.md docs/GetTestResult.md docs/GetTestResultAnalytic.md @@ -233,6 +233,7 @@ docs/HttpScriptConfiguration.md docs/HttpScriptConfigurationUpdate.md docs/HyperParam.md docs/IdentityProviderPatch.md +docs/IdpStatusUpdate.md docs/ImpactedBeaconInfo.md docs/InfraAlertConfig.md docs/InfraAlertConfigWithMetadata.md @@ -261,7 +262,13 @@ docs/IpMaskingConfiguration.md docs/JsStackTraceLine.md docs/KubernetesPhysicalContext.md docs/LLMEgressGateway.md +docs/LLMGatewayCapability.md +docs/LLMGatewayModel.md +docs/LLMGatewayService.md +docs/LLMPriceConfigurationApi.md docs/LatencyBlueprintIndicator.md +docs/LlmModelPrice.md +docs/LlmModelPriceMetadata.md docs/LocationStatus.md docs/LogAlertConfig.md docs/LogAlertConfigWithMetadata.md @@ -303,6 +310,7 @@ docs/MetricsResultItem.md docs/MetricsTestResultItem.md docs/MobileApp.md docs/MobileAppAlertConfig.md +docs/MobileAppAlertConfigWithRBACTag.md docs/MobileAppAlertRule.md docs/MobileAppAnalyzeApi.md docs/MobileAppBeaconGroupsItem.md @@ -324,6 +332,7 @@ docs/MonitoredEntitiesStats.md docs/MonitoringState.md docs/MultipleScriptsConfiguration.md docs/Multiplication.md +docs/NS1Integration.md docs/NestedOperation.md docs/NewApplicationConfig.md docs/NewBusinessPerspectiveConfig.md @@ -370,6 +379,7 @@ docs/RunConfiguration.md docs/SLIReportApi.md docs/SLISettingsApi.md docs/SLOConfigWithRBACTag.md +docs/SLOConfigurationsApi.md docs/SLOCorrectionConfigurationsApi.md docs/SLOCorrectionWindowsApi.md docs/SSLCertificateConfiguration.md @@ -390,7 +400,6 @@ docs/ServiceLevelsAlertConfigurationApi.md docs/ServiceLevelsAlertRule.md docs/ServiceLevelsBurnRateConfig.md docs/ServiceLevelsBurnRateTimeWindows.md -docs/ServiceLevelsObjectiveSLOConfigurationsApi.md docs/ServiceLevelsObjectiveSLOReportApi.md docs/ServiceLevelsStaticThresholdConfig.md docs/ServiceLevelsTimeThreshold.md @@ -408,6 +417,8 @@ docs/ServiceScopeWithMetadata.md docs/ServiceScopedTo.md docs/ServiceScopedToWithMetadata.md docs/ServiceSimple.md +docs/SessionReplayMetadata.md +docs/SessionReplayTimestamps.md docs/SessionSettings.md docs/SessionSettingsApi.md docs/SimpleMetricConfiguration.md @@ -447,6 +458,7 @@ docs/StatusCodeWebsiteAlertRule.md docs/Subtraction.md docs/SyntheticAlertConfig.md docs/SyntheticAlertConfigWithMetadata.md +docs/SyntheticAlertConfigWithRBACTag.md docs/SyntheticAlertConfigurationApi.md docs/SyntheticAlertRule.md docs/SyntheticBulkResponse.md @@ -563,6 +575,7 @@ docs/WebpageScriptConfigurationUpdate.md docs/Website.md docs/WebsiteAlertConfig.md docs/WebsiteAlertConfigWithMetadata.md +docs/WebsiteAlertConfigWithRBACTag.md docs/WebsiteAlertRule.md docs/WebsiteAnalyzeApi.md docs/WebsiteApdexEntity.md @@ -584,7 +597,7 @@ docs/WebsiteSloEntity.md docs/WebsiteTimeBasedSliEntity.md docs/WebsiteTimeThreshold.md docs/Widget.md -docs/WithMetadata.md +docs/WithMetaData.md docs/WithResolvedName.md docs/ZChatOpsIntegration.md git_push.sh @@ -608,6 +621,7 @@ instana_client/api/authentication_api.py instana_client/api/business_monitoring_api.py instana_client/api/custom_dashboards_api.py instana_client/api/custom_entities_api.py +instana_client/api/default_api.py instana_client/api/end_user_monitoring_api.py instana_client/api/event_settings_api.py instana_client/api/events_api.py @@ -621,6 +635,7 @@ instana_client/api/infrastructure_catalog_api.py instana_client/api/infrastructure_metrics_api.py instana_client/api/infrastructure_resources_api.py instana_client/api/infrastructure_topology_api.py +instana_client/api/llm_price_configuration_api.py instana_client/api/log_alert_configuration_api.py instana_client/api/logging_analyze_api.py instana_client/api/maintenance_configuration_api.py @@ -632,11 +647,11 @@ instana_client/api/policies_api.py instana_client/api/releases_api.py instana_client/api/roles_api.py instana_client/api/service_levels_alert_configuration_api.py -instana_client/api/service_levels_objective_slo_configurations_api.py instana_client/api/service_levels_objective_slo_report_api.py instana_client/api/session_settings_api.py instana_client/api/sli_report_api.py instana_client/api/sli_settings_api.py +instana_client/api/slo_configurations_api.py instana_client/api/slo_correction_configurations_api.py instana_client/api/slo_correction_windows_api.py instana_client/api/synthetic_alert_configuration_api.py @@ -749,7 +764,6 @@ instana_client/models/crash_mobile_app_alert_rule.py instana_client/models/create_website_request_inner.py instana_client/models/cursor_paginated_business_activity_item.py instana_client/models/cursor_pagination.py -instana_client/models/cursor_pagination_infra_explore_cursor.py instana_client/models/custom_blueprint_indicator.py instana_client/models/custom_dashboard.py instana_client/models/custom_dashboard_preview.py @@ -767,6 +781,7 @@ instana_client/models/custom_payload_configuration.py instana_client/models/custom_payload_field.py instana_client/models/custom_payload_with_last_updated.py instana_client/models/custom_payload_with_version.py +instana_client/models/custom_tag.py instana_client/models/dashboard_api_token.py instana_client/models/database_integration.py instana_client/models/deprecated_tag_filter.py @@ -827,6 +842,7 @@ instana_client/models/get_mobile_app_metrics.py instana_client/models/get_mobile_app_metrics_v2.py instana_client/models/get_payload_keys_result.py instana_client/models/get_services.py +instana_client/models/get_session_replay_metadata_result.py instana_client/models/get_snapshots_query.py instana_client/models/get_test_result.py instana_client/models/get_test_result_analytic.py @@ -861,6 +877,7 @@ instana_client/models/http_script_configuration.py instana_client/models/http_script_configuration_update.py instana_client/models/hyper_param.py instana_client/models/identity_provider_patch.py +instana_client/models/idp_status_update.py instana_client/models/impacted_beacon_info.py instana_client/models/infra_alert_config.py instana_client/models/infra_alert_config_with_metadata.py @@ -884,6 +901,11 @@ instana_client/models/js_stack_trace_line.py instana_client/models/kubernetes_physical_context.py instana_client/models/latency_blueprint_indicator.py instana_client/models/llm_egress_gateway.py +instana_client/models/llm_gateway_capability.py +instana_client/models/llm_gateway_model.py +instana_client/models/llm_gateway_service.py +instana_client/models/llm_model_price.py +instana_client/models/llm_model_price_metadata.py instana_client/models/location_status.py instana_client/models/log_alert_config.py instana_client/models/log_alert_config_with_metadata.py @@ -922,6 +944,7 @@ instana_client/models/metrics_result_item.py instana_client/models/metrics_test_result_item.py instana_client/models/mobile_app.py instana_client/models/mobile_app_alert_config.py +instana_client/models/mobile_app_alert_config_with_rbac_tag.py instana_client/models/mobile_app_alert_rule.py instana_client/models/mobile_app_beacon_groups_item.py instana_client/models/mobile_app_beacon_groups_result.py @@ -943,6 +966,7 @@ instana_client/models/nested_operation.py instana_client/models/new_application_config.py instana_client/models/new_business_perspective_config.py instana_client/models/new_manual_service_config.py +instana_client/models/ns1_integration.py instana_client/models/o_auth_config.py instana_client/models/o_auth_integration.py instana_client/models/o_auth_token.py @@ -1009,6 +1033,8 @@ instana_client/models/service_scope_with_metadata.py instana_client/models/service_scoped_to.py instana_client/models/service_scoped_to_with_metadata.py instana_client/models/service_simple.py +instana_client/models/session_replay_metadata.py +instana_client/models/session_replay_timestamps.py instana_client/models/session_settings.py instana_client/models/simple_metric_configuration.py instana_client/models/single_value.py @@ -1051,6 +1077,7 @@ instana_client/models/status_code_website_alert_rule.py instana_client/models/subtraction.py instana_client/models/synthetic_alert_config.py instana_client/models/synthetic_alert_config_with_metadata.py +instana_client/models/synthetic_alert_config_with_rbac_tag.py instana_client/models/synthetic_alert_rule.py instana_client/models/synthetic_bulk_response.py instana_client/models/synthetic_call_config.py @@ -1158,6 +1185,7 @@ instana_client/models/webpage_script_configuration_update.py instana_client/models/website.py instana_client/models/website_alert_config.py instana_client/models/website_alert_config_with_metadata.py +instana_client/models/website_alert_config_with_rbac_tag.py instana_client/models/website_alert_rule.py instana_client/models/website_apdex_entity.py instana_client/models/website_beacon_groups_item.py @@ -1175,32 +1203,32 @@ instana_client/models/website_slo_entity.py instana_client/models/website_time_based_sli_entity.py instana_client/models/website_time_threshold.py instana_client/models/widget.py -instana_client/models/with_metadata.py +instana_client/models/with_meta_data.py instana_client/models/with_resolved_name.py instana_client/models/z_chat_ops_integration.py instana_client/py.typed instana_client/rest.py -pyproject.toml requirements.txt setup.cfg setup.py test-requirements.txt test/__init__.py -test/test_browser_script_configuration_update.py -test/test_dns_configuration_update.py -test/test_http_action_configuration_update.py -test/test_http_script_configuration_update.py -test/test_ssl_certificate_configuration_update.py -test/test_synthetic_bulk_response.py -test/test_synthetic_configuration_update.py -test/test_synthetic_resource_update_list_dns_filter_target_value_list_dns_filter_target_value.py -test/test_synthetic_resource_update_list_ssl_certificate_validation_list_ssl_certificate_validation.py -test/test_synthetic_resource_update_list_string_list_string.py -test/test_synthetic_resource_update_map_string_string_list_string.py -test/test_synthetic_test_deep_update.py -test/test_synthetic_test_shallow_update.py -test/test_synthetic_test_update.py -test/test_synthetic_type_configuration_update.py -test/test_webpage_action_configuration_update.py -test/test_webpage_script_configuration_update.py +test/test_custom_tag.py +test/test_default_api.py +test/test_get_session_replay_metadata_result.py +test/test_idp_status_update.py +test/test_llm_gateway_capability.py +test/test_llm_gateway_model.py +test/test_llm_gateway_service.py +test/test_llm_model_price.py +test/test_llm_model_price_metadata.py +test/test_llm_price_configuration_api.py +test/test_mobile_app_alert_config_with_rbac_tag.py +test/test_ns1_integration.py +test/test_session_replay_metadata.py +test/test_session_replay_timestamps.py +test/test_slo_configurations_api.py +test/test_synthetic_alert_config_with_rbac_tag.py +test/test_website_alert_config_with_rbac_tag.py +test/test_with_meta_data.py tox.ini diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index eb1dc6a..6328c54 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.13.0 +7.17.0 diff --git a/README.md b/README.md index b35bdfb..bc22c5a 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,9 @@ Documentation for INSTANA REST API This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.309.1268 -- Package version: 1.0.2 -- Generator version: 7.13.0 +- API version: 1.315.1425 +- Package version: 1.0.3 +- Generator version: 7.17.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [http://instana.com](http://instana.com) @@ -96,13 +96,13 @@ All URIs are relative to *https://unit-tenant.instana.io* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*AIManagementApi* | [**add_llm_egress_gateway**](docs/AIManagementApi.md#add_llm_egress_gateway) | **POST** /api/llm/egress/handler | Create a new LLM gateway -*AIManagementApi* | [**delete_llm_egress_gateway**](docs/AIManagementApi.md#delete_llm_egress_gateway) | **DELETE** /api/llm/egress/handler/{id} | Delete a LLM egress gateway -*AIManagementApi* | [**enable_llm_egress_gateway**](docs/AIManagementApi.md#enable_llm_egress_gateway) | **PUT** /api/llm/egress/handler/{id}/enable | Set the enabled status of a LLM gateway +*AIManagementApi* | [**add_llm_egress_gateway**](docs/AIManagementApi.md#add_llm_egress_gateway) | **POST** /api/llm/gateways | Create a new LLM gateway +*AIManagementApi* | [**delete_llm_egress_gateway**](docs/AIManagementApi.md#delete_llm_egress_gateway) | **DELETE** /api/llm/gateways/{id} | Delete a LLM egress gateway +*AIManagementApi* | [**enable_llm_egress_gateway**](docs/AIManagementApi.md#enable_llm_egress_gateway) | **PUT** /api/llm/gateways/{id}/enable | Set the enabled status of a LLM gateway *AIManagementApi* | [**get_llm_capabilities**](docs/AIManagementApi.md#get_llm_capabilities) | **GET** /api/llm/capabilities | Get all LLM capabilities -*AIManagementApi* | [**get_llm_egress_gateway_by_id**](docs/AIManagementApi.md#get_llm_egress_gateway_by_id) | **GET** /api/llm/egress/handler/{id} | Get a LLM gateway by ID -*AIManagementApi* | [**get_llm_egress_gateways**](docs/AIManagementApi.md#get_llm_egress_gateways) | **GET** /api/llm/egress/handler | Get all LLM gateways -*AIManagementApi* | [**update_llm_egress_gateway**](docs/AIManagementApi.md#update_llm_egress_gateway) | **PUT** /api/llm/egress/handler/{id} | Update an existing LLM gateway. +*AIManagementApi* | [**get_llm_egress_gateway_by_id**](docs/AIManagementApi.md#get_llm_egress_gateway_by_id) | **GET** /api/llm/gateways/{id} | Get a LLM gateway by ID +*AIManagementApi* | [**get_llm_egress_gateways**](docs/AIManagementApi.md#get_llm_egress_gateways) | **GET** /api/llm/gateways | Get all LLM gateways +*AIManagementApi* | [**update_llm_egress_gateway**](docs/AIManagementApi.md#update_llm_egress_gateway) | **PUT** /api/llm/gateways/{id} | Update an existing LLM gateway. *APITokenApi* | [**delete_api_token**](docs/APITokenApi.md#delete_api_token) | **DELETE** /api/settings/api-tokens/{internalId} | Delete API token *APITokenApi* | [**get_api_token**](docs/APITokenApi.md#get_api_token) | **GET** /api/settings/api-tokens/{internalId} | Get API token *APITokenApi* | [**get_api_tokens**](docs/APITokenApi.md#get_api_tokens) | **GET** /api/settings/api-tokens | Get all API Tokens @@ -125,6 +125,9 @@ Class | Method | HTTP request | Description *ApdexSettingsApi* | [**get_all_apdex_configurations**](docs/ApdexSettingsApi.md#get_all_apdex_configurations) | **GET** /api/settings/apdex | Get All Apdex Configurations *ApdexSettingsApi* | [**get_apdex_configuration**](docs/ApdexSettingsApi.md#get_apdex_configuration) | **GET** /api/settings/apdex/{id} | Get Apdex Configuration *ApdexSettingsApi* | [**get_apdex_configurations_for_entity_type_and_id**](docs/ApdexSettingsApi.md#get_apdex_configurations_for_entity_type_and_id) | **GET** /api/settings/apdex/{entityType}/{entityId} | Get all Apdex configurations for entity type and entity id +*ApplicationAlertConfigurationApi* | [**bulk_delete_application_alert_configs**](docs/ApplicationAlertConfigurationApi.md#bulk_delete_application_alert_configs) | **PUT** /api/events/settings/application-alert-configs/bulk/delete | Bulk Delete Application Smart Alert Configs +*ApplicationAlertConfigurationApi* | [**bulk_disable_application_alert_configs**](docs/ApplicationAlertConfigurationApi.md#bulk_disable_application_alert_configs) | **PUT** /api/events/settings/application-alert-configs/bulk/disable | Bulk Disable Application Smart Alert Configs +*ApplicationAlertConfigurationApi* | [**bulk_enable_application_alert_configs**](docs/ApplicationAlertConfigurationApi.md#bulk_enable_application_alert_configs) | **PUT** /api/events/settings/application-alert-configs/bulk/enable | Bulk Enable Application Smart Alert Configs *ApplicationAlertConfigurationApi* | [**create_application_alert_config**](docs/ApplicationAlertConfigurationApi.md#create_application_alert_config) | **POST** /api/events/settings/application-alert-configs | Create Smart Alert Config *ApplicationAlertConfigurationApi* | [**delete_application_alert_config**](docs/ApplicationAlertConfigurationApi.md#delete_application_alert_config) | **DELETE** /api/events/settings/application-alert-configs/{id} | Delete Smart Alert Config *ApplicationAlertConfigurationApi* | [**disable_application_alert_config**](docs/ApplicationAlertConfigurationApi.md#disable_application_alert_config) | **PUT** /api/events/settings/application-alert-configs/{id}/disable | Disable Smart Alert Config @@ -148,8 +151,8 @@ Class | Method | HTTP request | Description *ApplicationMetricsApi* | [**get_application_metrics**](docs/ApplicationMetricsApi.md#get_application_metrics) | **POST** /api/application-monitoring/metrics/applications | Get Application Metrics *ApplicationMetricsApi* | [**get_endpoints_metrics**](docs/ApplicationMetricsApi.md#get_endpoints_metrics) | **POST** /api/application-monitoring/metrics/endpoints | Get Endpoint metrics *ApplicationMetricsApi* | [**get_services_metrics**](docs/ApplicationMetricsApi.md#get_services_metrics) | **POST** /api/application-monitoring/metrics/services | Get Service metrics -*ApplicationResourcesApi* | [**get_application_endpoints**](docs/ApplicationResourcesApi.md#get_application_endpoints) | **GET** /api/application-monitoring/applications/services/endpoints | Get endpoints -*ApplicationResourcesApi* | [**get_application_services**](docs/ApplicationResourcesApi.md#get_application_services) | **GET** /api/application-monitoring/applications;id=<appId>/services | Get applications/services +*ApplicationResourcesApi* | [**get_application_endpoints**](docs/ApplicationResourcesApi.md#get_application_endpoints) | **GET** /api/application-monitoring/applications;id={applicationId}/services;id={serviceId}/endpoints;id={endpointId} | Get endpoints +*ApplicationResourcesApi* | [**get_application_services**](docs/ApplicationResourcesApi.md#get_application_services) | **GET** /api/application-monitoring/applications;id={applicationId}/services;id={serviceId} | Get applications/services *ApplicationResourcesApi* | [**get_applications**](docs/ApplicationResourcesApi.md#get_applications) | **GET** /api/application-monitoring/applications | Get applications *ApplicationResourcesApi* | [**get_services**](docs/ApplicationResourcesApi.md#get_services) | **GET** /api/application-monitoring/services | Get services *ApplicationSettingsApi* | [**add_application_config**](docs/ApplicationSettingsApi.md#add_application_config) | **POST** /api/application-monitoring/settings/application | Add application configuration @@ -186,6 +189,7 @@ Class | Method | HTTP request | Description *AuthenticationApi* | [**delete_ldap_config**](docs/AuthenticationApi.md#delete_ldap_config) | **DELETE** /api/settings/authentication/ldap | Delete LDAP configuration *AuthenticationApi* | [**delete_oidc_config**](docs/AuthenticationApi.md#delete_oidc_config) | **DELETE** /api/settings/authentication/oidc | Delete OIDC configuration *AuthenticationApi* | [**delete_saml_config**](docs/AuthenticationApi.md#delete_saml_config) | **DELETE** /api/settings/authentication/saml | Delete SAML configuration +*AuthenticationApi* | [**set_idp_enabled_status**](docs/AuthenticationApi.md#set_idp_enabled_status) | **PATCH** /api/settings/authentication/idp/status | Enable or disable IdP configuration *BusinessMonitoringApi* | [**create_business_perspective**](docs/BusinessMonitoringApi.md#create_business_perspective) | **POST** /api/business-monitoring/business-perspectives | Create business perspective *BusinessMonitoringApi* | [**delete_business_perspective**](docs/BusinessMonitoringApi.md#delete_business_perspective) | **DELETE** /api/business-monitoring/business-perspectives/{id} | Delete business perspective *BusinessMonitoringApi* | [**get_activities**](docs/BusinessMonitoringApi.md#get_activities) | **POST** /api/business-monitoring/activities | Get Business Activities @@ -207,6 +211,12 @@ Class | Method | HTTP request | Description *CustomEntitiesApi* | [**list_custom_entities**](docs/CustomEntitiesApi.md#list_custom_entities) | **GET** /api/custom-entitytypes | List custom Entity Type Definition *CustomEntitiesApi* | [**update_custom_entity**](docs/CustomEntitiesApi.md#update_custom_entity) | **PUT** /api/custom-entitytypes/{id} | Update a Custom Entity Type *EndUserMonitoringApi* | [**get_impacted_users_report**](docs/EndUserMonitoringApi.md#get_impacted_users_report) | **GET** /api/eum/impact/report/{eventId} | Get impacted users report +*EventSettingsApi* | [**bulk_delete_mobile_app_alert_configs**](docs/EventSettingsApi.md#bulk_delete_mobile_app_alert_configs) | **PUT** /api/events/settings/mobile-app-alert-configs/bulk/delete | Bulk delete Mobile Smart Alert Configs +*EventSettingsApi* | [**bulk_delete_website_alert_configs**](docs/EventSettingsApi.md#bulk_delete_website_alert_configs) | **PUT** /api/events/settings/website-alert-configs/bulk/delete | Bulk Delete Website Smart Alert Configs +*EventSettingsApi* | [**bulk_disable_mobile_app_alert_configs**](docs/EventSettingsApi.md#bulk_disable_mobile_app_alert_configs) | **PUT** /api/events/settings/mobile-app-alert-configs/bulk/disable | Bulk disable Mobile Smart Alert Configs +*EventSettingsApi* | [**bulk_disable_website_alert_configs**](docs/EventSettingsApi.md#bulk_disable_website_alert_configs) | **PUT** /api/events/settings/website-alert-configs/bulk/disable | Bulk Disable Website Smart Alert Configs +*EventSettingsApi* | [**bulk_enable_mobile_app_alert_configs**](docs/EventSettingsApi.md#bulk_enable_mobile_app_alert_configs) | **PUT** /api/events/settings/mobile-app-alert-configs/bulk/enable | Bulk enable Mobile Smart Alert Configs +*EventSettingsApi* | [**bulk_enable_website_alert_configs**](docs/EventSettingsApi.md#bulk_enable_website_alert_configs) | **PUT** /api/events/settings/website-alert-configs/bulk/enable | Bulk Enable Website Smart Alert Configs *EventSettingsApi* | [**create_mobile_app_alert_config**](docs/EventSettingsApi.md#create_mobile_app_alert_config) | **POST** /api/events/settings/mobile-app-alert-configs | Create Mobile Smart Alert Config *EventSettingsApi* | [**create_website_alert_config**](docs/EventSettingsApi.md#create_website_alert_config) | **POST** /api/events/settings/website-alert-configs | Create Website Smart Alert Config *EventSettingsApi* | [**delete_alert**](docs/EventSettingsApi.md#delete_alert) | **DELETE** /api/events/settings/alerts/{id} | Delete Alert Configuration @@ -238,6 +248,7 @@ Class | Method | HTTP request | Description *EventSettingsApi* | [**get_alerts**](docs/EventSettingsApi.md#get_alerts) | **GET** /api/events/settings/alerts | Get all Alert Configurations *EventSettingsApi* | [**get_built_in_event_specification**](docs/EventSettingsApi.md#get_built_in_event_specification) | **GET** /api/events/settings/event-specifications/built-in/{eventSpecificationId} | Built-in event specifications *EventSettingsApi* | [**get_built_in_event_specifications**](docs/EventSettingsApi.md#get_built_in_event_specifications) | **GET** /api/events/settings/event-specifications/built-in | All built-in event specification +*EventSettingsApi* | [**get_current_prefix**](docs/EventSettingsApi.md#get_current_prefix) | **GET** /api/events/settings/shortcode/current-prefix | Get current shortcode prefix. *EventSettingsApi* | [**get_custom_event_specification**](docs/EventSettingsApi.md#get_custom_event_specification) | **GET** /api/events/settings/event-specifications/custom/{eventSpecificationId} | Custom event specification *EventSettingsApi* | [**get_custom_event_specifications**](docs/EventSettingsApi.md#get_custom_event_specifications) | **GET** /api/events/settings/event-specifications/custom | All custom event specifications *EventSettingsApi* | [**get_custom_payload_configurations**](docs/EventSettingsApi.md#get_custom_payload_configurations) | **GET** /api/events/settings/custom-payload-configurations | Get All Global Custom Payload Configurations @@ -258,6 +269,7 @@ Class | Method | HTTP request | Description *EventSettingsApi* | [**send_test_alerting_by_id**](docs/EventSettingsApi.md#send_test_alerting_by_id) | **POST** /api/events/settings/alertingChannels/notify/{id} | Notify manually to Alerting Channel. Requires the permission called CanConfigureIntegrations. *EventSettingsApi* | [**update_mobile_app_alert_config**](docs/EventSettingsApi.md#update_mobile_app_alert_config) | **POST** /api/events/settings/mobile-app-alert-configs/{id} | Update Mobile Smart Alert Config *EventSettingsApi* | [**update_mobile_app_historic_baseline**](docs/EventSettingsApi.md#update_mobile_app_historic_baseline) | **POST** /api/events/settings/mobile-app-alert-configs/{id}/update-baseline | Recalculate Mobile Smart Alert Config Baseline +*EventSettingsApi* | [**update_prefix**](docs/EventSettingsApi.md#update_prefix) | **PUT** /api/events/settings/shortcode/current-prefix | Update shortcode prefix. *EventSettingsApi* | [**update_website_alert_config**](docs/EventSettingsApi.md#update_website_alert_config) | **POST** /api/events/settings/website-alert-configs/{id} | Update Website Smart Alert Config *EventSettingsApi* | [**update_website_historic_baseline**](docs/EventSettingsApi.md#update_website_historic_baseline) | **POST** /api/events/settings/website-alert-configs/{id}/update-baseline | Recalculate Website Smart Alert Config Baseline *EventSettingsApi* | [**upsert_custom_payload_configuration**](docs/EventSettingsApi.md#upsert_custom_payload_configuration) | **PUT** /api/events/settings/custom-payload-configurations | Create/Update Global Custom Payload Configuration @@ -304,6 +316,9 @@ Class | Method | HTTP request | Description *HostAgentApi* | [**update_agent**](docs/HostAgentApi.md#update_agent) | **POST** /api/host-agent/{hostId}/update | Agent update *HostAgentApi* | [**update_configuration_by_host**](docs/HostAgentApi.md#update_configuration_by_host) | **POST** /api/host-agent/{hostId}/configuration | Update agent configuration by host *HostAgentApi* | [**update_configuration_by_query**](docs/HostAgentApi.md#update_configuration_by_query) | **POST** /api/host-agent/configuration | Update agent configuration by query +*InfrastructureAlertConfigurationApi* | [**bulk_delete_infra_alert_configs**](docs/InfrastructureAlertConfigurationApi.md#bulk_delete_infra_alert_configs) | **PUT** /api/events/settings/infra-alert-configs/bulk/delete | Bulk Delete Infra Smart Alert Configs +*InfrastructureAlertConfigurationApi* | [**bulk_disable_infra_alert_configs**](docs/InfrastructureAlertConfigurationApi.md#bulk_disable_infra_alert_configs) | **PUT** /api/events/settings/infra-alert-configs/bulk/disable | Bulk Disable Infra Smart Alert Configs +*InfrastructureAlertConfigurationApi* | [**bulk_enable_infra_alert_configs**](docs/InfrastructureAlertConfigurationApi.md#bulk_enable_infra_alert_configs) | **PUT** /api/events/settings/infra-alert-configs/bulk/enable | Bulk Enable Infra Smart Alert Configs *InfrastructureAlertConfigurationApi* | [**create_infra_alert_config**](docs/InfrastructureAlertConfigurationApi.md#create_infra_alert_config) | **POST** /api/events/settings/infra-alert-configs | Create Infra Alert Config *InfrastructureAlertConfigurationApi* | [**delete_infra_alert_config**](docs/InfrastructureAlertConfigurationApi.md#delete_infra_alert_config) | **DELETE** /api/events/settings/infra-alert-configs/{id} | Delete Infra Alert Config *InfrastructureAlertConfigurationApi* | [**disable_infra_alert_config**](docs/InfrastructureAlertConfigurationApi.md#disable_infra_alert_config) | **PUT** /api/events/settings/infra-alert-configs/{id}/disable | Disable Infra Alert Config @@ -333,6 +348,15 @@ Class | Method | HTTP request | Description *InfrastructureResourcesApi* | [**software_versions**](docs/InfrastructureResourcesApi.md#software_versions) | **GET** /api/infrastructure-monitoring/software/versions | Get installed software *InfrastructureTopologyApi* | [**get_related_hosts**](docs/InfrastructureTopologyApi.md#get_related_hosts) | **GET** /api/infrastructure-monitoring/graph/related-hosts/{snapshotId} | Related hosts *InfrastructureTopologyApi* | [**get_topology**](docs/InfrastructureTopologyApi.md#get_topology) | **GET** /api/infrastructure-monitoring/topology | Gets the infrastructure topology +*LLMPriceConfigurationApi* | [**delete_llm_model_price**](docs/LLMPriceConfigurationApi.md#delete_llm_model_price) | **DELETE** /api/settings/llm-pricing/{provider}/{modelName} | Delete LLM model price +*LLMPriceConfigurationApi* | [**delete_llm_model_price_without_provider**](docs/LLMPriceConfigurationApi.md#delete_llm_model_price_without_provider) | **DELETE** /api/settings/llm-pricing/model/{modelName} | Delete LLM model price without provider +*LLMPriceConfigurationApi* | [**get_all_llm_model_prices**](docs/LLMPriceConfigurationApi.md#get_all_llm_model_prices) | **GET** /api/settings/llm-pricing | Get all LLM model prices +*LLMPriceConfigurationApi* | [**get_llm_model_currency**](docs/LLMPriceConfigurationApi.md#get_llm_model_currency) | **GET** /api/settings/llm-pricing/currency | Get currency for LLM model prices +*LLMPriceConfigurationApi* | [**get_llm_model_price**](docs/LLMPriceConfigurationApi.md#get_llm_model_price) | **GET** /api/settings/llm-pricing/{provider}/{modelName} | Get LLM model price +*LLMPriceConfigurationApi* | [**get_llm_model_price_without_provider**](docs/LLMPriceConfigurationApi.md#get_llm_model_price_without_provider) | **GET** /api/settings/llm-pricing/model/{modelName} | Get LLM model price without provider +*LLMPriceConfigurationApi* | [**set_llm_model_currency**](docs/LLMPriceConfigurationApi.md#set_llm_model_currency) | **PUT** /api/settings/llm-pricing/currency | Set currency for LLM model prices +*LLMPriceConfigurationApi* | [**upsert_llm_model_price**](docs/LLMPriceConfigurationApi.md#upsert_llm_model_price) | **PUT** /api/settings/llm-pricing/{provider}/{modelName} | Upsert LLM model price +*LLMPriceConfigurationApi* | [**upsert_llm_model_price_without_provider**](docs/LLMPriceConfigurationApi.md#upsert_llm_model_price_without_provider) | **PUT** /api/settings/llm-pricing/model/{modelName} | Upsert LLM model price without provider *LogAlertConfigurationApi* | [**create_log_alert_config**](docs/LogAlertConfigurationApi.md#create_log_alert_config) | **POST** /api/events/settings/global-alert-configs/logs | Create Log Alert Config *LogAlertConfigurationApi* | [**delete_log_alert_config**](docs/LogAlertConfigurationApi.md#delete_log_alert_config) | **DELETE** /api/events/settings/global-alert-configs/logs/{id} | Delete Log Alert Config *LogAlertConfigurationApi* | [**disable_log_alert_config**](docs/LogAlertConfigurationApi.md#disable_log_alert_config) | **PUT** /api/events/settings/global-alert-configs/logs/{id}/disable | Disable Log Alert Config @@ -358,6 +382,8 @@ Class | Method | HTTP request | Description *MobileAppCatalogApi* | [**get_all_mobile_app_catalog_tags**](docs/MobileAppCatalogApi.md#get_all_mobile_app_catalog_tags) | **GET** /api/mobile-app-monitoring/catalog/tags | Get all existing mobile app tags *MobileAppCatalogApi* | [**get_mobile_app_metric_catalog**](docs/MobileAppCatalogApi.md#get_mobile_app_metric_catalog) | **GET** /api/mobile-app-monitoring/catalog/metrics | Metric catalog *MobileAppCatalogApi* | [**get_mobile_app_tag_catalog**](docs/MobileAppCatalogApi.md#get_mobile_app_tag_catalog) | **GET** /api/mobile-app-monitoring/catalog | Get mobile app tag catalog +*MobileAppCatalogApi* | [**get_session_replay_metadata**](docs/MobileAppCatalogApi.md#get_session_replay_metadata) | **GET** /api/mobile-app-monitoring/mobile-apps/{mobileAppId}/sessions/{sessionId}/replay-metadata | Get session replay metadata +*MobileAppCatalogApi* | [**get_session_replay_timestamps**](docs/MobileAppCatalogApi.md#get_session_replay_timestamps) | **GET** /api/mobile-app-monitoring/mobile-apps/{mobileAppId}/sessions/{sessionId}/replay-timestamps | Get session replay timestamps *MobileAppConfigurationApi* | [**clear_mobile_app_source_map_upload_configuration**](docs/MobileAppConfigurationApi.md#clear_mobile_app_source_map_upload_configuration) | **PUT** /api/mobile-app-monitoring/config/{mobileAppId}/sourcemap-upload/{sourceMapConfigId}/clear | Clear sourcemap files for sourcemap upload configuration *MobileAppConfigurationApi* | [**commit_mobile_app_source_map_file**](docs/MobileAppConfigurationApi.md#commit_mobile_app_source_map_file) | **PUT** /api/mobile-app-monitoring/config/{mobileAppId}/sourcemap-upload/{sourceMapConfigId}/commit | Commit sourcemap file upload for mobile app *MobileAppConfigurationApi* | [**delete_mobile_app_config**](docs/MobileAppConfigurationApi.md#delete_mobile_app_config) | **DELETE** /api/mobile-app-monitoring/config/{mobileAppId} | Remove mobile app @@ -407,6 +433,12 @@ Class | Method | HTTP request | Description *SLISettingsApi* | [**get_sli_config_v2**](docs/SLISettingsApi.md#get_sli_config_v2) | **GET** /api/settings/v2/sli/{id} | Get SLI Config *SLISettingsApi* | [**get_sli_configs_for_entity_type_and_id_v2**](docs/SLISettingsApi.md#get_sli_configs_for_entity_type_and_id_v2) | **GET** /api/settings/v2/sli/{entityType}/{entityId} | Get all SLI configs for entity type and entity id *SLISettingsApi* | [**update_sli_config**](docs/SLISettingsApi.md#update_sli_config) | **PUT** /api/settings/sli/{id} | Update SLI Config +*SLOConfigurationsApi* | [**create_slo_config**](docs/SLOConfigurationsApi.md#create_slo_config) | **POST** /api/settings/slo | Create a new SLO Config +*SLOConfigurationsApi* | [**delete_slo_config**](docs/SLOConfigurationsApi.md#delete_slo_config) | **DELETE** /api/settings/slo/{id} | Delete an existing SLO Config +*SLOConfigurationsApi* | [**get_all_slo_config_tags**](docs/SLOConfigurationsApi.md#get_all_slo_config_tags) | **GET** /api/settings/slo/tags | Get All SLO Config tags +*SLOConfigurationsApi* | [**get_all_slo_configs**](docs/SLOConfigurationsApi.md#get_all_slo_configs) | **GET** /api/settings/slo | Get All SLO Configs +*SLOConfigurationsApi* | [**get_slo_config_by_id**](docs/SLOConfigurationsApi.md#get_slo_config_by_id) | **GET** /api/settings/slo/{id} | Get an existing SLO Config +*SLOConfigurationsApi* | [**update_slo_config**](docs/SLOConfigurationsApi.md#update_slo_config) | **PUT** /api/settings/slo/{id} | Update an existing SLO Config *SLOCorrectionConfigurationsApi* | [**create_slo_correction_window_config**](docs/SLOCorrectionConfigurationsApi.md#create_slo_correction_window_config) | **POST** /api/settings/correction | Create a new SLO Correction Window Config *SLOCorrectionConfigurationsApi* | [**delete_slo_correction_window_config**](docs/SLOCorrectionConfigurationsApi.md#delete_slo_correction_window_config) | **DELETE** /api/settings/correction/{id} | Delete an existing SLO Correction Window Configuration *SLOCorrectionConfigurationsApi* | [**get_all_slo_correction_window_configs**](docs/SLOCorrectionConfigurationsApi.md#get_all_slo_correction_window_configs) | **GET** /api/settings/correction | Get All SLO Correction Window Configs @@ -422,16 +454,13 @@ Class | Method | HTTP request | Description *ServiceLevelsAlertConfigurationApi* | [**find_service_levels_alert_config_versions**](docs/ServiceLevelsAlertConfigurationApi.md#find_service_levels_alert_config_versions) | **GET** /api/events/settings/global-alert-configs/service-levels/{id}/versions | Get versions of Service levels Alert Config *ServiceLevelsAlertConfigurationApi* | [**restore_service_levels_alert_config**](docs/ServiceLevelsAlertConfigurationApi.md#restore_service_levels_alert_config) | **PUT** /api/events/settings/global-alert-configs/service-levels/{id}/restore/{created} | Restore Service levels Alert Config *ServiceLevelsAlertConfigurationApi* | [**update_service_levels_alert_config**](docs/ServiceLevelsAlertConfigurationApi.md#update_service_levels_alert_config) | **POST** /api/events/settings/global-alert-configs/service-levels/{id} | Update Service levels Alert Config -*ServiceLevelsObjectiveSLOConfigurationsApi* | [**create_slo_config**](docs/ServiceLevelsObjectiveSLOConfigurationsApi.md#create_slo_config) | **POST** /api/settings/slo | Create a new SLO Config -*ServiceLevelsObjectiveSLOConfigurationsApi* | [**delete_slo_config**](docs/ServiceLevelsObjectiveSLOConfigurationsApi.md#delete_slo_config) | **DELETE** /api/settings/slo/{id} | Delete an existing SLO Config -*ServiceLevelsObjectiveSLOConfigurationsApi* | [**get_all_slo_config_tags**](docs/ServiceLevelsObjectiveSLOConfigurationsApi.md#get_all_slo_config_tags) | **GET** /api/settings/slo/tags | Get All SLO Config tags -*ServiceLevelsObjectiveSLOConfigurationsApi* | [**get_all_slo_configs**](docs/ServiceLevelsObjectiveSLOConfigurationsApi.md#get_all_slo_configs) | **GET** /api/settings/slo | Get All SLO Configs -*ServiceLevelsObjectiveSLOConfigurationsApi* | [**get_slo_config_by_id**](docs/ServiceLevelsObjectiveSLOConfigurationsApi.md#get_slo_config_by_id) | **GET** /api/settings/slo/{id} | Get an existing SLO Config -*ServiceLevelsObjectiveSLOConfigurationsApi* | [**update_slo_config**](docs/ServiceLevelsObjectiveSLOConfigurationsApi.md#update_slo_config) | **PUT** /api/settings/slo/{id} | Update an existing SLO Config *ServiceLevelsObjectiveSLOReportApi* | [**get_slo**](docs/ServiceLevelsObjectiveSLOReportApi.md#get_slo) | **GET** /api/slo/report/{sloId} | Generate Service Levels report *SessionSettingsApi* | [**delete_session_settings**](docs/SessionSettingsApi.md#delete_session_settings) | **DELETE** /api/settings/session | Delete session settings *SessionSettingsApi* | [**get_session_settings**](docs/SessionSettingsApi.md#get_session_settings) | **GET** /api/settings/session | Get session settings *SessionSettingsApi* | [**set_session_settings**](docs/SessionSettingsApi.md#set_session_settings) | **PUT** /api/settings/session | Configure session settings +*SyntheticAlertConfigurationApi* | [**bulk_delete_synthetic_alert_configs**](docs/SyntheticAlertConfigurationApi.md#bulk_delete_synthetic_alert_configs) | **PUT** /api/events/settings/global-alert-configs/synthetics/bulk/delete | Bulk Delete Synthetic Smart Alert Configs +*SyntheticAlertConfigurationApi* | [**bulk_disable_synthetic_alert_configs**](docs/SyntheticAlertConfigurationApi.md#bulk_disable_synthetic_alert_configs) | **PUT** /api/events/settings/global-alert-configs/synthetics/bulk/disable | Bulk Disable Synthetic Smart Alert Configs +*SyntheticAlertConfigurationApi* | [**bulk_enable_synthetic_alert_configs**](docs/SyntheticAlertConfigurationApi.md#bulk_enable_synthetic_alert_configs) | **PUT** /api/events/settings/global-alert-configs/synthetics/bulk/enable | Bulk Enable Synthetic Smart Alert Configs *SyntheticAlertConfigurationApi* | [**create_synthetic_alert_config**](docs/SyntheticAlertConfigurationApi.md#create_synthetic_alert_config) | **POST** /api/events/settings/global-alert-configs/synthetics | Create Synthetic Smart Alert Config *SyntheticAlertConfigurationApi* | [**delete_synthetic_alert_config**](docs/SyntheticAlertConfigurationApi.md#delete_synthetic_alert_config) | **DELETE** /api/events/settings/global-alert-configs/synthetics/{id} | Delete Synthetic Smart Alert Config *SyntheticAlertConfigurationApi* | [**disable_synthetic_alert_config**](docs/SyntheticAlertConfigurationApi.md#disable_synthetic_alert_config) | **PUT** /api/events/settings/global-alert-configs/synthetics/{id}/disable | Disable Synthetic Smart Alert Config @@ -523,6 +552,8 @@ Class | Method | HTTP request | Description *WebsiteMetricsApi* | [**get_beacon_metrics**](docs/WebsiteMetricsApi.md#get_beacon_metrics) | **POST** /api/website-monitoring/metrics | Get beacon metrics *WebsiteMetricsApi* | [**get_beacon_metrics_v2**](docs/WebsiteMetricsApi.md#get_beacon_metrics_v2) | **POST** /api/website-monitoring/v2/metrics | Get beacon metrics *WebsiteMetricsApi* | [**get_page_load**](docs/WebsiteMetricsApi.md#get_page_load) | **GET** /api/website-monitoring/page-load{id}{timestamp} | Get page load +*DefaultApi* | [**get_internal_custom_dashboards**](docs/DefaultApi.md#get_internal_custom_dashboards) | **GET** /api/internal/custom-dashboard | +*DefaultApi* | [**get_internal_dashboard**](docs/DefaultApi.md#get_internal_dashboard) | **GET** /api/internal/custom-dashboard/{dashboardId} | ## Documentation For Models @@ -619,7 +650,6 @@ Class | Method | HTTP request | Description - [CreateWebsiteRequestInner](docs/CreateWebsiteRequestInner.md) - [CursorPaginatedBusinessActivityItem](docs/CursorPaginatedBusinessActivityItem.md) - [CursorPagination](docs/CursorPagination.md) - - [CursorPaginationInfraExploreCursor](docs/CursorPaginationInfraExploreCursor.md) - [CustomBlueprintIndicator](docs/CustomBlueprintIndicator.md) - [CustomDashboard](docs/CustomDashboard.md) - [CustomDashboardPreview](docs/CustomDashboardPreview.md) @@ -637,6 +667,7 @@ Class | Method | HTTP request | Description - [CustomPayloadField](docs/CustomPayloadField.md) - [CustomPayloadWithLastUpdated](docs/CustomPayloadWithLastUpdated.md) - [CustomPayloadWithVersion](docs/CustomPayloadWithVersion.md) + - [CustomTag](docs/CustomTag.md) - [DNSConfiguration](docs/DNSConfiguration.md) - [DNSConfigurationUpdate](docs/DNSConfigurationUpdate.md) - [DNSFilterQueryTime](docs/DNSFilterQueryTime.md) @@ -697,6 +728,7 @@ Class | Method | HTTP request | Description - [GetMobileAppMetricsV2](docs/GetMobileAppMetricsV2.md) - [GetPayloadKeysResult](docs/GetPayloadKeysResult.md) - [GetServices](docs/GetServices.md) + - [GetSessionReplayMetadataResult](docs/GetSessionReplayMetadataResult.md) - [GetSnapshotsQuery](docs/GetSnapshotsQuery.md) - [GetTestResult](docs/GetTestResult.md) - [GetTestResultAnalytic](docs/GetTestResultAnalytic.md) @@ -731,6 +763,7 @@ Class | Method | HTTP request | Description - [HttpScriptConfigurationUpdate](docs/HttpScriptConfigurationUpdate.md) - [HyperParam](docs/HyperParam.md) - [IdentityProviderPatch](docs/IdentityProviderPatch.md) + - [IdpStatusUpdate](docs/IdpStatusUpdate.md) - [ImpactedBeaconInfo](docs/ImpactedBeaconInfo.md) - [InfraAlertConfig](docs/InfraAlertConfig.md) - [InfraAlertConfigWithMetadata](docs/InfraAlertConfigWithMetadata.md) @@ -753,7 +786,12 @@ Class | Method | HTTP request | Description - [JsStackTraceLine](docs/JsStackTraceLine.md) - [KubernetesPhysicalContext](docs/KubernetesPhysicalContext.md) - [LLMEgressGateway](docs/LLMEgressGateway.md) + - [LLMGatewayCapability](docs/LLMGatewayCapability.md) + - [LLMGatewayModel](docs/LLMGatewayModel.md) + - [LLMGatewayService](docs/LLMGatewayService.md) - [LatencyBlueprintIndicator](docs/LatencyBlueprintIndicator.md) + - [LlmModelPrice](docs/LlmModelPrice.md) + - [LlmModelPriceMetadata](docs/LlmModelPriceMetadata.md) - [LocationStatus](docs/LocationStatus.md) - [LogAlertConfig](docs/LogAlertConfig.md) - [LogAlertConfigWithMetadata](docs/LogAlertConfigWithMetadata.md) @@ -792,6 +830,7 @@ Class | Method | HTTP request | Description - [MetricsTestResultItem](docs/MetricsTestResultItem.md) - [MobileApp](docs/MobileApp.md) - [MobileAppAlertConfig](docs/MobileAppAlertConfig.md) + - [MobileAppAlertConfigWithRBACTag](docs/MobileAppAlertConfigWithRBACTag.md) - [MobileAppAlertRule](docs/MobileAppAlertRule.md) - [MobileAppBeaconGroupsItem](docs/MobileAppBeaconGroupsItem.md) - [MobileAppBeaconGroupsResult](docs/MobileAppBeaconGroupsResult.md) @@ -809,6 +848,7 @@ Class | Method | HTTP request | Description - [MonitoringState](docs/MonitoringState.md) - [MultipleScriptsConfiguration](docs/MultipleScriptsConfiguration.md) - [Multiplication](docs/Multiplication.md) + - [NS1Integration](docs/NS1Integration.md) - [NestedOperation](docs/NestedOperation.md) - [NewApplicationConfig](docs/NewApplicationConfig.md) - [NewBusinessPerspectiveConfig](docs/NewBusinessPerspectiveConfig.md) @@ -883,6 +923,8 @@ Class | Method | HTTP request | Description - [ServiceScopedTo](docs/ServiceScopedTo.md) - [ServiceScopedToWithMetadata](docs/ServiceScopedToWithMetadata.md) - [ServiceSimple](docs/ServiceSimple.md) + - [SessionReplayMetadata](docs/SessionReplayMetadata.md) + - [SessionReplayTimestamps](docs/SessionReplayTimestamps.md) - [SessionSettings](docs/SessionSettings.md) - [SimpleMetricConfiguration](docs/SimpleMetricConfiguration.md) - [SingleValue](docs/SingleValue.md) @@ -921,6 +963,7 @@ Class | Method | HTTP request | Description - [Subtraction](docs/Subtraction.md) - [SyntheticAlertConfig](docs/SyntheticAlertConfig.md) - [SyntheticAlertConfigWithMetadata](docs/SyntheticAlertConfigWithMetadata.md) + - [SyntheticAlertConfigWithRBACTag](docs/SyntheticAlertConfigWithRBACTag.md) - [SyntheticAlertRule](docs/SyntheticAlertRule.md) - [SyntheticBulkResponse](docs/SyntheticBulkResponse.md) - [SyntheticCallConfig](docs/SyntheticCallConfig.md) @@ -1028,6 +1071,7 @@ Class | Method | HTTP request | Description - [Website](docs/Website.md) - [WebsiteAlertConfig](docs/WebsiteAlertConfig.md) - [WebsiteAlertConfigWithMetadata](docs/WebsiteAlertConfigWithMetadata.md) + - [WebsiteAlertConfigWithRBACTag](docs/WebsiteAlertConfigWithRBACTag.md) - [WebsiteAlertRule](docs/WebsiteAlertRule.md) - [WebsiteApdexEntity](docs/WebsiteApdexEntity.md) - [WebsiteBeaconGroupsItem](docs/WebsiteBeaconGroupsItem.md) @@ -1045,7 +1089,7 @@ Class | Method | HTTP request | Description - [WebsiteTimeBasedSliEntity](docs/WebsiteTimeBasedSliEntity.md) - [WebsiteTimeThreshold](docs/WebsiteTimeThreshold.md) - [Widget](docs/Widget.md) - - [WithMetadata](docs/WithMetadata.md) + - [WithMetaData](docs/WithMetaData.md) - [WithResolvedName](docs/WithResolvedName.md) - [ZChatOpsIntegration](docs/ZChatOpsIntegration.md) diff --git a/docs/AIManagementApi.md b/docs/AIManagementApi.md index bf74dc7..af5d0af 100644 --- a/docs/AIManagementApi.md +++ b/docs/AIManagementApi.md @@ -4,13 +4,13 @@ All URIs are relative to *https://unit-tenant.instana.io* Method | HTTP request | Description ------------- | ------------- | ------------- -[**add_llm_egress_gateway**](AIManagementApi.md#add_llm_egress_gateway) | **POST** /api/llm/egress/handler | Create a new LLM gateway -[**delete_llm_egress_gateway**](AIManagementApi.md#delete_llm_egress_gateway) | **DELETE** /api/llm/egress/handler/{id} | Delete a LLM egress gateway -[**enable_llm_egress_gateway**](AIManagementApi.md#enable_llm_egress_gateway) | **PUT** /api/llm/egress/handler/{id}/enable | Set the enabled status of a LLM gateway +[**add_llm_egress_gateway**](AIManagementApi.md#add_llm_egress_gateway) | **POST** /api/llm/gateways | Create a new LLM gateway +[**delete_llm_egress_gateway**](AIManagementApi.md#delete_llm_egress_gateway) | **DELETE** /api/llm/gateways/{id} | Delete a LLM egress gateway +[**enable_llm_egress_gateway**](AIManagementApi.md#enable_llm_egress_gateway) | **PUT** /api/llm/gateways/{id}/enable | Set the enabled status of a LLM gateway [**get_llm_capabilities**](AIManagementApi.md#get_llm_capabilities) | **GET** /api/llm/capabilities | Get all LLM capabilities -[**get_llm_egress_gateway_by_id**](AIManagementApi.md#get_llm_egress_gateway_by_id) | **GET** /api/llm/egress/handler/{id} | Get a LLM gateway by ID -[**get_llm_egress_gateways**](AIManagementApi.md#get_llm_egress_gateways) | **GET** /api/llm/egress/handler | Get all LLM gateways -[**update_llm_egress_gateway**](AIManagementApi.md#update_llm_egress_gateway) | **PUT** /api/llm/egress/handler/{id} | Update an existing LLM gateway. +[**get_llm_egress_gateway_by_id**](AIManagementApi.md#get_llm_egress_gateway_by_id) | **GET** /api/llm/gateways/{id} | Get a LLM gateway by ID +[**get_llm_egress_gateways**](AIManagementApi.md#get_llm_egress_gateways) | **GET** /api/llm/gateways | Get all LLM gateways +[**update_llm_egress_gateway**](AIManagementApi.md#update_llm_egress_gateway) | **PUT** /api/llm/gateways/{id} | Update an existing LLM gateway. # **add_llm_egress_gateway** @@ -90,7 +90,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -169,7 +169,7 @@ void (empty response body) |-------------|-------------|------------------| **204** | Successful - no content to return. | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | @@ -249,7 +249,7 @@ void (empty response body) |-------------|-------------|------------------| **204** | Successful - no content to return. | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | @@ -408,7 +408,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | @@ -493,7 +493,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | @@ -578,7 +578,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | diff --git a/docs/ActionMatch.md b/docs/ActionMatch.md index fdf16f1..c9ded4f 100644 --- a/docs/ActionMatch.md +++ b/docs/ActionMatch.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action** | [**Action**](Action.md) | | [optional] -**ai_engine** | **str** | | -**confidence** | **str** | | +**ai_engine** | **str** | | [optional] +**confidence** | **str** | | [optional] **policy** | [**Policy**](Policy.md) | | [optional] -**score** | **float** | | +**score** | **float** | | [optional] ## Example diff --git a/docs/AlertingConfiguration.md b/docs/AlertingConfiguration.md index 722fb09..faa155e 100644 --- a/docs/AlertingConfiguration.md +++ b/docs/AlertingConfiguration.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **alert_name** | **str** | Name of the Alert Configuration. | -**custom_payload_fields** | [**List[StaticStringField]**](StaticStringField.md) | Custom payload fields to send additional information in the alert notifications. Can be left empty. | +**custom_payload_fields** | [**List[CustomPayloadField]**](CustomPayloadField.md) | Custom payload fields to send additional information in the alert notifications. Supports both static and dynamic fields. Can be left empty. | **event_filtering_configuration** | [**EventFilteringConfiguration**](EventFilteringConfiguration.md) | | **id** | **str** | ID of the Alert Configuration. | **include_entity_name_in_legacy_alerts** | **bool** | To include the entity name in a legacy alert based on built-in/custom events. | [optional] diff --git a/docs/AlertingConfigurationWithLastUpdated.md b/docs/AlertingConfigurationWithLastUpdated.md index be96656..47a4704 100644 --- a/docs/AlertingConfigurationWithLastUpdated.md +++ b/docs/AlertingConfigurationWithLastUpdated.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **alert_name** | **str** | Name of the Alert Configuration. | -**custom_payload_fields** | [**List[StaticStringField]**](StaticStringField.md) | Custom payload fields to send additional information in the alert notifications. Can be left empty. | +**custom_payload_fields** | [**List[CustomPayloadField]**](CustomPayloadField.md) | Custom payload fields to send additional information in the alert notifications. Supports both static and dynamic fields. Can be left empty. | **event_filtering_configuration** | [**EventFilteringConfiguration**](EventFilteringConfiguration.md) | | **id** | **str** | ID of the Alert Configuration. | **include_entity_name_in_legacy_alerts** | **bool** | To include the entity name in a legacy alert based on built-in/custom events. | [optional] diff --git a/docs/ApiRestrictedApplicationFilter.md b/docs/ApiRestrictedApplicationFilter.md index d938ec8..6d12b54 100644 --- a/docs/ApiRestrictedApplicationFilter.md +++ b/docs/ApiRestrictedApplicationFilter.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**label** | **str** | | [optional] +**label** | **str** | | **restricting_application_id** | **str** | | [optional] -**scope** | **str** | | [optional] +**scope** | **str** | | **tag_filter_expression** | [**TagFilterExpressionElement**](TagFilterExpressionElement.md) | | [optional] ## Example diff --git a/docs/ApiToken.md b/docs/ApiToken.md index d9d65c9..bd160f9 100644 --- a/docs/ApiToken.md +++ b/docs/ApiToken.md @@ -26,14 +26,17 @@ Name | Type | Description | Notes **can_configure_global_infra_smart_alerts** | **bool** | | [optional] **can_configure_global_log_smart_alerts** | **bool** | | [optional] **can_configure_global_synthetic_smart_alerts** | **bool** | | [optional] +**can_configure_ip_filtering** | **bool** | | [optional] **can_configure_integrations** | **bool** | | [optional] **can_configure_llm** | **bool** | | [optional] +**can_configure_llm_model_price** | **bool** | | [optional] **can_configure_log_management** | **bool** | | [optional] **can_configure_log_retention_period** | **bool** | | [optional] **can_configure_maintenance_windows** | **bool** | | [optional] **can_configure_mobile_app_monitoring** | **bool** | | [optional] **can_configure_mobile_app_smart_alerts** | **bool** | | [optional] **can_configure_personal_api_tokens** | **bool** | | [optional] +**can_configure_personally_identifiable_information_masking** | **bool** | | [optional] **can_configure_releases** | **bool** | | [optional] **can_configure_service_level_correction_windows** | **bool** | | [optional] **can_configure_service_level_smart_alerts** | **bool** | | [optional] diff --git a/docs/ApplicationAlertConfig.md b/docs/ApplicationAlertConfig.md index fe293d0..7aded6b 100644 --- a/docs/ApplicationAlertConfig.md +++ b/docs/ApplicationAlertConfig.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **boundary_scope** | **str** | Determines the source of the application alert configuration. An `INBOUND` scope refers to consumer-made calls. An `ALL` scope refers to both consumer and internally made calls. | **custom_payload_fields** | [**List[CustomPayloadField]**](CustomPayloadField.md) | Custom payload fields to send additional information in the alert notifications. Can be left empty. | **description** | **str** | Description of the application alert configuration. Used as a template for the description of alert/event notifications triggered by this Smart Alert configuration. | +**enabled** | **bool** | Flag to indicate whether or not the configuration is enabled. | [optional] **evaluation_type** | **str** | Determines whether calls of the aggregated metrics are grouped by the application, the service, or the endpoint. This also determines whether the resulting events are categorized as an issue on the respective entity of that group. | **grace_period** | **int** | The duration for which an alert remains open after conditions are no longer violated, with the alert auto-closing once the grace period expires. | [optional] **granularity** | **int** | The evaluation granularity used for detection of violations of the defined threshold. Defines the size of the tumbling window used. | [default to 600000] diff --git a/docs/ApplicationAlertConfigurationApi.md b/docs/ApplicationAlertConfigurationApi.md index caba5ef..56d1905 100644 --- a/docs/ApplicationAlertConfigurationApi.md +++ b/docs/ApplicationAlertConfigurationApi.md @@ -4,6 +4,9 @@ All URIs are relative to *https://unit-tenant.instana.io* Method | HTTP request | Description ------------- | ------------- | ------------- +[**bulk_delete_application_alert_configs**](ApplicationAlertConfigurationApi.md#bulk_delete_application_alert_configs) | **PUT** /api/events/settings/application-alert-configs/bulk/delete | Bulk Delete Application Smart Alert Configs +[**bulk_disable_application_alert_configs**](ApplicationAlertConfigurationApi.md#bulk_disable_application_alert_configs) | **PUT** /api/events/settings/application-alert-configs/bulk/disable | Bulk Disable Application Smart Alert Configs +[**bulk_enable_application_alert_configs**](ApplicationAlertConfigurationApi.md#bulk_enable_application_alert_configs) | **PUT** /api/events/settings/application-alert-configs/bulk/enable | Bulk Enable Application Smart Alert Configs [**create_application_alert_config**](ApplicationAlertConfigurationApi.md#create_application_alert_config) | **POST** /api/events/settings/application-alert-configs | Create Smart Alert Config [**delete_application_alert_config**](ApplicationAlertConfigurationApi.md#delete_application_alert_config) | **DELETE** /api/events/settings/application-alert-configs/{id} | Delete Smart Alert Config [**disable_application_alert_config**](ApplicationAlertConfigurationApi.md#disable_application_alert_config) | **PUT** /api/events/settings/application-alert-configs/{id}/disable | Disable Smart Alert Config @@ -16,6 +19,240 @@ Method | HTTP request | Description [**update_application_historic_baseline**](ApplicationAlertConfigurationApi.md#update_application_historic_baseline) | **POST** /api/events/settings/application-alert-configs/{id}/update-baseline | Recalculate Smart Alert Config Baseline +# **bulk_delete_application_alert_configs** +> bulk_delete_application_alert_configs(body) + +Bulk Delete Application Smart Alert Configs + +Deletes multiple application alert configurations. Creates new revisions for all specified alerts with deleted=true. All revisions share the same timestamp. Maximum 1000 IDs per request. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.ApplicationAlertConfigurationApi(api_client) + body = ["alert-id-1","alert-id-2","alert-id-3"] # str | + + try: + # Bulk Delete Application Smart Alert Configs + api_instance.bulk_delete_application_alert_configs(body) + except Exception as e: + print("Exception when calling ApplicationAlertConfigurationApi->bulk_delete_application_alert_configs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Successful - no content to return. | - | +**400** | Bad request. | - | +**403** | Insufficient permissions or limited in access. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **bulk_disable_application_alert_configs** +> bulk_disable_application_alert_configs(body) + +Bulk Disable Application Smart Alert Configs + +Disables multiple application alert configurations. Creates new revisions for all specified alerts with enabled=false. All revisions share the same timestamp. Maximum 1000 IDs per request. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.ApplicationAlertConfigurationApi(api_client) + body = ["alert-id-1","alert-id-2","alert-id-3"] # str | + + try: + # Bulk Disable Application Smart Alert Configs + api_instance.bulk_disable_application_alert_configs(body) + except Exception as e: + print("Exception when calling ApplicationAlertConfigurationApi->bulk_disable_application_alert_configs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Successful - no content to return. | - | +**400** | Bad request. | - | +**403** | Insufficient permissions or limited in access. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **bulk_enable_application_alert_configs** +> bulk_enable_application_alert_configs(body) + +Bulk Enable Application Smart Alert Configs + +Enables multiple application alert configurations. Creates new revisions for all specified alerts with enabled=true. All revisions share the same timestamp. Maximum 1000 IDs per request. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.ApplicationAlertConfigurationApi(api_client) + body = ["alert-id-1","alert-id-2","alert-id-3"] # str | + + try: + # Bulk Enable Application Smart Alert Configs + api_instance.bulk_enable_application_alert_configs(body) + except Exception as e: + print("Exception when calling ApplicationAlertConfigurationApi->bulk_enable_application_alert_configs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Successful - no content to return. | - | +**400** | Bad request. | - | +**403** | Insufficient permissions or limited in access. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **create_application_alert_config** > ApplicationAlertConfigWithMetadata create_application_alert_config(application_alert_config) @@ -93,10 +330,10 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Smart Alert Configuration created. | - | -**400** | Invalid Configuration. | - | -**403** | Insufficient permissions. | - | -**422** | Unprocessable entity. | - | +**200** | OK | - | +**400** | Bad request. | - | +**403** | Insufficient permissions or limited in access. | - | +**422** | Unprocessable request - missing/invalid data. | - | **428** | Baseline calculation failed due to insufficient data. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -174,9 +411,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Smart Alert Configuration deleted. | - | -**403** | Insufficient permissions. | - | -**404** | Invalid Configuration ID provided. | - | +**204** | Successful - no content to return. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -255,9 +492,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Smart Alert Configuration disabled. | - | -**403** | Insufficient permissions. | - | -**404** | Invalid Configuration ID provided. | - | +**204** | Successful - no content to return. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -336,9 +573,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Smart Alert Configuration enabled. | - | -**403** | Insufficient permissions. | - | -**404** | Invalid Configuration ID provided. | - | +**204** | Successful - no content to return. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -420,8 +657,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK - Returns an empty list if no configurations match the criteria | - | -**403** | Insufficient permissions. | - | +**200** | OK | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -504,8 +740,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**403** | Insufficient permissions. | - | -**404** | The requested Configuration does not exist. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -586,8 +822,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**403** | Insufficient permissions. | - | -**404** | The requested Configuration does not exist. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -668,9 +904,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Smart Alert Configuration restored. | - | -**403** | Insufficient permissions. | - | -**404** | Invalid Configuration provided. | - | +**204** | Successful - no content to return. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -753,18 +989,18 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Smart Alert Configuration updated. | - | +**200** | OK | - | **204** | Smart Alert Configuration did not change. | - | -**400** | Invalid Application ID provided. | - | -**403** | Insufficient permissions. | - | -**422** | Unprocessable entity. | - | +**400** | Bad request. | - | +**403** | Insufficient permissions or limited in access. | - | +**422** | Unprocessable request - missing/invalid data. | - | **428** | Baseline calculation failed due to insufficient data. | - | -**500** | Internal error. | - | +**500** | Bad request. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_application_historic_baseline** -> update_application_historic_baseline(id) +> update_application_historic_baseline(id, body=body) Recalculate Smart Alert Config Baseline @@ -802,10 +1038,11 @@ with instana_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = instana_client.ApplicationAlertConfigurationApi(api_client) id = 'DKp0JArJRAiQIav9CoKSWQ' # str | ID of a specific Smart Alert Configuration to recalculate. + body = 'body_example' # str | (optional) try: # Recalculate Smart Alert Config Baseline - api_instance.update_application_historic_baseline(id) + api_instance.update_application_historic_baseline(id, body=body) except Exception as e: print("Exception when calling ApplicationAlertConfigurationApi->update_application_historic_baseline: %s\n" % e) ``` @@ -818,6 +1055,7 @@ with instana_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| ID of a specific Smart Alert Configuration to recalculate. | + **body** | **str**| | [optional] ### Return type @@ -829,7 +1067,7 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: Not defined ### HTTP response details @@ -839,8 +1077,8 @@ void (empty response body) **200** | Smart Alert Configuration baseline successfully recalculated and updated. | - | **204** | Baseline recalculation completed with no changes needed. | - | **400** | Invalid configuration type or configuration is read-only. | - | -**403** | Insufficient permissions to access this configuration. | - | -**404** | Smart Alert Configuration not found. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | **428** | Baseline calculation failed due to insufficient data. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/ApplicationResourcesApi.md b/docs/ApplicationResourcesApi.md index eb392f5..d8b73ae 100644 --- a/docs/ApplicationResourcesApi.md +++ b/docs/ApplicationResourcesApi.md @@ -4,14 +4,14 @@ All URIs are relative to *https://unit-tenant.instana.io* Method | HTTP request | Description ------------- | ------------- | ------------- -[**get_application_endpoints**](ApplicationResourcesApi.md#get_application_endpoints) | **GET** /api/application-monitoring/applications/services/endpoints | Get endpoints -[**get_application_services**](ApplicationResourcesApi.md#get_application_services) | **GET** /api/application-monitoring/applications;id=<appId>/services | Get applications/services +[**get_application_endpoints**](ApplicationResourcesApi.md#get_application_endpoints) | **GET** /api/application-monitoring/applications;id={applicationId}/services;id={serviceId}/endpoints;id={endpointId} | Get endpoints +[**get_application_services**](ApplicationResourcesApi.md#get_application_services) | **GET** /api/application-monitoring/applications;id={applicationId}/services;id={serviceId} | Get applications/services [**get_applications**](ApplicationResourcesApi.md#get_applications) | **GET** /api/application-monitoring/applications | Get applications [**get_services**](ApplicationResourcesApi.md#get_services) | **GET** /api/application-monitoring/services | Get services # **get_application_endpoints** -> EndpointResult get_application_endpoints(name_filter=name_filter, types=types, technologies=technologies, window_size=window_size, to=to, page=page, page_size=page_size, application_boundary_scope=application_boundary_scope) +> EndpointResult get_application_endpoints(application_id, service_id, endpoint_id, name_filter=name_filter, types=types, technologies=technologies, window_size=window_size, to=to, page=page, page_size=page_size, application_boundary_scope=application_boundary_scope) Get endpoints @@ -51,6 +51,9 @@ configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] with instana_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = instana_client.ApplicationResourcesApi(api_client) + application_id = 'application_id_example' # str | + service_id = 'service_id_example' # str | + endpoint_id = 'endpoint_id_example' # str | name_filter = 'name_filter_example' # str | Name of service (optional) types = ['types_example'] # List[str] | Type of Endpoint (optional) technologies = ['technologies_example'] # List[str] | List of technologies (optional) @@ -62,7 +65,7 @@ with instana_client.ApiClient(configuration) as api_client: try: # Get endpoints - api_response = api_instance.get_application_endpoints(name_filter=name_filter, types=types, technologies=technologies, window_size=window_size, to=to, page=page, page_size=page_size, application_boundary_scope=application_boundary_scope) + api_response = api_instance.get_application_endpoints(application_id, service_id, endpoint_id, name_filter=name_filter, types=types, technologies=technologies, window_size=window_size, to=to, page=page, page_size=page_size, application_boundary_scope=application_boundary_scope) print("The response of ApplicationResourcesApi->get_application_endpoints:\n") pprint(api_response) except Exception as e: @@ -76,6 +79,9 @@ with instana_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **application_id** | **str**| | + **service_id** | **str**| | + **endpoint_id** | **str**| | **name_filter** | **str**| Name of service | [optional] **types** | [**List[str]**](str.md)| Type of Endpoint | [optional] **technologies** | [**List[str]**](str.md)| List of technologies | [optional] @@ -107,7 +113,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_application_services** -> ServiceResult get_application_services(name_filter=name_filter, window_size=window_size, to=to, page=page, page_size=page_size, application_boundary_scope=application_boundary_scope, include_snapshot_ids=include_snapshot_ids) +> ServiceResult get_application_services(application_id, service_id, name_filter=name_filter, window_size=window_size, to=to, page=page, page_size=page_size, application_boundary_scope=application_boundary_scope, include_snapshot_ids=include_snapshot_ids) Get applications/services @@ -147,6 +153,8 @@ configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] with instana_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = instana_client.ApplicationResourcesApi(api_client) + application_id = 'application_id_example' # str | + service_id = 'service_id_example' # str | name_filter = 'name_filter_example' # str | Name of service (partial match allowed) (optional) window_size = 56 # int | Size of time window in milliseconds (optional) to = 56 # int | Timestamp since Unix Epoch in milliseconds of the end of the time window (optional) @@ -157,7 +165,7 @@ with instana_client.ApiClient(configuration) as api_client: try: # Get applications/services - api_response = api_instance.get_application_services(name_filter=name_filter, window_size=window_size, to=to, page=page, page_size=page_size, application_boundary_scope=application_boundary_scope, include_snapshot_ids=include_snapshot_ids) + api_response = api_instance.get_application_services(application_id, service_id, name_filter=name_filter, window_size=window_size, to=to, page=page, page_size=page_size, application_boundary_scope=application_boundary_scope, include_snapshot_ids=include_snapshot_ids) print("The response of ApplicationResourcesApi->get_application_services:\n") pprint(api_response) except Exception as e: @@ -171,6 +179,8 @@ with instana_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **application_id** | **str**| | + **service_id** | **str**| | **name_filter** | **str**| Name of service (partial match allowed) | [optional] **window_size** | **int**| Size of time window in milliseconds | [optional] **to** | **int**| Timestamp since Unix Epoch in milliseconds of the end of the time window | [optional] diff --git a/docs/ApplicationSettingsApi.md b/docs/ApplicationSettingsApi.md index 1e06cf0..ebbdc9e 100644 --- a/docs/ApplicationSettingsApi.md +++ b/docs/ApplicationSettingsApi.md @@ -537,7 +537,7 @@ void (empty response body) |-------------|-------------|------------------| **204** | Successful - no content to return. | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -621,7 +621,7 @@ void (empty response body) |-------------|-------------|------------------| **204** | Successful - no content to return. | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1533,7 +1533,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/ApplicationSloEntity.md b/docs/ApplicationSloEntity.md index 99398c1..cb64f07 100644 --- a/docs/ApplicationSloEntity.md +++ b/docs/ApplicationSloEntity.md @@ -8,8 +8,8 @@ Name | Type | Description | Notes **application_id** | **str** | The ID of the Application | **boundary_scope** | **str** | The Boundary Scope of the Application | **endpoint_id** | **str** | The Endpoint ID of the Application | [optional] -**include_internal** | **bool** | A boolean value indicating whether the SLO takes Internal calls into account | [optional] -**include_synthetic** | **bool** | A boolean value indicating whether the SLO takes Synthetic calls into account | [optional] +**include_internal** | **bool** | A boolean value indicating whether the SLO takes Internal calls into account | +**include_synthetic** | **bool** | A boolean value indicating whether the SLO takes Synthetic calls into account | **service_id** | **str** | The Service ID of the Application | [optional] ## Example diff --git a/docs/ArithmeticOperation.md b/docs/ArithmeticOperation.md index c5f50fe..d599eae 100644 --- a/docs/ArithmeticOperation.md +++ b/docs/ArithmeticOperation.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **left** | [**ArithmeticOperand**](ArithmeticOperand.md) | | -**operator** | **str** | | +**operator** | **str** | | [optional] **right** | [**ArithmeticOperand**](ArithmeticOperand.md) | | ## Example diff --git a/docs/AuthenticationApi.md b/docs/AuthenticationApi.md index f50effd..c1d66aa 100644 --- a/docs/AuthenticationApi.md +++ b/docs/AuthenticationApi.md @@ -8,6 +8,7 @@ Method | HTTP request | Description [**delete_ldap_config**](AuthenticationApi.md#delete_ldap_config) | **DELETE** /api/settings/authentication/ldap | Delete LDAP configuration [**delete_oidc_config**](AuthenticationApi.md#delete_oidc_config) | **DELETE** /api/settings/authentication/oidc | Delete OIDC configuration [**delete_saml_config**](AuthenticationApi.md#delete_saml_config) | **DELETE** /api/settings/authentication/saml | Delete SAML configuration +[**set_idp_enabled_status**](AuthenticationApi.md#set_idp_enabled_status) | **PATCH** /api/settings/authentication/idp/status | Enable or disable IdP configuration # **delete_google_sso_config** @@ -298,3 +299,81 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **set_idp_enabled_status** +> set_idp_enabled_status(idp_status_update=idp_status_update) + +Enable or disable IdP configuration + +Enable or disable the identity provider (IdP) configuration for the tenant. This allows temporary deactivation of IdP authentication while preserving the configuration. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.models.idp_status_update import IdpStatusUpdate +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.AuthenticationApi(api_client) + idp_status_update = {"enabled":false} # IdpStatusUpdate | (optional) + + try: + # Enable or disable IdP configuration + api_instance.set_idp_enabled_status(idp_status_update=idp_status_update) + except Exception as e: + print("Exception when calling AuthenticationApi->set_idp_enabled_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **idp_status_update** | [**IdpStatusUpdate**](IdpStatusUpdate.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Successful - no content to return. | - | +**404** | No IdP configuration found for tenant | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/CustomDashboard.md b/docs/CustomDashboard.md index eec733b..29cdcbe 100644 --- a/docs/CustomDashboard.md +++ b/docs/CustomDashboard.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **access_rules** | [**List[AccessRule]**](AccessRule.md) | | -**id** | **str** | | +**id** | **str** | | [optional] **title** | **str** | | **widgets** | [**List[Widget]**](Widget.md) | | diff --git a/docs/CustomDashboardWithUserSpecificInformation.md b/docs/CustomDashboardWithUserSpecificInformation.md index 3101ece..0e3d7ce 100644 --- a/docs/CustomDashboardWithUserSpecificInformation.md +++ b/docs/CustomDashboardWithUserSpecificInformation.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **access_rules** | [**List[AccessRule]**](AccessRule.md) | | -**id** | **str** | | +**id** | **str** | | [optional] **owner_id** | **str** | | **title** | **str** | | **widgets** | [**List[Widget]**](Widget.md) | | diff --git a/docs/CustomEntityModel.md b/docs/CustomEntityModel.md index 8d70e10..10343f4 100644 --- a/docs/CustomEntityModel.md +++ b/docs/CustomEntityModel.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **label** | **str** | | **metrics** | [**List[CustomMetric]**](CustomMetric.md) | | [optional] **tag_filter_expression** | [**TagFilterExpressionElement**](TagFilterExpressionElement.md) | | +**tags** | [**List[CustomTag]**](CustomTag.md) | | [optional] ## Example diff --git a/docs/CustomEventSpecificationWithLastUpdated.md b/docs/CustomEventSpecificationWithLastUpdated.md index 3bc3947..b06835c 100644 --- a/docs/CustomEventSpecificationWithLastUpdated.md +++ b/docs/CustomEventSpecificationWithLastUpdated.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **entity_type** | **str** | | **expiration_time** | **int** | | [optional] **id** | **str** | | +**infra_alert_config_id** | **str** | | [optional] **last_updated** | **int** | | [optional] **migrated** | **bool** | | [optional] **name** | **str** | | diff --git a/docs/CustomMetric.md b/docs/CustomMetric.md index aef06a5..a832b4b 100644 --- a/docs/CustomMetric.md +++ b/docs/CustomMetric.md @@ -5,14 +5,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**aggregation** | **str** | Aggregation to apply on the metric for every member. | [optional] +**aggregation** | **str** | Aggregation to apply on the metric for every member. | **category** | **str** | Category of the metric in the catalog | [optional] **description** | **str** | Description to be used in the catalog | [optional] **formatter** | **str** | | * NUMBER: Generic number * BYTES: Number of bytes * KILO_BYTES: Number of kilobytes * MEGA_BYTES: Number of megabytes * PERCENTAGE: Percentage in scale [0,1] * PERCENTAGE_100: Percentage in scale [0,100] * PERCENTAGE_NO_CAPPING: Percentage in scale [0,1] but value could exceed 1 for example when metric is aggregated * PERCENTAGE_100_NO_CAPPING: Percentage in scale [0,100] but value could exceed 100 for example when metric is aggregated * LATENCY: Time in milliseconds, with value of 0 should not be considered a a strict 0, but considered as < 1ms * NANOS: Time in nanoseconds * MILLIS: Time in milliseconds * MICROS: Time in microseconds * SECONDS: Time in seconds * RATE: Number of occurrences per second * BYTE_RATE: Number of bytes per second * UNDEFINED: Metric value unit is not known | [optional] **label** | **str** | Label to be used in the catalog | [optional] **name** | **str** | Name of the metric | [optional] **section** | **str** | Section of the metric in the catalog | [optional] -**source** | **str** | Name of the source metric | [optional] +**source** | **str** | Name of the source metric | **type** | **str** | Type of entity for the source metric | [optional] ## Example diff --git a/docs/CustomPayloadWithLastUpdated.md b/docs/CustomPayloadWithLastUpdated.md index 303975d..e091068 100644 --- a/docs/CustomPayloadWithLastUpdated.md +++ b/docs/CustomPayloadWithLastUpdated.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **fields** | [**List[CustomPayloadField]**](CustomPayloadField.md) | Required parameters for custom payload configuration. | -**last_updated** | **int** | Unix timestamp representing the time (in milliseconds) the configuration was last updated. | [optional] +**last_updated** | **int** | Unix timestamp representing the time (in milliseconds) the configuration was last updated. | [optional] [readonly] ## Example diff --git a/docs/CustomPayloadWithVersion.md b/docs/CustomPayloadWithVersion.md index 1b1e1c2..3b40bde 100644 --- a/docs/CustomPayloadWithVersion.md +++ b/docs/CustomPayloadWithVersion.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **fields** | [**List[CustomPayloadField]**](CustomPayloadField.md) | Required parameters for custom payload configuration. | -**last_updated** | **int** | Unix timestamp representing the time (in milliseconds) the configuration was last updated. | [optional] +**last_updated** | **int** | Unix timestamp representing the time (in milliseconds) the configuration was last updated. | [optional] [readonly] **version** | **int** | Global custom payloads version. | ## Example diff --git a/docs/CustomTag.md b/docs/CustomTag.md new file mode 100644 index 0000000..5d75b40 --- /dev/null +++ b/docs/CustomTag.md @@ -0,0 +1,36 @@ +# CustomTag + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**aggregation** | **str** | Aggregation to apply on the tag for every member. | [optional] +**category** | **str** | Category of the tag in the catalog | [optional] +**description** | **str** | Description to be used in the catalog | [optional] +**label** | **str** | Label to be used in the catalog | [optional] +**name** | **str** | Name of the tag. Will use the same value as the source tag if not specified. | [optional] +**section** | **str** | Section of the tag in the catalog | [optional] +**source** | **str** | Name of the source tag | [optional] +**type** | **str** | Type of entity for the source tag | [optional] + +## Example + +```python +from instana_client.models.custom_tag import CustomTag + +# TODO update the JSON string below +json = "{}" +# create an instance of CustomTag from a JSON string +custom_tag_instance = CustomTag.from_json(json) +# print the JSON string representation of the object +print(CustomTag.to_json()) + +# convert the object into a dict +custom_tag_dict = custom_tag_instance.to_dict() +# create an instance of CustomTag from a dict +custom_tag_from_dict = CustomTag.from_dict(custom_tag_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md new file mode 100644 index 0000000..524aef6 --- /dev/null +++ b/docs/DefaultApi.md @@ -0,0 +1,158 @@ +# instana_client.DefaultApi + +All URIs are relative to *https://unit-tenant.instana.io* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_internal_custom_dashboards**](DefaultApi.md#get_internal_custom_dashboards) | **GET** /api/internal/custom-dashboard | +[**get_internal_dashboard**](DefaultApi.md#get_internal_dashboard) | **GET** /api/internal/custom-dashboard/{dashboardId} | + + +# **get_internal_custom_dashboards** +> get_internal_custom_dashboards(query=query, page_size=page_size, page=page, with_total_hits=with_total_hits) + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.DefaultApi(api_client) + query = 'BeeInstana' # str | query (optional) + page_size = 2 # int | pageSize (optional) + page = 1 # int | page (optional) + with_total_hits = false # bool | withTotalHits (optional) + + try: + api_instance.get_internal_custom_dashboards(query=query, page_size=page_size, page=page, with_total_hits=with_total_hits) + except Exception as e: + print("Exception when calling DefaultApi->get_internal_custom_dashboards: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **query** | **str**| query | [optional] + **page_size** | **int**| pageSize | [optional] + **page** | **int**| page | [optional] + **with_total_hits** | **bool**| withTotalHits | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**0** | default response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_internal_dashboard** +> get_internal_dashboard(dashboard_id) + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.DefaultApi(api_client) + dashboard_id = 'dashboard_id_example' # str | + + try: + api_instance.get_internal_dashboard(dashboard_id) + except Exception as e: + print("Exception when calling DefaultApi->get_internal_dashboard: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dashboard_id** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**0** | default response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/EndUserMonitoringApi.md b/docs/EndUserMonitoringApi.md index 51f395b..d786859 100644 --- a/docs/EndUserMonitoringApi.md +++ b/docs/EndUserMonitoringApi.md @@ -81,7 +81,7 @@ void (empty response body) |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | diff --git a/docs/EventSettingsApi.md b/docs/EventSettingsApi.md index 857b640..a3d81fb 100644 --- a/docs/EventSettingsApi.md +++ b/docs/EventSettingsApi.md @@ -4,6 +4,12 @@ All URIs are relative to *https://unit-tenant.instana.io* Method | HTTP request | Description ------------- | ------------- | ------------- +[**bulk_delete_mobile_app_alert_configs**](EventSettingsApi.md#bulk_delete_mobile_app_alert_configs) | **PUT** /api/events/settings/mobile-app-alert-configs/bulk/delete | Bulk delete Mobile Smart Alert Configs +[**bulk_delete_website_alert_configs**](EventSettingsApi.md#bulk_delete_website_alert_configs) | **PUT** /api/events/settings/website-alert-configs/bulk/delete | Bulk Delete Website Smart Alert Configs +[**bulk_disable_mobile_app_alert_configs**](EventSettingsApi.md#bulk_disable_mobile_app_alert_configs) | **PUT** /api/events/settings/mobile-app-alert-configs/bulk/disable | Bulk disable Mobile Smart Alert Configs +[**bulk_disable_website_alert_configs**](EventSettingsApi.md#bulk_disable_website_alert_configs) | **PUT** /api/events/settings/website-alert-configs/bulk/disable | Bulk Disable Website Smart Alert Configs +[**bulk_enable_mobile_app_alert_configs**](EventSettingsApi.md#bulk_enable_mobile_app_alert_configs) | **PUT** /api/events/settings/mobile-app-alert-configs/bulk/enable | Bulk enable Mobile Smart Alert Configs +[**bulk_enable_website_alert_configs**](EventSettingsApi.md#bulk_enable_website_alert_configs) | **PUT** /api/events/settings/website-alert-configs/bulk/enable | Bulk Enable Website Smart Alert Configs [**create_mobile_app_alert_config**](EventSettingsApi.md#create_mobile_app_alert_config) | **POST** /api/events/settings/mobile-app-alert-configs | Create Mobile Smart Alert Config [**create_website_alert_config**](EventSettingsApi.md#create_website_alert_config) | **POST** /api/events/settings/website-alert-configs | Create Website Smart Alert Config [**delete_alert**](EventSettingsApi.md#delete_alert) | **DELETE** /api/events/settings/alerts/{id} | Delete Alert Configuration @@ -35,6 +41,7 @@ Method | HTTP request | Description [**get_alerts**](EventSettingsApi.md#get_alerts) | **GET** /api/events/settings/alerts | Get all Alert Configurations [**get_built_in_event_specification**](EventSettingsApi.md#get_built_in_event_specification) | **GET** /api/events/settings/event-specifications/built-in/{eventSpecificationId} | Built-in event specifications [**get_built_in_event_specifications**](EventSettingsApi.md#get_built_in_event_specifications) | **GET** /api/events/settings/event-specifications/built-in | All built-in event specification +[**get_current_prefix**](EventSettingsApi.md#get_current_prefix) | **GET** /api/events/settings/shortcode/current-prefix | Get current shortcode prefix. [**get_custom_event_specification**](EventSettingsApi.md#get_custom_event_specification) | **GET** /api/events/settings/event-specifications/custom/{eventSpecificationId} | Custom event specification [**get_custom_event_specifications**](EventSettingsApi.md#get_custom_event_specifications) | **GET** /api/events/settings/event-specifications/custom | All custom event specifications [**get_custom_payload_configurations**](EventSettingsApi.md#get_custom_payload_configurations) | **GET** /api/events/settings/custom-payload-configurations | Get All Global Custom Payload Configurations @@ -55,14 +62,483 @@ Method | HTTP request | Description [**send_test_alerting_by_id**](EventSettingsApi.md#send_test_alerting_by_id) | **POST** /api/events/settings/alertingChannels/notify/{id} | Notify manually to Alerting Channel. Requires the permission called CanConfigureIntegrations. [**update_mobile_app_alert_config**](EventSettingsApi.md#update_mobile_app_alert_config) | **POST** /api/events/settings/mobile-app-alert-configs/{id} | Update Mobile Smart Alert Config [**update_mobile_app_historic_baseline**](EventSettingsApi.md#update_mobile_app_historic_baseline) | **POST** /api/events/settings/mobile-app-alert-configs/{id}/update-baseline | Recalculate Mobile Smart Alert Config Baseline +[**update_prefix**](EventSettingsApi.md#update_prefix) | **PUT** /api/events/settings/shortcode/current-prefix | Update shortcode prefix. [**update_website_alert_config**](EventSettingsApi.md#update_website_alert_config) | **POST** /api/events/settings/website-alert-configs/{id} | Update Website Smart Alert Config [**update_website_historic_baseline**](EventSettingsApi.md#update_website_historic_baseline) | **POST** /api/events/settings/website-alert-configs/{id}/update-baseline | Recalculate Website Smart Alert Config Baseline [**upsert_custom_payload_configuration**](EventSettingsApi.md#upsert_custom_payload_configuration) | **PUT** /api/events/settings/custom-payload-configurations | Create/Update Global Custom Payload Configuration [**upsert_custom_payload_configuration_v2**](EventSettingsApi.md#upsert_custom_payload_configuration_v2) | **PUT** /api/events/settings/custom-payload-configurations/v2 | Create/Update Global Custom Payload Configuration +# **bulk_delete_mobile_app_alert_configs** +> bulk_delete_mobile_app_alert_configs(request_body) + +Bulk delete Mobile Smart Alert Configs + +Deletes multiple Mobile Smart Alert Configurations in a single request. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.EventSettingsApi(api_client) + request_body = ['request_body_example'] # List[str] | + + try: + # Bulk delete Mobile Smart Alert Configs + api_instance.bulk_delete_mobile_app_alert_configs(request_body) + except Exception as e: + print("Exception when calling EventSettingsApi->bulk_delete_mobile_app_alert_configs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request_body** | [**List[str]**](str.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Successful - no content to return. | - | +**400** | Bad request. | - | +**403** | Insufficient permissions or limited in access. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **bulk_delete_website_alert_configs** +> bulk_delete_website_alert_configs(body) + +Bulk Delete Website Smart Alert Configs + +Deletes multiple website alert configurations. Creates new revisions for all specified alerts with deleted=true. All revisions share the same timestamp. Maximum 1000 IDs per request. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.EventSettingsApi(api_client) + body = ["alert-id-1","alert-id-2","alert-id-3"] # str | + + try: + # Bulk Delete Website Smart Alert Configs + api_instance.bulk_delete_website_alert_configs(body) + except Exception as e: + print("Exception when calling EventSettingsApi->bulk_delete_website_alert_configs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Successful - no content to return. | - | +**400** | Bad request. | - | +**403** | Insufficient permissions or limited in access. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **bulk_disable_mobile_app_alert_configs** +> bulk_disable_mobile_app_alert_configs(request_body) + +Bulk disable Mobile Smart Alert Configs + +Disables multiple Mobile Smart Alert Configurations in a single request. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.EventSettingsApi(api_client) + request_body = ['request_body_example'] # List[str] | + + try: + # Bulk disable Mobile Smart Alert Configs + api_instance.bulk_disable_mobile_app_alert_configs(request_body) + except Exception as e: + print("Exception when calling EventSettingsApi->bulk_disable_mobile_app_alert_configs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request_body** | [**List[str]**](str.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Successful - no content to return. | - | +**400** | Bad request. | - | +**403** | Insufficient permissions or limited in access. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **bulk_disable_website_alert_configs** +> bulk_disable_website_alert_configs(body) + +Bulk Disable Website Smart Alert Configs + +Disables multiple website alert configurations. Creates new revisions for all specified alerts with enabled=false. All revisions share the same timestamp. Maximum 1000 IDs per request. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.EventSettingsApi(api_client) + body = ["alert-id-1","alert-id-2","alert-id-3"] # str | + + try: + # Bulk Disable Website Smart Alert Configs + api_instance.bulk_disable_website_alert_configs(body) + except Exception as e: + print("Exception when calling EventSettingsApi->bulk_disable_website_alert_configs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Successful - no content to return. | - | +**400** | Bad request. | - | +**403** | Insufficient permissions or limited in access. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **bulk_enable_mobile_app_alert_configs** +> bulk_enable_mobile_app_alert_configs(request_body) + +Bulk enable Mobile Smart Alert Configs + +Enables multiple Mobile Smart Alert Configurations in a single request. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.EventSettingsApi(api_client) + request_body = ['request_body_example'] # List[str] | + + try: + # Bulk enable Mobile Smart Alert Configs + api_instance.bulk_enable_mobile_app_alert_configs(request_body) + except Exception as e: + print("Exception when calling EventSettingsApi->bulk_enable_mobile_app_alert_configs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request_body** | [**List[str]**](str.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Successful - no content to return. | - | +**400** | Bad request. | - | +**403** | Insufficient permissions or limited in access. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **bulk_enable_website_alert_configs** +> bulk_enable_website_alert_configs(body) + +Bulk Enable Website Smart Alert Configs + +Enables multiple website alert configurations. Creates new revisions for all specified alerts with enabled=true. All revisions share the same timestamp. Maximum 1000 IDs per request. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.EventSettingsApi(api_client) + body = ["alert-id-1","alert-id-2","alert-id-3"] # str | + + try: + # Bulk Enable Website Smart Alert Configs + api_instance.bulk_enable_website_alert_configs(body) + except Exception as e: + print("Exception when calling EventSettingsApi->bulk_enable_website_alert_configs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Successful - no content to return. | - | +**400** | Bad request. | - | +**403** | Insufficient permissions or limited in access. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **create_mobile_app_alert_config** -> WithMetadata create_mobile_app_alert_config(mobile_app_alert_config) +> WithMetaData create_mobile_app_alert_config(mobile_app_alert_config) Create Mobile Smart Alert Config @@ -75,7 +551,7 @@ Creates a new Mobile Smart Alert Configuration. ```python import instana_client from instana_client.models.mobile_app_alert_config import MobileAppAlertConfig -from instana_client.models.with_metadata import WithMetadata +from instana_client.models.with_meta_data import WithMetaData from instana_client.rest import ApiException from pprint import pprint @@ -122,7 +598,7 @@ Name | Type | Description | Notes ### Return type -[**WithMetadata**](WithMetadata.md) +[**WithMetaData**](WithMetaData.md) ### Authorization @@ -137,10 +613,10 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Mobile Smart Alert Configuration created. | - | -**400** | Invalid Configuration. | - | -**403** | Insufficient permissions. | - | -**422** | Unprocessable entity. | - | +**200** | OK | - | +**400** | Bad request. | - | +**403** | Insufficient permissions or limited in access. | - | +**422** | Unprocessable request - missing/invalid data. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -220,10 +696,10 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Website Smart Alert Configuration created. | - | -**400** | Invalid configuration. | - | -**403** | Insufficient permissions. | - | -**422** | Unprocessable entity. | - | +**200** | OK | - | +**400** | Bad request. | - | +**403** | Insufficient permissions or limited in access. | - | +**422** | Unprocessable request - missing/invalid data. | - | **428** | Baseline calculation failed due to insufficient data. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -453,7 +929,7 @@ void (empty response body) |-------------|-------------|------------------| **204** | Successful - no content to return. | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -529,7 +1005,7 @@ void (empty response body) |-------------|-------------|------------------| **204** | Successful - no content to return. | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -603,7 +1079,7 @@ void (empty response body) |-------------|-------------|------------------| **204** | Successful - no content to return. | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -679,9 +1155,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Mobile Smart Alert Configuration deleted. | - | -**403** | Insufficient permissions. | - | -**404** | Invalid Configuration ID provided. | - | +**204** | Successful - no content to return. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -757,9 +1233,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Website Smart Alert Configuration deleted. | - | -**403** | Insufficient permissions. | - | -**404** | Invalid Configuration ID provided. | - | +**204** | Successful - no content to return. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -840,7 +1316,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Built-in event specification not found | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -923,7 +1399,7 @@ Name | Type | Description | Notes **200** | OK | - | **400** | The event configuration was already migrated | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Custom Event does not exist | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1002,9 +1478,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Mobile Smart Alert Configuration disabled. | - | -**403** | Insufficient permissions. | - | -**404** | Invalid Configuration ID provided. | - | +**204** | Successful - no content to return. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1082,9 +1558,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Website Smart Alert Configuration disabled. | - | -**403** | Insufficient permissions. | - | -**404** | Invalid Configuration ID provided. | - | +**204** | Successful - no content to return. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1165,7 +1641,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Built-in event specification not found | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1248,7 +1724,7 @@ Name | Type | Description | Notes **200** | OK | - | **400** | The event configuration was already migrated | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Custom Event does not exist | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1327,9 +1803,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Mobile Smart Alert Configuration enabled. | - | -**403** | Insufficient permissions. | - | -**404** | Invalid Configuration ID provided. | - | +**204** | Successful - no content to return. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1407,14 +1883,14 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Website Smart Alert Configuration enabled. | - | -**403** | Insufficient permissions. | - | -**404** | Invalid Configuration ID provided. | - | +**204** | Successful - no content to return. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **find_active_mobile_app_alert_configs** -> List[WithMetadata] find_active_mobile_app_alert_configs(mobile_app_id, alert_ids=alert_ids) +> List[MobileAppAlertConfigWithRBACTag] find_active_mobile_app_alert_configs(mobile_app_id, alert_ids=alert_ids) Get all Mobile Smart Alert Configs @@ -1426,7 +1902,7 @@ Gets all the Mobile Smart Alert Configuration pertaining to a specific mobile ap ```python import instana_client -from instana_client.models.with_metadata import WithMetadata +from instana_client.models.mobile_app_alert_config_with_rbac_tag import MobileAppAlertConfigWithRBACTag from instana_client.rest import ApiException from pprint import pprint @@ -1452,7 +1928,7 @@ with instana_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = instana_client.EventSettingsApi(api_client) mobile_app_id = 'tk2OLeusR3aQJD5h-rBh2A' # str | The ID of a specific Mobile Application. - alert_ids = ['smRTFp08juKWtn8I'] # List[str] | A list of Smart Alert Configuration IDs. This allows Website Smart Alert Configuration of a specific set of Configurations. This query can be repeated to use multiple IDs. (optional) + alert_ids = ['smRTFp08juKWtn8I'] # List[str] | A list of Smart Alert Configuration IDs. This allows Mobile Application Smart Alert Configuration of a specific set of Configurations. This query can be repeated to use multiple IDs. (optional) try: # Get all Mobile Smart Alert Configs @@ -1471,11 +1947,11 @@ with instana_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **mobile_app_id** | **str**| The ID of a specific Mobile Application. | - **alert_ids** | [**List[str]**](str.md)| A list of Smart Alert Configuration IDs. This allows Website Smart Alert Configuration of a specific set of Configurations. This query can be repeated to use multiple IDs. | [optional] + **alert_ids** | [**List[str]**](str.md)| A list of Smart Alert Configuration IDs. This allows Mobile Application Smart Alert Configuration of a specific set of Configurations. This query can be repeated to use multiple IDs. | [optional] ### Return type -[**List[WithMetadata]**](WithMetadata.md) +[**List[MobileAppAlertConfigWithRBACTag]**](MobileAppAlertConfigWithRBACTag.md) ### Authorization @@ -1490,13 +1966,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. Returns empty result if mobileAppId is invalid. | - | -**403** | Insufficient permissions. | - | +**200** | OK | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **find_active_website_alert_configs** -> List[WebsiteAlertConfigWithMetadata] find_active_website_alert_configs(website_id, alert_ids=alert_ids) +> List[WebsiteAlertConfigWithRBACTag] find_active_website_alert_configs(website_id, alert_ids=alert_ids) Get all Website Smart Alert Configs @@ -1508,7 +1983,7 @@ Gets all the Website Smart Alert Configuration pertaining to a specific website. ```python import instana_client -from instana_client.models.website_alert_config_with_metadata import WebsiteAlertConfigWithMetadata +from instana_client.models.website_alert_config_with_rbac_tag import WebsiteAlertConfigWithRBACTag from instana_client.rest import ApiException from pprint import pprint @@ -1557,7 +2032,7 @@ Name | Type | Description | Notes ### Return type -[**List[WebsiteAlertConfigWithMetadata]**](WebsiteAlertConfigWithMetadata.md) +[**List[WebsiteAlertConfigWithRBACTag]**](WebsiteAlertConfigWithRBACTag.md) ### Authorization @@ -1572,13 +2047,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. Returns empty result if websiteId is invalid. | - | -**403** | Insufficient permissions. | - | +**200** | OK | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **find_mobile_app_alert_config** -> WithMetadata find_mobile_app_alert_config(id, valid_on=valid_on) +> MobileAppAlertConfigWithRBACTag find_mobile_app_alert_config(id, valid_on=valid_on) Get Mobile Smart Alert Config @@ -1590,7 +2064,7 @@ Gets a specific Mobile Smart Alert Configuration. This may return a deleted Conf ```python import instana_client -from instana_client.models.with_metadata import WithMetadata +from instana_client.models.mobile_app_alert_config_with_rbac_tag import MobileAppAlertConfigWithRBACTag from instana_client.rest import ApiException from pprint import pprint @@ -1639,7 +2113,7 @@ Name | Type | Description | Notes ### Return type -[**WithMetadata**](WithMetadata.md) +[**MobileAppAlertConfigWithRBACTag**](MobileAppAlertConfigWithRBACTag.md) ### Authorization @@ -1655,8 +2129,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**403** | Insufficient permissions. | - | -**404** | The requested Configuration does not exist. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1736,13 +2210,13 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**403** | Insufficient permissions. | - | -**404** | The requested Configuration does not exist. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **find_website_alert_config** -> WebsiteAlertConfigWithMetadata find_website_alert_config(id, valid_on=valid_on) +> WebsiteAlertConfigWithRBACTag find_website_alert_config(id, valid_on=valid_on) Get Website Smart Alert Config @@ -1754,7 +2228,7 @@ Gets a specific Website Smart Alert Configuration. This may return a deleted Con ```python import instana_client -from instana_client.models.website_alert_config_with_metadata import WebsiteAlertConfigWithMetadata +from instana_client.models.website_alert_config_with_rbac_tag import WebsiteAlertConfigWithRBACTag from instana_client.rest import ApiException from pprint import pprint @@ -1803,7 +2277,7 @@ Name | Type | Description | Notes ### Return type -[**WebsiteAlertConfigWithMetadata**](WebsiteAlertConfigWithMetadata.md) +[**WebsiteAlertConfigWithRBACTag**](WebsiteAlertConfigWithRBACTag.md) ### Authorization @@ -1819,8 +2293,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**403** | Insufficient permissions. | - | -**404** | The requested configuration does not exist. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1900,8 +2374,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**403** | Insufficient permissions. | - | -**404** | The requested Configuration does not exist. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1982,7 +2456,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2104,7 +2578,7 @@ configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] with instana_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = instana_client.EventSettingsApi(api_client) - ids = ['[YbcFlaG8k5oIkxD0, OYcbU9gdP6OTBThJ, qbhfsL9vTtlaBOAt]'] # List[str] | List of IDs of alert channels defined in Instana. Can be left empty. (optional) + ids = ['[\"YbcFlaG8k5oIkxD0\",\"OYcbU9gdP6OTBThJ\",\"qbhfsL9vTtlaBOAt\"]'] # List[str] | List of IDs of alert channels defined in Instana. Can be left empty. (optional) try: # Get all Alerting Channels @@ -2183,7 +2657,7 @@ configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] with instana_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = instana_client.EventSettingsApi(api_client) - ids = ['[YbcFlaG8k5oIkxD0, OYcbU9gdP6OTBThJ, qbhfsL9vTtlaBOAt]'] # List[str] | List of IDs of alert channels defined in Instana. Can be left empty. (optional) + ids = ['[\"YbcFlaG8k5oIkxD0\",\"OYcbU9gdP6OTBThJ\",\"qbhfsL9vTtlaBOAt\"]'] # List[str] | List of IDs of alert channels defined in Instana. Can be left empty. (optional) try: # Get Overview of Alerting Channels @@ -2301,7 +2775,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2378,7 +2852,7 @@ This endpoint does not need any parameter. |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2457,7 +2931,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Built-in event specification not found | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2539,7 +3013,81 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_current_prefix** +> get_current_prefix() + +Get current shortcode prefix. + +Returns the current shortcode prefix used for events. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.EventSettingsApi(api_client) + + try: + # Get current shortcode prefix. + api_instance.get_current_prefix() + except Exception as e: + print("Exception when calling EventSettingsApi->get_current_prefix: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The current shortcode prefix. | - | +**401** | Unauthorized access - requires user authentication. | - | +**403** | Insufficient permissions or limited in access. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2620,7 +3168,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Custom Event does not exist | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2698,12 +3246,12 @@ This endpoint does not need any parameter. |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_custom_payload_configurations** -> CustomPayloadWithVersion get_custom_payload_configurations(context=context) +> CustomPayloadWithVersion get_custom_payload_configurations(context=context, owner_type=owner_type) Get All Global Custom Payload Configurations @@ -2741,10 +3289,11 @@ with instana_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = instana_client.EventSettingsApi(api_client) context = ALL # str | (optional) (default to ALL) + owner_type = 'owner_type_example' # str | (optional) try: # Get All Global Custom Payload Configurations - api_response = api_instance.get_custom_payload_configurations(context=context) + api_response = api_instance.get_custom_payload_configurations(context=context, owner_type=owner_type) print("The response of EventSettingsApi->get_custom_payload_configurations:\n") pprint(api_response) except Exception as e: @@ -2759,6 +3308,7 @@ with instana_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **context** | **str**| | [optional] [default to ALL] + **owner_type** | **str**| | [optional] ### Return type @@ -2779,7 +3329,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2856,7 +3406,7 @@ This endpoint does not need any parameter. |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2933,7 +3483,7 @@ This endpoint does not need any parameter. |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3014,7 +3564,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3091,7 +3641,7 @@ This endpoint does not need any parameter. |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3176,8 +3726,9 @@ Name | Type | Description | Notes **200** | The event associated with that event id was successfully closed. | - | **400** | The manual close information is required. | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | The event id refers to an event that is not open. | - | +**422** | Validation failed. The request body contains invalid or missing required fields (e.g., blank username or reasonForClosing). | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3259,7 +3810,7 @@ Name | Type | Description | Notes **200** | The multi close operation was successful | - | **207** | At least one of the manual close operations failed | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **501** | The multi close feature is not enabled. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3422,7 +3973,7 @@ Name | Type | Description | Notes **200** | OK | - | **400** | Invalid request: unsupported entity type or incorrect query. | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3506,7 +4057,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **422** | Unprocessable request - missing/invalid data. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3675,7 +4226,7 @@ Name | Type | Description | Notes **200** | OK | - | **400** | Invalid request: unsupported entity type, incorrect query, or event is deleted or migrated. | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Custom event cannot be updated. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3756,9 +4307,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Mobile Smart Alert Configuration restored. | - | -**403** | Insufficient permissions. | - | -**404** | Invalid Configuration provided. | - | +**204** | Successful - no content to return. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3838,9 +4389,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Website Smart Alert Configuration restored. | - | -**403** | Insufficient permissions. | - | -**404** | Invalid Configuration provided. | - | +**204** | Successful - no content to return. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -4001,7 +4552,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_mobile_app_alert_config** -> WithMetadata update_mobile_app_alert_config(id, mobile_app_alert_config) +> WithMetaData update_mobile_app_alert_config(id, mobile_app_alert_config) Update Mobile Smart Alert Config @@ -4014,7 +4565,7 @@ Updates an existing Mobile Smart Alert Configuration. ```python import instana_client from instana_client.models.mobile_app_alert_config import MobileAppAlertConfig -from instana_client.models.with_metadata import WithMetadata +from instana_client.models.with_meta_data import WithMetaData from instana_client.rest import ApiException from pprint import pprint @@ -4063,7 +4614,7 @@ Name | Type | Description | Notes ### Return type -[**WithMetadata**](WithMetadata.md) +[**WithMetaData**](WithMetaData.md) ### Authorization @@ -4078,17 +4629,18 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Mobile Smart Alert Configuration updated. | - | +**200** | OK | - | **204** | Mobile Smart Alert Configuration did not change. | - | -**400** | Invalid Mobile App ID provided. | - | -**403** | Insufficient permissions. | - | -**422** | Unprocessable entity. | - | -**500** | Internal error. | - | +**400** | Bad request. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | +**422** | Unprocessable request - missing/invalid data. | - | +**500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_mobile_app_historic_baseline** -> update_mobile_app_historic_baseline(id) +> update_mobile_app_historic_baseline(id, body=body) Recalculate Mobile Smart Alert Config Baseline @@ -4125,10 +4677,11 @@ with instana_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = instana_client.EventSettingsApi(api_client) id = 'qOW5jlR5TQafXKWDIceRkA' # str | ID of a specific Mobile Smart Alert Configuration to recalculate. + body = 'body_example' # str | (optional) try: # Recalculate Mobile Smart Alert Config Baseline - api_instance.update_mobile_app_historic_baseline(id) + api_instance.update_mobile_app_historic_baseline(id, body=body) except Exception as e: print("Exception when calling EventSettingsApi->update_mobile_app_historic_baseline: %s\n" % e) ``` @@ -4141,6 +4694,7 @@ with instana_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| ID of a specific Mobile Smart Alert Configuration to recalculate. | + **body** | **str**| | [optional] ### Return type @@ -4152,7 +4706,7 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: Not defined ### HTTP response details @@ -4162,12 +4716,86 @@ void (empty response body) **200** | Mobile Smart Alert Configuration baseline successfully recalculated and updated. | - | **204** | Baseline recalculation completed with no changes needed. | - | **400** | Invalid configuration type or configuration is read-only. | - | -**403** | Insufficient permissions to access this configuration. | - | -**404** | Mobile Smart Alert Configuration not found. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | **428** | Baseline calculation failed due to insufficient data. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **update_prefix** +> update_prefix() + +Update shortcode prefix. + +Updates the shortcode prefix used for events. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.EventSettingsApi(api_client) + + try: + # Update shortcode prefix. + api_instance.update_prefix() + except Exception as e: + print("Exception when calling EventSettingsApi->update_prefix: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The result of the update operation. | - | +**401** | Unauthorized access - requires user authentication. | - | +**403** | Insufficient permissions or limited in access. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **update_website_alert_config** > WebsiteAlertConfigWithMetadata update_website_alert_config(id, website_alert_config) @@ -4246,19 +4874,19 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Website Smart Alert Configuration updated. | - | -**204** | Website Smart Alert Configuration did not change. | - | -**400** | Invalid Configuration ID provided. | - | -**403** | Insufficient permissions. | - | -**404** | The requested configuration does not exist. | - | -**422** | Unprocessable entity. | - | +**200** | OK | - | +**204** | Successful - no content to return. | - | +**400** | Bad request. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | +**422** | Unprocessable request - missing/invalid data. | - | **428** | Baseline calculation failed due to insufficient data. | - | -**500** | Internal error. | - | +**500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_website_historic_baseline** -> update_website_historic_baseline(id) +> update_website_historic_baseline(id, body=body) Recalculate Website Smart Alert Config Baseline @@ -4295,10 +4923,11 @@ with instana_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = instana_client.EventSettingsApi(api_client) id = 'G-h5p0znTHan2m2U3c-Z1Q' # str | ID of a specific Website Smart Alert Configuration to recalculate. + body = 'body_example' # str | (optional) try: # Recalculate Website Smart Alert Config Baseline - api_instance.update_website_historic_baseline(id) + api_instance.update_website_historic_baseline(id, body=body) except Exception as e: print("Exception when calling EventSettingsApi->update_website_historic_baseline: %s\n" % e) ``` @@ -4311,6 +4940,7 @@ with instana_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| ID of a specific Website Smart Alert Configuration to recalculate. | + **body** | **str**| | [optional] ### Return type @@ -4322,7 +4952,7 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: Not defined ### HTTP response details @@ -4332,8 +4962,8 @@ void (empty response body) **200** | Website Smart Alert Configuration baseline successfully recalculated and updated. | - | **204** | Baseline recalculation completed with no changes needed. | - | **400** | Invalid configuration type or configuration is read-only. | - | -**403** | Insufficient permissions to access this configuration. | - | -**404** | Website Smart Alert Configuration not found. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | **428** | Baseline calculation failed due to insufficient data. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -4416,13 +5046,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **422** | Unable to process request, request data is invalid. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **upsert_custom_payload_configuration_v2** -> List[CustomPayloadWithVersion] upsert_custom_payload_configuration_v2(custom_payload_configuration) +> List[CustomPayloadWithVersion] upsert_custom_payload_configuration_v2(custom_payload_with_version) Create/Update Global Custom Payload Configuration @@ -4434,7 +5064,6 @@ Creates or Updates Global Custom Payload Configuration. ```python import instana_client -from instana_client.models.custom_payload_configuration import CustomPayloadConfiguration from instana_client.models.custom_payload_with_version import CustomPayloadWithVersion from instana_client.rest import ApiException from pprint import pprint @@ -4460,7 +5089,7 @@ configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] with instana_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = instana_client.EventSettingsApi(api_client) - custom_payload_configuration = "fields": + custom_payload_with_version = "fields": [ { "type": "staticString", @@ -4477,11 +5106,11 @@ with instana_client.ApiClient(configuration) as api_client: } ], "version": 1 - # CustomPayloadConfiguration | + # CustomPayloadWithVersion | try: # Create/Update Global Custom Payload Configuration - api_response = api_instance.upsert_custom_payload_configuration_v2(custom_payload_configuration) + api_response = api_instance.upsert_custom_payload_configuration_v2(custom_payload_with_version) print("The response of EventSettingsApi->upsert_custom_payload_configuration_v2:\n") pprint(api_response) except Exception as e: @@ -4495,7 +5124,7 @@ with instana_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **custom_payload_configuration** | [**CustomPayloadConfiguration**](CustomPayloadConfiguration.md)| | + **custom_payload_with_version** | [**CustomPayloadWithVersion**](CustomPayloadWithVersion.md)| | ### Return type @@ -4517,7 +5146,7 @@ Name | Type | Description | Notes **200** | OK | - | **400** | Bad request. | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **409** | Version conflict. | - | **422** | Unable to process request, request data is invalid. | - | diff --git a/docs/GenericInfraAlertRule.md b/docs/GenericInfraAlertRule.md index 8f2b2ef..85a2ebc 100644 --- a/docs/GenericInfraAlertRule.md +++ b/docs/GenericInfraAlertRule.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**entity_type** | **str** | | **metric_group_by** | **List[str]** | | ## Example diff --git a/docs/GetInfrastructureGroupsQuery.md b/docs/GetInfrastructureGroupsQuery.md index 711f51e..545c07c 100644 --- a/docs/GetInfrastructureGroupsQuery.md +++ b/docs/GetInfrastructureGroupsQuery.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **metrics** | [**List[InfraMetricConfiguration]**](InfraMetricConfiguration.md) | | [optional] **missing_placeholder** | **str** | | [optional] **order** | [**Order**](Order.md) | | [optional] -**pagination** | [**CursorPaginationInfraExploreCursor**](CursorPaginationInfraExploreCursor.md) | | +**pagination** | [**CursorPagination**](CursorPagination.md) | | **tag_filter_expression** | [**TagFilterExpressionElement**](TagFilterExpressionElement.md) | | **time_frame** | [**TimeFrame**](TimeFrame.md) | | **type** | **str** | Type of entities | [optional] diff --git a/docs/GetInfrastructureQuery.md b/docs/GetInfrastructureQuery.md index c3d9eff..d2cb781 100644 --- a/docs/GetInfrastructureQuery.md +++ b/docs/GetInfrastructureQuery.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **metrics** | [**List[InfraMetricConfiguration]**](InfraMetricConfiguration.md) | | [optional] **missing_placeholder** | **str** | | [optional] **order** | [**Order**](Order.md) | | [optional] -**pagination** | [**CursorPaginationInfraExploreCursor**](CursorPaginationInfraExploreCursor.md) | | +**pagination** | [**CursorPagination**](CursorPagination.md) | | **tag_filter_expression** | [**TagFilterExpressionElement**](TagFilterExpressionElement.md) | | **tags** | **List[str]** | | [optional] **time_frame** | [**TimeFrame**](TimeFrame.md) | | diff --git a/docs/GetSessionReplayMetadataResult.md b/docs/GetSessionReplayMetadataResult.md new file mode 100644 index 0000000..0d5140c --- /dev/null +++ b/docs/GetSessionReplayMetadataResult.md @@ -0,0 +1,31 @@ +# GetSessionReplayMetadataResult + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**has_more** | **bool** | Whether there are more records to fetch beyond this page | +**metadata** | [**List[SessionReplayMetadata]**](SessionReplayMetadata.md) | List of session replay metadata records | +**next_cursor** | **int** | Cursor for the next page (timestamp of last record) | [optional] + +## Example + +```python +from instana_client.models.get_session_replay_metadata_result import GetSessionReplayMetadataResult + +# TODO update the JSON string below +json = "{}" +# create an instance of GetSessionReplayMetadataResult from a JSON string +get_session_replay_metadata_result_instance = GetSessionReplayMetadataResult.from_json(json) +# print the JSON string representation of the object +print(GetSessionReplayMetadataResult.to_json()) + +# convert the object into a dict +get_session_replay_metadata_result_dict = get_session_replay_metadata_result_instance.to_dict() +# create an instance of GetSessionReplayMetadataResult from a dict +get_session_replay_metadata_result_from_dict = GetSessionReplayMetadataResult.from_dict(get_session_replay_metadata_result_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetTestResultAnalytic.md b/docs/GetTestResultAnalytic.md index 0025e62..3f93e33 100644 --- a/docs/GetTestResultAnalytic.md +++ b/docs/GetTestResultAnalytic.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**analytic_function** | **str** | | +**analytic_function** | **str** | | [optional] **include_location_id_grouping** | **bool** | | [optional] **order** | [**Order**](Order.md) | | [optional] **pagination** | [**Pagination**](Pagination.md) | | [optional] diff --git a/docs/GlobalApplicationAlertConfigurationApi.md b/docs/GlobalApplicationAlertConfigurationApi.md index 04ba087..543aa68 100644 --- a/docs/GlobalApplicationAlertConfigurationApi.md +++ b/docs/GlobalApplicationAlertConfigurationApi.md @@ -92,10 +92,10 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Global Smart Alert Configuration created. | - | -**400** | Invalid Configuration. | - | -**403** | Insufficient permissions. | - | -**422** | Unprocessable entity. | - | +**200** | OK | - | +**400** | Bad request. | - | +**403** | Insufficient permissions or limited in access. | - | +**422** | Unprocessable request - missing/invalid data. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -172,9 +172,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Global Smart Alert Configuration deleted. | - | -**403** | Insufficient permissions. | - | -**404** | Invalid Configuration ID provided. | - | +**204** | Successful - no content to return. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -253,9 +253,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Global Smart Alert Configuration disabled. | - | -**403** | Insufficient permissions. | - | -**404** | Invalid Configuration ID provided. | - | +**204** | Successful - no content to return. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -334,9 +334,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Global Smart Alert Configuration enabled. | - | -**403** | Insufficient permissions. | - | -**404** | Invalid Configuration ID provided. | - | +**204** | Successful - no content to return. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -418,8 +418,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK - Returns an empty list if no configurations match the criteria | - | -**403** | Insufficient permissions. | - | +**200** | OK | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -502,8 +501,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**403** | Insufficient permissions. | - | -**404** | The requested Configuration does not exist. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -584,8 +583,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**403** | Insufficient permissions. | - | -**404** | The requested Configuration does not exist. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -666,9 +665,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Global Smart Alert Configuration restored. | - | -**403** | Insufficient permissions. | - | -**404** | Invalid Configuration provided. | - | +**204** | Successful - no content to return. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -751,12 +750,13 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Global Smart Alert Configuration updated. | - | +**200** | OK | - | **204** | Global Smart Alert Configuration did not change. | - | -**400** | Invalid Application ID provided. | - | -**403** | Insufficient permissions. | - | -**422** | Unprocessable entity. | - | -**500** | Internal error. | - | +**400** | Bad request. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | +**422** | Unprocessable request - missing/invalid data. | - | +**500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/IdpStatusUpdate.md b/docs/IdpStatusUpdate.md new file mode 100644 index 0000000..a3b6cf3 --- /dev/null +++ b/docs/IdpStatusUpdate.md @@ -0,0 +1,29 @@ +# IdpStatusUpdate + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] + +## Example + +```python +from instana_client.models.idp_status_update import IdpStatusUpdate + +# TODO update the JSON string below +json = "{}" +# create an instance of IdpStatusUpdate from a JSON string +idp_status_update_instance = IdpStatusUpdate.from_json(json) +# print the JSON string representation of the object +print(IdpStatusUpdate.to_json()) + +# convert the object into a dict +idp_status_update_dict = idp_status_update_instance.to_dict() +# create an instance of IdpStatusUpdate from a dict +idp_status_update_from_dict = IdpStatusUpdate.from_dict(idp_status_update_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InfraAlertConfig.md b/docs/InfraAlertConfig.md index c734ae1..4ee80c4 100644 --- a/docs/InfraAlertConfig.md +++ b/docs/InfraAlertConfig.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **group_by** | **List[str]** | The grouping tags used to group the metric results. | **name** | **str** | Name of the Infrastructure Smart Alert. Used as a template for the title of alert/event notifications triggered by this Smart Alert configuration. | **rule** | [**InfraAlertRule**](InfraAlertRule.md) | | [optional] +**rule_logical_operator** | **str** | Set AND / OR | [optional] **rules** | [**List[RuleWithThresholdInfraAlertRule]**](RuleWithThresholdInfraAlertRule.md) | A list of rules where each rule is associated with multiple thresholds and their corresponding severity levels. This enables more complex alert configurations with validations to ensure consistent and logical threshold-severity combinations. | [optional] **severity** | **int** | The severity of the alert when triggered, which is either 5 (Warning), or 10 (Critical). | [optional] **tag_filter_expression** | [**TagFilterExpressionElement**](TagFilterExpressionElement.md) | | diff --git a/docs/InfraAlertConfigWithMetadata.md b/docs/InfraAlertConfigWithMetadata.md index 56b4dac..4a630b8 100644 --- a/docs/InfraAlertConfigWithMetadata.md +++ b/docs/InfraAlertConfigWithMetadata.md @@ -20,6 +20,7 @@ Name | Type | Description | Notes **name** | **str** | Name of the Infrastructure Smart Alert. Used as a template for the title of alert/event notifications triggered by this Smart Alert configuration. | **read_only** | **bool** | | [optional] **rule** | [**InfraAlertRule**](InfraAlertRule.md) | | [optional] +**rule_logical_operator** | **str** | Set AND / OR | [optional] **rules** | [**List[RuleWithThresholdInfraAlertRule]**](RuleWithThresholdInfraAlertRule.md) | A list of rules where each rule is associated with multiple thresholds and their corresponding severity levels. This enables more complex alert configurations with validations to ensure consistent and logical threshold-severity combinations. | [optional] **severity** | **int** | The severity of the alert when triggered, which is either 5 (Warning), or 10 (Critical). | [optional] **tag_filter_expression** | [**TagFilterExpressionElement**](TagFilterExpressionElement.md) | | diff --git a/docs/InfrastructureAlertConfigurationApi.md b/docs/InfrastructureAlertConfigurationApi.md index 5058729..7466f20 100644 --- a/docs/InfrastructureAlertConfigurationApi.md +++ b/docs/InfrastructureAlertConfigurationApi.md @@ -4,6 +4,9 @@ All URIs are relative to *https://unit-tenant.instana.io* Method | HTTP request | Description ------------- | ------------- | ------------- +[**bulk_delete_infra_alert_configs**](InfrastructureAlertConfigurationApi.md#bulk_delete_infra_alert_configs) | **PUT** /api/events/settings/infra-alert-configs/bulk/delete | Bulk Delete Infra Smart Alert Configs +[**bulk_disable_infra_alert_configs**](InfrastructureAlertConfigurationApi.md#bulk_disable_infra_alert_configs) | **PUT** /api/events/settings/infra-alert-configs/bulk/disable | Bulk Disable Infra Smart Alert Configs +[**bulk_enable_infra_alert_configs**](InfrastructureAlertConfigurationApi.md#bulk_enable_infra_alert_configs) | **PUT** /api/events/settings/infra-alert-configs/bulk/enable | Bulk Enable Infra Smart Alert Configs [**create_infra_alert_config**](InfrastructureAlertConfigurationApi.md#create_infra_alert_config) | **POST** /api/events/settings/infra-alert-configs | Create Infra Alert Config [**delete_infra_alert_config**](InfrastructureAlertConfigurationApi.md#delete_infra_alert_config) | **DELETE** /api/events/settings/infra-alert-configs/{id} | Delete Infra Alert Config [**disable_infra_alert_config**](InfrastructureAlertConfigurationApi.md#disable_infra_alert_config) | **PUT** /api/events/settings/infra-alert-configs/{id}/disable | Disable Infra Alert Config @@ -15,6 +18,240 @@ Method | HTTP request | Description [**update_infra_alert_config**](InfrastructureAlertConfigurationApi.md#update_infra_alert_config) | **POST** /api/events/settings/infra-alert-configs/{id} | Update Infra Alert Config +# **bulk_delete_infra_alert_configs** +> bulk_delete_infra_alert_configs(request_body) + +Bulk Delete Infra Smart Alert Configs + +Delete multiple Infra Smart Alert configurations in a single operation. Only configs that are not already deleted will be updated. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.InfrastructureAlertConfigurationApi(api_client) + request_body = ['request_body_example'] # List[str] | + + try: + # Bulk Delete Infra Smart Alert Configs + api_instance.bulk_delete_infra_alert_configs(request_body) + except Exception as e: + print("Exception when calling InfrastructureAlertConfigurationApi->bulk_delete_infra_alert_configs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request_body** | [**List[str]**](str.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Successful - no content to return. | - | +**403** | Insufficient permissions or limited in access. | - | +**422** | Unprocessable request - missing/invalid data. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **bulk_disable_infra_alert_configs** +> bulk_disable_infra_alert_configs(request_body) + +Bulk Disable Infra Smart Alert Configs + +Disable multiple Infra Smart Alert configurations in a single operation. Only configs that are currently enabled will be updated. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.InfrastructureAlertConfigurationApi(api_client) + request_body = ['request_body_example'] # List[str] | + + try: + # Bulk Disable Infra Smart Alert Configs + api_instance.bulk_disable_infra_alert_configs(request_body) + except Exception as e: + print("Exception when calling InfrastructureAlertConfigurationApi->bulk_disable_infra_alert_configs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request_body** | [**List[str]**](str.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Successful - no content to return. | - | +**403** | Insufficient permissions or limited in access. | - | +**422** | Unprocessable request - missing/invalid data. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **bulk_enable_infra_alert_configs** +> bulk_enable_infra_alert_configs(request_body) + +Bulk Enable Infra Smart Alert Configs + +Enable multiple Infra Smart Alert configurations in a single operation. Only configs that are currently disabled will be updated. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.InfrastructureAlertConfigurationApi(api_client) + request_body = ['request_body_example'] # List[str] | + + try: + # Bulk Enable Infra Smart Alert Configs + api_instance.bulk_enable_infra_alert_configs(request_body) + except Exception as e: + print("Exception when calling InfrastructureAlertConfigurationApi->bulk_enable_infra_alert_configs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request_body** | [**List[str]**](str.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Successful - no content to return. | - | +**403** | Insufficient permissions or limited in access. | - | +**422** | Unprocessable request - missing/invalid data. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **create_infra_alert_config** > InfraAlertConfigWithMetadata create_infra_alert_config(infra_alert_config) @@ -90,7 +327,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | +**422** | Unprocessable request - missing/invalid data. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -165,7 +403,7 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| **204** | Successful - no content to return. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -243,7 +481,7 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| **204** | Successful - no content to return. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -321,7 +559,7 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| **204** | Successful - no content to return. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -364,7 +602,7 @@ configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] with instana_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = instana_client.InfrastructureAlertConfigurationApi(api_client) - alert_ids = ['[4kxgJAXdSDiu6swQaKXrJw, ZLo28grvQaiMqIaikJK1RQ]'] # List[str] | List of IDs of Infra Smart Alert configurations (optional) + alert_ids = ['[\"4kxgJAXdSDiu6swQaKXrJw\",\"ZLo28grvQaiMqIaikJK1RQ\"]'] # List[str] | List of IDs of Infra Smart Alert configurations (optional) try: # All Infra Alert Configs @@ -642,7 +880,7 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| **204** | Successful - no content to return. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -725,7 +963,9 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **204** | Infra Smart Alert did not change | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | +**422** | Unprocessable request - missing/invalid data. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/InfrastructureAnalyzeApi.md b/docs/InfrastructureAnalyzeApi.md index 7206fb2..ece5c0b 100644 --- a/docs/InfrastructureAnalyzeApi.md +++ b/docs/InfrastructureAnalyzeApi.md @@ -212,7 +212,7 @@ configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] with instana_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = instana_client.InfrastructureAnalyzeApi(api_client) - get_infrastructure_query = {"tagFilterExpression":{"type":"TAG_FILTER","entity":"NOT_APPLICABLE","name":"label","operator":"EQUALS","value":"custom-metrics.jar"},"timeFrame":{"to":1673969562715,"windowSize":3600000},"pagination":{"retrievalSize":200},"type":"jvmRuntimePlatform","metrics":[{"metric":"memory.used","granularity":3600000,"aggregation":"MAX"},{"metric":"memory.used","granularity":600000,"aggregation":"MAX"},{"metric":"threads.blocked","granularity":3600000,"aggregation":"MEAN"},{"metric":"threads.blocked","granularity":600000,"aggregation":"MEAN"}]} # GetInfrastructureQuery | (optional) + get_infrastructure_query = {"timeFrame":{"to":1764687385227,"windowSize":3600000},"tagFilterExpression":{"type":"EXPRESSION","logicalOperator":"AND","elements":[]},"pagination":{"retrievalSize":20},"type":"host","metrics":[{"metric":"cpu.used","aggregation":"MEAN"},{"metric":"memory.used","aggregation":"MEAN"}],"order":{"by":"label","direction":"ASC"}} # GetInfrastructureQuery | (optional) try: # Get infrastructure entities diff --git a/docs/LLMEgressGateway.md b/docs/LLMEgressGateway.md index f909a16..f5360f5 100644 --- a/docs/LLMEgressGateway.md +++ b/docs/LLMEgressGateway.md @@ -6,25 +6,20 @@ Custom handler definition. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ai_model** | **str** | | [optional] -**configurations** | **object** | | [optional] -**created_at** | **str** | | +**capabilities** | [**List[LLMGatewayCapability]**](LLMGatewayCapability.md) | | +**created_at** | **str** | | [optional] **description** | **str** | | [optional] **enabled** | **bool** | | [optional] -**endpoint_api_key** | **str** | | [optional] -**endpoint_url** | **str** | | [optional] **id** | **str** | | **instana_agents** | **object** | | [optional] **metadata** | **object** | | [optional] -**modified_at** | **str** | | +**model** | [**LLMGatewayModel**](LLMGatewayModel.md) | | +**modified_at** | **str** | | [optional] **name** | **str** | | -**prompt** | **str** | | -**supports** | **object** | | +**prompt** | **str** | | [optional] +**service** | [**LLMGatewayService**](LLMGatewayService.md) | | **system** | **bool** | | [optional] **tenant_unit_id** | **str** | | -**watsonx_key** | **str** | | [optional] -**watsonx_project** | **str** | | [optional] -**watsonx_url** | **str** | | [optional] ## Example diff --git a/docs/LLMGatewayCapability.md b/docs/LLMGatewayCapability.md new file mode 100644 index 0000000..79f3c0e --- /dev/null +++ b/docs/LLMGatewayCapability.md @@ -0,0 +1,31 @@ +# LLMGatewayCapability + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] +**id** | **str** | | +**name** | **str** | | [optional] + +## Example + +```python +from instana_client.models.llm_gateway_capability import LLMGatewayCapability + +# TODO update the JSON string below +json = "{}" +# create an instance of LLMGatewayCapability from a JSON string +llm_gateway_capability_instance = LLMGatewayCapability.from_json(json) +# print the JSON string representation of the object +print(LLMGatewayCapability.to_json()) + +# convert the object into a dict +llm_gateway_capability_dict = llm_gateway_capability_instance.to_dict() +# create an instance of LLMGatewayCapability from a dict +llm_gateway_capability_from_dict = LLMGatewayCapability.from_dict(llm_gateway_capability_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LLMGatewayModel.md b/docs/LLMGatewayModel.md new file mode 100644 index 0000000..b3a06e2 --- /dev/null +++ b/docs/LLMGatewayModel.md @@ -0,0 +1,30 @@ +# LLMGatewayModel + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**configuration** | **Dict[str, object]** | | [optional] +**name** | **str** | | [optional] + +## Example + +```python +from instana_client.models.llm_gateway_model import LLMGatewayModel + +# TODO update the JSON string below +json = "{}" +# create an instance of LLMGatewayModel from a JSON string +llm_gateway_model_instance = LLMGatewayModel.from_json(json) +# print the JSON string representation of the object +print(LLMGatewayModel.to_json()) + +# convert the object into a dict +llm_gateway_model_dict = llm_gateway_model_instance.to_dict() +# create an instance of LLMGatewayModel from a dict +llm_gateway_model_from_dict = LLMGatewayModel.from_dict(llm_gateway_model_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LLMGatewayService.md b/docs/LLMGatewayService.md new file mode 100644 index 0000000..aa213e9 --- /dev/null +++ b/docs/LLMGatewayService.md @@ -0,0 +1,31 @@ +# LLMGatewayService + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**connection_parameters** | **Dict[str, str]** | | [optional] +**id** | **str** | | +**name** | **str** | | [optional] + +## Example + +```python +from instana_client.models.llm_gateway_service import LLMGatewayService + +# TODO update the JSON string below +json = "{}" +# create an instance of LLMGatewayService from a JSON string +llm_gateway_service_instance = LLMGatewayService.from_json(json) +# print the JSON string representation of the object +print(LLMGatewayService.to_json()) + +# convert the object into a dict +llm_gateway_service_dict = llm_gateway_service_instance.to_dict() +# create an instance of LLMGatewayService from a dict +llm_gateway_service_from_dict = LLMGatewayService.from_dict(llm_gateway_service_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LLMPriceConfigurationApi.md b/docs/LLMPriceConfigurationApi.md new file mode 100644 index 0000000..770f4fa --- /dev/null +++ b/docs/LLMPriceConfigurationApi.md @@ -0,0 +1,737 @@ +# instana_client.LLMPriceConfigurationApi + +All URIs are relative to *https://unit-tenant.instana.io* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_llm_model_price**](LLMPriceConfigurationApi.md#delete_llm_model_price) | **DELETE** /api/settings/llm-pricing/{provider}/{modelName} | Delete LLM model price +[**delete_llm_model_price_without_provider**](LLMPriceConfigurationApi.md#delete_llm_model_price_without_provider) | **DELETE** /api/settings/llm-pricing/model/{modelName} | Delete LLM model price without provider +[**get_all_llm_model_prices**](LLMPriceConfigurationApi.md#get_all_llm_model_prices) | **GET** /api/settings/llm-pricing | Get all LLM model prices +[**get_llm_model_currency**](LLMPriceConfigurationApi.md#get_llm_model_currency) | **GET** /api/settings/llm-pricing/currency | Get currency for LLM model prices +[**get_llm_model_price**](LLMPriceConfigurationApi.md#get_llm_model_price) | **GET** /api/settings/llm-pricing/{provider}/{modelName} | Get LLM model price +[**get_llm_model_price_without_provider**](LLMPriceConfigurationApi.md#get_llm_model_price_without_provider) | **GET** /api/settings/llm-pricing/model/{modelName} | Get LLM model price without provider +[**set_llm_model_currency**](LLMPriceConfigurationApi.md#set_llm_model_currency) | **PUT** /api/settings/llm-pricing/currency | Set currency for LLM model prices +[**upsert_llm_model_price**](LLMPriceConfigurationApi.md#upsert_llm_model_price) | **PUT** /api/settings/llm-pricing/{provider}/{modelName} | Upsert LLM model price +[**upsert_llm_model_price_without_provider**](LLMPriceConfigurationApi.md#upsert_llm_model_price_without_provider) | **PUT** /api/settings/llm-pricing/model/{modelName} | Upsert LLM model price without provider + + +# **delete_llm_model_price** +> delete_llm_model_price(provider, model_name, platform=platform) + +Delete LLM model price + +Delete a tenant-specific price configuration for a specific provider+model. Optionally specify a platform. Only user-defined prices can be deleted. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.LLMPriceConfigurationApi(api_client) + provider = 'openai' # str | + model_name = 'gpt-4' # str | + platform = 'aws' # str | (optional) + + try: + # Delete LLM model price + api_instance.delete_llm_model_price(provider, model_name, platform=platform) + except Exception as e: + print("Exception when calling LLMPriceConfigurationApi->delete_llm_model_price: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **provider** | **str**| | + **model_name** | **str**| | + **platform** | **str**| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | No Content - Successfully deleted | - | +**404** | Not Found - Price configuration does not exist | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_llm_model_price_without_provider** +> delete_llm_model_price_without_provider(model_name, platform=platform) + +Delete LLM model price without provider + +Delete a tenant-specific price configuration for a model without specifying provider. Optionally specify a platform. Only user-defined prices can be deleted. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.LLMPriceConfigurationApi(api_client) + model_name = 'gpt-4' # str | + platform = 'aws' # str | (optional) + + try: + # Delete LLM model price without provider + api_instance.delete_llm_model_price_without_provider(model_name, platform=platform) + except Exception as e: + print("Exception when calling LLMPriceConfigurationApi->delete_llm_model_price_without_provider: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **model_name** | **str**| | + **platform** | **str**| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | No Content - Successfully deleted | - | +**404** | Not Found - Price configuration does not exist | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_all_llm_model_prices** +> LlmModelPrice get_all_llm_model_prices() + +Get all LLM model prices + +Fetch all LLM price configurations for the current tenant unit. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.models.llm_model_price import LlmModelPrice +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.LLMPriceConfigurationApi(api_client) + + try: + # Get all LLM model prices + api_response = api_instance.get_all_llm_model_prices() + print("The response of LLMPriceConfigurationApi->get_all_llm_model_prices:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling LLMPriceConfigurationApi->get_all_llm_model_prices: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**LlmModelPrice**](LlmModelPrice.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_llm_model_currency** +> LlmModelPriceMetadata get_llm_model_currency() + +Get currency for LLM model prices + +Fetch the currency code used for LLM model pricing. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.models.llm_model_price_metadata import LlmModelPriceMetadata +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.LLMPriceConfigurationApi(api_client) + + try: + # Get currency for LLM model prices + api_response = api_instance.get_llm_model_currency() + print("The response of LLMPriceConfigurationApi->get_llm_model_currency:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling LLMPriceConfigurationApi->get_llm_model_currency: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**LlmModelPriceMetadata**](LlmModelPriceMetadata.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**404** | Not Found | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_llm_model_price** +> LlmModelPrice get_llm_model_price(provider, model_name, platform=platform) + +Get LLM model price + +Fetch the price for a specific provider+model. Optionally specify a platform for platform-specific pricing. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.models.llm_model_price import LlmModelPrice +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.LLMPriceConfigurationApi(api_client) + provider = 'openai' # str | + model_name = 'gpt-4' # str | + platform = 'aws' # str | (optional) + + try: + # Get LLM model price + api_response = api_instance.get_llm_model_price(provider, model_name, platform=platform) + print("The response of LLMPriceConfigurationApi->get_llm_model_price:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling LLMPriceConfigurationApi->get_llm_model_price: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **provider** | **str**| | + **model_name** | **str**| | + **platform** | **str**| | [optional] + +### Return type + +[**LlmModelPrice**](LlmModelPrice.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**404** | Not Found | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_llm_model_price_without_provider** +> LlmModelPrice get_llm_model_price_without_provider(model_name, platform=platform) + +Get LLM model price without provider + +Fetch the price for a model without specifying provider. Optionally specify a platform for platform-specific pricing. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.models.llm_model_price import LlmModelPrice +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.LLMPriceConfigurationApi(api_client) + model_name = 'gpt-4' # str | + platform = 'aws' # str | (optional) + + try: + # Get LLM model price without provider + api_response = api_instance.get_llm_model_price_without_provider(model_name, platform=platform) + print("The response of LLMPriceConfigurationApi->get_llm_model_price_without_provider:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling LLMPriceConfigurationApi->get_llm_model_price_without_provider: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **model_name** | **str**| | + **platform** | **str**| | [optional] + +### Return type + +[**LlmModelPrice**](LlmModelPrice.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**404** | Not Found | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_llm_model_currency** +> LlmModelPriceMetadata set_llm_model_currency(llm_model_price_metadata=llm_model_price_metadata) + +Set currency for LLM model prices + +Set the currency code used for LLM model pricing. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.models.llm_model_price_metadata import LlmModelPriceMetadata +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.LLMPriceConfigurationApi(api_client) + llm_model_price_metadata = {"currencyCode":"USD"} # LlmModelPriceMetadata | (optional) + + try: + # Set currency for LLM model prices + api_response = api_instance.set_llm_model_currency(llm_model_price_metadata=llm_model_price_metadata) + print("The response of LLMPriceConfigurationApi->set_llm_model_currency:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling LLMPriceConfigurationApi->set_llm_model_currency: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **llm_model_price_metadata** | [**LlmModelPriceMetadata**](LlmModelPriceMetadata.md)| | [optional] + +### Return type + +[**LlmModelPriceMetadata**](LlmModelPriceMetadata.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **upsert_llm_model_price** +> upsert_llm_model_price(provider, model_name, platform=platform, llm_model_price=llm_model_price) + +Upsert LLM model price + +Create or update price for a specific provider+model. Optionally specify a platform for platform-specific pricing. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.models.llm_model_price import LlmModelPrice +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.LLMPriceConfigurationApi(api_client) + provider = 'openai' # str | + model_name = 'gpt-4' # str | + platform = 'aws' # str | (optional) + llm_model_price = {"inputCost":0.5,"outputCost":1.5} # LlmModelPrice | (optional) + + try: + # Upsert LLM model price + api_instance.upsert_llm_model_price(provider, model_name, platform=platform, llm_model_price=llm_model_price) + except Exception as e: + print("Exception when calling LLMPriceConfigurationApi->upsert_llm_model_price: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **provider** | **str**| | + **model_name** | **str**| | + **platform** | **str**| | [optional] + **llm_model_price** | [**LlmModelPrice**](LlmModelPrice.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **upsert_llm_model_price_without_provider** +> upsert_llm_model_price_without_provider(model_name, platform=platform, llm_model_price=llm_model_price) + +Upsert LLM model price without provider + +Create or update price for a model without specifying provider. Optionally specify a platform for platform-specific pricing. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.models.llm_model_price import LlmModelPrice +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.LLMPriceConfigurationApi(api_client) + model_name = 'gpt-4' # str | + platform = 'aws' # str | (optional) + llm_model_price = {"inputCost":0.5,"outputCost":1.5} # LlmModelPrice | (optional) + + try: + # Upsert LLM model price without provider + api_instance.upsert_llm_model_price_without_provider(model_name, platform=platform, llm_model_price=llm_model_price) + except Exception as e: + print("Exception when calling LLMPriceConfigurationApi->upsert_llm_model_price_without_provider: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **model_name** | **str**| | + **platform** | **str**| | [optional] + **llm_model_price** | [**LlmModelPrice**](LlmModelPrice.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/LlmModelPrice.md b/docs/LlmModelPrice.md new file mode 100644 index 0000000..ddbe1b6 --- /dev/null +++ b/docs/LlmModelPrice.md @@ -0,0 +1,37 @@ +# LlmModelPrice + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**default_input_cost** | **float** | | [optional] +**default_output_cost** | **float** | | [optional] +**has_default_price** | **bool** | | [optional] +**input_cost** | **float** | | +**is_user_defined** | **bool** | | [optional] +**model_name** | **str** | | [optional] +**output_cost** | **float** | | +**platform** | **str** | | [optional] +**provider** | **str** | | [optional] + +## Example + +```python +from instana_client.models.llm_model_price import LlmModelPrice + +# TODO update the JSON string below +json = "{}" +# create an instance of LlmModelPrice from a JSON string +llm_model_price_instance = LlmModelPrice.from_json(json) +# print the JSON string representation of the object +print(LlmModelPrice.to_json()) + +# convert the object into a dict +llm_model_price_dict = llm_model_price_instance.to_dict() +# create an instance of LlmModelPrice from a dict +llm_model_price_from_dict = LlmModelPrice.from_dict(llm_model_price_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LlmModelPriceMetadata.md b/docs/LlmModelPriceMetadata.md new file mode 100644 index 0000000..1c6205c --- /dev/null +++ b/docs/LlmModelPriceMetadata.md @@ -0,0 +1,29 @@ +# LlmModelPriceMetadata + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**currency_code** | **str** | | + +## Example + +```python +from instana_client.models.llm_model_price_metadata import LlmModelPriceMetadata + +# TODO update the JSON string below +json = "{}" +# create an instance of LlmModelPriceMetadata from a JSON string +llm_model_price_metadata_instance = LlmModelPriceMetadata.from_json(json) +# print the JSON string representation of the object +print(LlmModelPriceMetadata.to_json()) + +# convert the object into a dict +llm_model_price_metadata_dict = llm_model_price_metadata_instance.to_dict() +# create an instance of LlmModelPriceMetadata from a dict +llm_model_price_metadata_from_dict = LlmModelPriceMetadata.from_dict(llm_model_price_metadata_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LogAlertConfigurationApi.md b/docs/LogAlertConfigurationApi.md index 03216c3..b3bd225 100644 --- a/docs/LogAlertConfigurationApi.md +++ b/docs/LogAlertConfigurationApi.md @@ -90,7 +90,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -164,9 +164,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Log Alert Configuration deleted. | - | -**403** | Insufficient permissions. | - | -**404** | Invalid Configuration ID provided. | - | +**204** | Successful - no content to return. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -242,9 +242,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Log Alert Configuration disabled. | - | -**403** | Insufficient permissions. | - | -**404** | Invalid Configuration ID provided. | - | +**204** | Successful - no content to return. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -320,9 +320,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Log Alert Configuration enabled. | - | -**403** | Insufficient permissions. | - | -**404** | Invalid Configuration ID provided. | - | +**204** | Successful - no content to return. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -483,7 +483,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**404** | Invalid Configuration ID provided. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -563,7 +563,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**404** | Invalid Configuration ID provided. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -641,9 +641,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Log Alert Configuration restored. | - | -**403** | Insufficient permissions. | - | -**404** | Invalid Configuration provided. | - | +**204** | Successful - no content to return. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -725,7 +725,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Log Smart Alert successfully updated | - | **204** | Log Smart Alert did not change | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/MobileAppAlertConfig.md b/docs/MobileAppAlertConfig.md index bfc78d0..bcfd4db 100644 --- a/docs/MobileAppAlertConfig.md +++ b/docs/MobileAppAlertConfig.md @@ -10,8 +10,10 @@ Name | Type | Description | Notes **complete_tag_filter_expression** | [**TagFilterExpression**](TagFilterExpression.md) | | [optional] **custom_payload_fields** | [**List[CustomPayloadField]**](CustomPayloadField.md) | Custom payload fields to send additional information in the alert notifications. Can be left empty. | **description** | **str** | Description of the mobile app alert configuration. Used as a template for the description of alert/event notifications triggered by this Smart Alert configuration. | +**enabled** | **bool** | Flag to indicate whether or not the configuration is enabled. | [optional] **grace_period** | **int** | The duration for which an alert remains open after conditions are no longer violated, with the alert auto-closing once the grace period expires. | [optional] **granularity** | **int** | The evaluation granularity used for detection of violations of the defined threshold. Defines the size of the tumbling window used. | [default to 600000] +**id** | **str** | | [optional] **mobile_app_id** | **str** | ID of the mobile app that this Smart Alert configuration is applied to. | **name** | **str** | Name of the mobile app alert configuration. Used as a template for the title of alert/event notifications triggered by this Smart Alert configuration. | **rule** | [**MobileAppAlertRule**](MobileAppAlertRule.md) | | [optional] diff --git a/docs/MobileAppAlertConfigWithRBACTag.md b/docs/MobileAppAlertConfigWithRBACTag.md new file mode 100644 index 0000000..de6c2d1 --- /dev/null +++ b/docs/MobileAppAlertConfigWithRBACTag.md @@ -0,0 +1,50 @@ +# MobileAppAlertConfigWithRBACTag + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alert_channel_ids** | **List[str]** | List of IDs of alert channels defined in Instana. Can be left empty. | [optional] +**alert_channels** | **Dict[str, List[str]]** | Set of alert channel IDs associated with the severity. | [optional] +**complete_tag_filter_expression** | [**TagFilterExpression**](TagFilterExpression.md) | | [optional] +**created** | **int** | Unix timestamp representing the creation time of this revision. | [optional] +**custom_payload_fields** | [**List[CustomPayloadField]**](CustomPayloadField.md) | Custom payload fields to send additional information in the alert notifications. Can be left empty. | +**description** | **str** | Description of the mobile app alert configuration. Used as a template for the description of alert/event notifications triggered by this Smart Alert configuration. | +**enabled** | **bool** | Flag to indicate whether or not the configuration is enabled. | [optional] +**grace_period** | **int** | The duration for which an alert remains open after conditions are no longer violated, with the alert auto-closing once the grace period expires. | [optional] +**granularity** | **int** | The evaluation granularity used for detection of violations of the defined threshold. Defines the size of the tumbling window used. | [default to 600000] +**id** | **str** | ID of this Mobile App Alert Config. | +**initial_created** | **int** | Unix timestamp representing the time of the initial revision. | [optional] +**mobile_app_id** | **str** | ID of the mobile app that this Smart Alert configuration is applied to. | +**name** | **str** | Name of the mobile app alert configuration. Used as a template for the title of alert/event notifications triggered by this Smart Alert configuration. | +**rbac_tags** | [**List[ApiTag]**](ApiTag.md) | RBAC tags associated with the mobile app | [optional] +**read_only** | **bool** | Flag to indicate whether or not the configuration is read-only. Read-only access restricts modification of the config. | [optional] +**rule** | [**MobileAppAlertRule**](MobileAppAlertRule.md) | | [optional] +**rules** | [**List[RuleWithThresholdMobileAppAlertRule]**](RuleWithThresholdMobileAppAlertRule.md) | A list of rules where each rule is associated with multiple thresholds and their corresponding severity levels. This enables more complex alert configurations with validations to ensure consistent and logical threshold-severity combinations. | [optional] +**severity** | **int** | The severity of the alert when triggered, which is either 5 (Warning), or 10 (Critical). | [optional] +**tag_filter_expression** | [**TagFilterExpressionElement**](TagFilterExpressionElement.md) | | +**threshold** | [**Threshold**](Threshold.md) | | [optional] +**time_threshold** | [**MobileAppTimeThreshold**](MobileAppTimeThreshold.md) | | +**triggering** | **bool** | Optional flag to indicate whether an Incident is also triggered or not. | [optional] + +## Example + +```python +from instana_client.models.mobile_app_alert_config_with_rbac_tag import MobileAppAlertConfigWithRBACTag + +# TODO update the JSON string below +json = "{}" +# create an instance of MobileAppAlertConfigWithRBACTag from a JSON string +mobile_app_alert_config_with_rbac_tag_instance = MobileAppAlertConfigWithRBACTag.from_json(json) +# print the JSON string representation of the object +print(MobileAppAlertConfigWithRBACTag.to_json()) + +# convert the object into a dict +mobile_app_alert_config_with_rbac_tag_dict = mobile_app_alert_config_with_rbac_tag_instance.to_dict() +# create an instance of MobileAppAlertConfigWithRBACTag from a dict +mobile_app_alert_config_with_rbac_tag_from_dict = MobileAppAlertConfigWithRBACTag.from_dict(mobile_app_alert_config_with_rbac_tag_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MobileAppCatalogApi.md b/docs/MobileAppCatalogApi.md index b2d03f3..d64a559 100644 --- a/docs/MobileAppCatalogApi.md +++ b/docs/MobileAppCatalogApi.md @@ -7,6 +7,8 @@ Method | HTTP request | Description [**get_all_mobile_app_catalog_tags**](MobileAppCatalogApi.md#get_all_mobile_app_catalog_tags) | **GET** /api/mobile-app-monitoring/catalog/tags | Get all existing mobile app tags [**get_mobile_app_metric_catalog**](MobileAppCatalogApi.md#get_mobile_app_metric_catalog) | **GET** /api/mobile-app-monitoring/catalog/metrics | Metric catalog [**get_mobile_app_tag_catalog**](MobileAppCatalogApi.md#get_mobile_app_tag_catalog) | **GET** /api/mobile-app-monitoring/catalog | Get mobile app tag catalog +[**get_session_replay_metadata**](MobileAppCatalogApi.md#get_session_replay_metadata) | **GET** /api/mobile-app-monitoring/mobile-apps/{mobileAppId}/sessions/{sessionId}/replay-metadata | Get session replay metadata +[**get_session_replay_timestamps**](MobileAppCatalogApi.md#get_session_replay_timestamps) | **GET** /api/mobile-app-monitoring/mobile-apps/{mobileAppId}/sessions/{sessionId}/replay-timestamps | Get session replay timestamps # **get_all_mobile_app_catalog_tags** @@ -245,3 +247,157 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_session_replay_metadata** +> GetSessionReplayMetadataResult get_session_replay_metadata(mobile_app_id, session_id, cursor=cursor, page_size=page_size) + +Get session replay metadata + +Retrieves detailed metadata for session replay captured during a mobile app session. Uses cursor-based pagination with timestamp cursors. Returns metadata within the time window from cursor to cursor + pageSize. The pageSize represents milliseconds (default 20000ms = 20 seconds). Includes all metadata fields such as event type, view components, orientation changes, etc. + +### Example + + +```python +import instana_client +from instana_client.models.get_session_replay_metadata_result import GetSessionReplayMetadataResult +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.MobileAppCatalogApi(api_client) + mobile_app_id = 'app-456' # str | Mobile app identifier + session_id = 'session-123' # str | Session identifier + cursor = 1234567890 # int | Timestamp cursor for pagination (epoch milliseconds). Retrieves metadata from this timestamp onwards. (optional) + page_size = 20000 # int | Time window size in milliseconds (default: 20000ms = 20 seconds) (optional) (default to 20000) + + try: + # Get session replay metadata + api_response = api_instance.get_session_replay_metadata(mobile_app_id, session_id, cursor=cursor, page_size=page_size) + print("The response of MobileAppCatalogApi->get_session_replay_metadata:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling MobileAppCatalogApi->get_session_replay_metadata: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mobile_app_id** | **str**| Mobile app identifier | + **session_id** | **str**| Session identifier | + **cursor** | **int**| Timestamp cursor for pagination (epoch milliseconds). Retrieves metadata from this timestamp onwards. | [optional] + **page_size** | **int**| Time window size in milliseconds (default: 20000ms = 20 seconds) | [optional] [default to 20000] + +### Return type + +[**GetSessionReplayMetadataResult**](GetSessionReplayMetadataResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**400** | Bad Request - Invalid mobile app ID, session ID, or pagination parameters | - | +**401** | Unauthorized access - requires user authentication. | - | +**403** | Forbidden - User doesn't have access to this mobile app | - | +**404** | Not Found - Mobile app or session not found | - | +**500** | Internal server error. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_session_replay_timestamps** +> SessionReplayTimestamps get_session_replay_timestamps(mobile_app_id, session_id) + +Get session replay timestamps + +Retrieves the first and last image timestamps for a mobile app session. Returns null values if the session has no images. + +### Example + + +```python +import instana_client +from instana_client.models.session_replay_timestamps import SessionReplayTimestamps +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.MobileAppCatalogApi(api_client) + mobile_app_id = 'app-456' # str | Mobile app identifier + session_id = 'session-123' # str | Session identifier + + try: + # Get session replay timestamps + api_response = api_instance.get_session_replay_timestamps(mobile_app_id, session_id) + print("The response of MobileAppCatalogApi->get_session_replay_timestamps:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling MobileAppCatalogApi->get_session_replay_timestamps: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mobile_app_id** | **str**| Mobile app identifier | + **session_id** | **str**| Session identifier | + +### Return type + +[**SessionReplayTimestamps**](SessionReplayTimestamps.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**400** | Bad Request - Invalid mobile app ID or session ID | - | +**401** | Unauthorized access - requires user authentication. | - | +**403** | Forbidden - User doesn't have access to this mobile app | - | +**404** | Not Found - Mobile app or session not found | - | +**500** | Internal server error. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/MobileAppConfigurationApi.md b/docs/MobileAppConfigurationApi.md index ab4166a..9887005 100644 --- a/docs/MobileAppConfigurationApi.md +++ b/docs/MobileAppConfigurationApi.md @@ -101,7 +101,7 @@ void (empty response body) |-------------|-------------|------------------| **204** | Sourcemap files in the sourcemap configuration successfully cleared | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | @@ -190,7 +190,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successfully committed sourcemap file upload. | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -269,7 +269,7 @@ void (empty response body) |-------------|-------------|------------------| **204** | Mobile app successfully removed | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -350,7 +350,7 @@ void (empty response body) |-------------|-------------|------------------| **204** | Sourcemap configuration successfully deleted or sourcemap not found | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -509,7 +509,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | @@ -589,7 +589,7 @@ void (empty response body) |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | @@ -672,7 +672,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | @@ -1005,7 +1005,7 @@ Name | Type | Description | Notes **200** | Mobile App successfully configured | - | **400** | Missing name query parameter or name already used for a configured mobile app. | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1091,7 +1091,7 @@ Name | Type | Description | Notes **200** | Mobile App sourcemap configuration added successfully | - | **400** | Missing description or description already used for a configuration. | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **422** | Unprocessable request - missing/invalid data. | - | **500** | Internal server error. | - | @@ -1177,7 +1177,7 @@ Name | Type | Description | Notes **200** | Mobile app successfully renamed | - | **400** | Bad request. | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1258,7 +1258,7 @@ void (empty response body) |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **415** | Unsupported Media Type. | - | **500** | Internal server error. | - | @@ -1344,7 +1344,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | @@ -1429,7 +1429,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | @@ -1515,7 +1515,7 @@ Name | Type | Description | Notes **200** | Mobile App successfully configured | - | **400** | Bad request. | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1610,7 +1610,7 @@ Name | Type | Description | Notes **200** | OK | - | **400** | Bad request. | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | diff --git a/docs/MonitoredEntitiesStats.md b/docs/MonitoredEntitiesStats.md index 3b1a7c5..8001b64 100644 --- a/docs/MonitoredEntitiesStats.md +++ b/docs/MonitoredEntitiesStats.md @@ -7,6 +7,7 @@ Statistics of monitored entities. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **host_count** | **int** | | [optional] +**otel_collector_count** | **int** | | [optional] **otel_count** | **int** | | [optional] **serverless_count** | **int** | | [optional] diff --git a/docs/MonitoringState.md b/docs/MonitoringState.md index 4c26c3b..8a06b16 100644 --- a/docs/MonitoringState.md +++ b/docs/MonitoringState.md @@ -5,9 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**has_entities** | **bool** | Has entities | [optional] +**has_entities** | **bool** | Has entities | **host_count** | **int** | Count of hosts | [optional] -**monitored_entities_stats** | [**MonitoredEntitiesStats**](MonitoredEntitiesStats.md) | | [optional] +**monitored_entities_stats** | [**MonitoredEntitiesStats**](MonitoredEntitiesStats.md) | | +**open_telemetry_collector_count** | **int** | Count of open telemetry collectors | [optional] **open_telemetry_count** | **int** | Count of open telemetry | [optional] **serverless_count** | **int** | Count of serverless | [optional] diff --git a/docs/NS1Integration.md b/docs/NS1Integration.md new file mode 100644 index 0000000..58c6b75 --- /dev/null +++ b/docs/NS1Integration.md @@ -0,0 +1,30 @@ +# NS1Integration + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**headers** | **List[str]** | | [optional] +**webhook_urls** | **List[str]** | | + +## Example + +```python +from instana_client.models.ns1_integration import NS1Integration + +# TODO update the JSON string below +json = "{}" +# create an instance of NS1Integration from a JSON string +ns1_integration_instance = NS1Integration.from_json(json) +# print the JSON string representation of the object +print(NS1Integration.to_json()) + +# convert the object into a dict +ns1_integration_dict = ns1_integration_instance.to_dict() +# create an instance of NS1Integration from a dict +ns1_integration_from_dict = NS1Integration.from_dict(ns1_integration_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesApi.md b/docs/PoliciesApi.md index f838783..a2a0320 100644 --- a/docs/PoliciesApi.md +++ b/docs/PoliciesApi.md @@ -252,7 +252,7 @@ void (empty response body) |-------------|-------------|------------------| **204** | Automation policy successfully deleted | - | **403** | Insufficient permissions. | - | -**412** | Automation policy does not exist | - | +**404** | Automation policy not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -503,6 +503,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Automation policy successfully updated. | - | **403** | Insufficient permissions. | - | +**404** | Automation policy not found. | - | **412** | Invalid input value. | - | **500** | Server Error. | - | diff --git a/docs/PolicyScheduling.md b/docs/PolicyScheduling.md index f3fe13f..2cefbe3 100644 --- a/docs/PolicyScheduling.md +++ b/docs/PolicyScheduling.md @@ -7,7 +7,7 @@ Scheduling information for a scheduled policy. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **recurrent_rule** | **str** | Recurrent Rule defines how the policy recurs, using iCalendar RRULE format (e.g., `FREQ=DAILY;INTERVAL=1`).It supports fields like FREQ, INTERVAL, BYDAY. Refer to RFC 5545: https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.10 | [optional] -**start_time** | **datetime** | The time to run the policy action in milliseconds since epoch (UTC) (e.g., `1706713140000`). | +**start_time** | **datetime** | The time to run the policy action in milliseconds since epoch (UTC) (e.g., `1706713140000`). | [optional] ## Example diff --git a/docs/SLOConfigurationsApi.md b/docs/SLOConfigurationsApi.md new file mode 100644 index 0000000..907f3f7 --- /dev/null +++ b/docs/SLOConfigurationsApi.md @@ -0,0 +1,513 @@ +# instana_client.SLOConfigurationsApi + +All URIs are relative to *https://unit-tenant.instana.io* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_slo_config**](SLOConfigurationsApi.md#create_slo_config) | **POST** /api/settings/slo | Create a new SLO Config +[**delete_slo_config**](SLOConfigurationsApi.md#delete_slo_config) | **DELETE** /api/settings/slo/{id} | Delete an existing SLO Config +[**get_all_slo_config_tags**](SLOConfigurationsApi.md#get_all_slo_config_tags) | **GET** /api/settings/slo/tags | Get All SLO Config tags +[**get_all_slo_configs**](SLOConfigurationsApi.md#get_all_slo_configs) | **GET** /api/settings/slo | Get All SLO Configs +[**get_slo_config_by_id**](SLOConfigurationsApi.md#get_slo_config_by_id) | **GET** /api/settings/slo/{id} | Get an existing SLO Config +[**update_slo_config**](SLOConfigurationsApi.md#update_slo_config) | **PUT** /api/settings/slo/{id} | Update an existing SLO Config + + +# **create_slo_config** +> SLOConfigWithRBACTag create_slo_config(slo_config_with_rbac_tag) + +Create a new SLO Config + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.models.slo_config_with_rbac_tag import SLOConfigWithRBACTag +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.SLOConfigurationsApi(api_client) + slo_config_with_rbac_tag = {"name":"Stans test SLO 4","target":0.99,"rbacTags":[{"id":"R3_hPrHXSMe0yGsnlFdReA","displayName":"team 1"}],"entity":{"type":"application","applicationId":"VTNvC_sATZqMj4vSZfsjKA","serviceId":null,"endpointId":null,"boundaryScope":"INBOUND","includeInternal":false,"includeSynthetic":false,"tagFilterExpression":null},"indicator":{"type":"timeBased","blueprint":"latency","threshold":100,"aggregation":"P90"},"timeWindow":{"type":"rolling","duration":1,"durationUnit":"week"},"tags":["Stan","testing"]} # SLOConfigWithRBACTag | + + try: + # Create a new SLO Config + api_response = api_instance.create_slo_config(slo_config_with_rbac_tag) + print("The response of SLOConfigurationsApi->create_slo_config:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SLOConfigurationsApi->create_slo_config: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **slo_config_with_rbac_tag** | [**SLOConfigWithRBACTag**](SLOConfigWithRBACTag.md)| | + +### Return type + +[**SLOConfigWithRBACTag**](SLOConfigWithRBACTag.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | New SLO Configuration Created Successfully | - | +**400** | Invalid Tag Filter | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_slo_config** +> delete_slo_config(id) + +Delete an existing SLO Config + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.SLOConfigurationsApi(api_client) + id = 'SLOdCTspkHlS_OzNOATQWgsuw' # str | + + try: + # Delete an existing SLO Config + api_instance.delete_slo_config(id) + except Exception as e: + print("Exception when calling SLOConfigurationsApi->delete_slo_config: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | SLO Configuration Deleted Successfully | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_all_slo_config_tags** +> List[str] get_all_slo_config_tags(query=query, tag=tag, entity_type=entity_type) + +Get All SLO Config tags + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.SLOConfigurationsApi(api_client) + query = 'test SLO' # str | (optional) + tag = ['Testing'] # List[str] | (optional) + entity_type = 'application' # str | (optional) + + try: + # Get All SLO Config tags + api_response = api_instance.get_all_slo_config_tags(query=query, tag=tag, entity_type=entity_type) + print("The response of SLOConfigurationsApi->get_all_slo_config_tags:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SLOConfigurationsApi->get_all_slo_config_tags: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **query** | **str**| | [optional] + **tag** | [**List[str]**](str.md)| | [optional] + **entity_type** | **str**| | [optional] + +### Return type + +**List[str]** + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Fetched list of SLO Configuration tags Successfully | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_all_slo_configs** +> PaginatedResult get_all_slo_configs(page_size=page_size, page=page, order_by=order_by, order_direction=order_direction, query=query, tag=tag, entity_type=entity_type, infra_entity_types=infra_entity_types, kubernetes_cluster_uuid=kubernetes_cluster_uuid, blueprint=blueprint, slo_ids=slo_ids, slo_status=slo_status, entity_ids=entity_ids, grouped=grouped, refresh=refresh, rbac_tags=rbac_tags) + +Get All SLO Configs + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.models.paginated_result import PaginatedResult +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.SLOConfigurationsApi(api_client) + page_size = 1 # int | (optional) + page = 1 # int | (optional) + order_by = 'name' # str | (optional) + order_direction = 'ASC' # str | (optional) + query = 'test SLO' # str | (optional) + tag = ['Testing'] # List[str] | (optional) + entity_type = ['application'] # List[str] | (optional) + infra_entity_types = ['KubernetesCluster'] # List[str] | (optional) + kubernetes_cluster_uuid = '823b8c2e-5bc3-11ee-a0f4-42010a8000ff' # str | (optional) + blueprint = ['latency'] # List[str] | (optional) + slo_ids = ['SLOdCTspkHlS_OzNOATQWgsuw'] # List[str] | (optional) + slo_status = 'green' # str | (optional) + entity_ids = ['adsewby312sdfd1'] # List[str] | (optional) + grouped = false # bool | (optional) + refresh = false # bool | (optional) + rbac_tags = ['Testing'] # List[str] | (optional) + + try: + # Get All SLO Configs + api_response = api_instance.get_all_slo_configs(page_size=page_size, page=page, order_by=order_by, order_direction=order_direction, query=query, tag=tag, entity_type=entity_type, infra_entity_types=infra_entity_types, kubernetes_cluster_uuid=kubernetes_cluster_uuid, blueprint=blueprint, slo_ids=slo_ids, slo_status=slo_status, entity_ids=entity_ids, grouped=grouped, refresh=refresh, rbac_tags=rbac_tags) + print("The response of SLOConfigurationsApi->get_all_slo_configs:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SLOConfigurationsApi->get_all_slo_configs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page_size** | **int**| | [optional] + **page** | **int**| | [optional] + **order_by** | **str**| | [optional] + **order_direction** | **str**| | [optional] + **query** | **str**| | [optional] + **tag** | [**List[str]**](str.md)| | [optional] + **entity_type** | [**List[str]**](str.md)| | [optional] + **infra_entity_types** | [**List[str]**](str.md)| | [optional] + **kubernetes_cluster_uuid** | **str**| | [optional] + **blueprint** | [**List[str]**](str.md)| | [optional] + **slo_ids** | [**List[str]**](str.md)| | [optional] + **slo_status** | **str**| | [optional] + **entity_ids** | [**List[str]**](str.md)| | [optional] + **grouped** | **bool**| | [optional] + **refresh** | **bool**| | [optional] + **rbac_tags** | [**List[str]**](str.md)| | [optional] + +### Return type + +[**PaginatedResult**](PaginatedResult.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Fetched list of the SLO Configurations Successfully | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_slo_config_by_id** +> SLOConfigWithRBACTag get_slo_config_by_id(id, refresh=refresh) + +Get an existing SLO Config + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.models.slo_config_with_rbac_tag import SLOConfigWithRBACTag +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.SLOConfigurationsApi(api_client) + id = 'SLOdCTspkHlS_OzNOATQWgsuw' # str | + refresh = false # bool | (optional) + + try: + # Get an existing SLO Config + api_response = api_instance.get_slo_config_by_id(id, refresh=refresh) + print("The response of SLOConfigurationsApi->get_slo_config_by_id:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SLOConfigurationsApi->get_slo_config_by_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **refresh** | **bool**| | [optional] + +### Return type + +[**SLOConfigWithRBACTag**](SLOConfigWithRBACTag.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Fetched SLO Configuration Successfully | - | +**404** | SLO Configuration Not Found | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_slo_config** +> SLOConfigWithRBACTag update_slo_config(id, slo_config_with_rbac_tag) + +Update an existing SLO Config + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.models.slo_config_with_rbac_tag import SLOConfigWithRBACTag +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.SLOConfigurationsApi(api_client) + id = 'SLOdCTspkHlS_OzNOATQWgsuw' # str | + slo_config_with_rbac_tag = {"name":"Stans test SLO 4","target":0.99,"rbacTags":[{"id":"R3_hPrHXSMe0yGsnlFdReA","displayName":"team 1"}],"entity":{"type":"application","applicationId":"VTNvC_sATZqMj4vSZfsjKA","serviceId":null,"endpointId":null,"boundaryScope":"INBOUND","includeInternal":false,"includeSynthetic":false,"tagFilterExpression":null},"indicator":{"type":"timeBased","blueprint":"latency","threshold":100,"aggregation":"P90"},"timeWindow":{"type":"rolling","duration":1,"durationUnit":"week"},"tags":["Stan","testing"]} # SLOConfigWithRBACTag | + + try: + # Update an existing SLO Config + api_response = api_instance.update_slo_config(id, slo_config_with_rbac_tag) + print("The response of SLOConfigurationsApi->update_slo_config:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SLOConfigurationsApi->update_slo_config: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **slo_config_with_rbac_tag** | [**SLOConfigWithRBACTag**](SLOConfigWithRBACTag.md)| | + +### Return type + +[**SLOConfigWithRBACTag**](SLOConfigWithRBACTag.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Updated SLO Configuration Successfully | - | +**400** | Bad Request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/SLOCorrectionWindowsApi.md b/docs/SLOCorrectionWindowsApi.md index ca6579f..870a1a2 100644 --- a/docs/SLOCorrectionWindowsApi.md +++ b/docs/SLOCorrectionWindowsApi.md @@ -91,7 +91,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Fetched SLO Correction Windows Successfully | - | -**404** | There is no SLO Correction Window | - | +**404** | No SLO Correction Windows found for the given parameters in this time range | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/ServiceLevelsAlertConfigurationApi.md b/docs/ServiceLevelsAlertConfigurationApi.md index 0d72d1c..a9bb051 100644 --- a/docs/ServiceLevelsAlertConfigurationApi.md +++ b/docs/ServiceLevelsAlertConfigurationApi.md @@ -361,7 +361,7 @@ configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] with instana_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = instana_client.ServiceLevelsAlertConfigurationApi(api_client) - slo_id = 'SLOEANnWh9tQOa2h88kGxK6wQ' # str | Service Levels Objective(SLO) Configuration ID (optional) + slo_id = 'SLOEANnWh9tQOa2h88kGxK6wQ' # str | SLO Configuration ID (optional) alert_ids = ['ln3IGogYS-S7CPqcOQYTNA'] # List[str] | List of Service Levels Alert Configuration IDs (optional) try: @@ -380,7 +380,7 @@ with instana_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **slo_id** | **str**| Service Levels Objective(SLO) Configuration ID | [optional] + **slo_id** | **str**| SLO Configuration ID | [optional] **alert_ids** | [**List[str]**](str.md)| List of Service Levels Alert Configuration IDs | [optional] ### Return type diff --git a/docs/ServiceLevelsObjectiveSLOReportApi.md b/docs/ServiceLevelsObjectiveSLOReportApi.md index 79f9747..74ff88c 100644 --- a/docs/ServiceLevelsObjectiveSLOReportApi.md +++ b/docs/ServiceLevelsObjectiveSLOReportApi.md @@ -43,7 +43,7 @@ configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] with instana_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = instana_client.ServiceLevelsObjectiveSLOReportApi(api_client) - slo_id = 'SLOEANnWh9tQOa2h88kGxK6wQ' # str | Service Levels Objective(SLO) Configuration ID + slo_id = 'SLOEANnWh9tQOa2h88kGxK6wQ' # str | SLO Configuration ID var_from = '1706713140000' # str | Starting point for the data retrieval, specified as 13 digit Unix Timestamp milliseconds (optional) to = '1706813100000' # str | Ending point for the data retrieval, specified as 13 digit Unix Timestamp milliseconds (optional) exclude_correction_id = ['N1Xj6q8QTZu_cfJOGqy4mg'] # List[str] | IDs of Correction Configurations to be Excluded from the result (optional) @@ -65,7 +65,7 @@ with instana_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **slo_id** | **str**| Service Levels Objective(SLO) Configuration ID | + **slo_id** | **str**| SLO Configuration ID | **var_from** | **str**| Starting point for the data retrieval, specified as 13 digit Unix Timestamp milliseconds | [optional] **to** | **str**| Ending point for the data retrieval, specified as 13 digit Unix Timestamp milliseconds | [optional] **exclude_correction_id** | [**List[str]**](str.md)| IDs of Correction Configurations to be Excluded from the result | [optional] diff --git a/docs/SessionReplayMetadata.md b/docs/SessionReplayMetadata.md new file mode 100644 index 0000000..6d0c100 --- /dev/null +++ b/docs/SessionReplayMetadata.md @@ -0,0 +1,36 @@ +# SessionReplayMetadata + +List of session replay metadata records + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bytes_ingested_image** | **int** | Size of the image in bytes | +**id** | **str** | Unique identifier for the metadata record | +**image_data** | **str** | Base64-encoded image data loaded from external storage | [optional] +**image_format** | **str** | Image format | +**session_id** | **str** | Session identifier | +**timestamp** | **int** | Timestamp when the record was captured (epoch milliseconds) | +**type** | **str** | Type of record | + +## Example + +```python +from instana_client.models.session_replay_metadata import SessionReplayMetadata + +# TODO update the JSON string below +json = "{}" +# create an instance of SessionReplayMetadata from a JSON string +session_replay_metadata_instance = SessionReplayMetadata.from_json(json) +# print the JSON string representation of the object +print(SessionReplayMetadata.to_json()) + +# convert the object into a dict +session_replay_metadata_dict = session_replay_metadata_instance.to_dict() +# create an instance of SessionReplayMetadata from a dict +session_replay_metadata_from_dict = SessionReplayMetadata.from_dict(session_replay_metadata_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SessionReplayTimestamps.md b/docs/SessionReplayTimestamps.md new file mode 100644 index 0000000..04aab50 --- /dev/null +++ b/docs/SessionReplayTimestamps.md @@ -0,0 +1,30 @@ +# SessionReplayTimestamps + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**first_image_timestamp** | **int** | Timestamp of the first image in the session (epoch milliseconds). Null if no images exist. | [optional] +**last_image_timestamp** | **int** | Timestamp of the last image in the session (epoch milliseconds). Null if no images exist. | [optional] + +## Example + +```python +from instana_client.models.session_replay_timestamps import SessionReplayTimestamps + +# TODO update the JSON string below +json = "{}" +# create an instance of SessionReplayTimestamps from a JSON string +session_replay_timestamps_instance = SessionReplayTimestamps.from_json(json) +# print the JSON string representation of the object +print(SessionReplayTimestamps.to_json()) + +# convert the object into a dict +session_replay_timestamps_dict = session_replay_timestamps_instance.to_dict() +# create an instance of SessionReplayTimestamps from a dict +session_replay_timestamps_from_dict = SessionReplayTimestamps.from_dict(session_replay_timestamps_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SourceMapUploadConfig.md b/docs/SourceMapUploadConfig.md index 246f1dd..0275ddb 100644 --- a/docs/SourceMapUploadConfig.md +++ b/docs/SourceMapUploadConfig.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **created_at** | **datetime** | | [optional] **description** | **str** | | [optional] -**id** | **str** | | +**id** | **str** | | [optional] **metadata** | [**List[SourceMapFileMeta]**](SourceMapFileMeta.md) | | **modified_at** | **datetime** | | [optional] diff --git a/docs/SyntheticAlertConfigWithRBACTag.md b/docs/SyntheticAlertConfigWithRBACTag.md new file mode 100644 index 0000000..080b1de --- /dev/null +++ b/docs/SyntheticAlertConfigWithRBACTag.md @@ -0,0 +1,44 @@ +# SyntheticAlertConfigWithRBACTag + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alert_channel_ids** | **List[str]** | List of IDs of alert channels defined in Instana. Can be left empty. | +**created** | **int** | Unix timestamp representing the creation time of this revision. | [optional] +**custom_payload_fields** | [**List[CustomPayloadField]**](CustomPayloadField.md) | Custom payload fields to send additional information in the alert notifications. Can be left empty. | +**description** | **str** | Description of the synthetic alert configuration. Used as a template for the description of alert/event notifications triggered by this Smart Alert configuration. | +**enabled** | **bool** | Flag to indicate whether or not the configuration is enabled. | [optional] +**grace_period** | **int** | The duration for which an alert remains open after conditions are no longer violated, with the alert auto-closing once the grace period expires. | [optional] +**id** | **str** | ID of this Synthetic Alert Config. | +**initial_created** | **int** | Unix timestamp representing the time of the initial revision. | [optional] +**name** | **str** | Name of the synthetic alert configuration. Used as a template for the title of alert/event notifications triggered by this Smart Alert configuration. | +**rbac_tags** | [**List[ApiTag]**](ApiTag.md) | RBAC tags associated with the synthetic test | [optional] +**read_only** | **bool** | Flag to indicate whether or not the configuration is read-only. Read-only access restricts modification of the config. | [optional] +**rule** | [**SyntheticAlertRule**](SyntheticAlertRule.md) | | +**severity** | **int** | The severity of the alert when triggered, which is either 5 (Warning), or 10 (Critical). | [optional] +**synthetic_test_ids** | **List[str]** | IDs of the synthetic tests that this Smart Alert configuration is applied to. | +**tag_filter_expression** | [**TagFilterExpressionElement**](TagFilterExpressionElement.md) | | +**time_threshold** | [**SyntheticTimeThreshold**](SyntheticTimeThreshold.md) | | + +## Example + +```python +from instana_client.models.synthetic_alert_config_with_rbac_tag import SyntheticAlertConfigWithRBACTag + +# TODO update the JSON string below +json = "{}" +# create an instance of SyntheticAlertConfigWithRBACTag from a JSON string +synthetic_alert_config_with_rbac_tag_instance = SyntheticAlertConfigWithRBACTag.from_json(json) +# print the JSON string representation of the object +print(SyntheticAlertConfigWithRBACTag.to_json()) + +# convert the object into a dict +synthetic_alert_config_with_rbac_tag_dict = synthetic_alert_config_with_rbac_tag_instance.to_dict() +# create an instance of SyntheticAlertConfigWithRBACTag from a dict +synthetic_alert_config_with_rbac_tag_from_dict = SyntheticAlertConfigWithRBACTag.from_dict(synthetic_alert_config_with_rbac_tag_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyntheticAlertConfigurationApi.md b/docs/SyntheticAlertConfigurationApi.md index 3f5d40b..0985309 100644 --- a/docs/SyntheticAlertConfigurationApi.md +++ b/docs/SyntheticAlertConfigurationApi.md @@ -4,6 +4,9 @@ All URIs are relative to *https://unit-tenant.instana.io* Method | HTTP request | Description ------------- | ------------- | ------------- +[**bulk_delete_synthetic_alert_configs**](SyntheticAlertConfigurationApi.md#bulk_delete_synthetic_alert_configs) | **PUT** /api/events/settings/global-alert-configs/synthetics/bulk/delete | Bulk Delete Synthetic Smart Alert Configs +[**bulk_disable_synthetic_alert_configs**](SyntheticAlertConfigurationApi.md#bulk_disable_synthetic_alert_configs) | **PUT** /api/events/settings/global-alert-configs/synthetics/bulk/disable | Bulk Disable Synthetic Smart Alert Configs +[**bulk_enable_synthetic_alert_configs**](SyntheticAlertConfigurationApi.md#bulk_enable_synthetic_alert_configs) | **PUT** /api/events/settings/global-alert-configs/synthetics/bulk/enable | Bulk Enable Synthetic Smart Alert Configs [**create_synthetic_alert_config**](SyntheticAlertConfigurationApi.md#create_synthetic_alert_config) | **POST** /api/events/settings/global-alert-configs/synthetics | Create Synthetic Smart Alert Config [**delete_synthetic_alert_config**](SyntheticAlertConfigurationApi.md#delete_synthetic_alert_config) | **DELETE** /api/events/settings/global-alert-configs/synthetics/{id} | Delete Synthetic Smart Alert Config [**disable_synthetic_alert_config**](SyntheticAlertConfigurationApi.md#disable_synthetic_alert_config) | **PUT** /api/events/settings/global-alert-configs/synthetics/{id}/disable | Disable Synthetic Smart Alert Config @@ -15,6 +18,243 @@ Method | HTTP request | Description [**update_synthetic_alert_config**](SyntheticAlertConfigurationApi.md#update_synthetic_alert_config) | **POST** /api/events/settings/global-alert-configs/synthetics/{id} | Update Synthetic Smart Alert Config +# **bulk_delete_synthetic_alert_configs** +> bulk_delete_synthetic_alert_configs(request_body) + +Bulk Delete Synthetic Smart Alert Configs + +Deletes multiple Synthetic Smart Alert Configurations. +For more information on Synthetic Alert Configuration please access the https://developer.ibm.com/apis/catalog/instana--instana-rest-api/Synthetic+Monitoring#synthetic-alert-configuration. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.SyntheticAlertConfigurationApi(api_client) + request_body = ['request_body_example'] # List[str] | + + try: + # Bulk Delete Synthetic Smart Alert Configs + api_instance.bulk_delete_synthetic_alert_configs(request_body) + except Exception as e: + print("Exception when calling SyntheticAlertConfigurationApi->bulk_delete_synthetic_alert_configs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request_body** | [**List[str]**](str.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Successful - no content to return. | - | +**400** | Bad request. | - | +**403** | Insufficient permissions or limited in access. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **bulk_disable_synthetic_alert_configs** +> bulk_disable_synthetic_alert_configs(request_body) + +Bulk Disable Synthetic Smart Alert Configs + +Disables multiple Synthetic Smart Alert Configurations. +For more information on Synthetic Alert Configuration please access the https://developer.ibm.com/apis/catalog/instana--instana-rest-api/Synthetic+Monitoring#synthetic-alert-configuration. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.SyntheticAlertConfigurationApi(api_client) + request_body = ['request_body_example'] # List[str] | + + try: + # Bulk Disable Synthetic Smart Alert Configs + api_instance.bulk_disable_synthetic_alert_configs(request_body) + except Exception as e: + print("Exception when calling SyntheticAlertConfigurationApi->bulk_disable_synthetic_alert_configs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request_body** | [**List[str]**](str.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Successful - no content to return. | - | +**400** | Bad request. | - | +**403** | Insufficient permissions or limited in access. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **bulk_enable_synthetic_alert_configs** +> bulk_enable_synthetic_alert_configs(request_body) + +Bulk Enable Synthetic Smart Alert Configs + +Enables multiple Synthetic Smart Alert Configurations. +For more information on Synthetic Alert Configuration please access the https://developer.ibm.com/apis/catalog/instana--instana-rest-api/Synthetic+Monitoring#synthetic-alert-configuration. + +### Example + +* Api Key Authentication (ApiKeyAuth): + +```python +import instana_client +from instana_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://unit-tenant.instana.io +# See configuration.py for a list of all supported configuration parameters. +configuration = instana_client.Configuration( + host = "https://unit-tenant.instana.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: ApiKeyAuth +configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with instana_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = instana_client.SyntheticAlertConfigurationApi(api_client) + request_body = ['request_body_example'] # List[str] | + + try: + # Bulk Enable Synthetic Smart Alert Configs + api_instance.bulk_enable_synthetic_alert_configs(request_body) + except Exception as e: + print("Exception when calling SyntheticAlertConfigurationApi->bulk_enable_synthetic_alert_configs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request_body** | [**List[str]**](str.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Successful - no content to return. | - | +**400** | Bad request. | - | +**403** | Insufficient permissions or limited in access. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **create_synthetic_alert_config** > SyntheticAlertConfigWithMetadata create_synthetic_alert_config(synthetic_alert_config) @@ -92,10 +332,10 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Synthetic Smart Alert Configuration created. | - | -**400** | Invalid configuration. | - | -**403** | Insufficient permissions. | - | -**422** | Unprocessable entity. | - | +**200** | OK | - | +**400** | Bad request. | - | +**403** | Insufficient permissions or limited in access. | - | +**422** | Unprocessable request - missing/invalid data. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -172,9 +412,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Synthetic Smart Alert Configuration deleted. | - | -**403** | Insufficient permissions. | - | -**404** | Invalid Configuration ID provided. | - | +**204** | Successful - no content to return. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -253,9 +493,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Synthetic Smart Alert Configuration disabled. | - | -**403** | Insufficient permissions. | - | -**404** | Invalid Configuration ID provided. | - | +**204** | Successful - no content to return. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -334,9 +574,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Synthetic Smart Alert Configuration enabled. | - | -**403** | Insufficient permissions. | - | -**404** | Invalid Configuration ID provided. | - | +**204** | Successful - no content to return. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -419,12 +659,11 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Success. Returns empty result if syntheticTestId is invalid. | - | -**403** | Insufficient permissions. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **find_synthetic_alert_config** -> SyntheticAlertConfigWithMetadata find_synthetic_alert_config(id, valid_on=valid_on) +> SyntheticAlertConfigWithRBACTag find_synthetic_alert_config(id, valid_on=valid_on) Get Synthetic Smart Alert Config @@ -437,7 +676,7 @@ For more information on Synthetic Alert Configuration please access the https:// ```python import instana_client -from instana_client.models.synthetic_alert_config_with_metadata import SyntheticAlertConfigWithMetadata +from instana_client.models.synthetic_alert_config_with_rbac_tag import SyntheticAlertConfigWithRBACTag from instana_client.rest import ApiException from pprint import pprint @@ -486,7 +725,7 @@ Name | Type | Description | Notes ### Return type -[**SyntheticAlertConfigWithMetadata**](SyntheticAlertConfigWithMetadata.md) +[**SyntheticAlertConfigWithRBACTag**](SyntheticAlertConfigWithRBACTag.md) ### Authorization @@ -502,8 +741,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**403** | Insufficient permissions. | - | -**404** | The requested Configuration does not exist. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -584,8 +823,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**403** | Insufficient permissions. | - | -**404** | The requested Configuration does not exist. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -666,9 +905,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Synthetic Smart Alert Configuration restored. | - | -**403** | Insufficient permissions. | - | -**404** | Invalid Configuration provided. | - | +**204** | Successful - no content to return. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -753,10 +992,10 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Synthetic Smart Alert Configuration updated | - | **204** | Synthetic Smart Alert Configuration did not change | - | -**400** | Invalid Configuration ID provided. | - | -**403** | Insufficient permissions. | - | -**422** | Unprocessable entity. | - | -**500** | Internal error. | - | +**403** | Insufficient permissions or limited in access. | - | +**404** | Resource not found. | - | +**422** | Unprocessable request - missing/invalid data. | - | +**500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/SyntheticCallsApi.md b/docs/SyntheticCallsApi.md index 6b9afb0..eac38c2 100644 --- a/docs/SyntheticCallsApi.md +++ b/docs/SyntheticCallsApi.md @@ -249,7 +249,7 @@ void (empty response body) |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/SyntheticSettingsApi.md b/docs/SyntheticSettingsApi.md index e9e2dc4..986755a 100644 --- a/docs/SyntheticSettingsApi.md +++ b/docs/SyntheticSettingsApi.md @@ -106,7 +106,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -213,7 +213,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -294,7 +294,7 @@ void (empty response body) |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -377,7 +377,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **201** | Successful - resource created | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -461,7 +461,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -541,7 +541,7 @@ void (empty response body) |-------------|-------------|------------------| **204** | Successful - no content to return. | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -700,7 +700,7 @@ void (empty response body) |-------------|-------------|------------------| **204** | Successful - no content to return. | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -783,7 +783,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | @@ -863,7 +863,7 @@ This endpoint does not need any parameter. |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | @@ -942,7 +942,7 @@ This endpoint does not need any parameter. |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | @@ -1026,7 +1026,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | @@ -1106,7 +1106,7 @@ This endpoint does not need any parameter. |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1360,7 +1360,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | @@ -1444,7 +1444,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | @@ -1532,7 +1532,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1627,7 +1627,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1710,7 +1710,7 @@ void (empty response body) |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1794,7 +1794,7 @@ void (empty response body) **200** | OK | - | **400** | Bad request. | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1877,7 +1877,7 @@ void (empty response body) |-------------|-------------|------------------| **201** | Successful - resource created | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1961,7 +1961,7 @@ void (empty response body) **200** | OK | - | **400** | Bad request. | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/SyntheticTestPlaybackResultsApi.md b/docs/SyntheticTestPlaybackResultsApi.md index ae45c56..8d15201 100644 --- a/docs/SyntheticTestPlaybackResultsApi.md +++ b/docs/SyntheticTestPlaybackResultsApi.md @@ -93,7 +93,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -177,7 +177,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -261,7 +261,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -352,7 +352,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | @@ -439,7 +439,7 @@ void (empty response body) |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | @@ -524,7 +524,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -611,7 +611,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | @@ -696,7 +696,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/SyntheticTestUpdate.md b/docs/SyntheticTestUpdate.md index 14d877a..b5d4011 100644 --- a/docs/SyntheticTestUpdate.md +++ b/docs/SyntheticTestUpdate.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **locations** | [**SyntheticResourceUpdateListStringListString**](SyntheticResourceUpdateListStringListString.md) | | [optional] **mobile_apps** | [**SyntheticResourceUpdateListStringListString**](SyntheticResourceUpdateListStringListString.md) | | [optional] **modified_by** | **str** | | [optional] +**rbac_tags** | [**SyntheticResourceUpdateListStringListString**](SyntheticResourceUpdateListStringListString.md) | | [optional] **shallow_update** | **bool** | | [optional] **synthetic_update_type** | **str** | Indicates the type of update to apply to a set of tests of same syntheticType (Deep) or a mix of syntheticType values (Shallow). When Shallow is used, only the configuration properties retries, retryInterval and timeout can be updated | **test_frequency** | **int** | | [optional] diff --git a/docs/TeamsApi.md b/docs/TeamsApi.md index ecca8ba..eabc1bc 100644 --- a/docs/TeamsApi.md +++ b/docs/TeamsApi.md @@ -323,7 +323,7 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_team** -> update_team(id, api_team=api_team) +> update_team(id, api_team) Update team @@ -361,11 +361,11 @@ with instana_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = instana_client.TeamsApi(api_client) id = 'teamId' # str | Id of the team to update - api_team = instana_client.ApiTeam() # ApiTeam | (optional) + api_team = {"id":"teamId","tag":"teamTag","info":{"description":"description for the team"},"scope":{"accessPermissions":["LIMITED_APPLICATIONS_SCOPE"],"actionFilter":"","applications":["applicationId1","applicationId2"],"restrictedApplicationFilter":{"restrictingApplicationId":"applicationId3","label":"demo","tagFilterExpression":{"type":"TAG_FILTER","name":"service.name","operator":"EQUALS","entity":"DESTINATION","value":"butler"},"scope":"INCLUDE_NO_DOWNSTREAM"}},"members":[{"userId":"userId","email":"username@example.com","name":"userName","roles":[{"roleId":"-3","roleName":"Default","viaIdP":false}]}],"entities":[]} # ApiTeam | try: # Update team - api_instance.update_team(id, api_team=api_team) + api_instance.update_team(id, api_team) except Exception as e: print("Exception when calling TeamsApi->update_team: %s\n" % e) ``` @@ -378,7 +378,7 @@ with instana_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Id of the team to update | - **api_team** | [**ApiTeam**](ApiTeam.md)| | [optional] + **api_team** | [**ApiTeam**](ApiTeam.md)| | ### Return type @@ -398,6 +398,7 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Team updated successfully | - | +**400** | Bad Request | - | **404** | Team not found | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/TestResultDetailData.md b/docs/TestResultDetailData.md index 81d85ae..ab032e0 100644 --- a/docs/TestResultDetailData.md +++ b/docs/TestResultDetailData.md @@ -6,14 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **har** | **Dict[str, object]** | | [optional] -**image_files** | **Dict[str, List[bytearray]]** | | [optional] +**image_files** | **Dict[str, bytearray]** | | [optional] **log_files** | **Dict[str, str]** | | [optional] **logs** | **str** | | [optional] **subtransaction_avg_metrics** | **Dict[str, object]** | | [optional] **subtransactions** | [**List[TestResultSubtransaction]**](TestResultSubtransaction.md) | | [optional] **test_id** | **str** | | [optional] **test_result_id** | **str** | | [optional] -**videos** | **List[bytearray]** | | [optional] +**videos** | **bytearray** | | [optional] ## Example diff --git a/docs/TraceActivityTreeNodeDetails.md b/docs/TraceActivityTreeNodeDetails.md index a72c8ed..21631bc 100644 --- a/docs/TraceActivityTreeNodeDetails.md +++ b/docs/TraceActivityTreeNodeDetails.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **min_self_time** | **int** | The smallest self time in the batch. May be null to indicate that `minSelfTime` is unknown when this node has only an exit span and no children. The time measured is in milliseconds. | [optional] **network_time** | **int** | The time difference between the Exit Span Time of the caller and the Entry Span Time of the call. This value is measured in milliseconds and may be null if network time is not applicable. | [optional] **raw_span_load_error** | **str** | Whether an error occurred loading raw spans from external storage. | [optional] +**sampling_factor** | **int** | Sampling factor represents the inverse of the sampling rate and indicates how many actual calls are represented by a single sampled call. For example, a sampling factor of 10 means that one sampled call represents 10 actual calls. | [optional] **source** | [**SpanRelation**](SpanRelation.md) | | [optional] **spans** | [**List[SpanExcerpt]**](SpanExcerpt.md) | Information about the spans from which the call is composed. | **start** | **int** | The timestamp when the call or request was initiated. For example, Unix epoch time in milliseconds `1735532879870` is `Monday, 30 December 2024 04:27:59.870 GMT` | [optional] diff --git a/docs/UserApi.md b/docs/UserApi.md index c352791..1a5d9f0 100644 --- a/docs/UserApi.md +++ b/docs/UserApi.md @@ -165,7 +165,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -242,7 +242,7 @@ This endpoint does not need any parameter. |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -319,7 +319,7 @@ This endpoint does not need any parameter. |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -476,7 +476,7 @@ void (empty response body) |-------------|-------------|------------------| **204** | Successful - no content to return. | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -710,7 +710,7 @@ void (empty response body) |-------------|-------------|------------------| **204** | Successful - no content to return. | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/UserResult.md b/docs/UserResult.md index 39ca583..5125377 100644 --- a/docs/UserResult.md +++ b/docs/UserResult.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **group_count** | **int** | | [optional] **id** | **str** | | **last_logged_in** | **int** | | [optional] +**team_names** | **List[str]** | | [optional] **tfa_enabled** | **bool** | | [optional] ## Example diff --git a/docs/ValidatedAlertingConfiguration.md b/docs/ValidatedAlertingConfiguration.md index 5ef7fa9..c75b6f2 100644 --- a/docs/ValidatedAlertingConfiguration.md +++ b/docs/ValidatedAlertingConfiguration.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **alert_channel_names** | **List[str]** | Set of Alert Channel names added in the Alert Configuration. | [optional] **alert_name** | **str** | Name of the Alert Configuration. | **application_names** | **List[str]** | Set of Application Perspective names added in the Alert Configuration. | [optional] -**custom_payload_fields** | [**List[StaticStringField]**](StaticStringField.md) | Custom payload fields to send additional information in the alert notifications. Can be left empty. | +**custom_payload_fields** | [**List[CustomPayloadField]**](CustomPayloadField.md) | Custom payload fields to send additional information in the alert notifications. Supports both static and dynamic fields. Can be left empty. | **event_filtering_configuration** | [**EventFilteringConfiguration**](EventFilteringConfiguration.md) | | **id** | **str** | ID of the Alert Configuration. | **include_entity_name_in_legacy_alerts** | **bool** | To include the entity name in a legacy alert based on built-in/custom events. | [optional] diff --git a/docs/WebsiteAlertConfig.md b/docs/WebsiteAlertConfig.md index 060fe0f..4354cb3 100644 --- a/docs/WebsiteAlertConfig.md +++ b/docs/WebsiteAlertConfig.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **alert_channels** | **Dict[str, List[str]]** | Set of alert channel IDs associated with the severity. | [optional] **custom_payload_fields** | [**List[CustomPayloadField]**](CustomPayloadField.md) | Custom payload fields to send additional information in the alert notifications. Can be left empty. | **description** | **str** | Description of the website alert configuration. Used as a template for the description of alert/event notifications triggered by this Smart Alert configuration. | +**enabled** | **bool** | Flag to indicate whether or not the configuration is enabled. | [optional] **grace_period** | **int** | The duration for which an alert remains open after conditions are no longer violated, with the alert auto-closing once the grace period expires. | [optional] **granularity** | **int** | The evaluation granularity used for detection of violations of the defined threshold. Defines the size of the tumbling window used. | [default to 600000] **name** | **str** | Name of the website alert configuration. Used as a template for the title of alert/event notifications triggered by this Smart Alert configuration. | diff --git a/docs/WebsiteAlertConfigWithRBACTag.md b/docs/WebsiteAlertConfigWithRBACTag.md new file mode 100644 index 0000000..9c11ca6 --- /dev/null +++ b/docs/WebsiteAlertConfigWithRBACTag.md @@ -0,0 +1,50 @@ +# WebsiteAlertConfigWithRBACTag + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alert_channel_ids** | **List[str]** | List of IDs of alert channels defined in Instana. Can be left empty. | [optional] +**alert_channels** | **Dict[str, List[str]]** | Set of alert channel IDs associated with the severity. | [optional] +**created** | **int** | Unix timestamp representing the creation time of this revision. | [optional] +**custom_payload_fields** | [**List[CustomPayloadField]**](CustomPayloadField.md) | Custom payload fields to send additional information in the alert notifications. Can be left empty. | +**description** | **str** | Description of the website alert configuration. Used as a template for the description of alert/event notifications triggered by this Smart Alert configuration. | +**enabled** | **bool** | Flag to indicate whether or not the configuration is enabled. | [optional] +**grace_period** | **int** | The duration for which an alert remains open after conditions are no longer violated, with the alert auto-closing once the grace period expires. | [optional] +**granularity** | **int** | The evaluation granularity used for detection of violations of the defined threshold. Defines the size of the tumbling window used. | [default to 600000] +**id** | **str** | ID of this Website Alert Config. | +**initial_created** | **int** | Unix timestamp representing the time of the initial revision. | [optional] +**name** | **str** | Name of the website alert configuration. Used as a template for the title of alert/event notifications triggered by this Smart Alert configuration. | +**rbac_tags** | [**List[ApiTag]**](ApiTag.md) | RBAC tags associated with the website | [optional] +**read_only** | **bool** | Flag to indicate whether or not the configuration is read-only. Read-only access restricts modification of the config. | [optional] +**rule** | [**WebsiteAlertRule**](WebsiteAlertRule.md) | | [optional] +**rules** | [**List[RuleWithThresholdWebsiteAlertRule]**](RuleWithThresholdWebsiteAlertRule.md) | A list of rules where each rule is associated with multiple thresholds and their corresponding severity levels. This enables more complex alert configurations with validations to ensure consistent and logical threshold-severity combinations. | [optional] +**severity** | **int** | The severity of the alert when triggered, which is either 5 (Warning), or 10 (Critical). | [optional] +**tag_filter_expression** | [**TagFilterExpressionElement**](TagFilterExpressionElement.md) | | +**tag_filters** | [**List[TagFilter]**](TagFilter.md) | | [optional] +**threshold** | [**Threshold**](Threshold.md) | | [optional] +**time_threshold** | [**WebsiteTimeThreshold**](WebsiteTimeThreshold.md) | | +**triggering** | **bool** | Optional flag to indicate whether an Incident is also triggered or not. | [optional] +**website_id** | **str** | ID of the website that this Smart Alert configuration is applied to. | + +## Example + +```python +from instana_client.models.website_alert_config_with_rbac_tag import WebsiteAlertConfigWithRBACTag + +# TODO update the JSON string below +json = "{}" +# create an instance of WebsiteAlertConfigWithRBACTag from a JSON string +website_alert_config_with_rbac_tag_instance = WebsiteAlertConfigWithRBACTag.from_json(json) +# print the JSON string representation of the object +print(WebsiteAlertConfigWithRBACTag.to_json()) + +# convert the object into a dict +website_alert_config_with_rbac_tag_dict = website_alert_config_with_rbac_tag_instance.to_dict() +# create an instance of WebsiteAlertConfigWithRBACTag from a dict +website_alert_config_with_rbac_tag_from_dict = WebsiteAlertConfigWithRBACTag.from_dict(website_alert_config_with_rbac_tag_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WebsiteConfigurationApi.md b/docs/WebsiteConfigurationApi.md index 59ad595..bcdba91 100644 --- a/docs/WebsiteConfigurationApi.md +++ b/docs/WebsiteConfigurationApi.md @@ -100,7 +100,7 @@ void (empty response body) |-------------|-------------|------------------| **204** | Source map files in the source map upload configuration successfully cleared | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | @@ -187,7 +187,7 @@ Name | Type | Description | Notes **200** | Website successfully configured | - | **400** | Missing name query parameter or name already used for a configured website | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -266,7 +266,7 @@ void (empty response body) |-------------|-------------|------------------| **204** | Website successfully removed | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -336,7 +336,7 @@ No authorization required |-------------|-------------|------------------| **204** | Sourcemap configuration successfully deleted or sourcemap not found | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -499,7 +499,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | @@ -579,7 +579,7 @@ void (empty response body) |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | @@ -662,7 +662,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | @@ -958,7 +958,7 @@ No authorization required **200** | Website sourcemap upload configuration added successfully | - | **400** | Missing description or description already used for a configuration. | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **422** | Unprocessable request - missing/invalid data. | - | **500** | Internal server error. | - | @@ -1044,7 +1044,7 @@ Name | Type | Description | Notes **200** | Website successfully renamed | - | **400** | Missing name query parameter or name already used for a configured website | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1125,7 +1125,7 @@ void (empty response body) |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **415** | Unsupported Media Type. | - | **500** | Internal server error. | - | @@ -1211,7 +1211,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | @@ -1296,7 +1296,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | @@ -1382,7 +1382,7 @@ Name | Type | Description | Notes **200** | Website successfully configured | - | **400** | Bad request. | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **500** | Internal server error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1473,7 +1473,7 @@ Name | Type | Description | Notes **200** | OK | - | **400** | Bad request. | - | **401** | Unauthorized access - requires user authentication. | - | -**403** | Insufficient permissions. | - | +**403** | Insufficient permissions or limited in access. | - | **404** | Resource not found. | - | **500** | Internal server error. | - | diff --git a/docs/WebsiteMonitoringBeacon.md b/docs/WebsiteMonitoringBeacon.md index cb8a3ac..51937cc 100644 --- a/docs/WebsiteMonitoringBeacon.md +++ b/docs/WebsiteMonitoringBeacon.md @@ -68,16 +68,16 @@ Name | Type | Description | Notes **label** | **str** | | [optional] **largest_contentful_paint_time** | **int** | | [optional] **latitude** | **float** | | [optional] -**location_origin** | **str** | | +**location_origin** | **str** | | [optional] **location_path** | **str** | | [optional] -**location_url** | **str** | | +**location_url** | **str** | | [optional] **longitude** | **float** | | [optional] **meta** | **Dict[str, str]** | | [optional] **on_load_time** | **int** | | [optional] **os_name** | **str** | | [optional] **os_version** | **str** | | [optional] **page** | **str** | | [optional] -**page_load_id** | **str** | | +**page_load_id** | **str** | | [optional] **parent_beacon_id** | **str** | | [optional] **parsed_stack_trace** | [**List[JsStackTraceLine]**](JsStackTraceLine.md) | | [optional] **phase** | **str** | | [optional] diff --git a/docs/WithMetadata.md b/docs/WithMetadata.md index d8cab88..5d55a09 100644 --- a/docs/WithMetadata.md +++ b/docs/WithMetadata.md @@ -1,4 +1,4 @@ -# WithMetadata +# WithMetaData ## Properties @@ -30,19 +30,19 @@ Name | Type | Description | Notes ## Example ```python -from instana_client.models.with_metadata import WithMetadata +from instana_client.models.with_meta_data import WithMetaData # TODO update the JSON string below json = "{}" -# create an instance of WithMetadata from a JSON string -with_metadata_instance = WithMetadata.from_json(json) +# create an instance of WithMetaData from a JSON string +with_meta_data_instance = WithMetaData.from_json(json) # print the JSON string representation of the object -print(WithMetadata.to_json()) +print(WithMetaData.to_json()) # convert the object into a dict -with_metadata_dict = with_metadata_instance.to_dict() -# create an instance of WithMetadata from a dict -with_metadata_from_dict = WithMetadata.from_dict(with_metadata_dict) +with_meta_data_dict = with_meta_data_instance.to_dict() +# create an instance of WithMetaData from a dict +with_meta_data_from_dict = WithMetaData.from_dict(with_meta_data_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/instana_client/__init__.py b/instana_client/__init__.py index a921fb1..a51e911 100644 --- a/instana_client/__init__.py +++ b/instana_client/__init__.py @@ -7,7 +7,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,602 +15,1229 @@ """ # noqa: E501 -__version__ = "1.0.3" +__version__ = "1.0.4" + +# Define package exports +__all__ = [ + "AIManagementApi", + "APITokenApi", + "ActionCatalogApi", + "ActionHistoryApi", + "ApdexReportApi", + "ApdexSettingsApi", + "ApplicationAlertConfigurationApi", + "ApplicationAnalyzeApi", + "ApplicationCatalogApi", + "ApplicationMetricsApi", + "ApplicationResourcesApi", + "ApplicationSettingsApi", + "ApplicationTopologyApi", + "AuditLogApi", + "AuthenticationApi", + "BusinessMonitoringApi", + "CustomDashboardsApi", + "CustomEntitiesApi", + "EndUserMonitoringApi", + "EventSettingsApi", + "EventsApi", + "GlobalApplicationAlertConfigurationApi", + "GroupsApi", + "HealthApi", + "HostAgentApi", + "InfrastructureAlertConfigurationApi", + "InfrastructureAnalyzeApi", + "InfrastructureCatalogApi", + "InfrastructureMetricsApi", + "InfrastructureResourcesApi", + "InfrastructureTopologyApi", + "LLMPriceConfigurationApi", + "LogAlertConfigurationApi", + "LoggingAnalyzeApi", + "MaintenanceConfigurationApi", + "MobileAppAnalyzeApi", + "MobileAppCatalogApi", + "MobileAppConfigurationApi", + "MobileAppMetricsApi", + "PoliciesApi", + "ReleasesApi", + "RolesApi", + "SLIReportApi", + "SLISettingsApi", + "SLOConfigurationsApi", + "SLOCorrectionConfigurationsApi", + "SLOCorrectionWindowsApi", + "ServiceLevelsAlertConfigurationApi", + "ServiceLevelsObjectiveSLOReportApi", + "SessionSettingsApi", + "SyntheticAlertConfigurationApi", + "SyntheticCallsApi", + "SyntheticCatalogApi", + "SyntheticMetricsApi", + "SyntheticSettingsApi", + "SyntheticTestPlaybackResultsApi", + "TeamsApi", + "UsageApi", + "UserApi", + "WebsiteAnalyzeApi", + "WebsiteCatalogApi", + "WebsiteConfigurationApi", + "WebsiteMetricsApi", + "DefaultApi", + "ApiResponse", + "ApiClient", + "Configuration", + "OpenApiException", + "ApiTypeError", + "ApiValueError", + "ApiKeyError", + "ApiAttributeError", + "ApiException", + "AbstractIntegration", + "AbstractRule", + "AccessLogEntry", + "AccessLogResponse", + "AccessRule", + "Action", + "ActionConfiguration", + "ActionInstance", + "ActionInstanceMetadataEntry", + "ActionInstanceParameter", + "ActionInstanceRequest", + "ActionInstanceRequestParameters", + "ActionMatch", + "ActionSearchSpace", + "AdaptiveBaseline", + "AdaptiveThresholdRule", + "Addition", + "AdjustedTimeframe", + "AgentConfigurationUpdate", + "AlertingConfiguration", + "AlertingConfigurationWithLastUpdated", + "AlertingTimeWindow", + "ApdexConfiguration", + "ApdexConfigurationInput", + "ApdexEntity", + "ApdexReport", + "ApiCreateGroup", + "ApiCreateRole", + "ApiGroup", + "ApiMember", + "ApiPermissionSet", + "ApiRestrictedApplicationFilter", + "ApiRole", + "ApiTag", + "ApiTeam", + "ApiTeamInfo", + "ApiTeamMember", + "ApiTeamRole", + "ApiTeamScope", + "ApiToken", + "AppDataMetricConfiguration", + "Application", + "ApplicationAlertConfig", + "ApplicationAlertConfigWithMetadata", + "ApplicationAlertRule", + "ApplicationApdexEntity", + "ApplicationConfig", + "ApplicationEventResult", + "ApplicationItem", + "ApplicationMetricResult", + "ApplicationNode", + "ApplicationResult", + "ApplicationScope", + "ApplicationScopeWithMetadata", + "ApplicationSliEntity", + "ApplicationSloEntity", + "ApplicationTimeThreshold", + "ArithmeticConfiguration", + "ArithmeticOperand", + "ArithmeticOperation", + "AuditLogEntry", + "AuditLogUiResponse", + "Author", + "AvailabilityBlueprintIndicator", + "AvailabilitySliEntity", + "AvailableMetrics", + "AvailablePlugins", + "BackendTraceReference", + "BidirectionalMsTeamsAppIntegration", + "BidirectionalSlackAppIntegration", + "BinaryOperatorDTO", + "BrowserScriptConfiguration", + "BrowserScriptConfigurationUpdate", + "BuiltInEventSpecification", + "BuiltInEventSpecificationWithLastUpdated", + "BusinessActivity", + "BusinessPerspectiveConfig", + "CallGroupsItem", + "CallGroupsResult", + "CallRelation", + "ChangeSummary", + "CloudfoundryPhysicalContext", + "Condition", + "ConfigVersion", + "Correction", + "CorrectionConfiguration", + "CorrectionScheduling", + "CorrectionWindow", + "CrashMobileAppAlertRule", + "CreateWebsiteRequestInner", + "CursorPaginatedBusinessActivityItem", + "CursorPagination", + "CustomBlueprintIndicator", + "CustomDashboard", + "CustomDashboardPreview", + "CustomDashboardWithUserSpecificInformation", + "CustomDependency", + "CustomEmailSubjectPrefix", + "CustomEntityModel", + "CustomEntityWithMetadata", + "CustomEventMobileAppAlertRule", + "CustomEventSpecification", + "CustomEventSpecificationWithLastUpdated", + "CustomEventWebsiteAlertRule", + "CustomMetric", + "CustomPayloadConfiguration", + "CustomPayloadField", + "CustomPayloadWithLastUpdated", + "CustomPayloadWithVersion", + "CustomTag", + "DNSConfiguration", + "DNSConfigurationUpdate", + "DNSFilterQueryTime", + "DNSFilterTargetValue", + "DashboardApiToken", + "DatabaseIntegration", + "DeprecatedTagFilter", + "Division", + "Duration", + "DynamicField", + "DynamicFieldValue", + "DynamicParameter", + "EditUser", + "EmailIntegration", + "EmptyConfiguration", + "Endpoint", + "EndpointConfig", + "EndpointEventResult", + "EndpointItem", + "EndpointMetricResult", + "EndpointNode", + "EndpointResult", + "EndpointSimple", + "EntityCountRule", + "EntityCountVerificationRule", + "EntityHealthInfo", + "EntityId", + "EntityVerificationRule", + "ErrorBudgetAlertRule", + "ErrorsApplicationAlertRule", + "Event", + "EventFilteringConfiguration", + "EventResult", + "EventSpecificationInfo", + "ExtendedService", + "FailureSyntheticAlertRule", + "FixedHttpPathSegmentMatchingRule", + "FixedTimeWindow", + "GenericInfraAlertRule", + "GeoLocationConfiguration", + "GeoMappingRule", + "GeoSubdivision", + "GetActivities", + "GetApplicationMetrics", + "GetApplications", + "GetAvailableMetricsQuery", + "GetAvailablePluginsQuery", + "GetCallGroups", + "GetCombinedMetrics", + "GetDynamicParameterValues", + "GetEndpoints", + "GetInfrastructureGroupsQuery", + "GetInfrastructureQuery", + "GetMetricsResult", + "GetMobileAppBeaconGroups", + "GetMobileAppBeacons", + "GetMobileAppMetrics", + "GetMobileAppMetricsV2", + "GetPayloadKeysResult", + "GetServices", + "GetSessionReplayMetadataResult", + "GetSnapshotsQuery", + "GetTestResult", + "GetTestResultAnalytic", + "GetTestResultBase", + "GetTestResultList", + "GetTestSummaryResult", + "GetTraceDownloadResultItem", + "GetTraceGroups", + "GetTraces", + "GetWebsiteBeaconGroups", + "GetWebsiteBeacons", + "GetWebsiteMetrics", + "GetWebsiteMetricsV2", + "GlobalApplicationAlertConfigWithMetadata", + "GlobalApplicationsAlertConfig", + "GoogleChatIntegration", + "GraphEdge", + "GraphNode", + "Group", + "GroupByTag", + "GroupMapping", + "GroupMappingOverview", + "HealthState", + "HistoricBaseline", + "HostAvailabilityRule", + "HttpActionConfiguration", + "HttpActionConfigurationUpdate", + "HttpEndpointConfig", + "HttpEndpointRule", + "HttpPathSegmentMatchingRule", + "HttpScriptConfiguration", + "HttpScriptConfigurationUpdate", + "HyperParam", + "IdentityProviderPatch", + "IdpStatusUpdate", + "ImpactedBeaconInfo", + "InfraAlertConfig", + "InfraAlertConfigWithMetadata", + "InfraAlertRule", + "InfraEventResult", + "InfraMetricConfiguration", + "InfraSloEntity", + "InfraTimeThreshold", + "InfrastructureEntitiesResult", + "InfrastructureGroup", + "InfrastructureGroupsResult", + "InfrastructureItem", + "InfrastructureMetricResult", + "InstanaVersionInfo", + "IntegrationOverview", + "Invitation", + "InvitationResponse", + "InvitationResult", + "IpMaskingConfiguration", + "JsStackTraceLine", + "KubernetesPhysicalContext", + "LLMEgressGateway", + "LLMGatewayCapability", + "LLMGatewayModel", + "LLMGatewayService", + "LatencyBlueprintIndicator", + "LlmModelPrice", + "LlmModelPriceMetadata", + "LocationStatus", + "LogAlertConfig", + "LogAlertConfigWithMetadata", + "LogAlertRule", + "LogCountAlertRule", + "LogEntryActor", + "LogEventResult", + "LogTimeThreshold", + "LogVolumeGroup", + "LogVolumeUsageItem", + "LogVolumeUsageResult", + "LogsApplicationAlertRule", + "MaintenanceConfig", + "MaintenanceConfigScheduling", + "MaintenanceConfigV2", + "MaintenanceConfigV2WithStateAndOccurrence", + "MaintenanceConfigWithLastUpdated", + "MaintenanceWindow", + "ManualAlertingChannelConfiguration", + "ManualCloseInfo", + "ManualServiceConfig", + "MatchAllHttpPathSegmentMatchingRule", + "MatchExpressionDTO", + "MetaData", + "MetricAPIResult", + "MetricConfig", + "MetricConfiguration", + "MetricDescription", + "MetricInstance", + "MetricItem", + "MetricMetadata", + "MetricPattern", + "MetricQuery", + "MetricsResult", + "MetricsResultItem", + "MetricsTestResultItem", + "MobileApp", + "MobileAppAlertConfig", + "MobileAppAlertConfigWithRBACTag", + "MobileAppAlertRule", + "MobileAppBeaconGroupsItem", + "MobileAppBeaconGroupsResult", + "MobileAppBeaconResult", + "MobileAppBeaconTagGroup", + "MobileAppBeaconsItem", + "MobileAppEventResult", + "MobileAppMetricResult", + "MobileAppMonitoringBeacon", + "MobileAppMonitoringMetricDescription", + "MobileAppMonitoringMetricsConfiguration", + "MobileAppTimeThreshold", + "ModelField", + "MonitoredEntitiesStats", + "MonitoringState", + "MultipleScriptsConfiguration", + "Multiplication", + "NS1Integration", + "NestedOperation", + "NewApplicationConfig", + "NewBusinessPerspectiveConfig", + "NewManualServiceConfig", + "OAuthConfig", + "OAuthIntegration", + "OAuthToken", + "Occurrence", + "Office365Integration", + "OneTimeMaintenanceWindow", + "OpsgenieIntegration", + "Order", + "PagerdutyIntegration", + "PaginatedResult", + "Pagination", + "Parameter", + "ParameterValue", + "PathParameterHttpPathSegmentMatchingRule", + "PhysicalContext", + "PluginResult", + "Policy", + "PolicyRunnable", + "PolicyScheduling", + "PostMobileAppSourceMapConfigRequest", + "PostSnapshotsResult", + "Problem", + "PrometheusWebhookIntegration", + "RecurrentMaintenanceWindow", + "Release", + "ReleaseScope", + "ReleaseWithMetadata", + "RetentionPeriod", + "RollingTimeWindow", + "RuleInput", + "RuleWithThresholdApplicationAlertRule", + "RuleWithThresholdInfraAlertRule", + "RuleWithThresholdLogAlertRule", + "RuleWithThresholdMobileAppAlertRule", + "RuleWithThresholdWebsiteAlertRule", + "RunConfiguration", + "SLOConfigWithRBACTag", + "SSLCertificateConfiguration", + "SSLCertificateConfigurationUpdate", + "SSLCertificateValidation", + "SalesforceIntegration", + "SaturationBlueprintIndicator", + "ScopeBinding", + "SearchFieldResult", + "Service", + "ServiceConfig", + "ServiceEventResult", + "ServiceItem", + "ServiceLevelIndicator", + "ServiceLevelObjectiveAlertRule", + "ServiceLevelsAlertConfig", + "ServiceLevelsAlertRule", + "ServiceLevelsBurnRateConfig", + "ServiceLevelsBurnRateTimeWindows", + "ServiceLevelsStaticThresholdConfig", + "ServiceLevelsTimeThreshold", + "ServiceLevelseAlertConfigWithMetadata", + "ServiceMap", + "ServiceMapConnection", + "ServiceMatchingRule", + "ServiceMetricResult", + "ServiceNode", + "ServiceNowEnhancedIntegration", + "ServiceNowIntegration", + "ServiceResult", + "ServiceScope", + "ServiceScopeWithMetadata", + "ServiceScopedTo", + "ServiceScopedToWithMetadata", + "ServiceSimple", + "SessionReplayMetadata", + "SessionReplayTimestamps", + "SessionSettings", + "SimpleMetricConfiguration", + "SingleValue", + "SlackIntegration", + "SliConfiguration", + "SliConfigurationWithLastUpdated", + "SliEntity", + "SliReport", + "SloEntity", + "SloReport", + "SlownessApplicationAlertRule", + "SlownessMobileAppAlertRule", + "SlownessWebsiteAlertRule", + "SnapshotItem", + "SnapshotPreview", + "SnapshotResult", + "SoftwareUser", + "SoftwareVersion", + "SourceMapFileBlob", + "SourceMapFileMeta", + "SourceMapUploadConfig", + "SourceMapUploadConfigs", + "SpanExcerpt", + "SpanRelation", + "SpecificJsErrorsWebsiteAlertRule", + "SplunkIntegration", + "StackTraceItem", + "StackTraceLine", + "StaticBaselineThresholdRule", + "StaticStringField", + "StaticThreshold", + "StaticThresholdRule", + "StatusCodeApplicationAlertRule", + "StatusCodeMobileAppAlertRule", + "StatusCodeWebsiteAlertRule", + "Subtraction", + "SyntheticAlertConfig", + "SyntheticAlertConfigWithMetadata", + "SyntheticAlertConfigWithRBACTag", + "SyntheticAlertRule", + "SyntheticBulkResponse", + "SyntheticCallConfig", + "SyntheticCallRule", + "SyntheticCallWithDefaultsConfig", + "SyntheticConfiguration", + "SyntheticConfigurationUpdate", + "SyntheticCredential", + "SyntheticDatacenter", + "SyntheticDatacenterConfiguration", + "SyntheticGeoPoint", + "SyntheticLocation", + "SyntheticLocationConfiguration", + "SyntheticMetricConfiguration", + "SyntheticMetricTagGroup", + "SyntheticPlaybackCapabilities", + "SyntheticResourceUpdateListDNSFilterTargetValueListDNSFilterTargetValue", + "SyntheticResourceUpdateListSSLCertificateValidationListSSLCertificateValidation", + "SyntheticResourceUpdateListStringListString", + "SyntheticResourceUpdateMapStringStringListString", + "SyntheticSloEntity", + "SyntheticTest", + "SyntheticTestCICD", + "SyntheticTestCICDCustomization", + "SyntheticTestCICDItem", + "SyntheticTestCICDResponse", + "SyntheticTestDeepUpdate", + "SyntheticTestShallowUpdate", + "SyntheticTestUpdate", + "SyntheticTimeThreshold", + "SyntheticTypeConfiguration", + "SyntheticTypeConfigurationUpdate", + "SyntheticsEventResult", + "SystemRule", + "SystemRuleLabel", + "Tag", + "TagCatalog", + "TagFilter", + "TagFilterExpression", + "TagFilterExpressionElement", + "TagMatcherDTO", + "TagTreeLevel", + "TagTreeNode", + "TagTreeTag", + "TestCommonProperties", + "TestLastError", + "TestResult", + "TestResultCommonProperties", + "TestResultDetailData", + "TestResultItem", + "TestResultListItem", + "TestResultListResult", + "TestResultMetadata", + "TestResultSubtransaction", + "Threshold", + "ThresholdConfigRule", + "ThresholdRule", + "ThroughputApplicationAlertRule", + "ThroughputMobileAppAlertRule", + "ThroughputWebsiteAlertRule", + "TimeFrame", + "TimeWindow", + "Topology", + "Trace", + "TraceActivityTreeNodeDetails", + "TraceDownloadResult", + "TraceGroupsItem", + "TraceGroupsResult", + "TraceImpactApplicationTimeThreshold", + "TraceItem", + "TraceResult", + "TrafficBlueprintIndicator", + "Trigger", + "TypeConfiguration", + "UnsupportedHttpPathSegmentMatchingRule", + "UpdatedBusinessPerspectiveConfig", + "UsageResult", + "UsageResultItems", + "UserBasicResult", + "UserImpactMobileAppTimeThreshold", + "UserImpactWebsiteTimeThreshold", + "UserResult", + "UsersResult", + "ValidatedAlertingChannelInputInfo", + "ValidatedAlertingConfiguration", + "ValidatedMaintenanceConfigV2WithStateAndOccurrence", + "ValidatedMaintenanceConfigWithStatus", + "VictorOpsIntegration", + "ViolationsInPeriodApplicationTimeThreshold", + "ViolationsInPeriodMobileAppTimeThreshold", + "ViolationsInPeriodWebsiteTimeThreshold", + "ViolationsInSequenceApplicationTimeThreshold", + "ViolationsInSequenceInfraTimeThreshold", + "ViolationsInSequenceLogTimeThreshold", + "ViolationsInSequenceMobileAppTimeThreshold", + "ViolationsInSequenceSyntheticTimeThreshold", + "ViolationsInSequenceWebsiteTimeThreshold", + "WatsonAIOpsWebhookIntegration", + "WebexTeamsWebhookIntegration", + "WebhookIntegration", + "WebpageActionConfiguration", + "WebpageActionConfigurationUpdate", + "WebpageScriptConfiguration", + "WebpageScriptConfigurationUpdate", + "Website", + "WebsiteAlertConfig", + "WebsiteAlertConfigWithMetadata", + "WebsiteAlertConfigWithRBACTag", + "WebsiteAlertRule", + "WebsiteApdexEntity", + "WebsiteBeaconGroupsItem", + "WebsiteBeaconGroupsResult", + "WebsiteBeaconResult", + "WebsiteBeaconTagGroup", + "WebsiteBeaconsItem", + "WebsiteEventBasedSliEntity", + "WebsiteEventResult", + "WebsiteMetricResult", + "WebsiteMonitoringBeacon", + "WebsiteMonitoringMetricDescription", + "WebsiteMonitoringMetricsConfiguration", + "WebsiteSloEntity", + "WebsiteTimeBasedSliEntity", + "WebsiteTimeThreshold", + "Widget", + "WithMetaData", + "WithResolvedName", + "ZChatOpsIntegration", +] # import apis into sdk package -from instana_client.api.ai_management_api import AIManagementApi -from instana_client.api.api_token_api import APITokenApi -from instana_client.api.action_catalog_api import ActionCatalogApi -from instana_client.api.action_history_api import ActionHistoryApi -from instana_client.api.apdex_report_api import ApdexReportApi -from instana_client.api.apdex_settings_api import ApdexSettingsApi -from instana_client.api.application_alert_configuration_api import ApplicationAlertConfigurationApi -from instana_client.api.application_analyze_api import ApplicationAnalyzeApi -from instana_client.api.application_catalog_api import ApplicationCatalogApi -from instana_client.api.application_metrics_api import ApplicationMetricsApi -from instana_client.api.application_resources_api import ApplicationResourcesApi -from instana_client.api.application_settings_api import ApplicationSettingsApi -from instana_client.api.application_topology_api import ApplicationTopologyApi -from instana_client.api.audit_log_api import AuditLogApi -from instana_client.api.authentication_api import AuthenticationApi -from instana_client.api.business_monitoring_api import BusinessMonitoringApi -from instana_client.api.custom_dashboards_api import CustomDashboardsApi -from instana_client.api.custom_entities_api import CustomEntitiesApi -from instana_client.api.end_user_monitoring_api import EndUserMonitoringApi -from instana_client.api.event_settings_api import EventSettingsApi -from instana_client.api.events_api import EventsApi -from instana_client.api.global_application_alert_configuration_api import GlobalApplicationAlertConfigurationApi -from instana_client.api.groups_api import GroupsApi -from instana_client.api.health_api import HealthApi -from instana_client.api.host_agent_api import HostAgentApi -from instana_client.api.infrastructure_alert_configuration_api import InfrastructureAlertConfigurationApi -from instana_client.api.infrastructure_analyze_api import InfrastructureAnalyzeApi -from instana_client.api.infrastructure_catalog_api import InfrastructureCatalogApi -from instana_client.api.infrastructure_metrics_api import InfrastructureMetricsApi -from instana_client.api.infrastructure_resources_api import InfrastructureResourcesApi -from instana_client.api.infrastructure_topology_api import InfrastructureTopologyApi -from instana_client.api.log_alert_configuration_api import LogAlertConfigurationApi -from instana_client.api.logging_analyze_api import LoggingAnalyzeApi -from instana_client.api.maintenance_configuration_api import MaintenanceConfigurationApi -from instana_client.api.mobile_app_analyze_api import MobileAppAnalyzeApi -from instana_client.api.mobile_app_catalog_api import MobileAppCatalogApi -from instana_client.api.mobile_app_configuration_api import MobileAppConfigurationApi -from instana_client.api.mobile_app_metrics_api import MobileAppMetricsApi -from instana_client.api.policies_api import PoliciesApi -from instana_client.api.releases_api import ReleasesApi -from instana_client.api.roles_api import RolesApi -from instana_client.api.sli_report_api import SLIReportApi -from instana_client.api.sli_settings_api import SLISettingsApi -from instana_client.api.slo_correction_configurations_api import SLOCorrectionConfigurationsApi -from instana_client.api.slo_correction_windows_api import SLOCorrectionWindowsApi -from instana_client.api.service_levels_alert_configuration_api import ServiceLevelsAlertConfigurationApi -from instana_client.api.service_levels_objective_slo_configurations_api import ServiceLevelsObjectiveSLOConfigurationsApi -from instana_client.api.service_levels_objective_slo_report_api import ServiceLevelsObjectiveSLOReportApi -from instana_client.api.session_settings_api import SessionSettingsApi -from instana_client.api.synthetic_alert_configuration_api import SyntheticAlertConfigurationApi -from instana_client.api.synthetic_calls_api import SyntheticCallsApi -from instana_client.api.synthetic_catalog_api import SyntheticCatalogApi -from instana_client.api.synthetic_metrics_api import SyntheticMetricsApi -from instana_client.api.synthetic_settings_api import SyntheticSettingsApi -from instana_client.api.synthetic_test_playback_results_api import SyntheticTestPlaybackResultsApi -from instana_client.api.teams_api import TeamsApi -from instana_client.api.usage_api import UsageApi -from instana_client.api.user_api import UserApi -from instana_client.api.website_analyze_api import WebsiteAnalyzeApi -from instana_client.api.website_catalog_api import WebsiteCatalogApi -from instana_client.api.website_configuration_api import WebsiteConfigurationApi -from instana_client.api.website_metrics_api import WebsiteMetricsApi +from instana_client.api.ai_management_api import AIManagementApi as AIManagementApi +from instana_client.api.api_token_api import APITokenApi as APITokenApi +from instana_client.api.action_catalog_api import ActionCatalogApi as ActionCatalogApi +from instana_client.api.action_history_api import ActionHistoryApi as ActionHistoryApi +from instana_client.api.apdex_report_api import ApdexReportApi as ApdexReportApi +from instana_client.api.apdex_settings_api import ApdexSettingsApi as ApdexSettingsApi +from instana_client.api.application_alert_configuration_api import ApplicationAlertConfigurationApi as ApplicationAlertConfigurationApi +from instana_client.api.application_analyze_api import ApplicationAnalyzeApi as ApplicationAnalyzeApi +from instana_client.api.application_catalog_api import ApplicationCatalogApi as ApplicationCatalogApi +from instana_client.api.application_metrics_api import ApplicationMetricsApi as ApplicationMetricsApi +from instana_client.api.application_resources_api import ApplicationResourcesApi as ApplicationResourcesApi +from instana_client.api.application_settings_api import ApplicationSettingsApi as ApplicationSettingsApi +from instana_client.api.application_topology_api import ApplicationTopologyApi as ApplicationTopologyApi +from instana_client.api.audit_log_api import AuditLogApi as AuditLogApi +from instana_client.api.authentication_api import AuthenticationApi as AuthenticationApi +from instana_client.api.business_monitoring_api import BusinessMonitoringApi as BusinessMonitoringApi +from instana_client.api.custom_dashboards_api import CustomDashboardsApi as CustomDashboardsApi +from instana_client.api.custom_entities_api import CustomEntitiesApi as CustomEntitiesApi +from instana_client.api.end_user_monitoring_api import EndUserMonitoringApi as EndUserMonitoringApi +from instana_client.api.event_settings_api import EventSettingsApi as EventSettingsApi +from instana_client.api.events_api import EventsApi as EventsApi +from instana_client.api.global_application_alert_configuration_api import GlobalApplicationAlertConfigurationApi as GlobalApplicationAlertConfigurationApi +from instana_client.api.groups_api import GroupsApi as GroupsApi +from instana_client.api.health_api import HealthApi as HealthApi +from instana_client.api.host_agent_api import HostAgentApi as HostAgentApi +from instana_client.api.infrastructure_alert_configuration_api import InfrastructureAlertConfigurationApi as InfrastructureAlertConfigurationApi +from instana_client.api.infrastructure_analyze_api import InfrastructureAnalyzeApi as InfrastructureAnalyzeApi +from instana_client.api.infrastructure_catalog_api import InfrastructureCatalogApi as InfrastructureCatalogApi +from instana_client.api.infrastructure_metrics_api import InfrastructureMetricsApi as InfrastructureMetricsApi +from instana_client.api.infrastructure_resources_api import InfrastructureResourcesApi as InfrastructureResourcesApi +from instana_client.api.infrastructure_topology_api import InfrastructureTopologyApi as InfrastructureTopologyApi +from instana_client.api.llm_price_configuration_api import LLMPriceConfigurationApi as LLMPriceConfigurationApi +from instana_client.api.log_alert_configuration_api import LogAlertConfigurationApi as LogAlertConfigurationApi +from instana_client.api.logging_analyze_api import LoggingAnalyzeApi as LoggingAnalyzeApi +from instana_client.api.maintenance_configuration_api import MaintenanceConfigurationApi as MaintenanceConfigurationApi +from instana_client.api.mobile_app_analyze_api import MobileAppAnalyzeApi as MobileAppAnalyzeApi +from instana_client.api.mobile_app_catalog_api import MobileAppCatalogApi as MobileAppCatalogApi +from instana_client.api.mobile_app_configuration_api import MobileAppConfigurationApi as MobileAppConfigurationApi +from instana_client.api.mobile_app_metrics_api import MobileAppMetricsApi as MobileAppMetricsApi +from instana_client.api.policies_api import PoliciesApi as PoliciesApi +from instana_client.api.releases_api import ReleasesApi as ReleasesApi +from instana_client.api.roles_api import RolesApi as RolesApi +from instana_client.api.sli_report_api import SLIReportApi as SLIReportApi +from instana_client.api.sli_settings_api import SLISettingsApi as SLISettingsApi +from instana_client.api.slo_configurations_api import SLOConfigurationsApi as SLOConfigurationsApi +from instana_client.api.slo_correction_configurations_api import SLOCorrectionConfigurationsApi as SLOCorrectionConfigurationsApi +from instana_client.api.slo_correction_windows_api import SLOCorrectionWindowsApi as SLOCorrectionWindowsApi +from instana_client.api.service_levels_alert_configuration_api import ServiceLevelsAlertConfigurationApi as ServiceLevelsAlertConfigurationApi +from instana_client.api.service_levels_objective_slo_report_api import ServiceLevelsObjectiveSLOReportApi as ServiceLevelsObjectiveSLOReportApi +from instana_client.api.session_settings_api import SessionSettingsApi as SessionSettingsApi +from instana_client.api.synthetic_alert_configuration_api import SyntheticAlertConfigurationApi as SyntheticAlertConfigurationApi +from instana_client.api.synthetic_calls_api import SyntheticCallsApi as SyntheticCallsApi +from instana_client.api.synthetic_catalog_api import SyntheticCatalogApi as SyntheticCatalogApi +from instana_client.api.synthetic_metrics_api import SyntheticMetricsApi as SyntheticMetricsApi +from instana_client.api.synthetic_settings_api import SyntheticSettingsApi as SyntheticSettingsApi +from instana_client.api.synthetic_test_playback_results_api import SyntheticTestPlaybackResultsApi as SyntheticTestPlaybackResultsApi +from instana_client.api.teams_api import TeamsApi as TeamsApi +from instana_client.api.usage_api import UsageApi as UsageApi +from instana_client.api.user_api import UserApi as UserApi +from instana_client.api.website_analyze_api import WebsiteAnalyzeApi as WebsiteAnalyzeApi +from instana_client.api.website_catalog_api import WebsiteCatalogApi as WebsiteCatalogApi +from instana_client.api.website_configuration_api import WebsiteConfigurationApi as WebsiteConfigurationApi +from instana_client.api.website_metrics_api import WebsiteMetricsApi as WebsiteMetricsApi +from instana_client.api.default_api import DefaultApi as DefaultApi # import ApiClient -from instana_client.api_response import ApiResponse -from instana_client.api_client import ApiClient -from instana_client.configuration import Configuration -from instana_client.exceptions import OpenApiException -from instana_client.exceptions import ApiTypeError -from instana_client.exceptions import ApiValueError -from instana_client.exceptions import ApiKeyError -from instana_client.exceptions import ApiAttributeError -from instana_client.exceptions import ApiException +from instana_client.api_response import ApiResponse as ApiResponse +from instana_client.api_client import ApiClient as ApiClient +from instana_client.configuration import Configuration as Configuration +from instana_client.exceptions import OpenApiException as OpenApiException +from instana_client.exceptions import ApiTypeError as ApiTypeError +from instana_client.exceptions import ApiValueError as ApiValueError +from instana_client.exceptions import ApiKeyError as ApiKeyError +from instana_client.exceptions import ApiAttributeError as ApiAttributeError +from instana_client.exceptions import ApiException as ApiException # import models into sdk package -from instana_client.models.abstract_integration import AbstractIntegration -from instana_client.models.abstract_rule import AbstractRule -from instana_client.models.access_log_entry import AccessLogEntry -from instana_client.models.access_log_response import AccessLogResponse -from instana_client.models.access_rule import AccessRule -from instana_client.models.action import Action -from instana_client.models.action_configuration import ActionConfiguration -from instana_client.models.action_instance import ActionInstance -from instana_client.models.action_instance_metadata_entry import ActionInstanceMetadataEntry -from instana_client.models.action_instance_parameter import ActionInstanceParameter -from instana_client.models.action_instance_request import ActionInstanceRequest -from instana_client.models.action_instance_request_parameters import ActionInstanceRequestParameters -from instana_client.models.action_match import ActionMatch -from instana_client.models.action_search_space import ActionSearchSpace -from instana_client.models.adaptive_baseline import AdaptiveBaseline -from instana_client.models.adaptive_threshold_rule import AdaptiveThresholdRule -from instana_client.models.addition import Addition -from instana_client.models.adjusted_timeframe import AdjustedTimeframe -from instana_client.models.agent_configuration_update import AgentConfigurationUpdate -from instana_client.models.alerting_configuration import AlertingConfiguration -from instana_client.models.alerting_configuration_with_last_updated import AlertingConfigurationWithLastUpdated -from instana_client.models.alerting_time_window import AlertingTimeWindow -from instana_client.models.apdex_configuration import ApdexConfiguration -from instana_client.models.apdex_configuration_input import ApdexConfigurationInput -from instana_client.models.apdex_entity import ApdexEntity -from instana_client.models.apdex_report import ApdexReport -from instana_client.models.api_create_group import ApiCreateGroup -from instana_client.models.api_create_role import ApiCreateRole -from instana_client.models.api_group import ApiGroup -from instana_client.models.api_member import ApiMember -from instana_client.models.api_permission_set import ApiPermissionSet -from instana_client.models.api_restricted_application_filter import ApiRestrictedApplicationFilter -from instana_client.models.api_role import ApiRole -from instana_client.models.api_tag import ApiTag -from instana_client.models.api_team import ApiTeam -from instana_client.models.api_team_info import ApiTeamInfo -from instana_client.models.api_team_member import ApiTeamMember -from instana_client.models.api_team_role import ApiTeamRole -from instana_client.models.api_team_scope import ApiTeamScope -from instana_client.models.api_token import ApiToken -from instana_client.models.app_data_metric_configuration import AppDataMetricConfiguration -from instana_client.models.application import Application -from instana_client.models.application_alert_config import ApplicationAlertConfig -from instana_client.models.application_alert_config_with_metadata import ApplicationAlertConfigWithMetadata -from instana_client.models.application_alert_rule import ApplicationAlertRule -from instana_client.models.application_apdex_entity import ApplicationApdexEntity -from instana_client.models.application_config import ApplicationConfig -from instana_client.models.application_event_result import ApplicationEventResult -from instana_client.models.application_item import ApplicationItem -from instana_client.models.application_metric_result import ApplicationMetricResult -from instana_client.models.application_node import ApplicationNode -from instana_client.models.application_result import ApplicationResult -from instana_client.models.application_scope import ApplicationScope -from instana_client.models.application_scope_with_metadata import ApplicationScopeWithMetadata -from instana_client.models.application_sli_entity import ApplicationSliEntity -from instana_client.models.application_slo_entity import ApplicationSloEntity -from instana_client.models.application_time_threshold import ApplicationTimeThreshold -from instana_client.models.arithmetic_configuration import ArithmeticConfiguration -from instana_client.models.arithmetic_operand import ArithmeticOperand -from instana_client.models.arithmetic_operation import ArithmeticOperation -from instana_client.models.audit_log_entry import AuditLogEntry -from instana_client.models.audit_log_ui_response import AuditLogUiResponse -from instana_client.models.author import Author -from instana_client.models.availability_blueprint_indicator import AvailabilityBlueprintIndicator -from instana_client.models.availability_sli_entity import AvailabilitySliEntity -from instana_client.models.available_metrics import AvailableMetrics -from instana_client.models.available_plugins import AvailablePlugins -from instana_client.models.backend_trace_reference import BackendTraceReference -from instana_client.models.bidirectional_ms_teams_app_integration import BidirectionalMsTeamsAppIntegration -from instana_client.models.bidirectional_slack_app_integration import BidirectionalSlackAppIntegration -from instana_client.models.binary_operator_dto import BinaryOperatorDTO -from instana_client.models.browser_script_configuration import BrowserScriptConfiguration -from instana_client.models.browser_script_configuration_update import BrowserScriptConfigurationUpdate -from instana_client.models.built_in_event_specification import BuiltInEventSpecification -from instana_client.models.built_in_event_specification_with_last_updated import BuiltInEventSpecificationWithLastUpdated -from instana_client.models.business_activity import BusinessActivity -from instana_client.models.business_perspective_config import BusinessPerspectiveConfig -from instana_client.models.call_groups_item import CallGroupsItem -from instana_client.models.call_groups_result import CallGroupsResult -from instana_client.models.call_relation import CallRelation -from instana_client.models.change_summary import ChangeSummary -from instana_client.models.cloudfoundry_physical_context import CloudfoundryPhysicalContext -from instana_client.models.condition import Condition -from instana_client.models.config_version import ConfigVersion -from instana_client.models.correction import Correction -from instana_client.models.correction_configuration import CorrectionConfiguration -from instana_client.models.correction_scheduling import CorrectionScheduling -from instana_client.models.correction_window import CorrectionWindow -from instana_client.models.crash_mobile_app_alert_rule import CrashMobileAppAlertRule -from instana_client.models.create_website_request_inner import CreateWebsiteRequestInner -from instana_client.models.cursor_paginated_business_activity_item import CursorPaginatedBusinessActivityItem -from instana_client.models.cursor_pagination import CursorPagination -from instana_client.models.cursor_pagination_infra_explore_cursor import CursorPaginationInfraExploreCursor -from instana_client.models.custom_blueprint_indicator import CustomBlueprintIndicator -from instana_client.models.custom_dashboard import CustomDashboard -from instana_client.models.custom_dashboard_preview import CustomDashboardPreview -from instana_client.models.custom_dashboard_with_user_specific_information import CustomDashboardWithUserSpecificInformation -from instana_client.models.custom_dependency import CustomDependency -from instana_client.models.custom_email_subject_prefix import CustomEmailSubjectPrefix -from instana_client.models.custom_entity_model import CustomEntityModel -from instana_client.models.custom_entity_with_metadata import CustomEntityWithMetadata -from instana_client.models.custom_event_mobile_app_alert_rule import CustomEventMobileAppAlertRule -from instana_client.models.custom_event_specification import CustomEventSpecification -from instana_client.models.custom_event_specification_with_last_updated import CustomEventSpecificationWithLastUpdated -from instana_client.models.custom_event_website_alert_rule import CustomEventWebsiteAlertRule -from instana_client.models.custom_metric import CustomMetric -from instana_client.models.custom_payload_configuration import CustomPayloadConfiguration -from instana_client.models.custom_payload_field import CustomPayloadField -from instana_client.models.custom_payload_with_last_updated import CustomPayloadWithLastUpdated -from instana_client.models.custom_payload_with_version import CustomPayloadWithVersion -from instana_client.models.dns_configuration import DNSConfiguration -from instana_client.models.dns_configuration_update import DNSConfigurationUpdate -from instana_client.models.dns_filter_query_time import DNSFilterQueryTime -from instana_client.models.dns_filter_target_value import DNSFilterTargetValue -from instana_client.models.dashboard_api_token import DashboardApiToken -from instana_client.models.database_integration import DatabaseIntegration -from instana_client.models.deprecated_tag_filter import DeprecatedTagFilter -from instana_client.models.division import Division -from instana_client.models.duration import Duration -from instana_client.models.dynamic_field import DynamicField -from instana_client.models.dynamic_field_value import DynamicFieldValue -from instana_client.models.dynamic_parameter import DynamicParameter -from instana_client.models.edit_user import EditUser -from instana_client.models.email_integration import EmailIntegration -from instana_client.models.empty_configuration import EmptyConfiguration -from instana_client.models.endpoint import Endpoint -from instana_client.models.endpoint_config import EndpointConfig -from instana_client.models.endpoint_event_result import EndpointEventResult -from instana_client.models.endpoint_item import EndpointItem -from instana_client.models.endpoint_metric_result import EndpointMetricResult -from instana_client.models.endpoint_node import EndpointNode -from instana_client.models.endpoint_result import EndpointResult -from instana_client.models.endpoint_simple import EndpointSimple -from instana_client.models.entity_count_rule import EntityCountRule -from instana_client.models.entity_count_verification_rule import EntityCountVerificationRule -from instana_client.models.entity_health_info import EntityHealthInfo -from instana_client.models.entity_id import EntityId -from instana_client.models.entity_verification_rule import EntityVerificationRule -from instana_client.models.error_budget_alert_rule import ErrorBudgetAlertRule -from instana_client.models.errors_application_alert_rule import ErrorsApplicationAlertRule -from instana_client.models.event import Event -from instana_client.models.event_filtering_configuration import EventFilteringConfiguration -from instana_client.models.event_result import EventResult -from instana_client.models.event_specification_info import EventSpecificationInfo -from instana_client.models.extended_service import ExtendedService -from instana_client.models.failure_synthetic_alert_rule import FailureSyntheticAlertRule -from instana_client.models.fixed_http_path_segment_matching_rule import FixedHttpPathSegmentMatchingRule -from instana_client.models.fixed_time_window import FixedTimeWindow -from instana_client.models.generic_infra_alert_rule import GenericInfraAlertRule -from instana_client.models.geo_location_configuration import GeoLocationConfiguration -from instana_client.models.geo_mapping_rule import GeoMappingRule -from instana_client.models.geo_subdivision import GeoSubdivision -from instana_client.models.get_activities import GetActivities -from instana_client.models.get_application_metrics import GetApplicationMetrics -from instana_client.models.get_applications import GetApplications -from instana_client.models.get_available_metrics_query import GetAvailableMetricsQuery -from instana_client.models.get_available_plugins_query import GetAvailablePluginsQuery -from instana_client.models.get_call_groups import GetCallGroups -from instana_client.models.get_combined_metrics import GetCombinedMetrics -from instana_client.models.get_dynamic_parameter_values import GetDynamicParameterValues -from instana_client.models.get_endpoints import GetEndpoints -from instana_client.models.get_infrastructure_groups_query import GetInfrastructureGroupsQuery -from instana_client.models.get_infrastructure_query import GetInfrastructureQuery -from instana_client.models.get_metrics_result import GetMetricsResult -from instana_client.models.get_mobile_app_beacon_groups import GetMobileAppBeaconGroups -from instana_client.models.get_mobile_app_beacons import GetMobileAppBeacons -from instana_client.models.get_mobile_app_metrics import GetMobileAppMetrics -from instana_client.models.get_mobile_app_metrics_v2 import GetMobileAppMetricsV2 -from instana_client.models.get_payload_keys_result import GetPayloadKeysResult -from instana_client.models.get_services import GetServices -from instana_client.models.get_snapshots_query import GetSnapshotsQuery -from instana_client.models.get_test_result import GetTestResult -from instana_client.models.get_test_result_analytic import GetTestResultAnalytic -from instana_client.models.get_test_result_base import GetTestResultBase -from instana_client.models.get_test_result_list import GetTestResultList -from instana_client.models.get_test_summary_result import GetTestSummaryResult -from instana_client.models.get_trace_download_result_item import GetTraceDownloadResultItem -from instana_client.models.get_trace_groups import GetTraceGroups -from instana_client.models.get_traces import GetTraces -from instana_client.models.get_website_beacon_groups import GetWebsiteBeaconGroups -from instana_client.models.get_website_beacons import GetWebsiteBeacons -from instana_client.models.get_website_metrics import GetWebsiteMetrics -from instana_client.models.get_website_metrics_v2 import GetWebsiteMetricsV2 -from instana_client.models.global_application_alert_config_with_metadata import GlobalApplicationAlertConfigWithMetadata -from instana_client.models.global_applications_alert_config import GlobalApplicationsAlertConfig -from instana_client.models.google_chat_integration import GoogleChatIntegration -from instana_client.models.graph_edge import GraphEdge -from instana_client.models.graph_node import GraphNode -from instana_client.models.group import Group -from instana_client.models.group_by_tag import GroupByTag -from instana_client.models.group_mapping import GroupMapping -from instana_client.models.group_mapping_overview import GroupMappingOverview -from instana_client.models.health_state import HealthState -from instana_client.models.historic_baseline import HistoricBaseline -from instana_client.models.host_availability_rule import HostAvailabilityRule -from instana_client.models.http_action_configuration import HttpActionConfiguration -from instana_client.models.http_action_configuration_update import HttpActionConfigurationUpdate -from instana_client.models.http_endpoint_config import HttpEndpointConfig -from instana_client.models.http_endpoint_rule import HttpEndpointRule -from instana_client.models.http_path_segment_matching_rule import HttpPathSegmentMatchingRule -from instana_client.models.http_script_configuration import HttpScriptConfiguration -from instana_client.models.http_script_configuration_update import HttpScriptConfigurationUpdate -from instana_client.models.hyper_param import HyperParam -from instana_client.models.identity_provider_patch import IdentityProviderPatch -from instana_client.models.impacted_beacon_info import ImpactedBeaconInfo -from instana_client.models.infra_alert_config import InfraAlertConfig -from instana_client.models.infra_alert_config_with_metadata import InfraAlertConfigWithMetadata -from instana_client.models.infra_alert_rule import InfraAlertRule -from instana_client.models.infra_event_result import InfraEventResult -from instana_client.models.infra_metric_configuration import InfraMetricConfiguration -from instana_client.models.infra_slo_entity import InfraSloEntity -from instana_client.models.infra_time_threshold import InfraTimeThreshold -from instana_client.models.infrastructure_entities_result import InfrastructureEntitiesResult -from instana_client.models.infrastructure_group import InfrastructureGroup -from instana_client.models.infrastructure_groups_result import InfrastructureGroupsResult -from instana_client.models.infrastructure_item import InfrastructureItem -from instana_client.models.infrastructure_metric_result import InfrastructureMetricResult -from instana_client.models.instana_version_info import InstanaVersionInfo -from instana_client.models.integration_overview import IntegrationOverview -from instana_client.models.invitation import Invitation -from instana_client.models.invitation_response import InvitationResponse -from instana_client.models.invitation_result import InvitationResult -from instana_client.models.ip_masking_configuration import IpMaskingConfiguration -from instana_client.models.js_stack_trace_line import JsStackTraceLine -from instana_client.models.kubernetes_physical_context import KubernetesPhysicalContext -from instana_client.models.llm_egress_gateway import LLMEgressGateway -from instana_client.models.latency_blueprint_indicator import LatencyBlueprintIndicator -from instana_client.models.location_status import LocationStatus -from instana_client.models.log_alert_config import LogAlertConfig -from instana_client.models.log_alert_config_with_metadata import LogAlertConfigWithMetadata -from instana_client.models.log_alert_rule import LogAlertRule -from instana_client.models.log_count_alert_rule import LogCountAlertRule -from instana_client.models.log_entry_actor import LogEntryActor -from instana_client.models.log_event_result import LogEventResult -from instana_client.models.log_time_threshold import LogTimeThreshold -from instana_client.models.log_volume_group import LogVolumeGroup -from instana_client.models.log_volume_usage_item import LogVolumeUsageItem -from instana_client.models.log_volume_usage_result import LogVolumeUsageResult -from instana_client.models.logs_application_alert_rule import LogsApplicationAlertRule -from instana_client.models.maintenance_config import MaintenanceConfig -from instana_client.models.maintenance_config_scheduling import MaintenanceConfigScheduling -from instana_client.models.maintenance_config_v2 import MaintenanceConfigV2 -from instana_client.models.maintenance_config_v2_with_state_and_occurrence import MaintenanceConfigV2WithStateAndOccurrence -from instana_client.models.maintenance_config_with_last_updated import MaintenanceConfigWithLastUpdated -from instana_client.models.maintenance_window import MaintenanceWindow -from instana_client.models.manual_alerting_channel_configuration import ManualAlertingChannelConfiguration -from instana_client.models.manual_close_info import ManualCloseInfo -from instana_client.models.manual_service_config import ManualServiceConfig -from instana_client.models.match_all_http_path_segment_matching_rule import MatchAllHttpPathSegmentMatchingRule -from instana_client.models.match_expression_dto import MatchExpressionDTO -from instana_client.models.meta_data import MetaData -from instana_client.models.metric_api_result import MetricAPIResult -from instana_client.models.metric_config import MetricConfig -from instana_client.models.metric_configuration import MetricConfiguration -from instana_client.models.metric_description import MetricDescription -from instana_client.models.metric_instance import MetricInstance -from instana_client.models.metric_item import MetricItem -from instana_client.models.metric_metadata import MetricMetadata -from instana_client.models.metric_pattern import MetricPattern -from instana_client.models.metric_query import MetricQuery -from instana_client.models.metrics_result import MetricsResult -from instana_client.models.metrics_result_item import MetricsResultItem -from instana_client.models.metrics_test_result_item import MetricsTestResultItem -from instana_client.models.mobile_app import MobileApp -from instana_client.models.mobile_app_alert_config import MobileAppAlertConfig -from instana_client.models.mobile_app_alert_rule import MobileAppAlertRule -from instana_client.models.mobile_app_beacon_groups_item import MobileAppBeaconGroupsItem -from instana_client.models.mobile_app_beacon_groups_result import MobileAppBeaconGroupsResult -from instana_client.models.mobile_app_beacon_result import MobileAppBeaconResult -from instana_client.models.mobile_app_beacon_tag_group import MobileAppBeaconTagGroup -from instana_client.models.mobile_app_beacons_item import MobileAppBeaconsItem -from instana_client.models.mobile_app_event_result import MobileAppEventResult -from instana_client.models.mobile_app_metric_result import MobileAppMetricResult -from instana_client.models.mobile_app_monitoring_beacon import MobileAppMonitoringBeacon -from instana_client.models.mobile_app_monitoring_metric_description import MobileAppMonitoringMetricDescription -from instana_client.models.mobile_app_monitoring_metrics_configuration import MobileAppMonitoringMetricsConfiguration -from instana_client.models.mobile_app_time_threshold import MobileAppTimeThreshold -from instana_client.models.model_field import ModelField -from instana_client.models.monitored_entities_stats import MonitoredEntitiesStats -from instana_client.models.monitoring_state import MonitoringState -from instana_client.models.multiple_scripts_configuration import MultipleScriptsConfiguration -from instana_client.models.multiplication import Multiplication -from instana_client.models.nested_operation import NestedOperation -from instana_client.models.new_application_config import NewApplicationConfig -from instana_client.models.new_business_perspective_config import NewBusinessPerspectiveConfig -from instana_client.models.new_manual_service_config import NewManualServiceConfig -from instana_client.models.o_auth_config import OAuthConfig -from instana_client.models.o_auth_integration import OAuthIntegration -from instana_client.models.o_auth_token import OAuthToken -from instana_client.models.occurrence import Occurrence -from instana_client.models.office365_integration import Office365Integration -from instana_client.models.one_time_maintenance_window import OneTimeMaintenanceWindow -from instana_client.models.opsgenie_integration import OpsgenieIntegration -from instana_client.models.order import Order -from instana_client.models.pagerduty_integration import PagerdutyIntegration -from instana_client.models.paginated_result import PaginatedResult -from instana_client.models.pagination import Pagination -from instana_client.models.parameter import Parameter -from instana_client.models.parameter_value import ParameterValue -from instana_client.models.path_parameter_http_path_segment_matching_rule import PathParameterHttpPathSegmentMatchingRule -from instana_client.models.physical_context import PhysicalContext -from instana_client.models.plugin_result import PluginResult -from instana_client.models.policy import Policy -from instana_client.models.policy_runnable import PolicyRunnable -from instana_client.models.policy_scheduling import PolicyScheduling -from instana_client.models.post_mobile_app_source_map_config_request import PostMobileAppSourceMapConfigRequest -from instana_client.models.post_snapshots_result import PostSnapshotsResult -from instana_client.models.problem import Problem -from instana_client.models.prometheus_webhook_integration import PrometheusWebhookIntegration -from instana_client.models.recurrent_maintenance_window import RecurrentMaintenanceWindow -from instana_client.models.release import Release -from instana_client.models.release_scope import ReleaseScope -from instana_client.models.release_with_metadata import ReleaseWithMetadata -from instana_client.models.retention_period import RetentionPeriod -from instana_client.models.rolling_time_window import RollingTimeWindow -from instana_client.models.rule_input import RuleInput -from instana_client.models.rule_with_threshold_application_alert_rule import RuleWithThresholdApplicationAlertRule -from instana_client.models.rule_with_threshold_infra_alert_rule import RuleWithThresholdInfraAlertRule -from instana_client.models.rule_with_threshold_log_alert_rule import RuleWithThresholdLogAlertRule -from instana_client.models.rule_with_threshold_mobile_app_alert_rule import RuleWithThresholdMobileAppAlertRule -from instana_client.models.rule_with_threshold_website_alert_rule import RuleWithThresholdWebsiteAlertRule -from instana_client.models.run_configuration import RunConfiguration -from instana_client.models.slo_config_with_rbac_tag import SLOConfigWithRBACTag -from instana_client.models.ssl_certificate_configuration import SSLCertificateConfiguration -from instana_client.models.ssl_certificate_configuration_update import SSLCertificateConfigurationUpdate -from instana_client.models.ssl_certificate_validation import SSLCertificateValidation -from instana_client.models.salesforce_integration import SalesforceIntegration -from instana_client.models.saturation_blueprint_indicator import SaturationBlueprintIndicator -from instana_client.models.scope_binding import ScopeBinding -from instana_client.models.search_field_result import SearchFieldResult -from instana_client.models.service import Service -from instana_client.models.service_config import ServiceConfig -from instana_client.models.service_event_result import ServiceEventResult -from instana_client.models.service_item import ServiceItem -from instana_client.models.service_level_indicator import ServiceLevelIndicator -from instana_client.models.service_level_objective_alert_rule import ServiceLevelObjectiveAlertRule -from instana_client.models.service_levels_alert_config import ServiceLevelsAlertConfig -from instana_client.models.service_levels_alert_rule import ServiceLevelsAlertRule -from instana_client.models.service_levels_burn_rate_config import ServiceLevelsBurnRateConfig -from instana_client.models.service_levels_burn_rate_time_windows import ServiceLevelsBurnRateTimeWindows -from instana_client.models.service_levels_static_threshold_config import ServiceLevelsStaticThresholdConfig -from instana_client.models.service_levels_time_threshold import ServiceLevelsTimeThreshold -from instana_client.models.service_levelse_alert_config_with_metadata import ServiceLevelseAlertConfigWithMetadata -from instana_client.models.service_map import ServiceMap -from instana_client.models.service_map_connection import ServiceMapConnection -from instana_client.models.service_matching_rule import ServiceMatchingRule -from instana_client.models.service_metric_result import ServiceMetricResult -from instana_client.models.service_node import ServiceNode -from instana_client.models.service_now_enhanced_integration import ServiceNowEnhancedIntegration -from instana_client.models.service_now_integration import ServiceNowIntegration -from instana_client.models.service_result import ServiceResult -from instana_client.models.service_scope import ServiceScope -from instana_client.models.service_scope_with_metadata import ServiceScopeWithMetadata -from instana_client.models.service_scoped_to import ServiceScopedTo -from instana_client.models.service_scoped_to_with_metadata import ServiceScopedToWithMetadata -from instana_client.models.service_simple import ServiceSimple -from instana_client.models.session_settings import SessionSettings -from instana_client.models.simple_metric_configuration import SimpleMetricConfiguration -from instana_client.models.single_value import SingleValue -from instana_client.models.slack_integration import SlackIntegration -from instana_client.models.sli_configuration import SliConfiguration -from instana_client.models.sli_configuration_with_last_updated import SliConfigurationWithLastUpdated -from instana_client.models.sli_entity import SliEntity -from instana_client.models.sli_report import SliReport -from instana_client.models.slo_entity import SloEntity -from instana_client.models.slo_report import SloReport -from instana_client.models.slowness_application_alert_rule import SlownessApplicationAlertRule -from instana_client.models.slowness_mobile_app_alert_rule import SlownessMobileAppAlertRule -from instana_client.models.slowness_website_alert_rule import SlownessWebsiteAlertRule -from instana_client.models.snapshot_item import SnapshotItem -from instana_client.models.snapshot_preview import SnapshotPreview -from instana_client.models.snapshot_result import SnapshotResult -from instana_client.models.software_user import SoftwareUser -from instana_client.models.software_version import SoftwareVersion -from instana_client.models.source_map_file_blob import SourceMapFileBlob -from instana_client.models.source_map_file_meta import SourceMapFileMeta -from instana_client.models.source_map_upload_config import SourceMapUploadConfig -from instana_client.models.source_map_upload_configs import SourceMapUploadConfigs -from instana_client.models.span_excerpt import SpanExcerpt -from instana_client.models.span_relation import SpanRelation -from instana_client.models.specific_js_errors_website_alert_rule import SpecificJsErrorsWebsiteAlertRule -from instana_client.models.splunk_integration import SplunkIntegration -from instana_client.models.stack_trace_item import StackTraceItem -from instana_client.models.stack_trace_line import StackTraceLine -from instana_client.models.static_baseline_threshold_rule import StaticBaselineThresholdRule -from instana_client.models.static_string_field import StaticStringField -from instana_client.models.static_threshold import StaticThreshold -from instana_client.models.static_threshold_rule import StaticThresholdRule -from instana_client.models.status_code_application_alert_rule import StatusCodeApplicationAlertRule -from instana_client.models.status_code_mobile_app_alert_rule import StatusCodeMobileAppAlertRule -from instana_client.models.status_code_website_alert_rule import StatusCodeWebsiteAlertRule -from instana_client.models.subtraction import Subtraction -from instana_client.models.synthetic_alert_config import SyntheticAlertConfig -from instana_client.models.synthetic_alert_config_with_metadata import SyntheticAlertConfigWithMetadata -from instana_client.models.synthetic_alert_rule import SyntheticAlertRule -from instana_client.models.synthetic_bulk_response import SyntheticBulkResponse -from instana_client.models.synthetic_call_config import SyntheticCallConfig -from instana_client.models.synthetic_call_rule import SyntheticCallRule -from instana_client.models.synthetic_call_with_defaults_config import SyntheticCallWithDefaultsConfig -from instana_client.models.synthetic_configuration import SyntheticConfiguration -from instana_client.models.synthetic_configuration_update import SyntheticConfigurationUpdate -from instana_client.models.synthetic_credential import SyntheticCredential -from instana_client.models.synthetic_datacenter import SyntheticDatacenter -from instana_client.models.synthetic_datacenter_configuration import SyntheticDatacenterConfiguration -from instana_client.models.synthetic_geo_point import SyntheticGeoPoint -from instana_client.models.synthetic_location import SyntheticLocation -from instana_client.models.synthetic_location_configuration import SyntheticLocationConfiguration -from instana_client.models.synthetic_metric_configuration import SyntheticMetricConfiguration -from instana_client.models.synthetic_metric_tag_group import SyntheticMetricTagGroup -from instana_client.models.synthetic_playback_capabilities import SyntheticPlaybackCapabilities -from instana_client.models.synthetic_resource_update_list_dns_filter_target_value_list_dns_filter_target_value import SyntheticResourceUpdateListDNSFilterTargetValueListDNSFilterTargetValue -from instana_client.models.synthetic_resource_update_list_ssl_certificate_validation_list_ssl_certificate_validation import SyntheticResourceUpdateListSSLCertificateValidationListSSLCertificateValidation -from instana_client.models.synthetic_resource_update_list_string_list_string import SyntheticResourceUpdateListStringListString -from instana_client.models.synthetic_resource_update_map_string_string_list_string import SyntheticResourceUpdateMapStringStringListString -from instana_client.models.synthetic_slo_entity import SyntheticSloEntity -from instana_client.models.synthetic_test import SyntheticTest -from instana_client.models.synthetic_test_cicd import SyntheticTestCICD -from instana_client.models.synthetic_test_cicd_customization import SyntheticTestCICDCustomization -from instana_client.models.synthetic_test_cicd_item import SyntheticTestCICDItem -from instana_client.models.synthetic_test_cicd_response import SyntheticTestCICDResponse -from instana_client.models.synthetic_test_deep_update import SyntheticTestDeepUpdate -from instana_client.models.synthetic_test_shallow_update import SyntheticTestShallowUpdate -from instana_client.models.synthetic_test_update import SyntheticTestUpdate -from instana_client.models.synthetic_time_threshold import SyntheticTimeThreshold -from instana_client.models.synthetic_type_configuration import SyntheticTypeConfiguration -from instana_client.models.synthetic_type_configuration_update import SyntheticTypeConfigurationUpdate -from instana_client.models.synthetics_event_result import SyntheticsEventResult -from instana_client.models.system_rule import SystemRule -from instana_client.models.system_rule_label import SystemRuleLabel -from instana_client.models.tag import Tag -from instana_client.models.tag_catalog import TagCatalog -from instana_client.models.tag_filter import TagFilter -from instana_client.models.tag_filter_expression import TagFilterExpression -from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement -from instana_client.models.tag_matcher_dto import TagMatcherDTO -from instana_client.models.tag_tree_level import TagTreeLevel -from instana_client.models.tag_tree_node import TagTreeNode -from instana_client.models.tag_tree_tag import TagTreeTag -from instana_client.models.test_common_properties import TestCommonProperties -from instana_client.models.test_last_error import TestLastError -from instana_client.models.test_result import TestResult -from instana_client.models.test_result_common_properties import TestResultCommonProperties -from instana_client.models.test_result_detail_data import TestResultDetailData -from instana_client.models.test_result_item import TestResultItem -from instana_client.models.test_result_list_item import TestResultListItem -from instana_client.models.test_result_list_result import TestResultListResult -from instana_client.models.test_result_metadata import TestResultMetadata -from instana_client.models.test_result_subtransaction import TestResultSubtransaction -from instana_client.models.threshold import Threshold -from instana_client.models.threshold_config_rule import ThresholdConfigRule -from instana_client.models.threshold_rule import ThresholdRule -from instana_client.models.throughput_application_alert_rule import ThroughputApplicationAlertRule -from instana_client.models.throughput_mobile_app_alert_rule import ThroughputMobileAppAlertRule -from instana_client.models.throughput_website_alert_rule import ThroughputWebsiteAlertRule -from instana_client.models.time_frame import TimeFrame -from instana_client.models.time_window import TimeWindow -from instana_client.models.topology import Topology -from instana_client.models.trace import Trace -from instana_client.models.trace_activity_tree_node_details import TraceActivityTreeNodeDetails -from instana_client.models.trace_download_result import TraceDownloadResult -from instana_client.models.trace_groups_item import TraceGroupsItem -from instana_client.models.trace_groups_result import TraceGroupsResult -from instana_client.models.trace_impact_application_time_threshold import TraceImpactApplicationTimeThreshold -from instana_client.models.trace_item import TraceItem -from instana_client.models.trace_result import TraceResult -from instana_client.models.traffic_blueprint_indicator import TrafficBlueprintIndicator -from instana_client.models.trigger import Trigger -from instana_client.models.type_configuration import TypeConfiguration -from instana_client.models.unsupported_http_path_segment_matching_rule import UnsupportedHttpPathSegmentMatchingRule -from instana_client.models.updated_business_perspective_config import UpdatedBusinessPerspectiveConfig -from instana_client.models.usage_result import UsageResult -from instana_client.models.usage_result_items import UsageResultItems -from instana_client.models.user_basic_result import UserBasicResult -from instana_client.models.user_impact_mobile_app_time_threshold import UserImpactMobileAppTimeThreshold -from instana_client.models.user_impact_website_time_threshold import UserImpactWebsiteTimeThreshold -from instana_client.models.user_result import UserResult -from instana_client.models.users_result import UsersResult -from instana_client.models.validated_alerting_channel_input_info import ValidatedAlertingChannelInputInfo -from instana_client.models.validated_alerting_configuration import ValidatedAlertingConfiguration -from instana_client.models.validated_maintenance_config_v2_with_state_and_occurrence import ValidatedMaintenanceConfigV2WithStateAndOccurrence -from instana_client.models.validated_maintenance_config_with_status import ValidatedMaintenanceConfigWithStatus -from instana_client.models.victor_ops_integration import VictorOpsIntegration -from instana_client.models.violations_in_period_application_time_threshold import ViolationsInPeriodApplicationTimeThreshold -from instana_client.models.violations_in_period_mobile_app_time_threshold import ViolationsInPeriodMobileAppTimeThreshold -from instana_client.models.violations_in_period_website_time_threshold import ViolationsInPeriodWebsiteTimeThreshold -from instana_client.models.violations_in_sequence_application_time_threshold import ViolationsInSequenceApplicationTimeThreshold -from instana_client.models.violations_in_sequence_infra_time_threshold import ViolationsInSequenceInfraTimeThreshold -from instana_client.models.violations_in_sequence_log_time_threshold import ViolationsInSequenceLogTimeThreshold -from instana_client.models.violations_in_sequence_mobile_app_time_threshold import ViolationsInSequenceMobileAppTimeThreshold -from instana_client.models.violations_in_sequence_synthetic_time_threshold import ViolationsInSequenceSyntheticTimeThreshold -from instana_client.models.violations_in_sequence_website_time_threshold import ViolationsInSequenceWebsiteTimeThreshold -from instana_client.models.watson_ai_ops_webhook_integration import WatsonAIOpsWebhookIntegration -from instana_client.models.webex_teams_webhook_integration import WebexTeamsWebhookIntegration -from instana_client.models.webhook_integration import WebhookIntegration -from instana_client.models.webpage_action_configuration import WebpageActionConfiguration -from instana_client.models.webpage_action_configuration_update import WebpageActionConfigurationUpdate -from instana_client.models.webpage_script_configuration import WebpageScriptConfiguration -from instana_client.models.webpage_script_configuration_update import WebpageScriptConfigurationUpdate -from instana_client.models.website import Website -from instana_client.models.website_alert_config import WebsiteAlertConfig -from instana_client.models.website_alert_config_with_metadata import WebsiteAlertConfigWithMetadata -from instana_client.models.website_alert_rule import WebsiteAlertRule -from instana_client.models.website_apdex_entity import WebsiteApdexEntity -from instana_client.models.website_beacon_groups_item import WebsiteBeaconGroupsItem -from instana_client.models.website_beacon_groups_result import WebsiteBeaconGroupsResult -from instana_client.models.website_beacon_result import WebsiteBeaconResult -from instana_client.models.website_beacon_tag_group import WebsiteBeaconTagGroup -from instana_client.models.website_beacons_item import WebsiteBeaconsItem -from instana_client.models.website_event_based_sli_entity import WebsiteEventBasedSliEntity -from instana_client.models.website_event_result import WebsiteEventResult -from instana_client.models.website_metric_result import WebsiteMetricResult -from instana_client.models.website_monitoring_beacon import WebsiteMonitoringBeacon -from instana_client.models.website_monitoring_metric_description import WebsiteMonitoringMetricDescription -from instana_client.models.website_monitoring_metrics_configuration import WebsiteMonitoringMetricsConfiguration -from instana_client.models.website_slo_entity import WebsiteSloEntity -from instana_client.models.website_time_based_sli_entity import WebsiteTimeBasedSliEntity -from instana_client.models.website_time_threshold import WebsiteTimeThreshold -from instana_client.models.widget import Widget -from instana_client.models.with_metadata import WithMetadata -from instana_client.models.with_resolved_name import WithResolvedName -from instana_client.models.z_chat_ops_integration import ZChatOpsIntegration +from instana_client.models.abstract_integration import AbstractIntegration as AbstractIntegration +from instana_client.models.abstract_rule import AbstractRule as AbstractRule +from instana_client.models.access_log_entry import AccessLogEntry as AccessLogEntry +from instana_client.models.access_log_response import AccessLogResponse as AccessLogResponse +from instana_client.models.access_rule import AccessRule as AccessRule +from instana_client.models.action import Action as Action +from instana_client.models.action_configuration import ActionConfiguration as ActionConfiguration +from instana_client.models.action_instance import ActionInstance as ActionInstance +from instana_client.models.action_instance_metadata_entry import ActionInstanceMetadataEntry as ActionInstanceMetadataEntry +from instana_client.models.action_instance_parameter import ActionInstanceParameter as ActionInstanceParameter +from instana_client.models.action_instance_request import ActionInstanceRequest as ActionInstanceRequest +from instana_client.models.action_instance_request_parameters import ActionInstanceRequestParameters as ActionInstanceRequestParameters +from instana_client.models.action_match import ActionMatch as ActionMatch +from instana_client.models.action_search_space import ActionSearchSpace as ActionSearchSpace +from instana_client.models.adaptive_baseline import AdaptiveBaseline as AdaptiveBaseline +from instana_client.models.adaptive_threshold_rule import AdaptiveThresholdRule as AdaptiveThresholdRule +from instana_client.models.addition import Addition as Addition +from instana_client.models.adjusted_timeframe import AdjustedTimeframe as AdjustedTimeframe +from instana_client.models.agent_configuration_update import AgentConfigurationUpdate as AgentConfigurationUpdate +from instana_client.models.alerting_configuration import AlertingConfiguration as AlertingConfiguration +from instana_client.models.alerting_configuration_with_last_updated import AlertingConfigurationWithLastUpdated as AlertingConfigurationWithLastUpdated +from instana_client.models.alerting_time_window import AlertingTimeWindow as AlertingTimeWindow +from instana_client.models.apdex_configuration import ApdexConfiguration as ApdexConfiguration +from instana_client.models.apdex_configuration_input import ApdexConfigurationInput as ApdexConfigurationInput +from instana_client.models.apdex_entity import ApdexEntity as ApdexEntity +from instana_client.models.apdex_report import ApdexReport as ApdexReport +from instana_client.models.api_create_group import ApiCreateGroup as ApiCreateGroup +from instana_client.models.api_create_role import ApiCreateRole as ApiCreateRole +from instana_client.models.api_group import ApiGroup as ApiGroup +from instana_client.models.api_member import ApiMember as ApiMember +from instana_client.models.api_permission_set import ApiPermissionSet as ApiPermissionSet +from instana_client.models.api_restricted_application_filter import ApiRestrictedApplicationFilter as ApiRestrictedApplicationFilter +from instana_client.models.api_role import ApiRole as ApiRole +from instana_client.models.api_tag import ApiTag as ApiTag +from instana_client.models.api_team import ApiTeam as ApiTeam +from instana_client.models.api_team_info import ApiTeamInfo as ApiTeamInfo +from instana_client.models.api_team_member import ApiTeamMember as ApiTeamMember +from instana_client.models.api_team_role import ApiTeamRole as ApiTeamRole +from instana_client.models.api_team_scope import ApiTeamScope as ApiTeamScope +from instana_client.models.api_token import ApiToken as ApiToken +from instana_client.models.app_data_metric_configuration import AppDataMetricConfiguration as AppDataMetricConfiguration +from instana_client.models.application import Application as Application +from instana_client.models.application_alert_config import ApplicationAlertConfig as ApplicationAlertConfig +from instana_client.models.application_alert_config_with_metadata import ApplicationAlertConfigWithMetadata as ApplicationAlertConfigWithMetadata +from instana_client.models.application_alert_rule import ApplicationAlertRule as ApplicationAlertRule +from instana_client.models.application_apdex_entity import ApplicationApdexEntity as ApplicationApdexEntity +from instana_client.models.application_config import ApplicationConfig as ApplicationConfig +from instana_client.models.application_event_result import ApplicationEventResult as ApplicationEventResult +from instana_client.models.application_item import ApplicationItem as ApplicationItem +from instana_client.models.application_metric_result import ApplicationMetricResult as ApplicationMetricResult +from instana_client.models.application_node import ApplicationNode as ApplicationNode +from instana_client.models.application_result import ApplicationResult as ApplicationResult +from instana_client.models.application_scope import ApplicationScope as ApplicationScope +from instana_client.models.application_scope_with_metadata import ApplicationScopeWithMetadata as ApplicationScopeWithMetadata +from instana_client.models.application_sli_entity import ApplicationSliEntity as ApplicationSliEntity +from instana_client.models.application_slo_entity import ApplicationSloEntity as ApplicationSloEntity +from instana_client.models.application_time_threshold import ApplicationTimeThreshold as ApplicationTimeThreshold +from instana_client.models.arithmetic_configuration import ArithmeticConfiguration as ArithmeticConfiguration +from instana_client.models.arithmetic_operand import ArithmeticOperand as ArithmeticOperand +from instana_client.models.arithmetic_operation import ArithmeticOperation as ArithmeticOperation +from instana_client.models.audit_log_entry import AuditLogEntry as AuditLogEntry +from instana_client.models.audit_log_ui_response import AuditLogUiResponse as AuditLogUiResponse +from instana_client.models.author import Author as Author +from instana_client.models.availability_blueprint_indicator import AvailabilityBlueprintIndicator as AvailabilityBlueprintIndicator +from instana_client.models.availability_sli_entity import AvailabilitySliEntity as AvailabilitySliEntity +from instana_client.models.available_metrics import AvailableMetrics as AvailableMetrics +from instana_client.models.available_plugins import AvailablePlugins as AvailablePlugins +from instana_client.models.backend_trace_reference import BackendTraceReference as BackendTraceReference +from instana_client.models.bidirectional_ms_teams_app_integration import BidirectionalMsTeamsAppIntegration as BidirectionalMsTeamsAppIntegration +from instana_client.models.bidirectional_slack_app_integration import BidirectionalSlackAppIntegration as BidirectionalSlackAppIntegration +from instana_client.models.binary_operator_dto import BinaryOperatorDTO as BinaryOperatorDTO +from instana_client.models.browser_script_configuration import BrowserScriptConfiguration as BrowserScriptConfiguration +from instana_client.models.browser_script_configuration_update import BrowserScriptConfigurationUpdate as BrowserScriptConfigurationUpdate +from instana_client.models.built_in_event_specification import BuiltInEventSpecification as BuiltInEventSpecification +from instana_client.models.built_in_event_specification_with_last_updated import BuiltInEventSpecificationWithLastUpdated as BuiltInEventSpecificationWithLastUpdated +from instana_client.models.business_activity import BusinessActivity as BusinessActivity +from instana_client.models.business_perspective_config import BusinessPerspectiveConfig as BusinessPerspectiveConfig +from instana_client.models.call_groups_item import CallGroupsItem as CallGroupsItem +from instana_client.models.call_groups_result import CallGroupsResult as CallGroupsResult +from instana_client.models.call_relation import CallRelation as CallRelation +from instana_client.models.change_summary import ChangeSummary as ChangeSummary +from instana_client.models.cloudfoundry_physical_context import CloudfoundryPhysicalContext as CloudfoundryPhysicalContext +from instana_client.models.condition import Condition as Condition +from instana_client.models.config_version import ConfigVersion as ConfigVersion +from instana_client.models.correction import Correction as Correction +from instana_client.models.correction_configuration import CorrectionConfiguration as CorrectionConfiguration +from instana_client.models.correction_scheduling import CorrectionScheduling as CorrectionScheduling +from instana_client.models.correction_window import CorrectionWindow as CorrectionWindow +from instana_client.models.crash_mobile_app_alert_rule import CrashMobileAppAlertRule as CrashMobileAppAlertRule +from instana_client.models.create_website_request_inner import CreateWebsiteRequestInner as CreateWebsiteRequestInner +from instana_client.models.cursor_paginated_business_activity_item import CursorPaginatedBusinessActivityItem as CursorPaginatedBusinessActivityItem +from instana_client.models.cursor_pagination import CursorPagination as CursorPagination +from instana_client.models.custom_blueprint_indicator import CustomBlueprintIndicator as CustomBlueprintIndicator +from instana_client.models.custom_dashboard import CustomDashboard as CustomDashboard +from instana_client.models.custom_dashboard_preview import CustomDashboardPreview as CustomDashboardPreview +from instana_client.models.custom_dashboard_with_user_specific_information import CustomDashboardWithUserSpecificInformation as CustomDashboardWithUserSpecificInformation +from instana_client.models.custom_dependency import CustomDependency as CustomDependency +from instana_client.models.custom_email_subject_prefix import CustomEmailSubjectPrefix as CustomEmailSubjectPrefix +from instana_client.models.custom_entity_model import CustomEntityModel as CustomEntityModel +from instana_client.models.custom_entity_with_metadata import CustomEntityWithMetadata as CustomEntityWithMetadata +from instana_client.models.custom_event_mobile_app_alert_rule import CustomEventMobileAppAlertRule as CustomEventMobileAppAlertRule +from instana_client.models.custom_event_specification import CustomEventSpecification as CustomEventSpecification +from instana_client.models.custom_event_specification_with_last_updated import CustomEventSpecificationWithLastUpdated as CustomEventSpecificationWithLastUpdated +from instana_client.models.custom_event_website_alert_rule import CustomEventWebsiteAlertRule as CustomEventWebsiteAlertRule +from instana_client.models.custom_metric import CustomMetric as CustomMetric +from instana_client.models.custom_payload_configuration import CustomPayloadConfiguration as CustomPayloadConfiguration +from instana_client.models.custom_payload_field import CustomPayloadField as CustomPayloadField +from instana_client.models.custom_payload_with_last_updated import CustomPayloadWithLastUpdated as CustomPayloadWithLastUpdated +from instana_client.models.custom_payload_with_version import CustomPayloadWithVersion as CustomPayloadWithVersion +from instana_client.models.custom_tag import CustomTag as CustomTag +from instana_client.models.dns_configuration import DNSConfiguration as DNSConfiguration +from instana_client.models.dns_configuration_update import DNSConfigurationUpdate as DNSConfigurationUpdate +from instana_client.models.dns_filter_query_time import DNSFilterQueryTime as DNSFilterQueryTime +from instana_client.models.dns_filter_target_value import DNSFilterTargetValue as DNSFilterTargetValue +from instana_client.models.dashboard_api_token import DashboardApiToken as DashboardApiToken +from instana_client.models.database_integration import DatabaseIntegration as DatabaseIntegration +from instana_client.models.deprecated_tag_filter import DeprecatedTagFilter as DeprecatedTagFilter +from instana_client.models.division import Division as Division +from instana_client.models.duration import Duration as Duration +from instana_client.models.dynamic_field import DynamicField as DynamicField +from instana_client.models.dynamic_field_value import DynamicFieldValue as DynamicFieldValue +from instana_client.models.dynamic_parameter import DynamicParameter as DynamicParameter +from instana_client.models.edit_user import EditUser as EditUser +from instana_client.models.email_integration import EmailIntegration as EmailIntegration +from instana_client.models.empty_configuration import EmptyConfiguration as EmptyConfiguration +from instana_client.models.endpoint import Endpoint as Endpoint +from instana_client.models.endpoint_config import EndpointConfig as EndpointConfig +from instana_client.models.endpoint_event_result import EndpointEventResult as EndpointEventResult +from instana_client.models.endpoint_item import EndpointItem as EndpointItem +from instana_client.models.endpoint_metric_result import EndpointMetricResult as EndpointMetricResult +from instana_client.models.endpoint_node import EndpointNode as EndpointNode +from instana_client.models.endpoint_result import EndpointResult as EndpointResult +from instana_client.models.endpoint_simple import EndpointSimple as EndpointSimple +from instana_client.models.entity_count_rule import EntityCountRule as EntityCountRule +from instana_client.models.entity_count_verification_rule import EntityCountVerificationRule as EntityCountVerificationRule +from instana_client.models.entity_health_info import EntityHealthInfo as EntityHealthInfo +from instana_client.models.entity_id import EntityId as EntityId +from instana_client.models.entity_verification_rule import EntityVerificationRule as EntityVerificationRule +from instana_client.models.error_budget_alert_rule import ErrorBudgetAlertRule as ErrorBudgetAlertRule +from instana_client.models.errors_application_alert_rule import ErrorsApplicationAlertRule as ErrorsApplicationAlertRule +from instana_client.models.event import Event as Event +from instana_client.models.event_filtering_configuration import EventFilteringConfiguration as EventFilteringConfiguration +from instana_client.models.event_result import EventResult as EventResult +from instana_client.models.event_specification_info import EventSpecificationInfo as EventSpecificationInfo +from instana_client.models.extended_service import ExtendedService as ExtendedService +from instana_client.models.failure_synthetic_alert_rule import FailureSyntheticAlertRule as FailureSyntheticAlertRule +from instana_client.models.fixed_http_path_segment_matching_rule import FixedHttpPathSegmentMatchingRule as FixedHttpPathSegmentMatchingRule +from instana_client.models.fixed_time_window import FixedTimeWindow as FixedTimeWindow +from instana_client.models.generic_infra_alert_rule import GenericInfraAlertRule as GenericInfraAlertRule +from instana_client.models.geo_location_configuration import GeoLocationConfiguration as GeoLocationConfiguration +from instana_client.models.geo_mapping_rule import GeoMappingRule as GeoMappingRule +from instana_client.models.geo_subdivision import GeoSubdivision as GeoSubdivision +from instana_client.models.get_activities import GetActivities as GetActivities +from instana_client.models.get_application_metrics import GetApplicationMetrics as GetApplicationMetrics +from instana_client.models.get_applications import GetApplications as GetApplications +from instana_client.models.get_available_metrics_query import GetAvailableMetricsQuery as GetAvailableMetricsQuery +from instana_client.models.get_available_plugins_query import GetAvailablePluginsQuery as GetAvailablePluginsQuery +from instana_client.models.get_call_groups import GetCallGroups as GetCallGroups +from instana_client.models.get_combined_metrics import GetCombinedMetrics as GetCombinedMetrics +from instana_client.models.get_dynamic_parameter_values import GetDynamicParameterValues as GetDynamicParameterValues +from instana_client.models.get_endpoints import GetEndpoints as GetEndpoints +from instana_client.models.get_infrastructure_groups_query import GetInfrastructureGroupsQuery as GetInfrastructureGroupsQuery +from instana_client.models.get_infrastructure_query import GetInfrastructureQuery as GetInfrastructureQuery +from instana_client.models.get_metrics_result import GetMetricsResult as GetMetricsResult +from instana_client.models.get_mobile_app_beacon_groups import GetMobileAppBeaconGroups as GetMobileAppBeaconGroups +from instana_client.models.get_mobile_app_beacons import GetMobileAppBeacons as GetMobileAppBeacons +from instana_client.models.get_mobile_app_metrics import GetMobileAppMetrics as GetMobileAppMetrics +from instana_client.models.get_mobile_app_metrics_v2 import GetMobileAppMetricsV2 as GetMobileAppMetricsV2 +from instana_client.models.get_payload_keys_result import GetPayloadKeysResult as GetPayloadKeysResult +from instana_client.models.get_services import GetServices as GetServices +from instana_client.models.get_session_replay_metadata_result import GetSessionReplayMetadataResult as GetSessionReplayMetadataResult +from instana_client.models.get_snapshots_query import GetSnapshotsQuery as GetSnapshotsQuery +from instana_client.models.get_test_result import GetTestResult as GetTestResult +from instana_client.models.get_test_result_analytic import GetTestResultAnalytic as GetTestResultAnalytic +from instana_client.models.get_test_result_base import GetTestResultBase as GetTestResultBase +from instana_client.models.get_test_result_list import GetTestResultList as GetTestResultList +from instana_client.models.get_test_summary_result import GetTestSummaryResult as GetTestSummaryResult +from instana_client.models.get_trace_download_result_item import GetTraceDownloadResultItem as GetTraceDownloadResultItem +from instana_client.models.get_trace_groups import GetTraceGroups as GetTraceGroups +from instana_client.models.get_traces import GetTraces as GetTraces +from instana_client.models.get_website_beacon_groups import GetWebsiteBeaconGroups as GetWebsiteBeaconGroups +from instana_client.models.get_website_beacons import GetWebsiteBeacons as GetWebsiteBeacons +from instana_client.models.get_website_metrics import GetWebsiteMetrics as GetWebsiteMetrics +from instana_client.models.get_website_metrics_v2 import GetWebsiteMetricsV2 as GetWebsiteMetricsV2 +from instana_client.models.global_application_alert_config_with_metadata import GlobalApplicationAlertConfigWithMetadata as GlobalApplicationAlertConfigWithMetadata +from instana_client.models.global_applications_alert_config import GlobalApplicationsAlertConfig as GlobalApplicationsAlertConfig +from instana_client.models.google_chat_integration import GoogleChatIntegration as GoogleChatIntegration +from instana_client.models.graph_edge import GraphEdge as GraphEdge +from instana_client.models.graph_node import GraphNode as GraphNode +from instana_client.models.group import Group as Group +from instana_client.models.group_by_tag import GroupByTag as GroupByTag +from instana_client.models.group_mapping import GroupMapping as GroupMapping +from instana_client.models.group_mapping_overview import GroupMappingOverview as GroupMappingOverview +from instana_client.models.health_state import HealthState as HealthState +from instana_client.models.historic_baseline import HistoricBaseline as HistoricBaseline +from instana_client.models.host_availability_rule import HostAvailabilityRule as HostAvailabilityRule +from instana_client.models.http_action_configuration import HttpActionConfiguration as HttpActionConfiguration +from instana_client.models.http_action_configuration_update import HttpActionConfigurationUpdate as HttpActionConfigurationUpdate +from instana_client.models.http_endpoint_config import HttpEndpointConfig as HttpEndpointConfig +from instana_client.models.http_endpoint_rule import HttpEndpointRule as HttpEndpointRule +from instana_client.models.http_path_segment_matching_rule import HttpPathSegmentMatchingRule as HttpPathSegmentMatchingRule +from instana_client.models.http_script_configuration import HttpScriptConfiguration as HttpScriptConfiguration +from instana_client.models.http_script_configuration_update import HttpScriptConfigurationUpdate as HttpScriptConfigurationUpdate +from instana_client.models.hyper_param import HyperParam as HyperParam +from instana_client.models.identity_provider_patch import IdentityProviderPatch as IdentityProviderPatch +from instana_client.models.idp_status_update import IdpStatusUpdate as IdpStatusUpdate +from instana_client.models.impacted_beacon_info import ImpactedBeaconInfo as ImpactedBeaconInfo +from instana_client.models.infra_alert_config import InfraAlertConfig as InfraAlertConfig +from instana_client.models.infra_alert_config_with_metadata import InfraAlertConfigWithMetadata as InfraAlertConfigWithMetadata +from instana_client.models.infra_alert_rule import InfraAlertRule as InfraAlertRule +from instana_client.models.infra_event_result import InfraEventResult as InfraEventResult +from instana_client.models.infra_metric_configuration import InfraMetricConfiguration as InfraMetricConfiguration +from instana_client.models.infra_slo_entity import InfraSloEntity as InfraSloEntity +from instana_client.models.infra_time_threshold import InfraTimeThreshold as InfraTimeThreshold +from instana_client.models.infrastructure_entities_result import InfrastructureEntitiesResult as InfrastructureEntitiesResult +from instana_client.models.infrastructure_group import InfrastructureGroup as InfrastructureGroup +from instana_client.models.infrastructure_groups_result import InfrastructureGroupsResult as InfrastructureGroupsResult +from instana_client.models.infrastructure_item import InfrastructureItem as InfrastructureItem +from instana_client.models.infrastructure_metric_result import InfrastructureMetricResult as InfrastructureMetricResult +from instana_client.models.instana_version_info import InstanaVersionInfo as InstanaVersionInfo +from instana_client.models.integration_overview import IntegrationOverview as IntegrationOverview +from instana_client.models.invitation import Invitation as Invitation +from instana_client.models.invitation_response import InvitationResponse as InvitationResponse +from instana_client.models.invitation_result import InvitationResult as InvitationResult +from instana_client.models.ip_masking_configuration import IpMaskingConfiguration as IpMaskingConfiguration +from instana_client.models.js_stack_trace_line import JsStackTraceLine as JsStackTraceLine +from instana_client.models.kubernetes_physical_context import KubernetesPhysicalContext as KubernetesPhysicalContext +from instana_client.models.llm_egress_gateway import LLMEgressGateway as LLMEgressGateway +from instana_client.models.llm_gateway_capability import LLMGatewayCapability as LLMGatewayCapability +from instana_client.models.llm_gateway_model import LLMGatewayModel as LLMGatewayModel +from instana_client.models.llm_gateway_service import LLMGatewayService as LLMGatewayService +from instana_client.models.latency_blueprint_indicator import LatencyBlueprintIndicator as LatencyBlueprintIndicator +from instana_client.models.llm_model_price import LlmModelPrice as LlmModelPrice +from instana_client.models.llm_model_price_metadata import LlmModelPriceMetadata as LlmModelPriceMetadata +from instana_client.models.location_status import LocationStatus as LocationStatus +from instana_client.models.log_alert_config import LogAlertConfig as LogAlertConfig +from instana_client.models.log_alert_config_with_metadata import LogAlertConfigWithMetadata as LogAlertConfigWithMetadata +from instana_client.models.log_alert_rule import LogAlertRule as LogAlertRule +from instana_client.models.log_count_alert_rule import LogCountAlertRule as LogCountAlertRule +from instana_client.models.log_entry_actor import LogEntryActor as LogEntryActor +from instana_client.models.log_event_result import LogEventResult as LogEventResult +from instana_client.models.log_time_threshold import LogTimeThreshold as LogTimeThreshold +from instana_client.models.log_volume_group import LogVolumeGroup as LogVolumeGroup +from instana_client.models.log_volume_usage_item import LogVolumeUsageItem as LogVolumeUsageItem +from instana_client.models.log_volume_usage_result import LogVolumeUsageResult as LogVolumeUsageResult +from instana_client.models.logs_application_alert_rule import LogsApplicationAlertRule as LogsApplicationAlertRule +from instana_client.models.maintenance_config import MaintenanceConfig as MaintenanceConfig +from instana_client.models.maintenance_config_scheduling import MaintenanceConfigScheduling as MaintenanceConfigScheduling +from instana_client.models.maintenance_config_v2 import MaintenanceConfigV2 as MaintenanceConfigV2 +from instana_client.models.maintenance_config_v2_with_state_and_occurrence import MaintenanceConfigV2WithStateAndOccurrence as MaintenanceConfigV2WithStateAndOccurrence +from instana_client.models.maintenance_config_with_last_updated import MaintenanceConfigWithLastUpdated as MaintenanceConfigWithLastUpdated +from instana_client.models.maintenance_window import MaintenanceWindow as MaintenanceWindow +from instana_client.models.manual_alerting_channel_configuration import ManualAlertingChannelConfiguration as ManualAlertingChannelConfiguration +from instana_client.models.manual_close_info import ManualCloseInfo as ManualCloseInfo +from instana_client.models.manual_service_config import ManualServiceConfig as ManualServiceConfig +from instana_client.models.match_all_http_path_segment_matching_rule import MatchAllHttpPathSegmentMatchingRule as MatchAllHttpPathSegmentMatchingRule +from instana_client.models.match_expression_dto import MatchExpressionDTO as MatchExpressionDTO +from instana_client.models.meta_data import MetaData as MetaData +from instana_client.models.metric_api_result import MetricAPIResult as MetricAPIResult +from instana_client.models.metric_config import MetricConfig as MetricConfig +from instana_client.models.metric_configuration import MetricConfiguration as MetricConfiguration +from instana_client.models.metric_description import MetricDescription as MetricDescription +from instana_client.models.metric_instance import MetricInstance as MetricInstance +from instana_client.models.metric_item import MetricItem as MetricItem +from instana_client.models.metric_metadata import MetricMetadata as MetricMetadata +from instana_client.models.metric_pattern import MetricPattern as MetricPattern +from instana_client.models.metric_query import MetricQuery as MetricQuery +from instana_client.models.metrics_result import MetricsResult as MetricsResult +from instana_client.models.metrics_result_item import MetricsResultItem as MetricsResultItem +from instana_client.models.metrics_test_result_item import MetricsTestResultItem as MetricsTestResultItem +from instana_client.models.mobile_app import MobileApp as MobileApp +from instana_client.models.mobile_app_alert_config import MobileAppAlertConfig as MobileAppAlertConfig +from instana_client.models.mobile_app_alert_config_with_rbac_tag import MobileAppAlertConfigWithRBACTag as MobileAppAlertConfigWithRBACTag +from instana_client.models.mobile_app_alert_rule import MobileAppAlertRule as MobileAppAlertRule +from instana_client.models.mobile_app_beacon_groups_item import MobileAppBeaconGroupsItem as MobileAppBeaconGroupsItem +from instana_client.models.mobile_app_beacon_groups_result import MobileAppBeaconGroupsResult as MobileAppBeaconGroupsResult +from instana_client.models.mobile_app_beacon_result import MobileAppBeaconResult as MobileAppBeaconResult +from instana_client.models.mobile_app_beacon_tag_group import MobileAppBeaconTagGroup as MobileAppBeaconTagGroup +from instana_client.models.mobile_app_beacons_item import MobileAppBeaconsItem as MobileAppBeaconsItem +from instana_client.models.mobile_app_event_result import MobileAppEventResult as MobileAppEventResult +from instana_client.models.mobile_app_metric_result import MobileAppMetricResult as MobileAppMetricResult +from instana_client.models.mobile_app_monitoring_beacon import MobileAppMonitoringBeacon as MobileAppMonitoringBeacon +from instana_client.models.mobile_app_monitoring_metric_description import MobileAppMonitoringMetricDescription as MobileAppMonitoringMetricDescription +from instana_client.models.mobile_app_monitoring_metrics_configuration import MobileAppMonitoringMetricsConfiguration as MobileAppMonitoringMetricsConfiguration +from instana_client.models.mobile_app_time_threshold import MobileAppTimeThreshold as MobileAppTimeThreshold +from instana_client.models.model_field import ModelField as ModelField +from instana_client.models.monitored_entities_stats import MonitoredEntitiesStats as MonitoredEntitiesStats +from instana_client.models.monitoring_state import MonitoringState as MonitoringState +from instana_client.models.multiple_scripts_configuration import MultipleScriptsConfiguration as MultipleScriptsConfiguration +from instana_client.models.multiplication import Multiplication as Multiplication +from instana_client.models.ns1_integration import NS1Integration as NS1Integration +from instana_client.models.nested_operation import NestedOperation as NestedOperation +from instana_client.models.new_application_config import NewApplicationConfig as NewApplicationConfig +from instana_client.models.new_business_perspective_config import NewBusinessPerspectiveConfig as NewBusinessPerspectiveConfig +from instana_client.models.new_manual_service_config import NewManualServiceConfig as NewManualServiceConfig +from instana_client.models.o_auth_config import OAuthConfig as OAuthConfig +from instana_client.models.o_auth_integration import OAuthIntegration as OAuthIntegration +from instana_client.models.o_auth_token import OAuthToken as OAuthToken +from instana_client.models.occurrence import Occurrence as Occurrence +from instana_client.models.office365_integration import Office365Integration as Office365Integration +from instana_client.models.one_time_maintenance_window import OneTimeMaintenanceWindow as OneTimeMaintenanceWindow +from instana_client.models.opsgenie_integration import OpsgenieIntegration as OpsgenieIntegration +from instana_client.models.order import Order as Order +from instana_client.models.pagerduty_integration import PagerdutyIntegration as PagerdutyIntegration +from instana_client.models.paginated_result import PaginatedResult as PaginatedResult +from instana_client.models.pagination import Pagination as Pagination +from instana_client.models.parameter import Parameter as Parameter +from instana_client.models.parameter_value import ParameterValue as ParameterValue +from instana_client.models.path_parameter_http_path_segment_matching_rule import PathParameterHttpPathSegmentMatchingRule as PathParameterHttpPathSegmentMatchingRule +from instana_client.models.physical_context import PhysicalContext as PhysicalContext +from instana_client.models.plugin_result import PluginResult as PluginResult +from instana_client.models.policy import Policy as Policy +from instana_client.models.policy_runnable import PolicyRunnable as PolicyRunnable +from instana_client.models.policy_scheduling import PolicyScheduling as PolicyScheduling +from instana_client.models.post_mobile_app_source_map_config_request import PostMobileAppSourceMapConfigRequest as PostMobileAppSourceMapConfigRequest +from instana_client.models.post_snapshots_result import PostSnapshotsResult as PostSnapshotsResult +from instana_client.models.problem import Problem as Problem +from instana_client.models.prometheus_webhook_integration import PrometheusWebhookIntegration as PrometheusWebhookIntegration +from instana_client.models.recurrent_maintenance_window import RecurrentMaintenanceWindow as RecurrentMaintenanceWindow +from instana_client.models.release import Release as Release +from instana_client.models.release_scope import ReleaseScope as ReleaseScope +from instana_client.models.release_with_metadata import ReleaseWithMetadata as ReleaseWithMetadata +from instana_client.models.retention_period import RetentionPeriod as RetentionPeriod +from instana_client.models.rolling_time_window import RollingTimeWindow as RollingTimeWindow +from instana_client.models.rule_input import RuleInput as RuleInput +from instana_client.models.rule_with_threshold_application_alert_rule import RuleWithThresholdApplicationAlertRule as RuleWithThresholdApplicationAlertRule +from instana_client.models.rule_with_threshold_infra_alert_rule import RuleWithThresholdInfraAlertRule as RuleWithThresholdInfraAlertRule +from instana_client.models.rule_with_threshold_log_alert_rule import RuleWithThresholdLogAlertRule as RuleWithThresholdLogAlertRule +from instana_client.models.rule_with_threshold_mobile_app_alert_rule import RuleWithThresholdMobileAppAlertRule as RuleWithThresholdMobileAppAlertRule +from instana_client.models.rule_with_threshold_website_alert_rule import RuleWithThresholdWebsiteAlertRule as RuleWithThresholdWebsiteAlertRule +from instana_client.models.run_configuration import RunConfiguration as RunConfiguration +from instana_client.models.slo_config_with_rbac_tag import SLOConfigWithRBACTag as SLOConfigWithRBACTag +from instana_client.models.ssl_certificate_configuration import SSLCertificateConfiguration as SSLCertificateConfiguration +from instana_client.models.ssl_certificate_configuration_update import SSLCertificateConfigurationUpdate as SSLCertificateConfigurationUpdate +from instana_client.models.ssl_certificate_validation import SSLCertificateValidation as SSLCertificateValidation +from instana_client.models.salesforce_integration import SalesforceIntegration as SalesforceIntegration +from instana_client.models.saturation_blueprint_indicator import SaturationBlueprintIndicator as SaturationBlueprintIndicator +from instana_client.models.scope_binding import ScopeBinding as ScopeBinding +from instana_client.models.search_field_result import SearchFieldResult as SearchFieldResult +from instana_client.models.service import Service as Service +from instana_client.models.service_config import ServiceConfig as ServiceConfig +from instana_client.models.service_event_result import ServiceEventResult as ServiceEventResult +from instana_client.models.service_item import ServiceItem as ServiceItem +from instana_client.models.service_level_indicator import ServiceLevelIndicator as ServiceLevelIndicator +from instana_client.models.service_level_objective_alert_rule import ServiceLevelObjectiveAlertRule as ServiceLevelObjectiveAlertRule +from instana_client.models.service_levels_alert_config import ServiceLevelsAlertConfig as ServiceLevelsAlertConfig +from instana_client.models.service_levels_alert_rule import ServiceLevelsAlertRule as ServiceLevelsAlertRule +from instana_client.models.service_levels_burn_rate_config import ServiceLevelsBurnRateConfig as ServiceLevelsBurnRateConfig +from instana_client.models.service_levels_burn_rate_time_windows import ServiceLevelsBurnRateTimeWindows as ServiceLevelsBurnRateTimeWindows +from instana_client.models.service_levels_static_threshold_config import ServiceLevelsStaticThresholdConfig as ServiceLevelsStaticThresholdConfig +from instana_client.models.service_levels_time_threshold import ServiceLevelsTimeThreshold as ServiceLevelsTimeThreshold +from instana_client.models.service_levelse_alert_config_with_metadata import ServiceLevelseAlertConfigWithMetadata as ServiceLevelseAlertConfigWithMetadata +from instana_client.models.service_map import ServiceMap as ServiceMap +from instana_client.models.service_map_connection import ServiceMapConnection as ServiceMapConnection +from instana_client.models.service_matching_rule import ServiceMatchingRule as ServiceMatchingRule +from instana_client.models.service_metric_result import ServiceMetricResult as ServiceMetricResult +from instana_client.models.service_node import ServiceNode as ServiceNode +from instana_client.models.service_now_enhanced_integration import ServiceNowEnhancedIntegration as ServiceNowEnhancedIntegration +from instana_client.models.service_now_integration import ServiceNowIntegration as ServiceNowIntegration +from instana_client.models.service_result import ServiceResult as ServiceResult +from instana_client.models.service_scope import ServiceScope as ServiceScope +from instana_client.models.service_scope_with_metadata import ServiceScopeWithMetadata as ServiceScopeWithMetadata +from instana_client.models.service_scoped_to import ServiceScopedTo as ServiceScopedTo +from instana_client.models.service_scoped_to_with_metadata import ServiceScopedToWithMetadata as ServiceScopedToWithMetadata +from instana_client.models.service_simple import ServiceSimple as ServiceSimple +from instana_client.models.session_replay_metadata import SessionReplayMetadata as SessionReplayMetadata +from instana_client.models.session_replay_timestamps import SessionReplayTimestamps as SessionReplayTimestamps +from instana_client.models.session_settings import SessionSettings as SessionSettings +from instana_client.models.simple_metric_configuration import SimpleMetricConfiguration as SimpleMetricConfiguration +from instana_client.models.single_value import SingleValue as SingleValue +from instana_client.models.slack_integration import SlackIntegration as SlackIntegration +from instana_client.models.sli_configuration import SliConfiguration as SliConfiguration +from instana_client.models.sli_configuration_with_last_updated import SliConfigurationWithLastUpdated as SliConfigurationWithLastUpdated +from instana_client.models.sli_entity import SliEntity as SliEntity +from instana_client.models.sli_report import SliReport as SliReport +from instana_client.models.slo_entity import SloEntity as SloEntity +from instana_client.models.slo_report import SloReport as SloReport +from instana_client.models.slowness_application_alert_rule import SlownessApplicationAlertRule as SlownessApplicationAlertRule +from instana_client.models.slowness_mobile_app_alert_rule import SlownessMobileAppAlertRule as SlownessMobileAppAlertRule +from instana_client.models.slowness_website_alert_rule import SlownessWebsiteAlertRule as SlownessWebsiteAlertRule +from instana_client.models.snapshot_item import SnapshotItem as SnapshotItem +from instana_client.models.snapshot_preview import SnapshotPreview as SnapshotPreview +from instana_client.models.snapshot_result import SnapshotResult as SnapshotResult +from instana_client.models.software_user import SoftwareUser as SoftwareUser +from instana_client.models.software_version import SoftwareVersion as SoftwareVersion +from instana_client.models.source_map_file_blob import SourceMapFileBlob as SourceMapFileBlob +from instana_client.models.source_map_file_meta import SourceMapFileMeta as SourceMapFileMeta +from instana_client.models.source_map_upload_config import SourceMapUploadConfig as SourceMapUploadConfig +from instana_client.models.source_map_upload_configs import SourceMapUploadConfigs as SourceMapUploadConfigs +from instana_client.models.span_excerpt import SpanExcerpt as SpanExcerpt +from instana_client.models.span_relation import SpanRelation as SpanRelation +from instana_client.models.specific_js_errors_website_alert_rule import SpecificJsErrorsWebsiteAlertRule as SpecificJsErrorsWebsiteAlertRule +from instana_client.models.splunk_integration import SplunkIntegration as SplunkIntegration +from instana_client.models.stack_trace_item import StackTraceItem as StackTraceItem +from instana_client.models.stack_trace_line import StackTraceLine as StackTraceLine +from instana_client.models.static_baseline_threshold_rule import StaticBaselineThresholdRule as StaticBaselineThresholdRule +from instana_client.models.static_string_field import StaticStringField as StaticStringField +from instana_client.models.static_threshold import StaticThreshold as StaticThreshold +from instana_client.models.static_threshold_rule import StaticThresholdRule as StaticThresholdRule +from instana_client.models.status_code_application_alert_rule import StatusCodeApplicationAlertRule as StatusCodeApplicationAlertRule +from instana_client.models.status_code_mobile_app_alert_rule import StatusCodeMobileAppAlertRule as StatusCodeMobileAppAlertRule +from instana_client.models.status_code_website_alert_rule import StatusCodeWebsiteAlertRule as StatusCodeWebsiteAlertRule +from instana_client.models.subtraction import Subtraction as Subtraction +from instana_client.models.synthetic_alert_config import SyntheticAlertConfig as SyntheticAlertConfig +from instana_client.models.synthetic_alert_config_with_metadata import SyntheticAlertConfigWithMetadata as SyntheticAlertConfigWithMetadata +from instana_client.models.synthetic_alert_config_with_rbac_tag import SyntheticAlertConfigWithRBACTag as SyntheticAlertConfigWithRBACTag +from instana_client.models.synthetic_alert_rule import SyntheticAlertRule as SyntheticAlertRule +from instana_client.models.synthetic_bulk_response import SyntheticBulkResponse as SyntheticBulkResponse +from instana_client.models.synthetic_call_config import SyntheticCallConfig as SyntheticCallConfig +from instana_client.models.synthetic_call_rule import SyntheticCallRule as SyntheticCallRule +from instana_client.models.synthetic_call_with_defaults_config import SyntheticCallWithDefaultsConfig as SyntheticCallWithDefaultsConfig +from instana_client.models.synthetic_configuration import SyntheticConfiguration as SyntheticConfiguration +from instana_client.models.synthetic_configuration_update import SyntheticConfigurationUpdate as SyntheticConfigurationUpdate +from instana_client.models.synthetic_credential import SyntheticCredential as SyntheticCredential +from instana_client.models.synthetic_datacenter import SyntheticDatacenter as SyntheticDatacenter +from instana_client.models.synthetic_datacenter_configuration import SyntheticDatacenterConfiguration as SyntheticDatacenterConfiguration +from instana_client.models.synthetic_geo_point import SyntheticGeoPoint as SyntheticGeoPoint +from instana_client.models.synthetic_location import SyntheticLocation as SyntheticLocation +from instana_client.models.synthetic_location_configuration import SyntheticLocationConfiguration as SyntheticLocationConfiguration +from instana_client.models.synthetic_metric_configuration import SyntheticMetricConfiguration as SyntheticMetricConfiguration +from instana_client.models.synthetic_metric_tag_group import SyntheticMetricTagGroup as SyntheticMetricTagGroup +from instana_client.models.synthetic_playback_capabilities import SyntheticPlaybackCapabilities as SyntheticPlaybackCapabilities +from instana_client.models.synthetic_resource_update_list_dns_filter_target_value_list_dns_filter_target_value import SyntheticResourceUpdateListDNSFilterTargetValueListDNSFilterTargetValue as SyntheticResourceUpdateListDNSFilterTargetValueListDNSFilterTargetValue +from instana_client.models.synthetic_resource_update_list_ssl_certificate_validation_list_ssl_certificate_validation import SyntheticResourceUpdateListSSLCertificateValidationListSSLCertificateValidation as SyntheticResourceUpdateListSSLCertificateValidationListSSLCertificateValidation +from instana_client.models.synthetic_resource_update_list_string_list_string import SyntheticResourceUpdateListStringListString as SyntheticResourceUpdateListStringListString +from instana_client.models.synthetic_resource_update_map_string_string_list_string import SyntheticResourceUpdateMapStringStringListString as SyntheticResourceUpdateMapStringStringListString +from instana_client.models.synthetic_slo_entity import SyntheticSloEntity as SyntheticSloEntity +from instana_client.models.synthetic_test import SyntheticTest as SyntheticTest +from instana_client.models.synthetic_test_cicd import SyntheticTestCICD as SyntheticTestCICD +from instana_client.models.synthetic_test_cicd_customization import SyntheticTestCICDCustomization as SyntheticTestCICDCustomization +from instana_client.models.synthetic_test_cicd_item import SyntheticTestCICDItem as SyntheticTestCICDItem +from instana_client.models.synthetic_test_cicd_response import SyntheticTestCICDResponse as SyntheticTestCICDResponse +from instana_client.models.synthetic_test_deep_update import SyntheticTestDeepUpdate as SyntheticTestDeepUpdate +from instana_client.models.synthetic_test_shallow_update import SyntheticTestShallowUpdate as SyntheticTestShallowUpdate +from instana_client.models.synthetic_test_update import SyntheticTestUpdate as SyntheticTestUpdate +from instana_client.models.synthetic_time_threshold import SyntheticTimeThreshold as SyntheticTimeThreshold +from instana_client.models.synthetic_type_configuration import SyntheticTypeConfiguration as SyntheticTypeConfiguration +from instana_client.models.synthetic_type_configuration_update import SyntheticTypeConfigurationUpdate as SyntheticTypeConfigurationUpdate +from instana_client.models.synthetics_event_result import SyntheticsEventResult as SyntheticsEventResult +from instana_client.models.system_rule import SystemRule as SystemRule +from instana_client.models.system_rule_label import SystemRuleLabel as SystemRuleLabel +from instana_client.models.tag import Tag as Tag +from instana_client.models.tag_catalog import TagCatalog as TagCatalog +from instana_client.models.tag_filter import TagFilter as TagFilter +from instana_client.models.tag_filter_expression import TagFilterExpression as TagFilterExpression +from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement as TagFilterExpressionElement +from instana_client.models.tag_matcher_dto import TagMatcherDTO as TagMatcherDTO +from instana_client.models.tag_tree_level import TagTreeLevel as TagTreeLevel +from instana_client.models.tag_tree_node import TagTreeNode as TagTreeNode +from instana_client.models.tag_tree_tag import TagTreeTag as TagTreeTag +from instana_client.models.test_common_properties import TestCommonProperties as TestCommonProperties +from instana_client.models.test_last_error import TestLastError as TestLastError +from instana_client.models.test_result import TestResult as TestResult +from instana_client.models.test_result_common_properties import TestResultCommonProperties as TestResultCommonProperties +from instana_client.models.test_result_detail_data import TestResultDetailData as TestResultDetailData +from instana_client.models.test_result_item import TestResultItem as TestResultItem +from instana_client.models.test_result_list_item import TestResultListItem as TestResultListItem +from instana_client.models.test_result_list_result import TestResultListResult as TestResultListResult +from instana_client.models.test_result_metadata import TestResultMetadata as TestResultMetadata +from instana_client.models.test_result_subtransaction import TestResultSubtransaction as TestResultSubtransaction +from instana_client.models.threshold import Threshold as Threshold +from instana_client.models.threshold_config_rule import ThresholdConfigRule as ThresholdConfigRule +from instana_client.models.threshold_rule import ThresholdRule as ThresholdRule +from instana_client.models.throughput_application_alert_rule import ThroughputApplicationAlertRule as ThroughputApplicationAlertRule +from instana_client.models.throughput_mobile_app_alert_rule import ThroughputMobileAppAlertRule as ThroughputMobileAppAlertRule +from instana_client.models.throughput_website_alert_rule import ThroughputWebsiteAlertRule as ThroughputWebsiteAlertRule +from instana_client.models.time_frame import TimeFrame as TimeFrame +from instana_client.models.time_window import TimeWindow as TimeWindow +from instana_client.models.topology import Topology as Topology +from instana_client.models.trace import Trace as Trace +from instana_client.models.trace_activity_tree_node_details import TraceActivityTreeNodeDetails as TraceActivityTreeNodeDetails +from instana_client.models.trace_download_result import TraceDownloadResult as TraceDownloadResult +from instana_client.models.trace_groups_item import TraceGroupsItem as TraceGroupsItem +from instana_client.models.trace_groups_result import TraceGroupsResult as TraceGroupsResult +from instana_client.models.trace_impact_application_time_threshold import TraceImpactApplicationTimeThreshold as TraceImpactApplicationTimeThreshold +from instana_client.models.trace_item import TraceItem as TraceItem +from instana_client.models.trace_result import TraceResult as TraceResult +from instana_client.models.traffic_blueprint_indicator import TrafficBlueprintIndicator as TrafficBlueprintIndicator +from instana_client.models.trigger import Trigger as Trigger +from instana_client.models.type_configuration import TypeConfiguration as TypeConfiguration +from instana_client.models.unsupported_http_path_segment_matching_rule import UnsupportedHttpPathSegmentMatchingRule as UnsupportedHttpPathSegmentMatchingRule +from instana_client.models.updated_business_perspective_config import UpdatedBusinessPerspectiveConfig as UpdatedBusinessPerspectiveConfig +from instana_client.models.usage_result import UsageResult as UsageResult +from instana_client.models.usage_result_items import UsageResultItems as UsageResultItems +from instana_client.models.user_basic_result import UserBasicResult as UserBasicResult +from instana_client.models.user_impact_mobile_app_time_threshold import UserImpactMobileAppTimeThreshold as UserImpactMobileAppTimeThreshold +from instana_client.models.user_impact_website_time_threshold import UserImpactWebsiteTimeThreshold as UserImpactWebsiteTimeThreshold +from instana_client.models.user_result import UserResult as UserResult +from instana_client.models.users_result import UsersResult as UsersResult +from instana_client.models.validated_alerting_channel_input_info import ValidatedAlertingChannelInputInfo as ValidatedAlertingChannelInputInfo +from instana_client.models.validated_alerting_configuration import ValidatedAlertingConfiguration as ValidatedAlertingConfiguration +from instana_client.models.validated_maintenance_config_v2_with_state_and_occurrence import ValidatedMaintenanceConfigV2WithStateAndOccurrence as ValidatedMaintenanceConfigV2WithStateAndOccurrence +from instana_client.models.validated_maintenance_config_with_status import ValidatedMaintenanceConfigWithStatus as ValidatedMaintenanceConfigWithStatus +from instana_client.models.victor_ops_integration import VictorOpsIntegration as VictorOpsIntegration +from instana_client.models.violations_in_period_application_time_threshold import ViolationsInPeriodApplicationTimeThreshold as ViolationsInPeriodApplicationTimeThreshold +from instana_client.models.violations_in_period_mobile_app_time_threshold import ViolationsInPeriodMobileAppTimeThreshold as ViolationsInPeriodMobileAppTimeThreshold +from instana_client.models.violations_in_period_website_time_threshold import ViolationsInPeriodWebsiteTimeThreshold as ViolationsInPeriodWebsiteTimeThreshold +from instana_client.models.violations_in_sequence_application_time_threshold import ViolationsInSequenceApplicationTimeThreshold as ViolationsInSequenceApplicationTimeThreshold +from instana_client.models.violations_in_sequence_infra_time_threshold import ViolationsInSequenceInfraTimeThreshold as ViolationsInSequenceInfraTimeThreshold +from instana_client.models.violations_in_sequence_log_time_threshold import ViolationsInSequenceLogTimeThreshold as ViolationsInSequenceLogTimeThreshold +from instana_client.models.violations_in_sequence_mobile_app_time_threshold import ViolationsInSequenceMobileAppTimeThreshold as ViolationsInSequenceMobileAppTimeThreshold +from instana_client.models.violations_in_sequence_synthetic_time_threshold import ViolationsInSequenceSyntheticTimeThreshold as ViolationsInSequenceSyntheticTimeThreshold +from instana_client.models.violations_in_sequence_website_time_threshold import ViolationsInSequenceWebsiteTimeThreshold as ViolationsInSequenceWebsiteTimeThreshold +from instana_client.models.watson_ai_ops_webhook_integration import WatsonAIOpsWebhookIntegration as WatsonAIOpsWebhookIntegration +from instana_client.models.webex_teams_webhook_integration import WebexTeamsWebhookIntegration as WebexTeamsWebhookIntegration +from instana_client.models.webhook_integration import WebhookIntegration as WebhookIntegration +from instana_client.models.webpage_action_configuration import WebpageActionConfiguration as WebpageActionConfiguration +from instana_client.models.webpage_action_configuration_update import WebpageActionConfigurationUpdate as WebpageActionConfigurationUpdate +from instana_client.models.webpage_script_configuration import WebpageScriptConfiguration as WebpageScriptConfiguration +from instana_client.models.webpage_script_configuration_update import WebpageScriptConfigurationUpdate as WebpageScriptConfigurationUpdate +from instana_client.models.website import Website as Website +from instana_client.models.website_alert_config import WebsiteAlertConfig as WebsiteAlertConfig +from instana_client.models.website_alert_config_with_metadata import WebsiteAlertConfigWithMetadata as WebsiteAlertConfigWithMetadata +from instana_client.models.website_alert_config_with_rbac_tag import WebsiteAlertConfigWithRBACTag as WebsiteAlertConfigWithRBACTag +from instana_client.models.website_alert_rule import WebsiteAlertRule as WebsiteAlertRule +from instana_client.models.website_apdex_entity import WebsiteApdexEntity as WebsiteApdexEntity +from instana_client.models.website_beacon_groups_item import WebsiteBeaconGroupsItem as WebsiteBeaconGroupsItem +from instana_client.models.website_beacon_groups_result import WebsiteBeaconGroupsResult as WebsiteBeaconGroupsResult +from instana_client.models.website_beacon_result import WebsiteBeaconResult as WebsiteBeaconResult +from instana_client.models.website_beacon_tag_group import WebsiteBeaconTagGroup as WebsiteBeaconTagGroup +from instana_client.models.website_beacons_item import WebsiteBeaconsItem as WebsiteBeaconsItem +from instana_client.models.website_event_based_sli_entity import WebsiteEventBasedSliEntity as WebsiteEventBasedSliEntity +from instana_client.models.website_event_result import WebsiteEventResult as WebsiteEventResult +from instana_client.models.website_metric_result import WebsiteMetricResult as WebsiteMetricResult +from instana_client.models.website_monitoring_beacon import WebsiteMonitoringBeacon as WebsiteMonitoringBeacon +from instana_client.models.website_monitoring_metric_description import WebsiteMonitoringMetricDescription as WebsiteMonitoringMetricDescription +from instana_client.models.website_monitoring_metrics_configuration import WebsiteMonitoringMetricsConfiguration as WebsiteMonitoringMetricsConfiguration +from instana_client.models.website_slo_entity import WebsiteSloEntity as WebsiteSloEntity +from instana_client.models.website_time_based_sli_entity import WebsiteTimeBasedSliEntity as WebsiteTimeBasedSliEntity +from instana_client.models.website_time_threshold import WebsiteTimeThreshold as WebsiteTimeThreshold +from instana_client.models.widget import Widget as Widget +from instana_client.models.with_meta_data import WithMetaData as WithMetaData +from instana_client.models.with_resolved_name import WithResolvedName as WithResolvedName +from instana_client.models.z_chat_ops_integration import ZChatOpsIntegration as ZChatOpsIntegration + diff --git a/instana_client/api/__init__.py b/instana_client/api/__init__.py index dba822f..f1012db 100644 --- a/instana_client/api/__init__.py +++ b/instana_client/api/__init__.py @@ -32,6 +32,7 @@ from instana_client.api.infrastructure_metrics_api import InfrastructureMetricsApi from instana_client.api.infrastructure_resources_api import InfrastructureResourcesApi from instana_client.api.infrastructure_topology_api import InfrastructureTopologyApi +from instana_client.api.llm_price_configuration_api import LLMPriceConfigurationApi from instana_client.api.log_alert_configuration_api import LogAlertConfigurationApi from instana_client.api.logging_analyze_api import LoggingAnalyzeApi from instana_client.api.maintenance_configuration_api import MaintenanceConfigurationApi @@ -44,10 +45,10 @@ from instana_client.api.roles_api import RolesApi from instana_client.api.sli_report_api import SLIReportApi from instana_client.api.sli_settings_api import SLISettingsApi +from instana_client.api.slo_configurations_api import SLOConfigurationsApi from instana_client.api.slo_correction_configurations_api import SLOCorrectionConfigurationsApi from instana_client.api.slo_correction_windows_api import SLOCorrectionWindowsApi from instana_client.api.service_levels_alert_configuration_api import ServiceLevelsAlertConfigurationApi -from instana_client.api.service_levels_objective_slo_configurations_api import ServiceLevelsObjectiveSLOConfigurationsApi from instana_client.api.service_levels_objective_slo_report_api import ServiceLevelsObjectiveSLOReportApi from instana_client.api.session_settings_api import SessionSettingsApi from instana_client.api.synthetic_alert_configuration_api import SyntheticAlertConfigurationApi @@ -63,4 +64,5 @@ from instana_client.api.website_catalog_api import WebsiteCatalogApi from instana_client.api.website_configuration_api import WebsiteConfigurationApi from instana_client.api.website_metrics_api import WebsiteMetricsApi +from instana_client.api.default_api import DefaultApi diff --git a/instana_client/api/action_catalog_api.py b/instana_client/api/action_catalog_api.py index ed2791e..519804e 100644 --- a/instana_client/api/action_catalog_api.py +++ b/instana_client/api/action_catalog_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/action_history_api.py b/instana_client/api/action_history_api.py index fddd9fb..894b15c 100644 --- a/instana_client/api/action_history_api.py +++ b/instana_client/api/action_history_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/ai_management_api.py b/instana_client/api/ai_management_api.py index 7edb4e1..9234786 100644 --- a/instana_client/api/ai_management_api.py +++ b/instana_client/api/ai_management_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -307,7 +307,7 @@ def _add_llm_egress_gateway_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/llm/egress/handler', + resource_path='/api/llm/gateways', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -573,7 +573,7 @@ def _delete_llm_egress_gateway_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/api/llm/egress/handler/{id}', + resource_path='/api/llm/gateways/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -839,7 +839,7 @@ def _enable_llm_egress_gateway_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/api/llm/egress/handler/{id}/enable', + resource_path='/api/llm/gateways/{id}/enable', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1364,7 +1364,7 @@ def _get_llm_egress_gateway_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/llm/egress/handler/{id}', + resource_path='/api/llm/gateways/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1656,7 +1656,7 @@ def _get_llm_egress_gateways_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/llm/egress/handler', + resource_path='/api/llm/gateways', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1957,7 +1957,7 @@ def _update_llm_egress_gateway_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/api/llm/egress/handler/{id}', + resource_path='/api/llm/gateways/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/instana_client/api/apdex_report_api.py b/instana_client/api/apdex_report_api.py index 64d61d4..d9f4276 100644 --- a/instana_client/api/apdex_report_api.py +++ b/instana_client/api/apdex_report_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/apdex_settings_api.py b/instana_client/api/apdex_settings_api.py index 1a78d76..1c460cb 100644 --- a/instana_client/api/apdex_settings_api.py +++ b/instana_client/api/apdex_settings_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/api_token_api.py b/instana_client/api/api_token_api.py index 1494176..0e7c0df 100644 --- a/instana_client/api/api_token_api.py +++ b/instana_client/api/api_token_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/application_alert_configuration_api.py b/instana_client/api/application_alert_configuration_api.py index 6066ec1..66e5679 100644 --- a/instana_client/api/application_alert_configuration_api.py +++ b/instana_client/api/application_alert_configuration_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -42,6 +42,825 @@ def __init__(self, api_client=None) -> None: self.api_client = api_client + @validate_call + def bulk_delete_application_alert_configs( + self, + body: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Bulk Delete Application Smart Alert Configs + + Deletes multiple application alert configurations. Creates new revisions for all specified alerts with deleted=true. All revisions share the same timestamp. Maximum 1000 IDs per request. + + :param body: (required) + :type body: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._bulk_delete_application_alert_configs_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': None, + '403': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def bulk_delete_application_alert_configs_with_http_info( + self, + body: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Bulk Delete Application Smart Alert Configs + + Deletes multiple application alert configurations. Creates new revisions for all specified alerts with deleted=true. All revisions share the same timestamp. Maximum 1000 IDs per request. + + :param body: (required) + :type body: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._bulk_delete_application_alert_configs_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': None, + '403': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def bulk_delete_application_alert_configs_without_preload_content( + self, + body: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Bulk Delete Application Smart Alert Configs + + Deletes multiple application alert configurations. Creates new revisions for all specified alerts with deleted=true. All revisions share the same timestamp. Maximum 1000 IDs per request. + + :param body: (required) + :type body: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._bulk_delete_application_alert_configs_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': None, + '403': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _bulk_delete_application_alert_configs_serialize( + self, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/api/events/settings/application-alert-configs/bulk/delete', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def bulk_disable_application_alert_configs( + self, + body: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Bulk Disable Application Smart Alert Configs + + Disables multiple application alert configurations. Creates new revisions for all specified alerts with enabled=false. All revisions share the same timestamp. Maximum 1000 IDs per request. + + :param body: (required) + :type body: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._bulk_disable_application_alert_configs_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': None, + '403': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def bulk_disable_application_alert_configs_with_http_info( + self, + body: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Bulk Disable Application Smart Alert Configs + + Disables multiple application alert configurations. Creates new revisions for all specified alerts with enabled=false. All revisions share the same timestamp. Maximum 1000 IDs per request. + + :param body: (required) + :type body: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._bulk_disable_application_alert_configs_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': None, + '403': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def bulk_disable_application_alert_configs_without_preload_content( + self, + body: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Bulk Disable Application Smart Alert Configs + + Disables multiple application alert configurations. Creates new revisions for all specified alerts with enabled=false. All revisions share the same timestamp. Maximum 1000 IDs per request. + + :param body: (required) + :type body: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._bulk_disable_application_alert_configs_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': None, + '403': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _bulk_disable_application_alert_configs_serialize( + self, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/api/events/settings/application-alert-configs/bulk/disable', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def bulk_enable_application_alert_configs( + self, + body: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Bulk Enable Application Smart Alert Configs + + Enables multiple application alert configurations. Creates new revisions for all specified alerts with enabled=true. All revisions share the same timestamp. Maximum 1000 IDs per request. + + :param body: (required) + :type body: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._bulk_enable_application_alert_configs_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': None, + '403': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def bulk_enable_application_alert_configs_with_http_info( + self, + body: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Bulk Enable Application Smart Alert Configs + + Enables multiple application alert configurations. Creates new revisions for all specified alerts with enabled=true. All revisions share the same timestamp. Maximum 1000 IDs per request. + + :param body: (required) + :type body: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._bulk_enable_application_alert_configs_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': None, + '403': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def bulk_enable_application_alert_configs_without_preload_content( + self, + body: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Bulk Enable Application Smart Alert Configs + + Enables multiple application alert configurations. Creates new revisions for all specified alerts with enabled=true. All revisions share the same timestamp. Maximum 1000 IDs per request. + + :param body: (required) + :type body: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._bulk_enable_application_alert_configs_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': None, + '403': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _bulk_enable_application_alert_configs_serialize( + self, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/api/events/settings/application-alert-configs/bulk/enable', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def create_application_alert_config( self, @@ -1223,7 +2042,6 @@ def find_all_active_application_alert_configs( _response_types_map: Dict[str, Optional[str]] = { '200': "List[ApplicationAlertConfigWithMetadata]", - '403': None, } response_data = self.api_client.call_api( *_param, @@ -1295,7 +2113,6 @@ def find_all_active_application_alert_configs_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "List[ApplicationAlertConfigWithMetadata]", - '403': None, } response_data = self.api_client.call_api( *_param, @@ -1367,7 +2184,6 @@ def find_all_active_application_alert_configs_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "List[ApplicationAlertConfigWithMetadata]", - '403': None, } response_data = self.api_client.call_api( *_param, @@ -2613,6 +3429,7 @@ def _update_application_alert_config_serialize( def update_application_historic_baseline( self, id: Annotated[StrictStr, Field(description="ID of a specific Smart Alert Configuration to recalculate.")], + body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2632,6 +3449,8 @@ def update_application_historic_baseline( :param id: ID of a specific Smart Alert Configuration to recalculate. (required) :type id: str + :param body: + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2656,6 +3475,7 @@ def update_application_historic_baseline( _param = self._update_application_historic_baseline_serialize( id=id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2685,6 +3505,7 @@ def update_application_historic_baseline( def update_application_historic_baseline_with_http_info( self, id: Annotated[StrictStr, Field(description="ID of a specific Smart Alert Configuration to recalculate.")], + body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2704,6 +3525,8 @@ def update_application_historic_baseline_with_http_info( :param id: ID of a specific Smart Alert Configuration to recalculate. (required) :type id: str + :param body: + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2728,6 +3551,7 @@ def update_application_historic_baseline_with_http_info( _param = self._update_application_historic_baseline_serialize( id=id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2757,6 +3581,7 @@ def update_application_historic_baseline_with_http_info( def update_application_historic_baseline_without_preload_content( self, id: Annotated[StrictStr, Field(description="ID of a specific Smart Alert Configuration to recalculate.")], + body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2776,6 +3601,8 @@ def update_application_historic_baseline_without_preload_content( :param id: ID of a specific Smart Alert Configuration to recalculate. (required) :type id: str + :param body: + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2800,6 +3627,7 @@ def update_application_historic_baseline_without_preload_content( _param = self._update_application_historic_baseline_serialize( id=id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2824,6 +3652,7 @@ def update_application_historic_baseline_without_preload_content( def _update_application_historic_baseline_serialize( self, id, + body, _request_auth, _content_type, _headers, @@ -2851,9 +3680,24 @@ def _update_application_historic_baseline_serialize( # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ diff --git a/instana_client/api/application_analyze_api.py b/instana_client/api/application_analyze_api.py index f19f74e..89c5d91 100644 --- a/instana_client/api/application_analyze_api.py +++ b/instana_client/api/application_analyze_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -17,7 +17,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictBool, StrictInt, StrictStr +from pydantic import Field, StrictBool, StrictInt from typing import List, Optional from typing_extensions import Annotated from instana_client.models.backend_trace_reference import BackendTraceReference @@ -51,8 +51,8 @@ def __init__(self, api_client=None) -> None: @validate_call def get_call_details( self, - trace_id: StrictStr, - call_id: StrictStr, + trace_id: Annotated[str, Field(min_length=1, strict=True)], + call_id: Annotated[str, Field(min_length=1, strict=True)], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -122,8 +122,8 @@ def get_call_details( @validate_call def get_call_details_with_http_info( self, - trace_id: StrictStr, - call_id: StrictStr, + trace_id: Annotated[str, Field(min_length=1, strict=True)], + call_id: Annotated[str, Field(min_length=1, strict=True)], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -193,8 +193,8 @@ def get_call_details_with_http_info( @validate_call def get_call_details_without_preload_content( self, - trace_id: StrictStr, - call_id: StrictStr, + trace_id: Annotated[str, Field(min_length=1, strict=True)], + call_id: Annotated[str, Field(min_length=1, strict=True)], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -881,7 +881,7 @@ def _get_correlated_traces_serialize( @validate_call def get_trace_download( self, - id: StrictStr, + id: Annotated[str, Field(min_length=1, strict=True)], retrieval_size: Optional[Annotated[int, Field(le=10000, strict=True, ge=1)]] = None, offset: Optional[StrictInt] = None, ingestion_time: Optional[StrictInt] = None, @@ -960,7 +960,7 @@ def get_trace_download( @validate_call def get_trace_download_with_http_info( self, - id: StrictStr, + id: Annotated[str, Field(min_length=1, strict=True)], retrieval_size: Optional[Annotated[int, Field(le=10000, strict=True, ge=1)]] = None, offset: Optional[StrictInt] = None, ingestion_time: Optional[StrictInt] = None, @@ -1039,7 +1039,7 @@ def get_trace_download_with_http_info( @validate_call def get_trace_download_without_preload_content( self, - id: StrictStr, + id: Annotated[str, Field(min_length=1, strict=True)], retrieval_size: Optional[Annotated[int, Field(le=10000, strict=True, ge=1)]] = None, offset: Optional[StrictInt] = None, ingestion_time: Optional[StrictInt] = None, diff --git a/instana_client/api/application_catalog_api.py b/instana_client/api/application_catalog_api.py index d0b848a..044071c 100644 --- a/instana_client/api/application_catalog_api.py +++ b/instana_client/api/application_catalog_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/application_metrics_api.py b/instana_client/api/application_metrics_api.py index 276f884..7ae9106 100644 --- a/instana_client/api/application_metrics_api.py +++ b/instana_client/api/application_metrics_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/application_resources_api.py b/instana_client/api/application_resources_api.py index 9efb06f..5453939 100644 --- a/instana_client/api/application_resources_api.py +++ b/instana_client/api/application_resources_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,9 +21,7 @@ from typing import List, Optional from typing_extensions import Annotated from instana_client.models.application_result import ApplicationResult -from instana_client.models.endpoint import Endpoint from instana_client.models.endpoint_result import EndpointResult -from instana_client.models.service import Service from instana_client.models.service_result import ServiceResult from instana_client.api_client import ApiClient, RequestSerialized @@ -47,9 +45,9 @@ def __init__(self, api_client=None) -> None: @validate_call def get_application_endpoints( self, - app_id: Annotated[Optional[StrictStr], Field(description="Application ID")] = None, - service_id: Annotated[Optional[StrictStr], Field(description="Service ID")] = None, - endpoint_id: Annotated[Optional[StrictStr], Field(description="Endpoint ID")] = None, + application_id: StrictStr, + service_id: StrictStr, + endpoint_id: StrictStr, name_filter: Annotated[Optional[StrictStr], Field(description="Name of service")] = None, types: Annotated[Optional[List[StrictStr]], Field(description="Type of Endpoint")] = None, technologies: Annotated[Optional[List[StrictStr]], Field(description="List of technologies")] = None, @@ -70,16 +68,16 @@ def get_application_endpoints( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Union[EndpointResult, Endpoint]: + ) -> EndpointResult: """Get endpoints Use this API endpoint if one wants to retrieve a list of Endpoints. A use case could be to view the endpoint id of an Endpoint. For more information on Application Resources please access the https://developer.ibm.com/apis/catalog/instana--instana-rest-api/Applications#application-resources. - :param app_id: Application ID (optional, used to filter endpoints by application) - :type app_id: str - :param service_id: Service ID (optional, used to filter endpoints by service) + :param application_id: (required) + :type application_id: str + :param service_id: (required) :type service_id: str - :param endpoint_id: Endpoint ID (optional, used to get a specific endpoint) + :param endpoint_id: (required) :type endpoint_id: str :param name_filter: Name of service :type name_filter: str @@ -120,7 +118,7 @@ def get_application_endpoints( """ # noqa: E501 _param = self._get_application_endpoints_serialize( - app_id=app_id, + application_id=application_id, service_id=service_id, endpoint_id=endpoint_id, name_filter=name_filter, @@ -137,16 +135,9 @@ def get_application_endpoints( _host_index=_host_index ) - # Determine response type based on parameters - if app_id and service_id and endpoint_id: - _response_types_map: Dict[str, Optional[str]] = { - '200': "Endpoint", - } - else: - _response_types_map: Dict[str, Optional[str]] = { - '200': "EndpointResult", - } - + _response_types_map: Dict[str, Optional[str]] = { + '200': "EndpointResult", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -161,9 +152,9 @@ def get_application_endpoints( @validate_call def get_application_endpoints_with_http_info( self, - app_id: Annotated[Optional[StrictStr], Field(description="Application ID")] = None, - service_id: Annotated[Optional[StrictStr], Field(description="Service ID")] = None, - endpoint_id: Annotated[Optional[StrictStr], Field(description="Endpoint ID")] = None, + application_id: StrictStr, + service_id: StrictStr, + endpoint_id: StrictStr, name_filter: Annotated[Optional[StrictStr], Field(description="Name of service")] = None, types: Annotated[Optional[List[StrictStr]], Field(description="Type of Endpoint")] = None, technologies: Annotated[Optional[List[StrictStr]], Field(description="List of technologies")] = None, @@ -184,16 +175,16 @@ def get_application_endpoints_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Union[ApiResponse[EndpointResult], ApiResponse[Endpoint]]: + ) -> ApiResponse[EndpointResult]: """Get endpoints Use this API endpoint if one wants to retrieve a list of Endpoints. A use case could be to view the endpoint id of an Endpoint. For more information on Application Resources please access the https://developer.ibm.com/apis/catalog/instana--instana-rest-api/Applications#application-resources. - :param app_id: Application ID (optional, used to filter endpoints by application) - :type app_id: str - :param service_id: Service ID (optional, used to filter endpoints by service) + :param application_id: (required) + :type application_id: str + :param service_id: (required) :type service_id: str - :param endpoint_id: Endpoint ID (optional, used to get a specific endpoint) + :param endpoint_id: (required) :type endpoint_id: str :param name_filter: Name of service :type name_filter: str @@ -234,7 +225,7 @@ def get_application_endpoints_with_http_info( """ # noqa: E501 _param = self._get_application_endpoints_serialize( - app_id=app_id, + application_id=application_id, service_id=service_id, endpoint_id=endpoint_id, name_filter=name_filter, @@ -251,16 +242,9 @@ def get_application_endpoints_with_http_info( _host_index=_host_index ) - # Determine response type based on parameters - if app_id and service_id and endpoint_id: - _response_types_map: Dict[str, Optional[str]] = { - '200': "Endpoint", - } - else: - _response_types_map: Dict[str, Optional[str]] = { - '200': "EndpointResult", - } - + _response_types_map: Dict[str, Optional[str]] = { + '200': "EndpointResult", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -275,9 +259,9 @@ def get_application_endpoints_with_http_info( @validate_call def get_application_endpoints_without_preload_content( self, - app_id: Annotated[Optional[StrictStr], Field(description="Application ID")] = None, - service_id: Annotated[Optional[StrictStr], Field(description="Service ID")] = None, - endpoint_id: Annotated[Optional[StrictStr], Field(description="Endpoint ID")] = None, + application_id: StrictStr, + service_id: StrictStr, + endpoint_id: StrictStr, name_filter: Annotated[Optional[StrictStr], Field(description="Name of service")] = None, types: Annotated[Optional[List[StrictStr]], Field(description="Type of Endpoint")] = None, technologies: Annotated[Optional[List[StrictStr]], Field(description="List of technologies")] = None, @@ -303,11 +287,11 @@ def get_application_endpoints_without_preload_content( Use this API endpoint if one wants to retrieve a list of Endpoints. A use case could be to view the endpoint id of an Endpoint. For more information on Application Resources please access the https://developer.ibm.com/apis/catalog/instana--instana-rest-api/Applications#application-resources. - :param app_id: Application ID (optional, used to filter endpoints by application) - :type app_id: str - :param service_id: Service ID (optional, used to filter endpoints by service) + :param application_id: (required) + :type application_id: str + :param service_id: (required) :type service_id: str - :param endpoint_id: Endpoint ID (optional, used to get a specific endpoint) + :param endpoint_id: (required) :type endpoint_id: str :param name_filter: Name of service :type name_filter: str @@ -348,7 +332,7 @@ def get_application_endpoints_without_preload_content( """ # noqa: E501 _param = self._get_application_endpoints_serialize( - app_id=app_id, + application_id=application_id, service_id=service_id, endpoint_id=endpoint_id, name_filter=name_filter, @@ -365,16 +349,9 @@ def get_application_endpoints_without_preload_content( _host_index=_host_index ) - # Determine response type based on parameters - if app_id and service_id and endpoint_id: - _response_types_map: Dict[str, Optional[str]] = { - '200': "Endpoint", - } - else: - _response_types_map: Dict[str, Optional[str]] = { - '200': "EndpointResult", - } - + _response_types_map: Dict[str, Optional[str]] = { + '200': "EndpointResult", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -384,7 +361,7 @@ def get_application_endpoints_without_preload_content( def _get_application_endpoints_serialize( self, - app_id, + application_id, service_id, endpoint_id, name_filter, @@ -418,6 +395,12 @@ def _get_application_endpoints_serialize( _body_params: Optional[bytes] = None # process the path parameters + if application_id is not None: + _path_params['applicationId'] = application_id + if service_id is not None: + _path_params['serviceId'] = service_id + if endpoint_id is not None: + _path_params['endpointId'] = endpoint_id # process the query parameters if name_filter is not None: @@ -465,16 +448,6 @@ def _get_application_endpoints_serialize( ) - # Build dynamic resource path based on app_id, service_id, and endpoint_id - if app_id and service_id and endpoint_id: - resource_path = f'/api/application-monitoring/applications;id={app_id}/services;id={service_id}/endpoints;id={endpoint_id}' - elif app_id and service_id: - resource_path = f'/api/application-monitoring/applications;id={app_id}/services;id={service_id}/endpoints' - elif app_id: - resource_path = f'/api/application-monitoring/applications;id={app_id}/services/endpoints' - else: - resource_path = '/api/application-monitoring/applications/services/endpoints' - # authentication setting _auth_settings: List[str] = [ 'ApiKeyAuth' @@ -482,7 +455,7 @@ def _get_application_endpoints_serialize( return self.api_client.param_serialize( method='GET', - resource_path=resource_path, + resource_path='/api/application-monitoring/applications;id={applicationId}/services;id={serviceId}/endpoints;id={endpointId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -501,8 +474,8 @@ def _get_application_endpoints_serialize( @validate_call def get_application_services( self, - app_id: Annotated[Optional[StrictStr], Field(description="Application ID")] = None, - service_id: Annotated[Optional[StrictStr], Field(description="Service ID")] = None, + application_id: StrictStr, + service_id: StrictStr, name_filter: Annotated[Optional[StrictStr], Field(description="Name of service (partial match allowed)")] = None, window_size: Annotated[Optional[StrictInt], Field(description="Size of time window in milliseconds")] = None, to: Annotated[Optional[StrictInt], Field(description="Timestamp since Unix Epoch in milliseconds of the end of the time window")] = None, @@ -522,14 +495,14 @@ def get_application_services( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Union[ServiceResult, Service]: + ) -> ServiceResult: """Get applications/services Use this API endpoint if one wants to retrieve a list of services in an Application Perspective. A use case could be to retrieve all service ids present in an Application Perspective. For more information on Application Resources please access the https://developer.ibm.com/apis/catalog/instana--instana-rest-api/Applications#application-resources. - :param app_id: Application ID (optional, used to filter services by application) - :type app_id: str - :param service_id: Service ID (optional, used to filter specific service) + :param application_id: (required) + :type application_id: str + :param service_id: (required) :type service_id: str :param name_filter: Name of service (partial match allowed) :type name_filter: str @@ -568,7 +541,7 @@ def get_application_services( """ # noqa: E501 _param = self._get_application_services_serialize( - app_id=app_id, + application_id=application_id, service_id=service_id, name_filter=name_filter, window_size=window_size, @@ -583,16 +556,9 @@ def get_application_services( _host_index=_host_index ) - # Determine response type based on parameters - if app_id and service_id: - _response_types_map: Dict[str, Optional[str]] = { - '200': "Service", - } - else: - _response_types_map: Dict[str, Optional[str]] = { - '200': "ServiceResult", - } - + _response_types_map: Dict[str, Optional[str]] = { + '200': "ServiceResult", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -607,8 +573,8 @@ def get_application_services( @validate_call def get_application_services_with_http_info( self, - app_id: Annotated[Optional[StrictStr], Field(description="Application ID")] = None, - service_id: Annotated[Optional[StrictStr], Field(description="Service ID")] = None, + application_id: StrictStr, + service_id: StrictStr, name_filter: Annotated[Optional[StrictStr], Field(description="Name of service (partial match allowed)")] = None, window_size: Annotated[Optional[StrictInt], Field(description="Size of time window in milliseconds")] = None, to: Annotated[Optional[StrictInt], Field(description="Timestamp since Unix Epoch in milliseconds of the end of the time window")] = None, @@ -628,14 +594,14 @@ def get_application_services_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Union[ApiResponse[ServiceResult], ApiResponse[Service]]: + ) -> ApiResponse[ServiceResult]: """Get applications/services Use this API endpoint if one wants to retrieve a list of services in an Application Perspective. A use case could be to retrieve all service ids present in an Application Perspective. For more information on Application Resources please access the https://developer.ibm.com/apis/catalog/instana--instana-rest-api/Applications#application-resources. - :param app_id: Application ID (optional, used to filter services by application) - :type app_id: str - :param service_id: Service ID (optional, used to filter specific service) + :param application_id: (required) + :type application_id: str + :param service_id: (required) :type service_id: str :param name_filter: Name of service (partial match allowed) :type name_filter: str @@ -674,7 +640,7 @@ def get_application_services_with_http_info( """ # noqa: E501 _param = self._get_application_services_serialize( - app_id=app_id, + application_id=application_id, service_id=service_id, name_filter=name_filter, window_size=window_size, @@ -689,16 +655,9 @@ def get_application_services_with_http_info( _host_index=_host_index ) - # Determine response type based on parameters - if app_id and service_id: - _response_types_map: Dict[str, Optional[str]] = { - '200': "Service", - } - else: - _response_types_map: Dict[str, Optional[str]] = { - '200': "ServiceResult", - } - + _response_types_map: Dict[str, Optional[str]] = { + '200': "ServiceResult", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -713,8 +672,8 @@ def get_application_services_with_http_info( @validate_call def get_application_services_without_preload_content( self, - app_id: Annotated[Optional[StrictStr], Field(description="Application ID")] = None, - service_id: Annotated[Optional[StrictStr], Field(description="Service ID")] = None, + application_id: StrictStr, + service_id: StrictStr, name_filter: Annotated[Optional[StrictStr], Field(description="Name of service (partial match allowed)")] = None, window_size: Annotated[Optional[StrictInt], Field(description="Size of time window in milliseconds")] = None, to: Annotated[Optional[StrictInt], Field(description="Timestamp since Unix Epoch in milliseconds of the end of the time window")] = None, @@ -739,9 +698,9 @@ def get_application_services_without_preload_content( Use this API endpoint if one wants to retrieve a list of services in an Application Perspective. A use case could be to retrieve all service ids present in an Application Perspective. For more information on Application Resources please access the https://developer.ibm.com/apis/catalog/instana--instana-rest-api/Applications#application-resources. - :param app_id: Application ID (optional, used to filter services by application) - :type app_id: str - :param service_id: Service ID (optional, used to filter specific service) + :param application_id: (required) + :type application_id: str + :param service_id: (required) :type service_id: str :param name_filter: Name of service (partial match allowed) :type name_filter: str @@ -780,7 +739,7 @@ def get_application_services_without_preload_content( """ # noqa: E501 _param = self._get_application_services_serialize( - app_id=app_id, + application_id=application_id, service_id=service_id, name_filter=name_filter, window_size=window_size, @@ -795,16 +754,9 @@ def get_application_services_without_preload_content( _host_index=_host_index ) - # Determine response type based on parameters - if app_id and service_id: - _response_types_map: Dict[str, Optional[str]] = { - '200': "Service", - } - else: - _response_types_map: Dict[str, Optional[str]] = { - '200': "ServiceResult", - } - + _response_types_map: Dict[str, Optional[str]] = { + '200': "ServiceResult", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -814,7 +766,7 @@ def get_application_services_without_preload_content( def _get_application_services_serialize( self, - app_id, + application_id, service_id, name_filter, window_size, @@ -844,6 +796,10 @@ def _get_application_services_serialize( _body_params: Optional[bytes] = None # process the path parameters + if application_id is not None: + _path_params['applicationId'] = application_id + if service_id is not None: + _path_params['serviceId'] = service_id # process the query parameters if name_filter is not None: @@ -887,14 +843,6 @@ def _get_application_services_serialize( ) - # Build dynamic resource path based on app_id and service_id - if app_id and service_id: - resource_path = f'/api/application-monitoring/applications;id={app_id}/services;id={service_id}' - elif app_id: - resource_path = f'/api/application-monitoring/applications;id={app_id}/services' - else: - resource_path = '/api/application-monitoring/applications/services' - # authentication setting _auth_settings: List[str] = [ 'ApiKeyAuth' @@ -902,7 +850,7 @@ def _get_application_services_serialize( return self.api_client.param_serialize( method='GET', - resource_path=resource_path, + resource_path='/api/application-monitoring/applications;id={applicationId}/services;id={serviceId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/instana_client/api/application_settings_api.py b/instana_client/api/application_settings_api.py index 6190859..34ab531 100644 --- a/instana_client/api/application_settings_api.py +++ b/instana_client/api/application_settings_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/application_topology_api.py b/instana_client/api/application_topology_api.py index 7a947d2..0e3b8f6 100644 --- a/instana_client/api/application_topology_api.py +++ b/instana_client/api/application_topology_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/audit_log_api.py b/instana_client/api/audit_log_api.py index 86e10dc..e3dc800 100644 --- a/instana_client/api/audit_log_api.py +++ b/instana_client/api/audit_log_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/authentication_api.py b/instana_client/api/authentication_api.py index 1d0a3ab..6c02ce6 100644 --- a/instana_client/api/authentication_api.py +++ b/instana_client/api/authentication_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -17,6 +17,8 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from typing import Optional +from instana_client.models.idp_status_update import IdpStatusUpdate from instana_client.api_client import ApiClient, RequestSerialized from instana_client.api_response import ApiResponse @@ -990,3 +992,273 @@ def _delete_saml_config_serialize( ) + + + @validate_call + def set_idp_enabled_status( + self, + idp_status_update: Optional[IdpStatusUpdate] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Enable or disable IdP configuration + + Enable or disable the identity provider (IdP) configuration for the tenant. This allows temporary deactivation of IdP authentication while preserving the configuration. + + :param idp_status_update: + :type idp_status_update: IdpStatusUpdate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_idp_enabled_status_serialize( + idp_status_update=idp_status_update, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def set_idp_enabled_status_with_http_info( + self, + idp_status_update: Optional[IdpStatusUpdate] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Enable or disable IdP configuration + + Enable or disable the identity provider (IdP) configuration for the tenant. This allows temporary deactivation of IdP authentication while preserving the configuration. + + :param idp_status_update: + :type idp_status_update: IdpStatusUpdate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_idp_enabled_status_serialize( + idp_status_update=idp_status_update, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def set_idp_enabled_status_without_preload_content( + self, + idp_status_update: Optional[IdpStatusUpdate] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Enable or disable IdP configuration + + Enable or disable the identity provider (IdP) configuration for the tenant. This allows temporary deactivation of IdP authentication while preserving the configuration. + + :param idp_status_update: + :type idp_status_update: IdpStatusUpdate + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_idp_enabled_status_serialize( + idp_status_update=idp_status_update, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _set_idp_enabled_status_serialize( + self, + idp_status_update, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if idp_status_update is not None: + _body_params = idp_status_update + + + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/api/settings/authentication/idp/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/instana_client/api/business_monitoring_api.py b/instana_client/api/business_monitoring_api.py index 264d4a1..1154577 100644 --- a/instana_client/api/business_monitoring_api.py +++ b/instana_client/api/business_monitoring_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/custom_dashboards_api.py b/instana_client/api/custom_dashboards_api.py index 550b127..8bbced8 100644 --- a/instana_client/api/custom_dashboards_api.py +++ b/instana_client/api/custom_dashboards_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/custom_entities_api.py b/instana_client/api/custom_entities_api.py index 3d68834..6408e3e 100644 --- a/instana_client/api/custom_entities_api.py +++ b/instana_client/api/custom_entities_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/default_api.py b/instana_client/api/default_api.py new file mode 100644 index 0000000..a2cd5a9 --- /dev/null +++ b/instana_client/api/default_api.py @@ -0,0 +1,602 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictBool, StrictInt, StrictStr +from typing import Optional +from typing_extensions import Annotated + +from instana_client.api_client import ApiClient, RequestSerialized +from instana_client.api_response import ApiResponse +from instana_client.rest import RESTResponseType + + +class DefaultApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_internal_custom_dashboards( + self, + query: Annotated[Optional[StrictStr], Field(description="query")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="pageSize")] = None, + page: Annotated[Optional[StrictInt], Field(description="page")] = None, + with_total_hits: Annotated[Optional[StrictBool], Field(description="withTotalHits")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """get_internal_custom_dashboards + + + :param query: query + :type query: str + :param page_size: pageSize + :type page_size: int + :param page: page + :type page: int + :param with_total_hits: withTotalHits + :type with_total_hits: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_internal_custom_dashboards_serialize( + query=query, + page_size=page_size, + page=page, + with_total_hits=with_total_hits, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_internal_custom_dashboards_with_http_info( + self, + query: Annotated[Optional[StrictStr], Field(description="query")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="pageSize")] = None, + page: Annotated[Optional[StrictInt], Field(description="page")] = None, + with_total_hits: Annotated[Optional[StrictBool], Field(description="withTotalHits")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """get_internal_custom_dashboards + + + :param query: query + :type query: str + :param page_size: pageSize + :type page_size: int + :param page: page + :type page: int + :param with_total_hits: withTotalHits + :type with_total_hits: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_internal_custom_dashboards_serialize( + query=query, + page_size=page_size, + page=page, + with_total_hits=with_total_hits, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_internal_custom_dashboards_without_preload_content( + self, + query: Annotated[Optional[StrictStr], Field(description="query")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="pageSize")] = None, + page: Annotated[Optional[StrictInt], Field(description="page")] = None, + with_total_hits: Annotated[Optional[StrictBool], Field(description="withTotalHits")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_internal_custom_dashboards + + + :param query: query + :type query: str + :param page_size: pageSize + :type page_size: int + :param page: page + :type page: int + :param with_total_hits: withTotalHits + :type with_total_hits: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_internal_custom_dashboards_serialize( + query=query, + page_size=page_size, + page=page, + with_total_hits=with_total_hits, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_internal_custom_dashboards_serialize( + self, + query, + page_size, + page, + with_total_hits, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if query is not None: + + _query_params.append(('query', query)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + if page is not None: + + _query_params.append(('page', page)) + + if with_total_hits is not None: + + _query_params.append(('withTotalHits', with_total_hits)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/internal/custom-dashboard', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_internal_dashboard( + self, + dashboard_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """get_internal_dashboard + + + :param dashboard_id: (required) + :type dashboard_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_internal_dashboard_serialize( + dashboard_id=dashboard_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_internal_dashboard_with_http_info( + self, + dashboard_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """get_internal_dashboard + + + :param dashboard_id: (required) + :type dashboard_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_internal_dashboard_serialize( + dashboard_id=dashboard_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_internal_dashboard_without_preload_content( + self, + dashboard_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_internal_dashboard + + + :param dashboard_id: (required) + :type dashboard_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_internal_dashboard_serialize( + dashboard_id=dashboard_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_internal_dashboard_serialize( + self, + dashboard_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if dashboard_id is not None: + _path_params['dashboardId'] = dashboard_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/internal/custom-dashboard/{dashboardId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/instana_client/api/end_user_monitoring_api.py b/instana_client/api/end_user_monitoring_api.py index b090cac..7f2d107 100644 --- a/instana_client/api/end_user_monitoring_api.py +++ b/instana_client/api/end_user_monitoring_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/event_settings_api.py b/instana_client/api/event_settings_api.py index 3560bd9..a9372b2 100644 --- a/instana_client/api/event_settings_api.py +++ b/instana_client/api/event_settings_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,13 +37,15 @@ from instana_client.models.manual_alerting_channel_configuration import ManualAlertingChannelConfiguration from instana_client.models.manual_close_info import ManualCloseInfo from instana_client.models.mobile_app_alert_config import MobileAppAlertConfig +from instana_client.models.mobile_app_alert_config_with_rbac_tag import MobileAppAlertConfigWithRBACTag from instana_client.models.system_rule_label import SystemRuleLabel from instana_client.models.tag_catalog import TagCatalog from instana_client.models.validated_alerting_channel_input_info import ValidatedAlertingChannelInputInfo from instana_client.models.validated_alerting_configuration import ValidatedAlertingConfiguration from instana_client.models.website_alert_config import WebsiteAlertConfig from instana_client.models.website_alert_config_with_metadata import WebsiteAlertConfigWithMetadata -from instana_client.models.with_metadata import WithMetadata +from instana_client.models.website_alert_config_with_rbac_tag import WebsiteAlertConfigWithRBACTag +from instana_client.models.with_meta_data import WithMetaData from instana_client.api_client import ApiClient, RequestSerialized from instana_client.api_response import ApiResponse @@ -64,9 +66,9 @@ def __init__(self, api_client=None) -> None: @validate_call - def create_mobile_app_alert_config( + def bulk_delete_mobile_app_alert_configs( self, - mobile_app_alert_config: MobileAppAlertConfig, + request_body: List[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -79,13 +81,13 @@ def create_mobile_app_alert_config( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> WithMetadata: - """Create Mobile Smart Alert Config + ) -> None: + """Bulk delete Mobile Smart Alert Configs - Creates a new Mobile Smart Alert Configuration. + Deletes multiple Mobile Smart Alert Configurations in a single request. - :param mobile_app_alert_config: (required) - :type mobile_app_alert_config: MobileAppAlertConfig + :param request_body: (required) + :type request_body: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -108,8 +110,8 @@ def create_mobile_app_alert_config( :return: Returns the result object. """ # noqa: E501 - _param = self._create_mobile_app_alert_config_serialize( - mobile_app_alert_config=mobile_app_alert_config, + _param = self._bulk_delete_mobile_app_alert_configs_serialize( + request_body=request_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -117,10 +119,9 @@ def create_mobile_app_alert_config( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "WithMetadata", + '204': None, '400': None, '403': None, - '422': None, } response_data = self.api_client.call_api( *_param, @@ -134,9 +135,9 @@ def create_mobile_app_alert_config( @validate_call - def create_mobile_app_alert_config_with_http_info( + def bulk_delete_mobile_app_alert_configs_with_http_info( self, - mobile_app_alert_config: MobileAppAlertConfig, + request_body: List[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -149,13 +150,13 @@ def create_mobile_app_alert_config_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[WithMetadata]: - """Create Mobile Smart Alert Config + ) -> ApiResponse[None]: + """Bulk delete Mobile Smart Alert Configs - Creates a new Mobile Smart Alert Configuration. + Deletes multiple Mobile Smart Alert Configurations in a single request. - :param mobile_app_alert_config: (required) - :type mobile_app_alert_config: MobileAppAlertConfig + :param request_body: (required) + :type request_body: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -178,8 +179,8 @@ def create_mobile_app_alert_config_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_mobile_app_alert_config_serialize( - mobile_app_alert_config=mobile_app_alert_config, + _param = self._bulk_delete_mobile_app_alert_configs_serialize( + request_body=request_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -187,10 +188,9 @@ def create_mobile_app_alert_config_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "WithMetadata", + '204': None, '400': None, '403': None, - '422': None, } response_data = self.api_client.call_api( *_param, @@ -204,9 +204,9 @@ def create_mobile_app_alert_config_with_http_info( @validate_call - def create_mobile_app_alert_config_without_preload_content( + def bulk_delete_mobile_app_alert_configs_without_preload_content( self, - mobile_app_alert_config: MobileAppAlertConfig, + request_body: List[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -220,12 +220,12 @@ def create_mobile_app_alert_config_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create Mobile Smart Alert Config + """Bulk delete Mobile Smart Alert Configs - Creates a new Mobile Smart Alert Configuration. + Deletes multiple Mobile Smart Alert Configurations in a single request. - :param mobile_app_alert_config: (required) - :type mobile_app_alert_config: MobileAppAlertConfig + :param request_body: (required) + :type request_body: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -248,8 +248,8 @@ def create_mobile_app_alert_config_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_mobile_app_alert_config_serialize( - mobile_app_alert_config=mobile_app_alert_config, + _param = self._bulk_delete_mobile_app_alert_configs_serialize( + request_body=request_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -257,10 +257,9 @@ def create_mobile_app_alert_config_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "WithMetadata", + '204': None, '400': None, '403': None, - '422': None, } response_data = self.api_client.call_api( *_param, @@ -269,9 +268,9 @@ def create_mobile_app_alert_config_without_preload_content( return response_data.response - def _create_mobile_app_alert_config_serialize( + def _bulk_delete_mobile_app_alert_configs_serialize( self, - mobile_app_alert_config, + request_body, _request_auth, _content_type, _headers, @@ -281,6 +280,7 @@ def _create_mobile_app_alert_config_serialize( _host = None _collection_formats: Dict[str, str] = { + 'request_body': '', } _path_params: Dict[str, str] = {} @@ -297,17 +297,10 @@ def _create_mobile_app_alert_config_serialize( # process the header parameters # process the form parameters # process the body parameter - if mobile_app_alert_config is not None: - _body_params = mobile_app_alert_config + if request_body is not None: + _body_params = request_body - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) # set the HTTP header `Content-Type` if _content_type: @@ -329,8 +322,8 @@ def _create_mobile_app_alert_config_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/api/events/settings/mobile-app-alert-configs', + method='PUT', + resource_path='/api/events/settings/mobile-app-alert-configs/bulk/delete', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -347,9 +340,9 @@ def _create_mobile_app_alert_config_serialize( @validate_call - def create_website_alert_config( + def bulk_delete_website_alert_configs( self, - website_alert_config: WebsiteAlertConfig, + body: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -362,13 +355,13 @@ def create_website_alert_config( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> WebsiteAlertConfigWithMetadata: - """Create Website Smart Alert Config + ) -> None: + """Bulk Delete Website Smart Alert Configs - Creates a new Website Smart Alert Configuration. + Deletes multiple website alert configurations. Creates new revisions for all specified alerts with deleted=true. All revisions share the same timestamp. Maximum 1000 IDs per request. - :param website_alert_config: (required) - :type website_alert_config: WebsiteAlertConfig + :param body: (required) + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -391,8 +384,8 @@ def create_website_alert_config( :return: Returns the result object. """ # noqa: E501 - _param = self._create_website_alert_config_serialize( - website_alert_config=website_alert_config, + _param = self._bulk_delete_website_alert_configs_serialize( + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -400,11 +393,9 @@ def create_website_alert_config( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "WebsiteAlertConfigWithMetadata", + '204': None, '400': None, '403': None, - '422': None, - '428': None, } response_data = self.api_client.call_api( *_param, @@ -418,9 +409,9 @@ def create_website_alert_config( @validate_call - def create_website_alert_config_with_http_info( + def bulk_delete_website_alert_configs_with_http_info( self, - website_alert_config: WebsiteAlertConfig, + body: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -433,13 +424,13 @@ def create_website_alert_config_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[WebsiteAlertConfigWithMetadata]: - """Create Website Smart Alert Config + ) -> ApiResponse[None]: + """Bulk Delete Website Smart Alert Configs - Creates a new Website Smart Alert Configuration. + Deletes multiple website alert configurations. Creates new revisions for all specified alerts with deleted=true. All revisions share the same timestamp. Maximum 1000 IDs per request. - :param website_alert_config: (required) - :type website_alert_config: WebsiteAlertConfig + :param body: (required) + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -462,8 +453,8 @@ def create_website_alert_config_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_website_alert_config_serialize( - website_alert_config=website_alert_config, + _param = self._bulk_delete_website_alert_configs_serialize( + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -471,11 +462,9 @@ def create_website_alert_config_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "WebsiteAlertConfigWithMetadata", + '204': None, '400': None, '403': None, - '422': None, - '428': None, } response_data = self.api_client.call_api( *_param, @@ -489,9 +478,9 @@ def create_website_alert_config_with_http_info( @validate_call - def create_website_alert_config_without_preload_content( + def bulk_delete_website_alert_configs_without_preload_content( self, - website_alert_config: WebsiteAlertConfig, + body: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -505,12 +494,12 @@ def create_website_alert_config_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create Website Smart Alert Config + """Bulk Delete Website Smart Alert Configs - Creates a new Website Smart Alert Configuration. + Deletes multiple website alert configurations. Creates new revisions for all specified alerts with deleted=true. All revisions share the same timestamp. Maximum 1000 IDs per request. - :param website_alert_config: (required) - :type website_alert_config: WebsiteAlertConfig + :param body: (required) + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -533,8 +522,8 @@ def create_website_alert_config_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_website_alert_config_serialize( - website_alert_config=website_alert_config, + _param = self._bulk_delete_website_alert_configs_serialize( + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -542,11 +531,9 @@ def create_website_alert_config_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "WebsiteAlertConfigWithMetadata", + '204': None, '400': None, '403': None, - '422': None, - '428': None, } response_data = self.api_client.call_api( *_param, @@ -555,9 +542,9 @@ def create_website_alert_config_without_preload_content( return response_data.response - def _create_website_alert_config_serialize( + def _bulk_delete_website_alert_configs_serialize( self, - website_alert_config, + body, _request_auth, _content_type, _headers, @@ -583,17 +570,10 @@ def _create_website_alert_config_serialize( # process the header parameters # process the form parameters # process the body parameter - if website_alert_config is not None: - _body_params = website_alert_config + if body is not None: + _body_params = body - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) # set the HTTP header `Content-Type` if _content_type: @@ -615,8 +595,8 @@ def _create_website_alert_config_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/api/events/settings/website-alert-configs', + method='PUT', + resource_path='/api/events/settings/website-alert-configs/bulk/delete', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -633,9 +613,9 @@ def _create_website_alert_config_serialize( @validate_call - def delete_alert( + def bulk_disable_mobile_app_alert_configs( self, - id: Annotated[StrictStr, Field(description="ID of a specific Alert Configuration to delete.")], + request_body: List[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -649,12 +629,12 @@ def delete_alert( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """Delete Alert Configuration + """Bulk disable Mobile Smart Alert Configs - Delete a specific Alert Configuration by ID + Disables multiple Mobile Smart Alert Configurations in a single request. - :param id: ID of a specific Alert Configuration to delete. (required) - :type id: str + :param request_body: (required) + :type request_body: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -677,8 +657,8 @@ def delete_alert( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_alert_serialize( - id=id, + _param = self._bulk_disable_mobile_app_alert_configs_serialize( + request_body=request_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -687,7 +667,8 @@ def delete_alert( _response_types_map: Dict[str, Optional[str]] = { '204': None, - '401': None, + '400': None, + '403': None, } response_data = self.api_client.call_api( *_param, @@ -701,9 +682,9 @@ def delete_alert( @validate_call - def delete_alert_with_http_info( + def bulk_disable_mobile_app_alert_configs_with_http_info( self, - id: Annotated[StrictStr, Field(description="ID of a specific Alert Configuration to delete.")], + request_body: List[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -717,12 +698,12 @@ def delete_alert_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """Delete Alert Configuration + """Bulk disable Mobile Smart Alert Configs - Delete a specific Alert Configuration by ID + Disables multiple Mobile Smart Alert Configurations in a single request. - :param id: ID of a specific Alert Configuration to delete. (required) - :type id: str + :param request_body: (required) + :type request_body: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -745,8 +726,8 @@ def delete_alert_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_alert_serialize( - id=id, + _param = self._bulk_disable_mobile_app_alert_configs_serialize( + request_body=request_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -755,7 +736,8 @@ def delete_alert_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '204': None, - '401': None, + '400': None, + '403': None, } response_data = self.api_client.call_api( *_param, @@ -769,9 +751,9 @@ def delete_alert_with_http_info( @validate_call - def delete_alert_without_preload_content( + def bulk_disable_mobile_app_alert_configs_without_preload_content( self, - id: Annotated[StrictStr, Field(description="ID of a specific Alert Configuration to delete.")], + request_body: List[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -785,12 +767,12 @@ def delete_alert_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Delete Alert Configuration + """Bulk disable Mobile Smart Alert Configs - Delete a specific Alert Configuration by ID + Disables multiple Mobile Smart Alert Configurations in a single request. - :param id: ID of a specific Alert Configuration to delete. (required) - :type id: str + :param request_body: (required) + :type request_body: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -813,8 +795,8 @@ def delete_alert_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_alert_serialize( - id=id, + _param = self._bulk_disable_mobile_app_alert_configs_serialize( + request_body=request_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -823,7 +805,8 @@ def delete_alert_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '204': None, - '401': None, + '400': None, + '403': None, } response_data = self.api_client.call_api( *_param, @@ -832,9 +815,9 @@ def delete_alert_without_preload_content( return response_data.response - def _delete_alert_serialize( + def _bulk_disable_mobile_app_alert_configs_serialize( self, - id, + request_body, _request_auth, _content_type, _headers, @@ -844,6 +827,7 @@ def _delete_alert_serialize( _host = None _collection_formats: Dict[str, str] = { + 'request_body': '', } _path_params: Dict[str, str] = {} @@ -856,15 +840,28 @@ def _delete_alert_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if request_body is not None: + _body_params = request_body + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -872,8 +869,8 @@ def _delete_alert_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/api/events/settings/alerts/{id}', + method='PUT', + resource_path='/api/events/settings/mobile-app-alert-configs/bulk/disable', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -890,9 +887,9 @@ def _delete_alert_serialize( @validate_call - def delete_alerting_channel( + def bulk_disable_website_alert_configs( self, - id: Annotated[StrictStr, Field(description="ID of the Alerting Channel to delete.")], + body: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -906,12 +903,12 @@ def delete_alerting_channel( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """Delete Alerting Channel + """Bulk Disable Website Smart Alert Configs - Deletes an alert channel. Requires the permission called CanConfigureIntegrations. + Disables multiple website alert configurations. Creates new revisions for all specified alerts with enabled=false. All revisions share the same timestamp. Maximum 1000 IDs per request. - :param id: ID of the Alerting Channel to delete. (required) - :type id: str + :param body: (required) + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -934,8 +931,8 @@ def delete_alerting_channel( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_alerting_channel_serialize( - id=id, + _param = self._bulk_disable_website_alert_configs_serialize( + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -944,6 +941,8 @@ def delete_alerting_channel( _response_types_map: Dict[str, Optional[str]] = { '204': None, + '400': None, + '403': None, } response_data = self.api_client.call_api( *_param, @@ -957,9 +956,9 @@ def delete_alerting_channel( @validate_call - def delete_alerting_channel_with_http_info( + def bulk_disable_website_alert_configs_with_http_info( self, - id: Annotated[StrictStr, Field(description="ID of the Alerting Channel to delete.")], + body: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -973,12 +972,12 @@ def delete_alerting_channel_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """Delete Alerting Channel + """Bulk Disable Website Smart Alert Configs - Deletes an alert channel. Requires the permission called CanConfigureIntegrations. + Disables multiple website alert configurations. Creates new revisions for all specified alerts with enabled=false. All revisions share the same timestamp. Maximum 1000 IDs per request. - :param id: ID of the Alerting Channel to delete. (required) - :type id: str + :param body: (required) + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1001,8 +1000,8 @@ def delete_alerting_channel_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_alerting_channel_serialize( - id=id, + _param = self._bulk_disable_website_alert_configs_serialize( + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1011,6 +1010,8 @@ def delete_alerting_channel_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '204': None, + '400': None, + '403': None, } response_data = self.api_client.call_api( *_param, @@ -1024,9 +1025,9 @@ def delete_alerting_channel_with_http_info( @validate_call - def delete_alerting_channel_without_preload_content( + def bulk_disable_website_alert_configs_without_preload_content( self, - id: Annotated[StrictStr, Field(description="ID of the Alerting Channel to delete.")], + body: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1040,12 +1041,12 @@ def delete_alerting_channel_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Delete Alerting Channel + """Bulk Disable Website Smart Alert Configs - Deletes an alert channel. Requires the permission called CanConfigureIntegrations. + Disables multiple website alert configurations. Creates new revisions for all specified alerts with enabled=false. All revisions share the same timestamp. Maximum 1000 IDs per request. - :param id: ID of the Alerting Channel to delete. (required) - :type id: str + :param body: (required) + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1068,8 +1069,8 @@ def delete_alerting_channel_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_alerting_channel_serialize( - id=id, + _param = self._bulk_disable_website_alert_configs_serialize( + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1078,6 +1079,8 @@ def delete_alerting_channel_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '204': None, + '400': None, + '403': None, } response_data = self.api_client.call_api( *_param, @@ -1086,9 +1089,9 @@ def delete_alerting_channel_without_preload_content( return response_data.response - def _delete_alerting_channel_serialize( + def _bulk_disable_website_alert_configs_serialize( self, - id, + body, _request_auth, _content_type, _headers, @@ -1110,15 +1113,28 @@ def _delete_alerting_channel_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -1126,8 +1142,8 @@ def _delete_alerting_channel_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/api/events/settings/alertingChannels/{id}', + method='PUT', + resource_path='/api/events/settings/website-alert-configs/bulk/disable', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1144,9 +1160,9 @@ def _delete_alerting_channel_serialize( @validate_call - def delete_built_in_event_specification( + def bulk_enable_mobile_app_alert_configs( self, - event_specification_id: StrictStr, + request_body: List[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1160,11 +1176,12 @@ def delete_built_in_event_specification( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """Delete built-in event specification + """Bulk enable Mobile Smart Alert Configs + Enables multiple Mobile Smart Alert Configurations in a single request. - :param event_specification_id: (required) - :type event_specification_id: str + :param request_body: (required) + :type request_body: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1187,8 +1204,8 @@ def delete_built_in_event_specification( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_built_in_event_specification_serialize( - event_specification_id=event_specification_id, + _param = self._bulk_enable_mobile_app_alert_configs_serialize( + request_body=request_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1197,7 +1214,7 @@ def delete_built_in_event_specification( _response_types_map: Dict[str, Optional[str]] = { '204': None, - '401': None, + '400': None, '403': None, } response_data = self.api_client.call_api( @@ -1212,9 +1229,9 @@ def delete_built_in_event_specification( @validate_call - def delete_built_in_event_specification_with_http_info( + def bulk_enable_mobile_app_alert_configs_with_http_info( self, - event_specification_id: StrictStr, + request_body: List[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1228,11 +1245,12 @@ def delete_built_in_event_specification_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """Delete built-in event specification + """Bulk enable Mobile Smart Alert Configs + Enables multiple Mobile Smart Alert Configurations in a single request. - :param event_specification_id: (required) - :type event_specification_id: str + :param request_body: (required) + :type request_body: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1255,8 +1273,8 @@ def delete_built_in_event_specification_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_built_in_event_specification_serialize( - event_specification_id=event_specification_id, + _param = self._bulk_enable_mobile_app_alert_configs_serialize( + request_body=request_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1265,7 +1283,7 @@ def delete_built_in_event_specification_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '204': None, - '401': None, + '400': None, '403': None, } response_data = self.api_client.call_api( @@ -1280,9 +1298,9 @@ def delete_built_in_event_specification_with_http_info( @validate_call - def delete_built_in_event_specification_without_preload_content( + def bulk_enable_mobile_app_alert_configs_without_preload_content( self, - event_specification_id: StrictStr, + request_body: List[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1296,11 +1314,12 @@ def delete_built_in_event_specification_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Delete built-in event specification + """Bulk enable Mobile Smart Alert Configs + Enables multiple Mobile Smart Alert Configurations in a single request. - :param event_specification_id: (required) - :type event_specification_id: str + :param request_body: (required) + :type request_body: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1323,8 +1342,8 @@ def delete_built_in_event_specification_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_built_in_event_specification_serialize( - event_specification_id=event_specification_id, + _param = self._bulk_enable_mobile_app_alert_configs_serialize( + request_body=request_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1333,7 +1352,7 @@ def delete_built_in_event_specification_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '204': None, - '401': None, + '400': None, '403': None, } response_data = self.api_client.call_api( @@ -1343,9 +1362,9 @@ def delete_built_in_event_specification_without_preload_content( return response_data.response - def _delete_built_in_event_specification_serialize( + def _bulk_enable_mobile_app_alert_configs_serialize( self, - event_specification_id, + request_body, _request_auth, _content_type, _headers, @@ -1355,6 +1374,7 @@ def _delete_built_in_event_specification_serialize( _host = None _collection_formats: Dict[str, str] = { + 'request_body': '', } _path_params: Dict[str, str] = {} @@ -1367,15 +1387,28 @@ def _delete_built_in_event_specification_serialize( _body_params: Optional[bytes] = None # process the path parameters - if event_specification_id is not None: - _path_params['eventSpecificationId'] = event_specification_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if request_body is not None: + _body_params = request_body + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -1383,8 +1416,8 @@ def _delete_built_in_event_specification_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/api/events/settings/event-specifications/built-in/{eventSpecificationId}', + method='PUT', + resource_path='/api/events/settings/mobile-app-alert-configs/bulk/enable', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1401,9 +1434,9 @@ def _delete_built_in_event_specification_serialize( @validate_call - def delete_custom_event_specification( + def bulk_enable_website_alert_configs( self, - event_specification_id: StrictStr, + body: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1417,11 +1450,12 @@ def delete_custom_event_specification( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """Delete custom event specification + """Bulk Enable Website Smart Alert Configs + Enables multiple website alert configurations. Creates new revisions for all specified alerts with enabled=true. All revisions share the same timestamp. Maximum 1000 IDs per request. - :param event_specification_id: (required) - :type event_specification_id: str + :param body: (required) + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1444,8 +1478,8 @@ def delete_custom_event_specification( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_custom_event_specification_serialize( - event_specification_id=event_specification_id, + _param = self._bulk_enable_website_alert_configs_serialize( + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1454,7 +1488,7 @@ def delete_custom_event_specification( _response_types_map: Dict[str, Optional[str]] = { '204': None, - '401': None, + '400': None, '403': None, } response_data = self.api_client.call_api( @@ -1469,9 +1503,9 @@ def delete_custom_event_specification( @validate_call - def delete_custom_event_specification_with_http_info( + def bulk_enable_website_alert_configs_with_http_info( self, - event_specification_id: StrictStr, + body: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1485,11 +1519,12 @@ def delete_custom_event_specification_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """Delete custom event specification + """Bulk Enable Website Smart Alert Configs + Enables multiple website alert configurations. Creates new revisions for all specified alerts with enabled=true. All revisions share the same timestamp. Maximum 1000 IDs per request. - :param event_specification_id: (required) - :type event_specification_id: str + :param body: (required) + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1512,8 +1547,8 @@ def delete_custom_event_specification_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_custom_event_specification_serialize( - event_specification_id=event_specification_id, + _param = self._bulk_enable_website_alert_configs_serialize( + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1522,7 +1557,7 @@ def delete_custom_event_specification_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '204': None, - '401': None, + '400': None, '403': None, } response_data = self.api_client.call_api( @@ -1537,9 +1572,9 @@ def delete_custom_event_specification_with_http_info( @validate_call - def delete_custom_event_specification_without_preload_content( + def bulk_enable_website_alert_configs_without_preload_content( self, - event_specification_id: StrictStr, + body: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1553,11 +1588,12 @@ def delete_custom_event_specification_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Delete custom event specification + """Bulk Enable Website Smart Alert Configs + Enables multiple website alert configurations. Creates new revisions for all specified alerts with enabled=true. All revisions share the same timestamp. Maximum 1000 IDs per request. - :param event_specification_id: (required) - :type event_specification_id: str + :param body: (required) + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1580,8 +1616,8 @@ def delete_custom_event_specification_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_custom_event_specification_serialize( - event_specification_id=event_specification_id, + _param = self._bulk_enable_website_alert_configs_serialize( + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1590,7 +1626,7 @@ def delete_custom_event_specification_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '204': None, - '401': None, + '400': None, '403': None, } response_data = self.api_client.call_api( @@ -1600,9 +1636,9 @@ def delete_custom_event_specification_without_preload_content( return response_data.response - def _delete_custom_event_specification_serialize( + def _bulk_enable_website_alert_configs_serialize( self, - event_specification_id, + body, _request_auth, _content_type, _headers, @@ -1624,15 +1660,28 @@ def _delete_custom_event_specification_serialize( _body_params: Optional[bytes] = None # process the path parameters - if event_specification_id is not None: - _path_params['eventSpecificationId'] = event_specification_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -1640,8 +1689,8 @@ def _delete_custom_event_specification_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/api/events/settings/event-specifications/custom/{eventSpecificationId}', + method='PUT', + resource_path='/api/events/settings/website-alert-configs/bulk/enable', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1658,8 +1707,9 @@ def _delete_custom_event_specification_serialize( @validate_call - def delete_custom_payload_configuration( + def create_mobile_app_alert_config( self, + mobile_app_alert_config: MobileAppAlertConfig, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1672,11 +1722,13 @@ def delete_custom_payload_configuration( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """Delete Custom Payload Configuration + ) -> WithMetaData: + """Create Mobile Smart Alert Config - Deletes a Global Custom Payload Configuration. + Creates a new Mobile Smart Alert Configuration. + :param mobile_app_alert_config: (required) + :type mobile_app_alert_config: MobileAppAlertConfig :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1699,7 +1751,8 @@ def delete_custom_payload_configuration( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_custom_payload_configuration_serialize( + _param = self._create_mobile_app_alert_config_serialize( + mobile_app_alert_config=mobile_app_alert_config, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1707,9 +1760,10 @@ def delete_custom_payload_configuration( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '401': None, + '200': "WithMetaData", + '400': None, '403': None, + '422': None, } response_data = self.api_client.call_api( *_param, @@ -1723,8 +1777,9 @@ def delete_custom_payload_configuration( @validate_call - def delete_custom_payload_configuration_with_http_info( + def create_mobile_app_alert_config_with_http_info( self, + mobile_app_alert_config: MobileAppAlertConfig, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1737,11 +1792,13 @@ def delete_custom_payload_configuration_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """Delete Custom Payload Configuration + ) -> ApiResponse[WithMetaData]: + """Create Mobile Smart Alert Config - Deletes a Global Custom Payload Configuration. + Creates a new Mobile Smart Alert Configuration. + :param mobile_app_alert_config: (required) + :type mobile_app_alert_config: MobileAppAlertConfig :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1764,7 +1821,8 @@ def delete_custom_payload_configuration_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_custom_payload_configuration_serialize( + _param = self._create_mobile_app_alert_config_serialize( + mobile_app_alert_config=mobile_app_alert_config, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1772,9 +1830,10 @@ def delete_custom_payload_configuration_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '401': None, + '200': "WithMetaData", + '400': None, '403': None, + '422': None, } response_data = self.api_client.call_api( *_param, @@ -1788,8 +1847,9 @@ def delete_custom_payload_configuration_with_http_info( @validate_call - def delete_custom_payload_configuration_without_preload_content( + def create_mobile_app_alert_config_without_preload_content( self, + mobile_app_alert_config: MobileAppAlertConfig, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1803,10 +1863,12 @@ def delete_custom_payload_configuration_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Delete Custom Payload Configuration + """Create Mobile Smart Alert Config - Deletes a Global Custom Payload Configuration. + Creates a new Mobile Smart Alert Configuration. + :param mobile_app_alert_config: (required) + :type mobile_app_alert_config: MobileAppAlertConfig :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1829,7 +1891,8 @@ def delete_custom_payload_configuration_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_custom_payload_configuration_serialize( + _param = self._create_mobile_app_alert_config_serialize( + mobile_app_alert_config=mobile_app_alert_config, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1837,9 +1900,10 @@ def delete_custom_payload_configuration_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '401': None, + '200': "WithMetaData", + '400': None, '403': None, + '422': None, } response_data = self.api_client.call_api( *_param, @@ -1848,8 +1912,9 @@ def delete_custom_payload_configuration_without_preload_content( return response_data.response - def _delete_custom_payload_configuration_serialize( + def _create_mobile_app_alert_config_serialize( self, + mobile_app_alert_config, _request_auth, _content_type, _headers, @@ -1875,9 +1940,31 @@ def _delete_custom_payload_configuration_serialize( # process the header parameters # process the form parameters # process the body parameter + if mobile_app_alert_config is not None: + _body_params = mobile_app_alert_config + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -1885,8 +1972,8 @@ def _delete_custom_payload_configuration_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/api/events/settings/custom-payload-configurations', + method='POST', + resource_path='/api/events/settings/mobile-app-alert-configs', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1903,9 +1990,9 @@ def _delete_custom_payload_configuration_serialize( @validate_call - def delete_mobile_app_alert_config( + def create_website_alert_config( self, - id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to delete.")], + website_alert_config: WebsiteAlertConfig, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1918,13 +2005,13 @@ def delete_mobile_app_alert_config( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """Delete Mobile Smart Alert Config + ) -> WebsiteAlertConfigWithMetadata: + """Create Website Smart Alert Config - Deletes a Mobile Smart Alert Configuration + Creates a new Website Smart Alert Configuration. - :param id: ID of a specific Mobile Smart Alert Configuration to delete. (required) - :type id: str + :param website_alert_config: (required) + :type website_alert_config: WebsiteAlertConfig :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1947,8 +2034,8 @@ def delete_mobile_app_alert_config( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_mobile_app_alert_config_serialize( - id=id, + _param = self._create_website_alert_config_serialize( + website_alert_config=website_alert_config, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1956,9 +2043,11 @@ def delete_mobile_app_alert_config( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "WebsiteAlertConfigWithMetadata", + '400': None, '403': None, - '404': None, + '422': None, + '428': None, } response_data = self.api_client.call_api( *_param, @@ -1972,9 +2061,9 @@ def delete_mobile_app_alert_config( @validate_call - def delete_mobile_app_alert_config_with_http_info( + def create_website_alert_config_with_http_info( self, - id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to delete.")], + website_alert_config: WebsiteAlertConfig, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1987,13 +2076,13 @@ def delete_mobile_app_alert_config_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """Delete Mobile Smart Alert Config + ) -> ApiResponse[WebsiteAlertConfigWithMetadata]: + """Create Website Smart Alert Config - Deletes a Mobile Smart Alert Configuration + Creates a new Website Smart Alert Configuration. - :param id: ID of a specific Mobile Smart Alert Configuration to delete. (required) - :type id: str + :param website_alert_config: (required) + :type website_alert_config: WebsiteAlertConfig :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2016,8 +2105,8 @@ def delete_mobile_app_alert_config_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_mobile_app_alert_config_serialize( - id=id, + _param = self._create_website_alert_config_serialize( + website_alert_config=website_alert_config, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2025,9 +2114,11 @@ def delete_mobile_app_alert_config_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "WebsiteAlertConfigWithMetadata", + '400': None, '403': None, - '404': None, + '422': None, + '428': None, } response_data = self.api_client.call_api( *_param, @@ -2041,9 +2132,9 @@ def delete_mobile_app_alert_config_with_http_info( @validate_call - def delete_mobile_app_alert_config_without_preload_content( + def create_website_alert_config_without_preload_content( self, - id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to delete.")], + website_alert_config: WebsiteAlertConfig, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2057,12 +2148,12 @@ def delete_mobile_app_alert_config_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Delete Mobile Smart Alert Config + """Create Website Smart Alert Config - Deletes a Mobile Smart Alert Configuration + Creates a new Website Smart Alert Configuration. - :param id: ID of a specific Mobile Smart Alert Configuration to delete. (required) - :type id: str + :param website_alert_config: (required) + :type website_alert_config: WebsiteAlertConfig :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2085,8 +2176,8 @@ def delete_mobile_app_alert_config_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_mobile_app_alert_config_serialize( - id=id, + _param = self._create_website_alert_config_serialize( + website_alert_config=website_alert_config, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2094,9 +2185,11 @@ def delete_mobile_app_alert_config_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "WebsiteAlertConfigWithMetadata", + '400': None, '403': None, - '404': None, + '422': None, + '428': None, } response_data = self.api_client.call_api( *_param, @@ -2105,9 +2198,9 @@ def delete_mobile_app_alert_config_without_preload_content( return response_data.response - def _delete_mobile_app_alert_config_serialize( + def _create_website_alert_config_serialize( self, - id, + website_alert_config, _request_auth, _content_type, _headers, @@ -2129,15 +2222,35 @@ def _delete_mobile_app_alert_config_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if website_alert_config is not None: + _body_params = website_alert_config + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2145,8 +2258,8 @@ def _delete_mobile_app_alert_config_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/api/events/settings/mobile-app-alert-configs/{id}', + method='POST', + resource_path='/api/events/settings/website-alert-configs', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2163,9 +2276,9 @@ def _delete_mobile_app_alert_config_serialize( @validate_call - def delete_website_alert_config( + def delete_alert( self, - id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to delete.")], + id: Annotated[StrictStr, Field(description="ID of a specific Alert Configuration to delete.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2179,11 +2292,11 @@ def delete_website_alert_config( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """Delete Website Smart Alert Config + """Delete Alert Configuration - Deletes a Website Smart Alert Configuration. + Delete a specific Alert Configuration by ID - :param id: ID of a specific Website Smart Alert Configuration to delete. (required) + :param id: ID of a specific Alert Configuration to delete. (required) :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2207,7 +2320,7 @@ def delete_website_alert_config( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_website_alert_config_serialize( + _param = self._delete_alert_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -2217,8 +2330,7 @@ def delete_website_alert_config( _response_types_map: Dict[str, Optional[str]] = { '204': None, - '403': None, - '404': None, + '401': None, } response_data = self.api_client.call_api( *_param, @@ -2232,9 +2344,9 @@ def delete_website_alert_config( @validate_call - def delete_website_alert_config_with_http_info( + def delete_alert_with_http_info( self, - id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to delete.")], + id: Annotated[StrictStr, Field(description="ID of a specific Alert Configuration to delete.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2248,11 +2360,11 @@ def delete_website_alert_config_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """Delete Website Smart Alert Config + """Delete Alert Configuration - Deletes a Website Smart Alert Configuration. + Delete a specific Alert Configuration by ID - :param id: ID of a specific Website Smart Alert Configuration to delete. (required) + :param id: ID of a specific Alert Configuration to delete. (required) :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2276,7 +2388,7 @@ def delete_website_alert_config_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_website_alert_config_serialize( + _param = self._delete_alert_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -2286,8 +2398,7 @@ def delete_website_alert_config_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '204': None, - '403': None, - '404': None, + '401': None, } response_data = self.api_client.call_api( *_param, @@ -2301,9 +2412,9 @@ def delete_website_alert_config_with_http_info( @validate_call - def delete_website_alert_config_without_preload_content( + def delete_alert_without_preload_content( self, - id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to delete.")], + id: Annotated[StrictStr, Field(description="ID of a specific Alert Configuration to delete.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2317,11 +2428,11 @@ def delete_website_alert_config_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Delete Website Smart Alert Config + """Delete Alert Configuration - Deletes a Website Smart Alert Configuration. + Delete a specific Alert Configuration by ID - :param id: ID of a specific Website Smart Alert Configuration to delete. (required) + :param id: ID of a specific Alert Configuration to delete. (required) :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2345,7 +2456,7 @@ def delete_website_alert_config_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_website_alert_config_serialize( + _param = self._delete_alert_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -2355,8 +2466,7 @@ def delete_website_alert_config_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '204': None, - '403': None, - '404': None, + '401': None, } response_data = self.api_client.call_api( *_param, @@ -2365,7 +2475,7 @@ def delete_website_alert_config_without_preload_content( return response_data.response - def _delete_website_alert_config_serialize( + def _delete_alert_serialize( self, id, _request_auth, @@ -2406,7 +2516,7 @@ def _delete_website_alert_config_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/api/events/settings/website-alert-configs/{id}', + resource_path='/api/events/settings/alerts/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2423,10 +2533,9 @@ def _delete_website_alert_config_serialize( @validate_call - def disable_built_in_event_specification( + def delete_alerting_channel( self, - event_specification_id: StrictStr, - body: Optional[StrictStr] = None, + id: Annotated[StrictStr, Field(description="ID of the Alerting Channel to delete.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2439,14 +2548,13 @@ def disable_built_in_event_specification( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BuiltInEventSpecificationWithLastUpdated: - """Disable built-in event specification + ) -> None: + """Delete Alerting Channel + Deletes an alert channel. Requires the permission called CanConfigureIntegrations. - :param event_specification_id: (required) - :type event_specification_id: str - :param body: - :type body: str + :param id: ID of the Alerting Channel to delete. (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2469,9 +2577,8 @@ def disable_built_in_event_specification( :return: Returns the result object. """ # noqa: E501 - _param = self._disable_built_in_event_specification_serialize( - event_specification_id=event_specification_id, - body=body, + _param = self._delete_alerting_channel_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2479,10 +2586,7 @@ def disable_built_in_event_specification( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BuiltInEventSpecificationWithLastUpdated", - '401': None, - '403': None, - '404': None, + '204': None, } response_data = self.api_client.call_api( *_param, @@ -2496,10 +2600,9 @@ def disable_built_in_event_specification( @validate_call - def disable_built_in_event_specification_with_http_info( + def delete_alerting_channel_with_http_info( self, - event_specification_id: StrictStr, - body: Optional[StrictStr] = None, + id: Annotated[StrictStr, Field(description="ID of the Alerting Channel to delete.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2512,14 +2615,13 @@ def disable_built_in_event_specification_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BuiltInEventSpecificationWithLastUpdated]: - """Disable built-in event specification + ) -> ApiResponse[None]: + """Delete Alerting Channel + Deletes an alert channel. Requires the permission called CanConfigureIntegrations. - :param event_specification_id: (required) - :type event_specification_id: str - :param body: - :type body: str + :param id: ID of the Alerting Channel to delete. (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2542,9 +2644,8 @@ def disable_built_in_event_specification_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._disable_built_in_event_specification_serialize( - event_specification_id=event_specification_id, - body=body, + _param = self._delete_alerting_channel_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2552,10 +2653,7 @@ def disable_built_in_event_specification_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BuiltInEventSpecificationWithLastUpdated", - '401': None, - '403': None, - '404': None, + '204': None, } response_data = self.api_client.call_api( *_param, @@ -2569,10 +2667,9 @@ def disable_built_in_event_specification_with_http_info( @validate_call - def disable_built_in_event_specification_without_preload_content( + def delete_alerting_channel_without_preload_content( self, - event_specification_id: StrictStr, - body: Optional[StrictStr] = None, + id: Annotated[StrictStr, Field(description="ID of the Alerting Channel to delete.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2586,13 +2683,12 @@ def disable_built_in_event_specification_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Disable built-in event specification + """Delete Alerting Channel + Deletes an alert channel. Requires the permission called CanConfigureIntegrations. - :param event_specification_id: (required) - :type event_specification_id: str - :param body: - :type body: str + :param id: ID of the Alerting Channel to delete. (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2615,9 +2711,8 @@ def disable_built_in_event_specification_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._disable_built_in_event_specification_serialize( - event_specification_id=event_specification_id, - body=body, + _param = self._delete_alerting_channel_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2625,10 +2720,7 @@ def disable_built_in_event_specification_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BuiltInEventSpecificationWithLastUpdated", - '401': None, - '403': None, - '404': None, + '204': None, } response_data = self.api_client.call_api( *_param, @@ -2637,10 +2729,9 @@ def disable_built_in_event_specification_without_preload_content( return response_data.response - def _disable_built_in_event_specification_serialize( + def _delete_alerting_channel_serialize( self, - event_specification_id, - body, + id, _request_auth, _content_type, _headers, @@ -2662,37 +2753,15 @@ def _disable_built_in_event_specification_serialize( _body_params: Optional[bytes] = None # process the path parameters - if event_specification_id is not None: - _path_params['eventSpecificationId'] = event_specification_id + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2700,8 +2769,8 @@ def _disable_built_in_event_specification_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/api/events/settings/event-specifications/built-in/{eventSpecificationId}/disable', + method='DELETE', + resource_path='/api/events/settings/alertingChannels/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2718,10 +2787,9 @@ def _disable_built_in_event_specification_serialize( @validate_call - def disable_custom_event_specification( + def delete_built_in_event_specification( self, event_specification_id: StrictStr, - body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2734,14 +2802,12 @@ def disable_custom_event_specification( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CustomEventSpecificationWithLastUpdated: - """Disable custom event specification + ) -> None: + """Delete built-in event specification :param event_specification_id: (required) :type event_specification_id: str - :param body: - :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2764,9 +2830,8 @@ def disable_custom_event_specification( :return: Returns the result object. """ # noqa: E501 - _param = self._disable_custom_event_specification_serialize( + _param = self._delete_built_in_event_specification_serialize( event_specification_id=event_specification_id, - body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2774,11 +2839,9 @@ def disable_custom_event_specification( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CustomEventSpecificationWithLastUpdated", - '400': None, + '204': None, '401': None, '403': None, - '404': None, } response_data = self.api_client.call_api( *_param, @@ -2792,10 +2855,9 @@ def disable_custom_event_specification( @validate_call - def disable_custom_event_specification_with_http_info( + def delete_built_in_event_specification_with_http_info( self, event_specification_id: StrictStr, - body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2808,14 +2870,12 @@ def disable_custom_event_specification_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CustomEventSpecificationWithLastUpdated]: - """Disable custom event specification + ) -> ApiResponse[None]: + """Delete built-in event specification :param event_specification_id: (required) :type event_specification_id: str - :param body: - :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2838,9 +2898,8 @@ def disable_custom_event_specification_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._disable_custom_event_specification_serialize( + _param = self._delete_built_in_event_specification_serialize( event_specification_id=event_specification_id, - body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2848,11 +2907,9 @@ def disable_custom_event_specification_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CustomEventSpecificationWithLastUpdated", - '400': None, + '204': None, '401': None, '403': None, - '404': None, } response_data = self.api_client.call_api( *_param, @@ -2866,10 +2923,9 @@ def disable_custom_event_specification_with_http_info( @validate_call - def disable_custom_event_specification_without_preload_content( + def delete_built_in_event_specification_without_preload_content( self, event_specification_id: StrictStr, - body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2883,13 +2939,11 @@ def disable_custom_event_specification_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Disable custom event specification + """Delete built-in event specification :param event_specification_id: (required) :type event_specification_id: str - :param body: - :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2912,9 +2966,8 @@ def disable_custom_event_specification_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._disable_custom_event_specification_serialize( + _param = self._delete_built_in_event_specification_serialize( event_specification_id=event_specification_id, - body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2922,11 +2975,9 @@ def disable_custom_event_specification_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CustomEventSpecificationWithLastUpdated", - '400': None, + '204': None, '401': None, '403': None, - '404': None, } response_data = self.api_client.call_api( *_param, @@ -2935,10 +2986,9 @@ def disable_custom_event_specification_without_preload_content( return response_data.response - def _disable_custom_event_specification_serialize( + def _delete_built_in_event_specification_serialize( self, event_specification_id, - body, _request_auth, _content_type, _headers, @@ -2966,31 +3016,9 @@ def _disable_custom_event_specification_serialize( # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2998,8 +3026,8 @@ def _disable_custom_event_specification_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/api/events/settings/event-specifications/custom/{eventSpecificationId}/disable', + method='DELETE', + resource_path='/api/events/settings/event-specifications/built-in/{eventSpecificationId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3016,10 +3044,9 @@ def _disable_custom_event_specification_serialize( @validate_call - def disable_mobile_app_alert_config( + def delete_custom_event_specification( self, - id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to disable.")], - body: Optional[StrictStr] = None, + event_specification_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3033,14 +3060,11 @@ def disable_mobile_app_alert_config( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """Disable Mobile Smart Alert Config + """Delete custom event specification - Disables a Mobile Smart Alert Configuration. - :param id: ID of a specific Mobile Smart Alert Configuration to disable. (required) - :type id: str - :param body: - :type body: str + :param event_specification_id: (required) + :type event_specification_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3063,9 +3087,8 @@ def disable_mobile_app_alert_config( :return: Returns the result object. """ # noqa: E501 - _param = self._disable_mobile_app_alert_config_serialize( - id=id, - body=body, + _param = self._delete_custom_event_specification_serialize( + event_specification_id=event_specification_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3074,8 +3097,8 @@ def disable_mobile_app_alert_config( _response_types_map: Dict[str, Optional[str]] = { '204': None, + '401': None, '403': None, - '404': None, } response_data = self.api_client.call_api( *_param, @@ -3089,10 +3112,9 @@ def disable_mobile_app_alert_config( @validate_call - def disable_mobile_app_alert_config_with_http_info( + def delete_custom_event_specification_with_http_info( self, - id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to disable.")], - body: Optional[StrictStr] = None, + event_specification_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3106,14 +3128,11 @@ def disable_mobile_app_alert_config_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """Disable Mobile Smart Alert Config + """Delete custom event specification - Disables a Mobile Smart Alert Configuration. - :param id: ID of a specific Mobile Smart Alert Configuration to disable. (required) - :type id: str - :param body: - :type body: str + :param event_specification_id: (required) + :type event_specification_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3136,9 +3155,8 @@ def disable_mobile_app_alert_config_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._disable_mobile_app_alert_config_serialize( - id=id, - body=body, + _param = self._delete_custom_event_specification_serialize( + event_specification_id=event_specification_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3147,8 +3165,8 @@ def disable_mobile_app_alert_config_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '204': None, + '401': None, '403': None, - '404': None, } response_data = self.api_client.call_api( *_param, @@ -3162,10 +3180,9 @@ def disable_mobile_app_alert_config_with_http_info( @validate_call - def disable_mobile_app_alert_config_without_preload_content( + def delete_custom_event_specification_without_preload_content( self, - id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to disable.")], - body: Optional[StrictStr] = None, + event_specification_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3179,14 +3196,11 @@ def disable_mobile_app_alert_config_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Disable Mobile Smart Alert Config + """Delete custom event specification - Disables a Mobile Smart Alert Configuration. - :param id: ID of a specific Mobile Smart Alert Configuration to disable. (required) - :type id: str - :param body: - :type body: str + :param event_specification_id: (required) + :type event_specification_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3209,9 +3223,8 @@ def disable_mobile_app_alert_config_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._disable_mobile_app_alert_config_serialize( - id=id, - body=body, + _param = self._delete_custom_event_specification_serialize( + event_specification_id=event_specification_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3220,8 +3233,8 @@ def disable_mobile_app_alert_config_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '204': None, + '401': None, '403': None, - '404': None, } response_data = self.api_client.call_api( *_param, @@ -3230,10 +3243,9 @@ def disable_mobile_app_alert_config_without_preload_content( return response_data.response - def _disable_mobile_app_alert_config_serialize( + def _delete_custom_event_specification_serialize( self, - id, - body, + event_specification_id, _request_auth, _content_type, _headers, @@ -3255,30 +3267,15 @@ def _disable_mobile_app_alert_config_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id + if event_specification_id is not None: + _path_params['eventSpecificationId'] = event_specification_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -3286,8 +3283,8 @@ def _disable_mobile_app_alert_config_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/api/events/settings/mobile-app-alert-configs/{id}/disable', + method='DELETE', + resource_path='/api/events/settings/event-specifications/custom/{eventSpecificationId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3304,10 +3301,8 @@ def _disable_mobile_app_alert_config_serialize( @validate_call - def disable_website_alert_config( + def delete_custom_payload_configuration( self, - id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to disable.")], - body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3321,14 +3316,10 @@ def disable_website_alert_config( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """Disable Website Smart Alert Config + """Delete Custom Payload Configuration - Disables a Website Smart Alert Configuration. + Deletes a Global Custom Payload Configuration. - :param id: ID of a specific Website Smart Alert Configuration to disable. (required) - :type id: str - :param body: - :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3351,9 +3342,7 @@ def disable_website_alert_config( :return: Returns the result object. """ # noqa: E501 - _param = self._disable_website_alert_config_serialize( - id=id, - body=body, + _param = self._delete_custom_payload_configuration_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3362,8 +3351,8 @@ def disable_website_alert_config( _response_types_map: Dict[str, Optional[str]] = { '204': None, + '401': None, '403': None, - '404': None, } response_data = self.api_client.call_api( *_param, @@ -3377,10 +3366,8 @@ def disable_website_alert_config( @validate_call - def disable_website_alert_config_with_http_info( + def delete_custom_payload_configuration_with_http_info( self, - id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to disable.")], - body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3394,14 +3381,10 @@ def disable_website_alert_config_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """Disable Website Smart Alert Config + """Delete Custom Payload Configuration - Disables a Website Smart Alert Configuration. + Deletes a Global Custom Payload Configuration. - :param id: ID of a specific Website Smart Alert Configuration to disable. (required) - :type id: str - :param body: - :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3424,9 +3407,7 @@ def disable_website_alert_config_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._disable_website_alert_config_serialize( - id=id, - body=body, + _param = self._delete_custom_payload_configuration_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3435,8 +3416,8 @@ def disable_website_alert_config_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '204': None, + '401': None, '403': None, - '404': None, } response_data = self.api_client.call_api( *_param, @@ -3450,10 +3431,8 @@ def disable_website_alert_config_with_http_info( @validate_call - def disable_website_alert_config_without_preload_content( + def delete_custom_payload_configuration_without_preload_content( self, - id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to disable.")], - body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3467,14 +3446,10 @@ def disable_website_alert_config_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Disable Website Smart Alert Config + """Delete Custom Payload Configuration - Disables a Website Smart Alert Configuration. + Deletes a Global Custom Payload Configuration. - :param id: ID of a specific Website Smart Alert Configuration to disable. (required) - :type id: str - :param body: - :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3497,9 +3472,7 @@ def disable_website_alert_config_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._disable_website_alert_config_serialize( - id=id, - body=body, + _param = self._delete_custom_payload_configuration_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3508,8 +3481,8 @@ def disable_website_alert_config_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '204': None, + '401': None, '403': None, - '404': None, } response_data = self.api_client.call_api( *_param, @@ -3518,10 +3491,8 @@ def disable_website_alert_config_without_preload_content( return response_data.response - def _disable_website_alert_config_serialize( + def _delete_custom_payload_configuration_serialize( self, - id, - body, _request_auth, _content_type, _headers, @@ -3543,30 +3514,13 @@ def _disable_website_alert_config_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -3574,8 +3528,8 @@ def _disable_website_alert_config_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/api/events/settings/website-alert-configs/{id}/disable', + method='DELETE', + resource_path='/api/events/settings/custom-payload-configurations', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3592,10 +3546,9 @@ def _disable_website_alert_config_serialize( @validate_call - def enable_built_in_event_specification( + def delete_mobile_app_alert_config( self, - event_specification_id: StrictStr, - body: Optional[StrictStr] = None, + id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to delete.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3608,14 +3561,13 @@ def enable_built_in_event_specification( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BuiltInEventSpecificationWithLastUpdated: - """Enable built-in event specification + ) -> None: + """Delete Mobile Smart Alert Config + Deletes a Mobile Smart Alert Configuration - :param event_specification_id: (required) - :type event_specification_id: str - :param body: - :type body: str + :param id: ID of a specific Mobile Smart Alert Configuration to delete. (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3638,9 +3590,8 @@ def enable_built_in_event_specification( :return: Returns the result object. """ # noqa: E501 - _param = self._enable_built_in_event_specification_serialize( - event_specification_id=event_specification_id, - body=body, + _param = self._delete_mobile_app_alert_config_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3648,8 +3599,7 @@ def enable_built_in_event_specification( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BuiltInEventSpecificationWithLastUpdated", - '401': None, + '204': None, '403': None, '404': None, } @@ -3665,10 +3615,9 @@ def enable_built_in_event_specification( @validate_call - def enable_built_in_event_specification_with_http_info( + def delete_mobile_app_alert_config_with_http_info( self, - event_specification_id: StrictStr, - body: Optional[StrictStr] = None, + id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to delete.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3681,14 +3630,13 @@ def enable_built_in_event_specification_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BuiltInEventSpecificationWithLastUpdated]: - """Enable built-in event specification + ) -> ApiResponse[None]: + """Delete Mobile Smart Alert Config + Deletes a Mobile Smart Alert Configuration - :param event_specification_id: (required) - :type event_specification_id: str - :param body: - :type body: str + :param id: ID of a specific Mobile Smart Alert Configuration to delete. (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3711,9 +3659,8 @@ def enable_built_in_event_specification_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._enable_built_in_event_specification_serialize( - event_specification_id=event_specification_id, - body=body, + _param = self._delete_mobile_app_alert_config_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3721,8 +3668,7 @@ def enable_built_in_event_specification_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BuiltInEventSpecificationWithLastUpdated", - '401': None, + '204': None, '403': None, '404': None, } @@ -3738,10 +3684,9 @@ def enable_built_in_event_specification_with_http_info( @validate_call - def enable_built_in_event_specification_without_preload_content( + def delete_mobile_app_alert_config_without_preload_content( self, - event_specification_id: StrictStr, - body: Optional[StrictStr] = None, + id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to delete.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3755,13 +3700,12 @@ def enable_built_in_event_specification_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Enable built-in event specification + """Delete Mobile Smart Alert Config + Deletes a Mobile Smart Alert Configuration - :param event_specification_id: (required) - :type event_specification_id: str - :param body: - :type body: str + :param id: ID of a specific Mobile Smart Alert Configuration to delete. (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3784,18 +3728,16 @@ def enable_built_in_event_specification_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._enable_built_in_event_specification_serialize( - event_specification_id=event_specification_id, - body=body, - _request_auth=_request_auth, + _param = self._delete_mobile_app_alert_config_serialize( + id=id, + _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BuiltInEventSpecificationWithLastUpdated", - '401': None, + '204': None, '403': None, '404': None, } @@ -3806,10 +3748,9 @@ def enable_built_in_event_specification_without_preload_content( return response_data.response - def _enable_built_in_event_specification_serialize( + def _delete_mobile_app_alert_config_serialize( self, - event_specification_id, - body, + id, _request_auth, _content_type, _headers, @@ -3831,37 +3772,15 @@ def _enable_built_in_event_specification_serialize( _body_params: Optional[bytes] = None # process the path parameters - if event_specification_id is not None: - _path_params['eventSpecificationId'] = event_specification_id + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -3869,8 +3788,8 @@ def _enable_built_in_event_specification_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/api/events/settings/event-specifications/built-in/{eventSpecificationId}/enable', + method='DELETE', + resource_path='/api/events/settings/mobile-app-alert-configs/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3887,10 +3806,9 @@ def _enable_built_in_event_specification_serialize( @validate_call - def enable_custom_event_specification( + def delete_website_alert_config( self, - event_specification_id: StrictStr, - body: Optional[StrictStr] = None, + id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to delete.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3903,14 +3821,13 @@ def enable_custom_event_specification( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CustomEventSpecificationWithLastUpdated: - """Enable custom event specification + ) -> None: + """Delete Website Smart Alert Config + Deletes a Website Smart Alert Configuration. - :param event_specification_id: (required) - :type event_specification_id: str - :param body: - :type body: str + :param id: ID of a specific Website Smart Alert Configuration to delete. (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3933,9 +3850,8 @@ def enable_custom_event_specification( :return: Returns the result object. """ # noqa: E501 - _param = self._enable_custom_event_specification_serialize( - event_specification_id=event_specification_id, - body=body, + _param = self._delete_website_alert_config_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3943,9 +3859,7 @@ def enable_custom_event_specification( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CustomEventSpecificationWithLastUpdated", - '400': None, - '401': None, + '204': None, '403': None, '404': None, } @@ -3961,10 +3875,9 @@ def enable_custom_event_specification( @validate_call - def enable_custom_event_specification_with_http_info( + def delete_website_alert_config_with_http_info( self, - event_specification_id: StrictStr, - body: Optional[StrictStr] = None, + id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to delete.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3977,14 +3890,13 @@ def enable_custom_event_specification_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CustomEventSpecificationWithLastUpdated]: - """Enable custom event specification + ) -> ApiResponse[None]: + """Delete Website Smart Alert Config + Deletes a Website Smart Alert Configuration. - :param event_specification_id: (required) - :type event_specification_id: str - :param body: - :type body: str + :param id: ID of a specific Website Smart Alert Configuration to delete. (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4007,9 +3919,8 @@ def enable_custom_event_specification_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._enable_custom_event_specification_serialize( - event_specification_id=event_specification_id, - body=body, + _param = self._delete_website_alert_config_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4017,9 +3928,7 @@ def enable_custom_event_specification_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CustomEventSpecificationWithLastUpdated", - '400': None, - '401': None, + '204': None, '403': None, '404': None, } @@ -4035,10 +3944,9 @@ def enable_custom_event_specification_with_http_info( @validate_call - def enable_custom_event_specification_without_preload_content( + def delete_website_alert_config_without_preload_content( self, - event_specification_id: StrictStr, - body: Optional[StrictStr] = None, + id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to delete.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4052,13 +3960,12 @@ def enable_custom_event_specification_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Enable custom event specification + """Delete Website Smart Alert Config + Deletes a Website Smart Alert Configuration. - :param event_specification_id: (required) - :type event_specification_id: str - :param body: - :type body: str + :param id: ID of a specific Website Smart Alert Configuration to delete. (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4081,9 +3988,8 @@ def enable_custom_event_specification_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._enable_custom_event_specification_serialize( - event_specification_id=event_specification_id, - body=body, + _param = self._delete_website_alert_config_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4091,9 +3997,7 @@ def enable_custom_event_specification_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CustomEventSpecificationWithLastUpdated", - '400': None, - '401': None, + '204': None, '403': None, '404': None, } @@ -4104,10 +4008,9 @@ def enable_custom_event_specification_without_preload_content( return response_data.response - def _enable_custom_event_specification_serialize( + def _delete_website_alert_config_serialize( self, - event_specification_id, - body, + id, _request_auth, _content_type, _headers, @@ -4129,37 +4032,15 @@ def _enable_custom_event_specification_serialize( _body_params: Optional[bytes] = None # process the path parameters - if event_specification_id is not None: - _path_params['eventSpecificationId'] = event_specification_id + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -4167,8 +4048,8 @@ def _enable_custom_event_specification_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/api/events/settings/event-specifications/custom/{eventSpecificationId}/enable', + method='DELETE', + resource_path='/api/events/settings/website-alert-configs/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4185,9 +4066,9 @@ def _enable_custom_event_specification_serialize( @validate_call - def enable_mobile_app_alert_config( + def disable_built_in_event_specification( self, - id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to enable.")], + event_specification_id: StrictStr, body: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -4201,13 +4082,12 @@ def enable_mobile_app_alert_config( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """Enable Mobile Smart Alert Config + ) -> BuiltInEventSpecificationWithLastUpdated: + """Disable built-in event specification - Enables a Mobile Smart Alert Configuration. - :param id: ID of a specific Mobile Smart Alert Configuration to enable. (required) - :type id: str + :param event_specification_id: (required) + :type event_specification_id: str :param body: :type body: str :param _request_timeout: timeout setting for this request. If one @@ -4232,8 +4112,8 @@ def enable_mobile_app_alert_config( :return: Returns the result object. """ # noqa: E501 - _param = self._enable_mobile_app_alert_config_serialize( - id=id, + _param = self._disable_built_in_event_specification_serialize( + event_specification_id=event_specification_id, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -4242,7 +4122,8 @@ def enable_mobile_app_alert_config( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "BuiltInEventSpecificationWithLastUpdated", + '401': None, '403': None, '404': None, } @@ -4258,9 +4139,9 @@ def enable_mobile_app_alert_config( @validate_call - def enable_mobile_app_alert_config_with_http_info( + def disable_built_in_event_specification_with_http_info( self, - id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to enable.")], + event_specification_id: StrictStr, body: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -4274,13 +4155,12 @@ def enable_mobile_app_alert_config_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """Enable Mobile Smart Alert Config + ) -> ApiResponse[BuiltInEventSpecificationWithLastUpdated]: + """Disable built-in event specification - Enables a Mobile Smart Alert Configuration. - :param id: ID of a specific Mobile Smart Alert Configuration to enable. (required) - :type id: str + :param event_specification_id: (required) + :type event_specification_id: str :param body: :type body: str :param _request_timeout: timeout setting for this request. If one @@ -4305,8 +4185,8 @@ def enable_mobile_app_alert_config_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._enable_mobile_app_alert_config_serialize( - id=id, + _param = self._disable_built_in_event_specification_serialize( + event_specification_id=event_specification_id, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -4315,7 +4195,8 @@ def enable_mobile_app_alert_config_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "BuiltInEventSpecificationWithLastUpdated", + '401': None, '403': None, '404': None, } @@ -4331,9 +4212,9 @@ def enable_mobile_app_alert_config_with_http_info( @validate_call - def enable_mobile_app_alert_config_without_preload_content( + def disable_built_in_event_specification_without_preload_content( self, - id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to enable.")], + event_specification_id: StrictStr, body: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -4348,12 +4229,11 @@ def enable_mobile_app_alert_config_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Enable Mobile Smart Alert Config + """Disable built-in event specification - Enables a Mobile Smart Alert Configuration. - :param id: ID of a specific Mobile Smart Alert Configuration to enable. (required) - :type id: str + :param event_specification_id: (required) + :type event_specification_id: str :param body: :type body: str :param _request_timeout: timeout setting for this request. If one @@ -4378,8 +4258,8 @@ def enable_mobile_app_alert_config_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._enable_mobile_app_alert_config_serialize( - id=id, + _param = self._disable_built_in_event_specification_serialize( + event_specification_id=event_specification_id, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -4388,7 +4268,8 @@ def enable_mobile_app_alert_config_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "BuiltInEventSpecificationWithLastUpdated", + '401': None, '403': None, '404': None, } @@ -4399,9 +4280,9 @@ def enable_mobile_app_alert_config_without_preload_content( return response_data.response - def _enable_mobile_app_alert_config_serialize( + def _disable_built_in_event_specification_serialize( self, - id, + event_specification_id, body, _request_auth, _content_type, @@ -4424,8 +4305,8 @@ def _enable_mobile_app_alert_config_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id + if event_specification_id is not None: + _path_params['eventSpecificationId'] = event_specification_id # process the query parameters # process the header parameters # process the form parameters @@ -4434,6 +4315,13 @@ def _enable_mobile_app_alert_config_serialize( _body_params = body + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -4455,8 +4343,8 @@ def _enable_mobile_app_alert_config_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/api/events/settings/mobile-app-alert-configs/{id}/enable', + method='POST', + resource_path='/api/events/settings/event-specifications/built-in/{eventSpecificationId}/disable', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4473,9 +4361,9 @@ def _enable_mobile_app_alert_config_serialize( @validate_call - def enable_website_alert_config( + def disable_custom_event_specification( self, - id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to enable.")], + event_specification_id: StrictStr, body: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -4489,13 +4377,12 @@ def enable_website_alert_config( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """Enable Website Smart Alert Config + ) -> CustomEventSpecificationWithLastUpdated: + """Disable custom event specification - Enables a website alert configuration. - :param id: ID of a specific Website Smart Alert Configuration to enable. (required) - :type id: str + :param event_specification_id: (required) + :type event_specification_id: str :param body: :type body: str :param _request_timeout: timeout setting for this request. If one @@ -4520,8 +4407,8 @@ def enable_website_alert_config( :return: Returns the result object. """ # noqa: E501 - _param = self._enable_website_alert_config_serialize( - id=id, + _param = self._disable_custom_event_specification_serialize( + event_specification_id=event_specification_id, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -4530,7 +4417,9 @@ def enable_website_alert_config( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "CustomEventSpecificationWithLastUpdated", + '400': None, + '401': None, '403': None, '404': None, } @@ -4546,9 +4435,9 @@ def enable_website_alert_config( @validate_call - def enable_website_alert_config_with_http_info( + def disable_custom_event_specification_with_http_info( self, - id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to enable.")], + event_specification_id: StrictStr, body: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -4562,13 +4451,12 @@ def enable_website_alert_config_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """Enable Website Smart Alert Config + ) -> ApiResponse[CustomEventSpecificationWithLastUpdated]: + """Disable custom event specification - Enables a website alert configuration. - :param id: ID of a specific Website Smart Alert Configuration to enable. (required) - :type id: str + :param event_specification_id: (required) + :type event_specification_id: str :param body: :type body: str :param _request_timeout: timeout setting for this request. If one @@ -4593,8 +4481,8 @@ def enable_website_alert_config_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._enable_website_alert_config_serialize( - id=id, + _param = self._disable_custom_event_specification_serialize( + event_specification_id=event_specification_id, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -4603,7 +4491,9 @@ def enable_website_alert_config_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "CustomEventSpecificationWithLastUpdated", + '400': None, + '401': None, '403': None, '404': None, } @@ -4619,9 +4509,9 @@ def enable_website_alert_config_with_http_info( @validate_call - def enable_website_alert_config_without_preload_content( + def disable_custom_event_specification_without_preload_content( self, - id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to enable.")], + event_specification_id: StrictStr, body: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -4636,12 +4526,11 @@ def enable_website_alert_config_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Enable Website Smart Alert Config + """Disable custom event specification - Enables a website alert configuration. - :param id: ID of a specific Website Smart Alert Configuration to enable. (required) - :type id: str + :param event_specification_id: (required) + :type event_specification_id: str :param body: :type body: str :param _request_timeout: timeout setting for this request. If one @@ -4666,8 +4555,8 @@ def enable_website_alert_config_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._enable_website_alert_config_serialize( - id=id, + _param = self._disable_custom_event_specification_serialize( + event_specification_id=event_specification_id, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -4676,7 +4565,9 @@ def enable_website_alert_config_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "CustomEventSpecificationWithLastUpdated", + '400': None, + '401': None, '403': None, '404': None, } @@ -4687,9 +4578,9 @@ def enable_website_alert_config_without_preload_content( return response_data.response - def _enable_website_alert_config_serialize( + def _disable_custom_event_specification_serialize( self, - id, + event_specification_id, body, _request_auth, _content_type, @@ -4712,8 +4603,8 @@ def _enable_website_alert_config_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id + if event_specification_id is not None: + _path_params['eventSpecificationId'] = event_specification_id # process the query parameters # process the header parameters # process the form parameters @@ -4722,6 +4613,13 @@ def _enable_website_alert_config_serialize( _body_params = body + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -4743,8 +4641,8 @@ def _enable_website_alert_config_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/api/events/settings/website-alert-configs/{id}/enable', + method='POST', + resource_path='/api/events/settings/event-specifications/custom/{eventSpecificationId}/disable', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4761,10 +4659,10 @@ def _enable_website_alert_config_serialize( @validate_call - def find_active_mobile_app_alert_configs( + def disable_mobile_app_alert_config( self, - mobile_app_id: Annotated[StrictStr, Field(description="The ID of a specific Mobile Application.")], - alert_ids: Annotated[Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=1000)]], Field(description="A list of Smart Alert Configuration IDs. This allows Website Smart Alert Configuration of a specific set of Configurations. This query can be repeated to use multiple IDs.")] = None, + id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to disable.")], + body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4777,15 +4675,15 @@ def find_active_mobile_app_alert_configs( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[WithMetadata]: - """Get all Mobile Smart Alert Configs + ) -> None: + """Disable Mobile Smart Alert Config - Gets all the Mobile Smart Alert Configuration pertaining to a specific mobile app.Configurations are sorted by creation date in descending order. + Disables a Mobile Smart Alert Configuration. - :param mobile_app_id: The ID of a specific Mobile Application. (required) - :type mobile_app_id: str - :param alert_ids: A list of Smart Alert Configuration IDs. This allows Website Smart Alert Configuration of a specific set of Configurations. This query can be repeated to use multiple IDs. - :type alert_ids: List[str] + :param id: ID of a specific Mobile Smart Alert Configuration to disable. (required) + :type id: str + :param body: + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4808,9 +4706,9 @@ def find_active_mobile_app_alert_configs( :return: Returns the result object. """ # noqa: E501 - _param = self._find_active_mobile_app_alert_configs_serialize( - mobile_app_id=mobile_app_id, - alert_ids=alert_ids, + _param = self._disable_mobile_app_alert_config_serialize( + id=id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4818,8 +4716,9 @@ def find_active_mobile_app_alert_configs( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[WithMetadata]", + '204': None, '403': None, + '404': None, } response_data = self.api_client.call_api( *_param, @@ -4833,10 +4732,10 @@ def find_active_mobile_app_alert_configs( @validate_call - def find_active_mobile_app_alert_configs_with_http_info( + def disable_mobile_app_alert_config_with_http_info( self, - mobile_app_id: Annotated[StrictStr, Field(description="The ID of a specific Mobile Application.")], - alert_ids: Annotated[Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=1000)]], Field(description="A list of Smart Alert Configuration IDs. This allows Website Smart Alert Configuration of a specific set of Configurations. This query can be repeated to use multiple IDs.")] = None, + id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to disable.")], + body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4849,15 +4748,15 @@ def find_active_mobile_app_alert_configs_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[WithMetadata]]: - """Get all Mobile Smart Alert Configs + ) -> ApiResponse[None]: + """Disable Mobile Smart Alert Config - Gets all the Mobile Smart Alert Configuration pertaining to a specific mobile app.Configurations are sorted by creation date in descending order. + Disables a Mobile Smart Alert Configuration. - :param mobile_app_id: The ID of a specific Mobile Application. (required) - :type mobile_app_id: str - :param alert_ids: A list of Smart Alert Configuration IDs. This allows Website Smart Alert Configuration of a specific set of Configurations. This query can be repeated to use multiple IDs. - :type alert_ids: List[str] + :param id: ID of a specific Mobile Smart Alert Configuration to disable. (required) + :type id: str + :param body: + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4880,9 +4779,9 @@ def find_active_mobile_app_alert_configs_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._find_active_mobile_app_alert_configs_serialize( - mobile_app_id=mobile_app_id, - alert_ids=alert_ids, + _param = self._disable_mobile_app_alert_config_serialize( + id=id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4890,8 +4789,9 @@ def find_active_mobile_app_alert_configs_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[WithMetadata]", + '204': None, '403': None, + '404': None, } response_data = self.api_client.call_api( *_param, @@ -4905,10 +4805,10 @@ def find_active_mobile_app_alert_configs_with_http_info( @validate_call - def find_active_mobile_app_alert_configs_without_preload_content( + def disable_mobile_app_alert_config_without_preload_content( self, - mobile_app_id: Annotated[StrictStr, Field(description="The ID of a specific Mobile Application.")], - alert_ids: Annotated[Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=1000)]], Field(description="A list of Smart Alert Configuration IDs. This allows Website Smart Alert Configuration of a specific set of Configurations. This query can be repeated to use multiple IDs.")] = None, + id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to disable.")], + body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4922,14 +4822,14 @@ def find_active_mobile_app_alert_configs_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get all Mobile Smart Alert Configs + """Disable Mobile Smart Alert Config - Gets all the Mobile Smart Alert Configuration pertaining to a specific mobile app.Configurations are sorted by creation date in descending order. + Disables a Mobile Smart Alert Configuration. - :param mobile_app_id: The ID of a specific Mobile Application. (required) - :type mobile_app_id: str - :param alert_ids: A list of Smart Alert Configuration IDs. This allows Website Smart Alert Configuration of a specific set of Configurations. This query can be repeated to use multiple IDs. - :type alert_ids: List[str] + :param id: ID of a specific Mobile Smart Alert Configuration to disable. (required) + :type id: str + :param body: + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4952,9 +4852,9 @@ def find_active_mobile_app_alert_configs_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._find_active_mobile_app_alert_configs_serialize( - mobile_app_id=mobile_app_id, - alert_ids=alert_ids, + _param = self._disable_mobile_app_alert_config_serialize( + id=id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4962,8 +4862,9 @@ def find_active_mobile_app_alert_configs_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[WithMetadata]", + '204': None, '403': None, + '404': None, } response_data = self.api_client.call_api( *_param, @@ -4972,10 +4873,10 @@ def find_active_mobile_app_alert_configs_without_preload_content( return response_data.response - def _find_active_mobile_app_alert_configs_serialize( + def _disable_mobile_app_alert_config_serialize( self, - mobile_app_id, - alert_ids, + id, + body, _request_auth, _content_type, _headers, @@ -4985,7 +4886,6 @@ def _find_active_mobile_app_alert_configs_serialize( _host = None _collection_formats: Dict[str, str] = { - 'alertIds': 'multi', } _path_params: Dict[str, str] = {} @@ -4998,28 +4898,30 @@ def _find_active_mobile_app_alert_configs_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters - if mobile_app_id is not None: - - _query_params.append(('mobileAppId', mobile_app_id)) - - if alert_ids is not None: - - _query_params.append(('alertIds', alert_ids)) - # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -5027,8 +4929,8 @@ def _find_active_mobile_app_alert_configs_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/events/settings/mobile-app-alert-configs', + method='PUT', + resource_path='/api/events/settings/mobile-app-alert-configs/{id}/disable', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5045,10 +4947,10 @@ def _find_active_mobile_app_alert_configs_serialize( @validate_call - def find_active_website_alert_configs( + def disable_website_alert_config( self, - website_id: Annotated[StrictStr, Field(description="The ID of a specific Website")], - alert_ids: Annotated[Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=1000)]], Field(description="A list of Smart Alert Configuration IDs. This allows fetching of a specific set of Configurations. This query can be repeated to use multiple IDs.")] = None, + id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to disable.")], + body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5061,15 +4963,15 @@ def find_active_website_alert_configs( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[WebsiteAlertConfigWithMetadata]: - """Get all Website Smart Alert Configs + ) -> None: + """Disable Website Smart Alert Config - Gets all the Website Smart Alert Configuration pertaining to a specific website. Configurations are sorted by creation date in descending order. + Disables a Website Smart Alert Configuration. - :param website_id: The ID of a specific Website (required) - :type website_id: str - :param alert_ids: A list of Smart Alert Configuration IDs. This allows fetching of a specific set of Configurations. This query can be repeated to use multiple IDs. - :type alert_ids: List[str] + :param id: ID of a specific Website Smart Alert Configuration to disable. (required) + :type id: str + :param body: + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5092,9 +4994,9 @@ def find_active_website_alert_configs( :return: Returns the result object. """ # noqa: E501 - _param = self._find_active_website_alert_configs_serialize( - website_id=website_id, - alert_ids=alert_ids, + _param = self._disable_website_alert_config_serialize( + id=id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5102,8 +5004,9 @@ def find_active_website_alert_configs( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[WebsiteAlertConfigWithMetadata]", + '204': None, '403': None, + '404': None, } response_data = self.api_client.call_api( *_param, @@ -5117,10 +5020,10 @@ def find_active_website_alert_configs( @validate_call - def find_active_website_alert_configs_with_http_info( + def disable_website_alert_config_with_http_info( self, - website_id: Annotated[StrictStr, Field(description="The ID of a specific Website")], - alert_ids: Annotated[Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=1000)]], Field(description="A list of Smart Alert Configuration IDs. This allows fetching of a specific set of Configurations. This query can be repeated to use multiple IDs.")] = None, + id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to disable.")], + body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5133,15 +5036,15 @@ def find_active_website_alert_configs_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[WebsiteAlertConfigWithMetadata]]: - """Get all Website Smart Alert Configs + ) -> ApiResponse[None]: + """Disable Website Smart Alert Config - Gets all the Website Smart Alert Configuration pertaining to a specific website. Configurations are sorted by creation date in descending order. + Disables a Website Smart Alert Configuration. - :param website_id: The ID of a specific Website (required) - :type website_id: str - :param alert_ids: A list of Smart Alert Configuration IDs. This allows fetching of a specific set of Configurations. This query can be repeated to use multiple IDs. - :type alert_ids: List[str] + :param id: ID of a specific Website Smart Alert Configuration to disable. (required) + :type id: str + :param body: + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5164,9 +5067,9 @@ def find_active_website_alert_configs_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._find_active_website_alert_configs_serialize( - website_id=website_id, - alert_ids=alert_ids, + _param = self._disable_website_alert_config_serialize( + id=id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5174,8 +5077,9 @@ def find_active_website_alert_configs_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[WebsiteAlertConfigWithMetadata]", + '204': None, '403': None, + '404': None, } response_data = self.api_client.call_api( *_param, @@ -5189,10 +5093,10 @@ def find_active_website_alert_configs_with_http_info( @validate_call - def find_active_website_alert_configs_without_preload_content( + def disable_website_alert_config_without_preload_content( self, - website_id: Annotated[StrictStr, Field(description="The ID of a specific Website")], - alert_ids: Annotated[Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=1000)]], Field(description="A list of Smart Alert Configuration IDs. This allows fetching of a specific set of Configurations. This query can be repeated to use multiple IDs.")] = None, + id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to disable.")], + body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5206,14 +5110,14 @@ def find_active_website_alert_configs_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get all Website Smart Alert Configs + """Disable Website Smart Alert Config - Gets all the Website Smart Alert Configuration pertaining to a specific website. Configurations are sorted by creation date in descending order. + Disables a Website Smart Alert Configuration. - :param website_id: The ID of a specific Website (required) - :type website_id: str - :param alert_ids: A list of Smart Alert Configuration IDs. This allows fetching of a specific set of Configurations. This query can be repeated to use multiple IDs. - :type alert_ids: List[str] + :param id: ID of a specific Website Smart Alert Configuration to disable. (required) + :type id: str + :param body: + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5236,9 +5140,9 @@ def find_active_website_alert_configs_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._find_active_website_alert_configs_serialize( - website_id=website_id, - alert_ids=alert_ids, + _param = self._disable_website_alert_config_serialize( + id=id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5246,8 +5150,9 @@ def find_active_website_alert_configs_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[WebsiteAlertConfigWithMetadata]", + '204': None, '403': None, + '404': None, } response_data = self.api_client.call_api( *_param, @@ -5256,10 +5161,10 @@ def find_active_website_alert_configs_without_preload_content( return response_data.response - def _find_active_website_alert_configs_serialize( + def _disable_website_alert_config_serialize( self, - website_id, - alert_ids, + id, + body, _request_auth, _content_type, _headers, @@ -5269,7 +5174,6 @@ def _find_active_website_alert_configs_serialize( _host = None _collection_formats: Dict[str, str] = { - 'alertIds': 'multi', } _path_params: Dict[str, str] = {} @@ -5282,28 +5186,30 @@ def _find_active_website_alert_configs_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters - if website_id is not None: - - _query_params.append(('websiteId', website_id)) - - if alert_ids is not None: - - _query_params.append(('alertIds', alert_ids)) - # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -5311,8 +5217,8 @@ def _find_active_website_alert_configs_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/events/settings/website-alert-configs', + method='PUT', + resource_path='/api/events/settings/website-alert-configs/{id}/disable', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5329,10 +5235,10 @@ def _find_active_website_alert_configs_serialize( @validate_call - def find_mobile_app_alert_config( + def enable_built_in_event_specification( self, - id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to retrieve")], - valid_on: Annotated[Optional[StrictInt], Field(description="A Unix timestamp representing a specific time the Configuration was active. If no timestamp is provided, the latest active version will be retrieved. ")] = None, + event_specification_id: StrictStr, + body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5345,15 +5251,14 @@ def find_mobile_app_alert_config( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> WithMetadata: - """Get Mobile Smart Alert Config + ) -> BuiltInEventSpecificationWithLastUpdated: + """Enable built-in event specification - Gets a specific Mobile Smart Alert Configuration. This may return a deleted Configuration. - :param id: ID of a specific Mobile Smart Alert Configuration to retrieve (required) - :type id: str - :param valid_on: A Unix timestamp representing a specific time the Configuration was active. If no timestamp is provided, the latest active version will be retrieved. - :type valid_on: int + :param event_specification_id: (required) + :type event_specification_id: str + :param body: + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5376,9 +5281,9 @@ def find_mobile_app_alert_config( :return: Returns the result object. """ # noqa: E501 - _param = self._find_mobile_app_alert_config_serialize( - id=id, - valid_on=valid_on, + _param = self._enable_built_in_event_specification_serialize( + event_specification_id=event_specification_id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5386,7 +5291,8 @@ def find_mobile_app_alert_config( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "WithMetadata", + '200': "BuiltInEventSpecificationWithLastUpdated", + '401': None, '403': None, '404': None, } @@ -5402,10 +5308,10 @@ def find_mobile_app_alert_config( @validate_call - def find_mobile_app_alert_config_with_http_info( + def enable_built_in_event_specification_with_http_info( self, - id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to retrieve")], - valid_on: Annotated[Optional[StrictInt], Field(description="A Unix timestamp representing a specific time the Configuration was active. If no timestamp is provided, the latest active version will be retrieved. ")] = None, + event_specification_id: StrictStr, + body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5418,15 +5324,14 @@ def find_mobile_app_alert_config_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[WithMetadata]: - """Get Mobile Smart Alert Config + ) -> ApiResponse[BuiltInEventSpecificationWithLastUpdated]: + """Enable built-in event specification - Gets a specific Mobile Smart Alert Configuration. This may return a deleted Configuration. - :param id: ID of a specific Mobile Smart Alert Configuration to retrieve (required) - :type id: str - :param valid_on: A Unix timestamp representing a specific time the Configuration was active. If no timestamp is provided, the latest active version will be retrieved. - :type valid_on: int + :param event_specification_id: (required) + :type event_specification_id: str + :param body: + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5449,9 +5354,9 @@ def find_mobile_app_alert_config_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._find_mobile_app_alert_config_serialize( - id=id, - valid_on=valid_on, + _param = self._enable_built_in_event_specification_serialize( + event_specification_id=event_specification_id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5459,7 +5364,8 @@ def find_mobile_app_alert_config_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "WithMetadata", + '200': "BuiltInEventSpecificationWithLastUpdated", + '401': None, '403': None, '404': None, } @@ -5475,10 +5381,10 @@ def find_mobile_app_alert_config_with_http_info( @validate_call - def find_mobile_app_alert_config_without_preload_content( + def enable_built_in_event_specification_without_preload_content( self, - id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to retrieve")], - valid_on: Annotated[Optional[StrictInt], Field(description="A Unix timestamp representing a specific time the Configuration was active. If no timestamp is provided, the latest active version will be retrieved. ")] = None, + event_specification_id: StrictStr, + body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5492,14 +5398,13 @@ def find_mobile_app_alert_config_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Mobile Smart Alert Config + """Enable built-in event specification - Gets a specific Mobile Smart Alert Configuration. This may return a deleted Configuration. - :param id: ID of a specific Mobile Smart Alert Configuration to retrieve (required) - :type id: str - :param valid_on: A Unix timestamp representing a specific time the Configuration was active. If no timestamp is provided, the latest active version will be retrieved. - :type valid_on: int + :param event_specification_id: (required) + :type event_specification_id: str + :param body: + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5522,9 +5427,9 @@ def find_mobile_app_alert_config_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._find_mobile_app_alert_config_serialize( - id=id, - valid_on=valid_on, + _param = self._enable_built_in_event_specification_serialize( + event_specification_id=event_specification_id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5532,7 +5437,8 @@ def find_mobile_app_alert_config_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "WithMetadata", + '200': "BuiltInEventSpecificationWithLastUpdated", + '401': None, '403': None, '404': None, } @@ -5543,10 +5449,10 @@ def find_mobile_app_alert_config_without_preload_content( return response_data.response - def _find_mobile_app_alert_config_serialize( + def _enable_built_in_event_specification_serialize( self, - id, - valid_on, + event_specification_id, + body, _request_auth, _content_type, _headers, @@ -5568,16 +5474,14 @@ def _find_mobile_app_alert_config_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id + if event_specification_id is not None: + _path_params['eventSpecificationId'] = event_specification_id # process the query parameters - if valid_on is not None: - - _query_params.append(('validOn', valid_on)) - # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -5588,6 +5492,19 @@ def _find_mobile_app_alert_config_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -5595,8 +5512,8 @@ def _find_mobile_app_alert_config_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/events/settings/mobile-app-alert-configs/{id}', + method='POST', + resource_path='/api/events/settings/event-specifications/built-in/{eventSpecificationId}/enable', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5613,9 +5530,10 @@ def _find_mobile_app_alert_config_serialize( @validate_call - def find_mobile_app_alert_config_versions( + def enable_custom_event_specification( self, - id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to retrieve.")], + event_specification_id: StrictStr, + body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5628,13 +5546,14 @@ def find_mobile_app_alert_config_versions( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[ConfigVersion]: - """Get Mobile Smart Alert Config Versions + ) -> CustomEventSpecificationWithLastUpdated: + """Enable custom event specification - Gets all versions of a Mobile Smart Alert Configuration. This may return deleted Configurations. Configurations are sorted by creation date in descending order. - :param id: ID of a specific Mobile Smart Alert Configuration to retrieve. (required) - :type id: str + :param event_specification_id: (required) + :type event_specification_id: str + :param body: + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5657,8 +5576,9 @@ def find_mobile_app_alert_config_versions( :return: Returns the result object. """ # noqa: E501 - _param = self._find_mobile_app_alert_config_versions_serialize( - id=id, + _param = self._enable_custom_event_specification_serialize( + event_specification_id=event_specification_id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5666,7 +5586,9 @@ def find_mobile_app_alert_config_versions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ConfigVersion]", + '200': "CustomEventSpecificationWithLastUpdated", + '400': None, + '401': None, '403': None, '404': None, } @@ -5682,9 +5604,10 @@ def find_mobile_app_alert_config_versions( @validate_call - def find_mobile_app_alert_config_versions_with_http_info( + def enable_custom_event_specification_with_http_info( self, - id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to retrieve.")], + event_specification_id: StrictStr, + body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5697,13 +5620,14 @@ def find_mobile_app_alert_config_versions_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[ConfigVersion]]: - """Get Mobile Smart Alert Config Versions + ) -> ApiResponse[CustomEventSpecificationWithLastUpdated]: + """Enable custom event specification - Gets all versions of a Mobile Smart Alert Configuration. This may return deleted Configurations. Configurations are sorted by creation date in descending order. - :param id: ID of a specific Mobile Smart Alert Configuration to retrieve. (required) - :type id: str + :param event_specification_id: (required) + :type event_specification_id: str + :param body: + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5726,8 +5650,9 @@ def find_mobile_app_alert_config_versions_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._find_mobile_app_alert_config_versions_serialize( - id=id, + _param = self._enable_custom_event_specification_serialize( + event_specification_id=event_specification_id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5735,7 +5660,9 @@ def find_mobile_app_alert_config_versions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ConfigVersion]", + '200': "CustomEventSpecificationWithLastUpdated", + '400': None, + '401': None, '403': None, '404': None, } @@ -5751,9 +5678,10 @@ def find_mobile_app_alert_config_versions_with_http_info( @validate_call - def find_mobile_app_alert_config_versions_without_preload_content( + def enable_custom_event_specification_without_preload_content( self, - id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to retrieve.")], + event_specification_id: StrictStr, + body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5767,12 +5695,13 @@ def find_mobile_app_alert_config_versions_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Mobile Smart Alert Config Versions + """Enable custom event specification - Gets all versions of a Mobile Smart Alert Configuration. This may return deleted Configurations. Configurations are sorted by creation date in descending order. - :param id: ID of a specific Mobile Smart Alert Configuration to retrieve. (required) - :type id: str + :param event_specification_id: (required) + :type event_specification_id: str + :param body: + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5795,8 +5724,9 @@ def find_mobile_app_alert_config_versions_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._find_mobile_app_alert_config_versions_serialize( - id=id, + _param = self._enable_custom_event_specification_serialize( + event_specification_id=event_specification_id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5804,7 +5734,9 @@ def find_mobile_app_alert_config_versions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ConfigVersion]", + '200': "CustomEventSpecificationWithLastUpdated", + '400': None, + '401': None, '403': None, '404': None, } @@ -5815,9 +5747,10 @@ def find_mobile_app_alert_config_versions_without_preload_content( return response_data.response - def _find_mobile_app_alert_config_versions_serialize( + def _enable_custom_event_specification_serialize( self, - id, + event_specification_id, + body, _request_auth, _content_type, _headers, @@ -5839,12 +5772,14 @@ def _find_mobile_app_alert_config_versions_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id + if event_specification_id is not None: + _path_params['eventSpecificationId'] = event_specification_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -5855,6 +5790,19 @@ def _find_mobile_app_alert_config_versions_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -5862,8 +5810,8 @@ def _find_mobile_app_alert_config_versions_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/events/settings/mobile-app-alert-configs/{id}/versions', + method='POST', + resource_path='/api/events/settings/event-specifications/custom/{eventSpecificationId}/enable', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5880,10 +5828,10 @@ def _find_mobile_app_alert_config_versions_serialize( @validate_call - def find_website_alert_config( + def enable_mobile_app_alert_config( self, - id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to retrieve.")], - valid_on: Annotated[Optional[StrictInt], Field(description="A Unix timestamp representing a specific time the config was active. If no timestamp is provided, the latest active version will be retrieved. ")] = None, + id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to enable.")], + body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5896,15 +5844,15 @@ def find_website_alert_config( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> WebsiteAlertConfigWithMetadata: - """Get Website Smart Alert Config + ) -> None: + """Enable Mobile Smart Alert Config - Gets a specific Website Smart Alert Configuration. This may return a deleted Configuration. + Enables a Mobile Smart Alert Configuration. - :param id: ID of a specific Website Smart Alert Configuration to retrieve. (required) + :param id: ID of a specific Mobile Smart Alert Configuration to enable. (required) :type id: str - :param valid_on: A Unix timestamp representing a specific time the config was active. If no timestamp is provided, the latest active version will be retrieved. - :type valid_on: int + :param body: + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5927,9 +5875,9 @@ def find_website_alert_config( :return: Returns the result object. """ # noqa: E501 - _param = self._find_website_alert_config_serialize( + _param = self._enable_mobile_app_alert_config_serialize( id=id, - valid_on=valid_on, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5937,7 +5885,7 @@ def find_website_alert_config( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "WebsiteAlertConfigWithMetadata", + '204': None, '403': None, '404': None, } @@ -5953,10 +5901,10 @@ def find_website_alert_config( @validate_call - def find_website_alert_config_with_http_info( + def enable_mobile_app_alert_config_with_http_info( self, - id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to retrieve.")], - valid_on: Annotated[Optional[StrictInt], Field(description="A Unix timestamp representing a specific time the config was active. If no timestamp is provided, the latest active version will be retrieved. ")] = None, + id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to enable.")], + body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5969,15 +5917,15 @@ def find_website_alert_config_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[WebsiteAlertConfigWithMetadata]: - """Get Website Smart Alert Config + ) -> ApiResponse[None]: + """Enable Mobile Smart Alert Config - Gets a specific Website Smart Alert Configuration. This may return a deleted Configuration. + Enables a Mobile Smart Alert Configuration. - :param id: ID of a specific Website Smart Alert Configuration to retrieve. (required) + :param id: ID of a specific Mobile Smart Alert Configuration to enable. (required) :type id: str - :param valid_on: A Unix timestamp representing a specific time the config was active. If no timestamp is provided, the latest active version will be retrieved. - :type valid_on: int + :param body: + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6000,9 +5948,9 @@ def find_website_alert_config_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._find_website_alert_config_serialize( + _param = self._enable_mobile_app_alert_config_serialize( id=id, - valid_on=valid_on, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6010,7 +5958,7 @@ def find_website_alert_config_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "WebsiteAlertConfigWithMetadata", + '204': None, '403': None, '404': None, } @@ -6026,10 +5974,10 @@ def find_website_alert_config_with_http_info( @validate_call - def find_website_alert_config_without_preload_content( + def enable_mobile_app_alert_config_without_preload_content( self, - id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to retrieve.")], - valid_on: Annotated[Optional[StrictInt], Field(description="A Unix timestamp representing a specific time the config was active. If no timestamp is provided, the latest active version will be retrieved. ")] = None, + id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to enable.")], + body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6043,14 +5991,14 @@ def find_website_alert_config_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Website Smart Alert Config + """Enable Mobile Smart Alert Config - Gets a specific Website Smart Alert Configuration. This may return a deleted Configuration. + Enables a Mobile Smart Alert Configuration. - :param id: ID of a specific Website Smart Alert Configuration to retrieve. (required) + :param id: ID of a specific Mobile Smart Alert Configuration to enable. (required) :type id: str - :param valid_on: A Unix timestamp representing a specific time the config was active. If no timestamp is provided, the latest active version will be retrieved. - :type valid_on: int + :param body: + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6073,9 +6021,9 @@ def find_website_alert_config_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._find_website_alert_config_serialize( + _param = self._enable_mobile_app_alert_config_serialize( id=id, - valid_on=valid_on, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6083,7 +6031,7 @@ def find_website_alert_config_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "WebsiteAlertConfigWithMetadata", + '204': None, '403': None, '404': None, } @@ -6094,10 +6042,10 @@ def find_website_alert_config_without_preload_content( return response_data.response - def _find_website_alert_config_serialize( + def _enable_mobile_app_alert_config_serialize( self, id, - valid_on, + body, _request_auth, _content_type, _headers, @@ -6122,23 +6070,27 @@ def _find_website_alert_config_serialize( if id is not None: _path_params['id'] = id # process the query parameters - if valid_on is not None: - - _query_params.append(('validOn', valid_on)) - # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -6146,8 +6098,8 @@ def _find_website_alert_config_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/events/settings/website-alert-configs/{id}', + method='PUT', + resource_path='/api/events/settings/mobile-app-alert-configs/{id}/enable', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6164,9 +6116,10 @@ def _find_website_alert_config_serialize( @validate_call - def find_website_alert_config_versions( + def enable_website_alert_config( self, - id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to retrieve.")], + id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to enable.")], + body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6179,13 +6132,15 @@ def find_website_alert_config_versions( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[ConfigVersion]: - """Get Website Smart Alert Config Versions. + ) -> None: + """Enable Website Smart Alert Config - Gets all versions of a Website Smart Alert Configuration. This may return deleted Configurations. Configurations are sorted by creation date in descending order. + Enables a website alert configuration. - :param id: ID of a specific Website Smart Alert Configuration to retrieve. (required) + :param id: ID of a specific Website Smart Alert Configuration to enable. (required) :type id: str + :param body: + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6208,8 +6163,9 @@ def find_website_alert_config_versions( :return: Returns the result object. """ # noqa: E501 - _param = self._find_website_alert_config_versions_serialize( + _param = self._enable_website_alert_config_serialize( id=id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6217,7 +6173,7 @@ def find_website_alert_config_versions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ConfigVersion]", + '204': None, '403': None, '404': None, } @@ -6233,9 +6189,10 @@ def find_website_alert_config_versions( @validate_call - def find_website_alert_config_versions_with_http_info( + def enable_website_alert_config_with_http_info( self, - id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to retrieve.")], + id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to enable.")], + body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6248,13 +6205,15 @@ def find_website_alert_config_versions_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[ConfigVersion]]: - """Get Website Smart Alert Config Versions. + ) -> ApiResponse[None]: + """Enable Website Smart Alert Config - Gets all versions of a Website Smart Alert Configuration. This may return deleted Configurations. Configurations are sorted by creation date in descending order. + Enables a website alert configuration. - :param id: ID of a specific Website Smart Alert Configuration to retrieve. (required) + :param id: ID of a specific Website Smart Alert Configuration to enable. (required) :type id: str + :param body: + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6277,8 +6236,9 @@ def find_website_alert_config_versions_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._find_website_alert_config_versions_serialize( + _param = self._enable_website_alert_config_serialize( id=id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6286,7 +6246,7 @@ def find_website_alert_config_versions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ConfigVersion]", + '204': None, '403': None, '404': None, } @@ -6302,9 +6262,10 @@ def find_website_alert_config_versions_with_http_info( @validate_call - def find_website_alert_config_versions_without_preload_content( + def enable_website_alert_config_without_preload_content( self, - id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to retrieve.")], + id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to enable.")], + body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6318,12 +6279,14 @@ def find_website_alert_config_versions_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Website Smart Alert Config Versions. + """Enable Website Smart Alert Config - Gets all versions of a Website Smart Alert Configuration. This may return deleted Configurations. Configurations are sorted by creation date in descending order. + Enables a website alert configuration. - :param id: ID of a specific Website Smart Alert Configuration to retrieve. (required) + :param id: ID of a specific Website Smart Alert Configuration to enable. (required) :type id: str + :param body: + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6346,8 +6309,9 @@ def find_website_alert_config_versions_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._find_website_alert_config_versions_serialize( + _param = self._enable_website_alert_config_serialize( id=id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6355,7 +6319,7 @@ def find_website_alert_config_versions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ConfigVersion]", + '204': None, '403': None, '404': None, } @@ -6366,9 +6330,10 @@ def find_website_alert_config_versions_without_preload_content( return response_data.response - def _find_website_alert_config_versions_serialize( + def _enable_website_alert_config_serialize( self, id, + body, _request_auth, _content_type, _headers, @@ -6396,16 +6361,24 @@ def _find_website_alert_config_versions_serialize( # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -6413,8 +6386,8 @@ def _find_website_alert_config_versions_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/events/settings/website-alert-configs/{id}/versions', + method='PUT', + resource_path='/api/events/settings/website-alert-configs/{id}/enable', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6431,9 +6404,10 @@ def _find_website_alert_config_versions_serialize( @validate_call - def get_alert( + def find_active_mobile_app_alert_configs( self, - id: Annotated[StrictStr, Field(description="ID of a specific Alert Configuration to retrieve.")], + mobile_app_id: Annotated[StrictStr, Field(description="The ID of a specific Mobile Application.")], + alert_ids: Annotated[Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=1000)]], Field(description="A list of Smart Alert Configuration IDs. This allows Mobile Application Smart Alert Configuration of a specific set of Configurations. This query can be repeated to use multiple IDs.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6446,13 +6420,15 @@ def get_alert( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AlertingConfigurationWithLastUpdated: - """Get Alert Configuration + ) -> List[MobileAppAlertConfigWithRBACTag]: + """Get all Mobile Smart Alert Configs - Get a specific Alert Configuration by ID. + Gets all the Mobile Smart Alert Configuration pertaining to a specific mobile app.Configurations are sorted by creation date in descending order. - :param id: ID of a specific Alert Configuration to retrieve. (required) - :type id: str + :param mobile_app_id: The ID of a specific Mobile Application. (required) + :type mobile_app_id: str + :param alert_ids: A list of Smart Alert Configuration IDs. This allows Mobile Application Smart Alert Configuration of a specific set of Configurations. This query can be repeated to use multiple IDs. + :type alert_ids: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6475,8 +6451,9 @@ def get_alert( :return: Returns the result object. """ # noqa: E501 - _param = self._get_alert_serialize( - id=id, + _param = self._find_active_mobile_app_alert_configs_serialize( + mobile_app_id=mobile_app_id, + alert_ids=alert_ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6484,10 +6461,7 @@ def get_alert( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AlertingConfigurationWithLastUpdated", - '401': None, - '403': None, - '404': None, + '200': "List[MobileAppAlertConfigWithRBACTag]", } response_data = self.api_client.call_api( *_param, @@ -6501,9 +6475,10 @@ def get_alert( @validate_call - def get_alert_with_http_info( + def find_active_mobile_app_alert_configs_with_http_info( self, - id: Annotated[StrictStr, Field(description="ID of a specific Alert Configuration to retrieve.")], + mobile_app_id: Annotated[StrictStr, Field(description="The ID of a specific Mobile Application.")], + alert_ids: Annotated[Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=1000)]], Field(description="A list of Smart Alert Configuration IDs. This allows Mobile Application Smart Alert Configuration of a specific set of Configurations. This query can be repeated to use multiple IDs.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6516,13 +6491,15 @@ def get_alert_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AlertingConfigurationWithLastUpdated]: - """Get Alert Configuration + ) -> ApiResponse[List[MobileAppAlertConfigWithRBACTag]]: + """Get all Mobile Smart Alert Configs - Get a specific Alert Configuration by ID. + Gets all the Mobile Smart Alert Configuration pertaining to a specific mobile app.Configurations are sorted by creation date in descending order. - :param id: ID of a specific Alert Configuration to retrieve. (required) - :type id: str + :param mobile_app_id: The ID of a specific Mobile Application. (required) + :type mobile_app_id: str + :param alert_ids: A list of Smart Alert Configuration IDs. This allows Mobile Application Smart Alert Configuration of a specific set of Configurations. This query can be repeated to use multiple IDs. + :type alert_ids: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6545,8 +6522,9 @@ def get_alert_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_alert_serialize( - id=id, + _param = self._find_active_mobile_app_alert_configs_serialize( + mobile_app_id=mobile_app_id, + alert_ids=alert_ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6554,10 +6532,7 @@ def get_alert_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AlertingConfigurationWithLastUpdated", - '401': None, - '403': None, - '404': None, + '200': "List[MobileAppAlertConfigWithRBACTag]", } response_data = self.api_client.call_api( *_param, @@ -6571,9 +6546,10 @@ def get_alert_with_http_info( @validate_call - def get_alert_without_preload_content( + def find_active_mobile_app_alert_configs_without_preload_content( self, - id: Annotated[StrictStr, Field(description="ID of a specific Alert Configuration to retrieve.")], + mobile_app_id: Annotated[StrictStr, Field(description="The ID of a specific Mobile Application.")], + alert_ids: Annotated[Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=1000)]], Field(description="A list of Smart Alert Configuration IDs. This allows Mobile Application Smart Alert Configuration of a specific set of Configurations. This query can be repeated to use multiple IDs.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6587,12 +6563,14 @@ def get_alert_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Alert Configuration + """Get all Mobile Smart Alert Configs - Get a specific Alert Configuration by ID. + Gets all the Mobile Smart Alert Configuration pertaining to a specific mobile app.Configurations are sorted by creation date in descending order. - :param id: ID of a specific Alert Configuration to retrieve. (required) - :type id: str + :param mobile_app_id: The ID of a specific Mobile Application. (required) + :type mobile_app_id: str + :param alert_ids: A list of Smart Alert Configuration IDs. This allows Mobile Application Smart Alert Configuration of a specific set of Configurations. This query can be repeated to use multiple IDs. + :type alert_ids: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6615,8 +6593,9 @@ def get_alert_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_alert_serialize( - id=id, + _param = self._find_active_mobile_app_alert_configs_serialize( + mobile_app_id=mobile_app_id, + alert_ids=alert_ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6624,10 +6603,7 @@ def get_alert_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AlertingConfigurationWithLastUpdated", - '401': None, - '403': None, - '404': None, + '200': "List[MobileAppAlertConfigWithRBACTag]", } response_data = self.api_client.call_api( *_param, @@ -6636,9 +6612,10 @@ def get_alert_without_preload_content( return response_data.response - def _get_alert_serialize( + def _find_active_mobile_app_alert_configs_serialize( self, - id, + mobile_app_id, + alert_ids, _request_auth, _content_type, _headers, @@ -6648,6 +6625,7 @@ def _get_alert_serialize( _host = None _collection_formats: Dict[str, str] = { + 'alertIds': 'multi', } _path_params: Dict[str, str] = {} @@ -6660,9 +6638,15 @@ def _get_alert_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters + if mobile_app_id is not None: + + _query_params.append(('mobileAppId', mobile_app_id)) + + if alert_ids is not None: + + _query_params.append(('alertIds', alert_ids)) + # process the header parameters # process the form parameters # process the body parameter @@ -6684,7 +6668,7 @@ def _get_alert_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/events/settings/alerts/{id}', + resource_path='/api/events/settings/mobile-app-alert-configs', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6701,9 +6685,10 @@ def _get_alert_serialize( @validate_call - def get_alerting_channel( + def find_active_website_alert_configs( self, - id: Annotated[StrictStr, Field(description="ID of the Alerting Channel to get.")], + website_id: Annotated[StrictStr, Field(description="The ID of a specific Website")], + alert_ids: Annotated[Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=1000)]], Field(description="A list of Smart Alert Configuration IDs. This allows fetching of a specific set of Configurations. This query can be repeated to use multiple IDs.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6716,13 +6701,15 @@ def get_alerting_channel( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AbstractIntegration: - """Get Alerting Channel + ) -> List[WebsiteAlertConfigWithRBACTag]: + """Get all Website Smart Alert Configs - Gets an alerting channel. Requires the permission called CanConfigureIntegrations. + Gets all the Website Smart Alert Configuration pertaining to a specific website. Configurations are sorted by creation date in descending order. - :param id: ID of the Alerting Channel to get. (required) - :type id: str + :param website_id: The ID of a specific Website (required) + :type website_id: str + :param alert_ids: A list of Smart Alert Configuration IDs. This allows fetching of a specific set of Configurations. This query can be repeated to use multiple IDs. + :type alert_ids: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6745,8 +6732,9 @@ def get_alerting_channel( :return: Returns the result object. """ # noqa: E501 - _param = self._get_alerting_channel_serialize( - id=id, + _param = self._find_active_website_alert_configs_serialize( + website_id=website_id, + alert_ids=alert_ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6754,7 +6742,7 @@ def get_alerting_channel( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AbstractIntegration", + '200': "List[WebsiteAlertConfigWithRBACTag]", } response_data = self.api_client.call_api( *_param, @@ -6768,9 +6756,10 @@ def get_alerting_channel( @validate_call - def get_alerting_channel_with_http_info( + def find_active_website_alert_configs_with_http_info( self, - id: Annotated[StrictStr, Field(description="ID of the Alerting Channel to get.")], + website_id: Annotated[StrictStr, Field(description="The ID of a specific Website")], + alert_ids: Annotated[Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=1000)]], Field(description="A list of Smart Alert Configuration IDs. This allows fetching of a specific set of Configurations. This query can be repeated to use multiple IDs.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6783,13 +6772,15 @@ def get_alerting_channel_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AbstractIntegration]: - """Get Alerting Channel + ) -> ApiResponse[List[WebsiteAlertConfigWithRBACTag]]: + """Get all Website Smart Alert Configs - Gets an alerting channel. Requires the permission called CanConfigureIntegrations. + Gets all the Website Smart Alert Configuration pertaining to a specific website. Configurations are sorted by creation date in descending order. - :param id: ID of the Alerting Channel to get. (required) - :type id: str + :param website_id: The ID of a specific Website (required) + :type website_id: str + :param alert_ids: A list of Smart Alert Configuration IDs. This allows fetching of a specific set of Configurations. This query can be repeated to use multiple IDs. + :type alert_ids: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6812,8 +6803,9 @@ def get_alerting_channel_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_alerting_channel_serialize( - id=id, + _param = self._find_active_website_alert_configs_serialize( + website_id=website_id, + alert_ids=alert_ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6821,7 +6813,7 @@ def get_alerting_channel_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AbstractIntegration", + '200': "List[WebsiteAlertConfigWithRBACTag]", } response_data = self.api_client.call_api( *_param, @@ -6835,9 +6827,10 @@ def get_alerting_channel_with_http_info( @validate_call - def get_alerting_channel_without_preload_content( + def find_active_website_alert_configs_without_preload_content( self, - id: Annotated[StrictStr, Field(description="ID of the Alerting Channel to get.")], + website_id: Annotated[StrictStr, Field(description="The ID of a specific Website")], + alert_ids: Annotated[Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=1000)]], Field(description="A list of Smart Alert Configuration IDs. This allows fetching of a specific set of Configurations. This query can be repeated to use multiple IDs.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6851,12 +6844,14 @@ def get_alerting_channel_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Alerting Channel + """Get all Website Smart Alert Configs - Gets an alerting channel. Requires the permission called CanConfigureIntegrations. + Gets all the Website Smart Alert Configuration pertaining to a specific website. Configurations are sorted by creation date in descending order. - :param id: ID of the Alerting Channel to get. (required) - :type id: str + :param website_id: The ID of a specific Website (required) + :type website_id: str + :param alert_ids: A list of Smart Alert Configuration IDs. This allows fetching of a specific set of Configurations. This query can be repeated to use multiple IDs. + :type alert_ids: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6879,8 +6874,9 @@ def get_alerting_channel_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_alerting_channel_serialize( - id=id, + _param = self._find_active_website_alert_configs_serialize( + website_id=website_id, + alert_ids=alert_ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6888,7 +6884,7 @@ def get_alerting_channel_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AbstractIntegration", + '200': "List[WebsiteAlertConfigWithRBACTag]", } response_data = self.api_client.call_api( *_param, @@ -6897,9 +6893,10 @@ def get_alerting_channel_without_preload_content( return response_data.response - def _get_alerting_channel_serialize( + def _find_active_website_alert_configs_serialize( self, - id, + website_id, + alert_ids, _request_auth, _content_type, _headers, @@ -6909,6 +6906,7 @@ def _get_alerting_channel_serialize( _host = None _collection_formats: Dict[str, str] = { + 'alertIds': 'multi', } _path_params: Dict[str, str] = {} @@ -6921,9 +6919,15 @@ def _get_alerting_channel_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters + if website_id is not None: + + _query_params.append(('websiteId', website_id)) + + if alert_ids is not None: + + _query_params.append(('alertIds', alert_ids)) + # process the header parameters # process the form parameters # process the body parameter @@ -6945,7 +6949,7 @@ def _get_alerting_channel_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/events/settings/alertingChannels/{id}', + resource_path='/api/events/settings/website-alert-configs', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6962,9 +6966,10 @@ def _get_alerting_channel_serialize( @validate_call - def get_alerting_channels( + def find_mobile_app_alert_config( self, - ids: Annotated[Optional[List[StrictStr]], Field(description="List of IDs of alert channels defined in Instana. Can be left empty.")] = None, + id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to retrieve")], + valid_on: Annotated[Optional[StrictInt], Field(description="A Unix timestamp representing a specific time the Configuration was active. If no timestamp is provided, the latest active version will be retrieved. ")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6977,13 +6982,15 @@ def get_alerting_channels( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[AbstractIntegration]: - """Get all Alerting Channels + ) -> MobileAppAlertConfigWithRBACTag: + """Get Mobile Smart Alert Config - Gets all the alerting channels. Requires the permission called CanConfigureIntegrations. + Gets a specific Mobile Smart Alert Configuration. This may return a deleted Configuration. - :param ids: List of IDs of alert channels defined in Instana. Can be left empty. - :type ids: List[str] + :param id: ID of a specific Mobile Smart Alert Configuration to retrieve (required) + :type id: str + :param valid_on: A Unix timestamp representing a specific time the Configuration was active. If no timestamp is provided, the latest active version will be retrieved. + :type valid_on: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7006,8 +7013,9 @@ def get_alerting_channels( :return: Returns the result object. """ # noqa: E501 - _param = self._get_alerting_channels_serialize( - ids=ids, + _param = self._find_mobile_app_alert_config_serialize( + id=id, + valid_on=valid_on, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7015,7 +7023,9 @@ def get_alerting_channels( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[AbstractIntegration]", + '200': "MobileAppAlertConfigWithRBACTag", + '403': None, + '404': None, } response_data = self.api_client.call_api( *_param, @@ -7029,9 +7039,10 @@ def get_alerting_channels( @validate_call - def get_alerting_channels_with_http_info( + def find_mobile_app_alert_config_with_http_info( self, - ids: Annotated[Optional[List[StrictStr]], Field(description="List of IDs of alert channels defined in Instana. Can be left empty.")] = None, + id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to retrieve")], + valid_on: Annotated[Optional[StrictInt], Field(description="A Unix timestamp representing a specific time the Configuration was active. If no timestamp is provided, the latest active version will be retrieved. ")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7044,13 +7055,15 @@ def get_alerting_channels_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[AbstractIntegration]]: - """Get all Alerting Channels + ) -> ApiResponse[MobileAppAlertConfigWithRBACTag]: + """Get Mobile Smart Alert Config - Gets all the alerting channels. Requires the permission called CanConfigureIntegrations. + Gets a specific Mobile Smart Alert Configuration. This may return a deleted Configuration. - :param ids: List of IDs of alert channels defined in Instana. Can be left empty. - :type ids: List[str] + :param id: ID of a specific Mobile Smart Alert Configuration to retrieve (required) + :type id: str + :param valid_on: A Unix timestamp representing a specific time the Configuration was active. If no timestamp is provided, the latest active version will be retrieved. + :type valid_on: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7073,8 +7086,9 @@ def get_alerting_channels_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_alerting_channels_serialize( - ids=ids, + _param = self._find_mobile_app_alert_config_serialize( + id=id, + valid_on=valid_on, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7082,7 +7096,9 @@ def get_alerting_channels_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[AbstractIntegration]", + '200': "MobileAppAlertConfigWithRBACTag", + '403': None, + '404': None, } response_data = self.api_client.call_api( *_param, @@ -7096,9 +7112,10 @@ def get_alerting_channels_with_http_info( @validate_call - def get_alerting_channels_without_preload_content( + def find_mobile_app_alert_config_without_preload_content( self, - ids: Annotated[Optional[List[StrictStr]], Field(description="List of IDs of alert channels defined in Instana. Can be left empty.")] = None, + id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to retrieve")], + valid_on: Annotated[Optional[StrictInt], Field(description="A Unix timestamp representing a specific time the Configuration was active. If no timestamp is provided, the latest active version will be retrieved. ")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7112,12 +7129,14 @@ def get_alerting_channels_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get all Alerting Channels + """Get Mobile Smart Alert Config - Gets all the alerting channels. Requires the permission called CanConfigureIntegrations. + Gets a specific Mobile Smart Alert Configuration. This may return a deleted Configuration. - :param ids: List of IDs of alert channels defined in Instana. Can be left empty. - :type ids: List[str] + :param id: ID of a specific Mobile Smart Alert Configuration to retrieve (required) + :type id: str + :param valid_on: A Unix timestamp representing a specific time the Configuration was active. If no timestamp is provided, the latest active version will be retrieved. + :type valid_on: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7140,8 +7159,9 @@ def get_alerting_channels_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_alerting_channels_serialize( - ids=ids, + _param = self._find_mobile_app_alert_config_serialize( + id=id, + valid_on=valid_on, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7149,7 +7169,9 @@ def get_alerting_channels_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[AbstractIntegration]", + '200': "MobileAppAlertConfigWithRBACTag", + '403': None, + '404': None, } response_data = self.api_client.call_api( *_param, @@ -7158,9 +7180,10 @@ def get_alerting_channels_without_preload_content( return response_data.response - def _get_alerting_channels_serialize( + def _find_mobile_app_alert_config_serialize( self, - ids, + id, + valid_on, _request_auth, _content_type, _headers, @@ -7170,7 +7193,6 @@ def _get_alerting_channels_serialize( _host = None _collection_formats: Dict[str, str] = { - 'ids': 'multi', } _path_params: Dict[str, str] = {} @@ -7183,10 +7205,12 @@ def _get_alerting_channels_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters - if ids is not None: + if valid_on is not None: - _query_params.append(('ids', ids)) + _query_params.append(('validOn', valid_on)) # process the header parameters # process the form parameters @@ -7209,7 +7233,7 @@ def _get_alerting_channels_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/events/settings/alertingChannels', + resource_path='/api/events/settings/mobile-app-alert-configs/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7226,9 +7250,9 @@ def _get_alerting_channels_serialize( @validate_call - def get_alerting_channels_overview( + def find_mobile_app_alert_config_versions( self, - ids: Annotated[Optional[List[StrictStr]], Field(description="List of IDs of alert channels defined in Instana. Can be left empty.")] = None, + id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to retrieve.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7241,13 +7265,13 @@ def get_alerting_channels_overview( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[IntegrationOverview]: - """Get Overview of Alerting Channels + ) -> List[ConfigVersion]: + """Get Mobile Smart Alert Config Versions - Gets the overview information of all alerting channels. Requires the permission called CanConfigureIntegrations. + Gets all versions of a Mobile Smart Alert Configuration. This may return deleted Configurations. Configurations are sorted by creation date in descending order. - :param ids: List of IDs of alert channels defined in Instana. Can be left empty. - :type ids: List[str] + :param id: ID of a specific Mobile Smart Alert Configuration to retrieve. (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7270,8 +7294,8 @@ def get_alerting_channels_overview( :return: Returns the result object. """ # noqa: E501 - _param = self._get_alerting_channels_overview_serialize( - ids=ids, + _param = self._find_mobile_app_alert_config_versions_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7279,7 +7303,9 @@ def get_alerting_channels_overview( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[IntegrationOverview]", + '200': "List[ConfigVersion]", + '403': None, + '404': None, } response_data = self.api_client.call_api( *_param, @@ -7293,9 +7319,9 @@ def get_alerting_channels_overview( @validate_call - def get_alerting_channels_overview_with_http_info( + def find_mobile_app_alert_config_versions_with_http_info( self, - ids: Annotated[Optional[List[StrictStr]], Field(description="List of IDs of alert channels defined in Instana. Can be left empty.")] = None, + id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to retrieve.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7308,13 +7334,13 @@ def get_alerting_channels_overview_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[IntegrationOverview]]: - """Get Overview of Alerting Channels + ) -> ApiResponse[List[ConfigVersion]]: + """Get Mobile Smart Alert Config Versions - Gets the overview information of all alerting channels. Requires the permission called CanConfigureIntegrations. + Gets all versions of a Mobile Smart Alert Configuration. This may return deleted Configurations. Configurations are sorted by creation date in descending order. - :param ids: List of IDs of alert channels defined in Instana. Can be left empty. - :type ids: List[str] + :param id: ID of a specific Mobile Smart Alert Configuration to retrieve. (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7337,8 +7363,8 @@ def get_alerting_channels_overview_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_alerting_channels_overview_serialize( - ids=ids, + _param = self._find_mobile_app_alert_config_versions_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7346,7 +7372,9 @@ def get_alerting_channels_overview_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[IntegrationOverview]", + '200': "List[ConfigVersion]", + '403': None, + '404': None, } response_data = self.api_client.call_api( *_param, @@ -7360,9 +7388,9 @@ def get_alerting_channels_overview_with_http_info( @validate_call - def get_alerting_channels_overview_without_preload_content( + def find_mobile_app_alert_config_versions_without_preload_content( self, - ids: Annotated[Optional[List[StrictStr]], Field(description="List of IDs of alert channels defined in Instana. Can be left empty.")] = None, + id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to retrieve.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7376,12 +7404,12 @@ def get_alerting_channels_overview_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Overview of Alerting Channels + """Get Mobile Smart Alert Config Versions - Gets the overview information of all alerting channels. Requires the permission called CanConfigureIntegrations. + Gets all versions of a Mobile Smart Alert Configuration. This may return deleted Configurations. Configurations are sorted by creation date in descending order. - :param ids: List of IDs of alert channels defined in Instana. Can be left empty. - :type ids: List[str] + :param id: ID of a specific Mobile Smart Alert Configuration to retrieve. (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7404,8 +7432,8 @@ def get_alerting_channels_overview_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_alerting_channels_overview_serialize( - ids=ids, + _param = self._find_mobile_app_alert_config_versions_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7413,7 +7441,9 @@ def get_alerting_channels_overview_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[IntegrationOverview]", + '200': "List[ConfigVersion]", + '403': None, + '404': None, } response_data = self.api_client.call_api( *_param, @@ -7422,9 +7452,9 @@ def get_alerting_channels_overview_without_preload_content( return response_data.response - def _get_alerting_channels_overview_serialize( + def _find_mobile_app_alert_config_versions_serialize( self, - ids, + id, _request_auth, _content_type, _headers, @@ -7434,7 +7464,6 @@ def _get_alerting_channels_overview_serialize( _host = None _collection_formats: Dict[str, str] = { - 'ids': 'multi', } _path_params: Dict[str, str] = {} @@ -7447,11 +7476,9 @@ def _get_alerting_channels_overview_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters - if ids is not None: - - _query_params.append(('ids', ids)) - # process the header parameters # process the form parameters # process the body parameter @@ -7473,7 +7500,7 @@ def _get_alerting_channels_overview_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/events/settings/alertingChannels/infos', + resource_path='/api/events/settings/mobile-app-alert-configs/{id}/versions', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7490,9 +7517,10 @@ def _get_alerting_channels_overview_serialize( @validate_call - def get_alerting_configuration_infos( + def find_website_alert_config( self, - integration_id: Annotated[StrictStr, Field(description="ID of a specific alert channel configuration.")], + id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to retrieve.")], + valid_on: Annotated[Optional[StrictInt], Field(description="A Unix timestamp representing a specific time the config was active. If no timestamp is provided, the latest active version will be retrieved. ")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7505,13 +7533,15 @@ def get_alerting_configuration_infos( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[ValidatedAlertingChannelInputInfo]: - """All alerting configuration info + ) -> WebsiteAlertConfigWithRBACTag: + """Get Website Smart Alert Config - Gets all alert configurations that relate to the given alert channel. + Gets a specific Website Smart Alert Configuration. This may return a deleted Configuration. - :param integration_id: ID of a specific alert channel configuration. (required) - :type integration_id: str + :param id: ID of a specific Website Smart Alert Configuration to retrieve. (required) + :type id: str + :param valid_on: A Unix timestamp representing a specific time the config was active. If no timestamp is provided, the latest active version will be retrieved. + :type valid_on: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7534,8 +7564,9 @@ def get_alerting_configuration_infos( :return: Returns the result object. """ # noqa: E501 - _param = self._get_alerting_configuration_infos_serialize( - integration_id=integration_id, + _param = self._find_website_alert_config_serialize( + id=id, + valid_on=valid_on, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7543,9 +7574,9 @@ def get_alerting_configuration_infos( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ValidatedAlertingChannelInputInfo]", - '401': None, + '200': "WebsiteAlertConfigWithRBACTag", '403': None, + '404': None, } response_data = self.api_client.call_api( *_param, @@ -7559,9 +7590,10 @@ def get_alerting_configuration_infos( @validate_call - def get_alerting_configuration_infos_with_http_info( + def find_website_alert_config_with_http_info( self, - integration_id: Annotated[StrictStr, Field(description="ID of a specific alert channel configuration.")], + id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to retrieve.")], + valid_on: Annotated[Optional[StrictInt], Field(description="A Unix timestamp representing a specific time the config was active. If no timestamp is provided, the latest active version will be retrieved. ")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7574,13 +7606,15 @@ def get_alerting_configuration_infos_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[ValidatedAlertingChannelInputInfo]]: - """All alerting configuration info + ) -> ApiResponse[WebsiteAlertConfigWithRBACTag]: + """Get Website Smart Alert Config - Gets all alert configurations that relate to the given alert channel. + Gets a specific Website Smart Alert Configuration. This may return a deleted Configuration. - :param integration_id: ID of a specific alert channel configuration. (required) - :type integration_id: str + :param id: ID of a specific Website Smart Alert Configuration to retrieve. (required) + :type id: str + :param valid_on: A Unix timestamp representing a specific time the config was active. If no timestamp is provided, the latest active version will be retrieved. + :type valid_on: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7603,8 +7637,9 @@ def get_alerting_configuration_infos_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_alerting_configuration_infos_serialize( - integration_id=integration_id, + _param = self._find_website_alert_config_serialize( + id=id, + valid_on=valid_on, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7612,9 +7647,9 @@ def get_alerting_configuration_infos_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ValidatedAlertingChannelInputInfo]", - '401': None, + '200': "WebsiteAlertConfigWithRBACTag", '403': None, + '404': None, } response_data = self.api_client.call_api( *_param, @@ -7628,9 +7663,10 @@ def get_alerting_configuration_infos_with_http_info( @validate_call - def get_alerting_configuration_infos_without_preload_content( + def find_website_alert_config_without_preload_content( self, - integration_id: Annotated[StrictStr, Field(description="ID of a specific alert channel configuration.")], + id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to retrieve.")], + valid_on: Annotated[Optional[StrictInt], Field(description="A Unix timestamp representing a specific time the config was active. If no timestamp is provided, the latest active version will be retrieved. ")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7644,12 +7680,14 @@ def get_alerting_configuration_infos_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """All alerting configuration info + """Get Website Smart Alert Config - Gets all alert configurations that relate to the given alert channel. + Gets a specific Website Smart Alert Configuration. This may return a deleted Configuration. - :param integration_id: ID of a specific alert channel configuration. (required) - :type integration_id: str + :param id: ID of a specific Website Smart Alert Configuration to retrieve. (required) + :type id: str + :param valid_on: A Unix timestamp representing a specific time the config was active. If no timestamp is provided, the latest active version will be retrieved. + :type valid_on: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7672,8 +7710,9 @@ def get_alerting_configuration_infos_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_alerting_configuration_infos_serialize( - integration_id=integration_id, + _param = self._find_website_alert_config_serialize( + id=id, + valid_on=valid_on, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7681,9 +7720,9 @@ def get_alerting_configuration_infos_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ValidatedAlertingChannelInputInfo]", - '401': None, + '200': "WebsiteAlertConfigWithRBACTag", '403': None, + '404': None, } response_data = self.api_client.call_api( *_param, @@ -7692,9 +7731,10 @@ def get_alerting_configuration_infos_without_preload_content( return response_data.response - def _get_alerting_configuration_infos_serialize( + def _find_website_alert_config_serialize( self, - integration_id, + id, + valid_on, _request_auth, _content_type, _headers, @@ -7716,10 +7756,12 @@ def _get_alerting_configuration_infos_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters - if integration_id is not None: + if valid_on is not None: - _query_params.append(('integrationId', integration_id)) + _query_params.append(('validOn', valid_on)) # process the header parameters # process the form parameters @@ -7742,7 +7784,7 @@ def _get_alerting_configuration_infos_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/events/settings/alerts/infos', + resource_path='/api/events/settings/website-alert-configs/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7759,8 +7801,9 @@ def _get_alerting_configuration_infos_serialize( @validate_call - def get_alerts( + def find_website_alert_config_versions( self, + id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to retrieve.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7773,11 +7816,13 @@ def get_alerts( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[ValidatedAlertingConfiguration]: - """Get all Alert Configurations + ) -> List[ConfigVersion]: + """Get Website Smart Alert Config Versions. - Gets all Alert Configurations + Gets all versions of a Website Smart Alert Configuration. This may return deleted Configurations. Configurations are sorted by creation date in descending order. + :param id: ID of a specific Website Smart Alert Configuration to retrieve. (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7800,7 +7845,8 @@ def get_alerts( :return: Returns the result object. """ # noqa: E501 - _param = self._get_alerts_serialize( + _param = self._find_website_alert_config_versions_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7808,9 +7854,9 @@ def get_alerts( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ValidatedAlertingConfiguration]", - '401': None, + '200': "List[ConfigVersion]", '403': None, + '404': None, } response_data = self.api_client.call_api( *_param, @@ -7824,8 +7870,9 @@ def get_alerts( @validate_call - def get_alerts_with_http_info( + def find_website_alert_config_versions_with_http_info( self, + id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to retrieve.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7838,11 +7885,13 @@ def get_alerts_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[ValidatedAlertingConfiguration]]: - """Get all Alert Configurations + ) -> ApiResponse[List[ConfigVersion]]: + """Get Website Smart Alert Config Versions. - Gets all Alert Configurations + Gets all versions of a Website Smart Alert Configuration. This may return deleted Configurations. Configurations are sorted by creation date in descending order. + :param id: ID of a specific Website Smart Alert Configuration to retrieve. (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7865,7 +7914,8 @@ def get_alerts_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_alerts_serialize( + _param = self._find_website_alert_config_versions_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7873,9 +7923,9 @@ def get_alerts_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ValidatedAlertingConfiguration]", - '401': None, + '200': "List[ConfigVersion]", '403': None, + '404': None, } response_data = self.api_client.call_api( *_param, @@ -7889,8 +7939,9 @@ def get_alerts_with_http_info( @validate_call - def get_alerts_without_preload_content( + def find_website_alert_config_versions_without_preload_content( self, + id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to retrieve.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7904,10 +7955,12 @@ def get_alerts_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get all Alert Configurations + """Get Website Smart Alert Config Versions. - Gets all Alert Configurations + Gets all versions of a Website Smart Alert Configuration. This may return deleted Configurations. Configurations are sorted by creation date in descending order. + :param id: ID of a specific Website Smart Alert Configuration to retrieve. (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7930,7 +7983,8 @@ def get_alerts_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_alerts_serialize( + _param = self._find_website_alert_config_versions_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7938,9 +7992,9 @@ def get_alerts_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ValidatedAlertingConfiguration]", - '401': None, + '200': "List[ConfigVersion]", '403': None, + '404': None, } response_data = self.api_client.call_api( *_param, @@ -7949,8 +8003,9 @@ def get_alerts_without_preload_content( return response_data.response - def _get_alerts_serialize( + def _find_website_alert_config_versions_serialize( self, + id, _request_auth, _content_type, _headers, @@ -7972,6 +8027,8 @@ def _get_alerts_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -7994,7 +8051,7 @@ def _get_alerts_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/events/settings/alerts', + resource_path='/api/events/settings/website-alert-configs/{id}/versions', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8011,9 +8068,9 @@ def _get_alerts_serialize( @validate_call - def get_built_in_event_specification( + def get_alert( self, - event_specification_id: StrictStr, + id: Annotated[StrictStr, Field(description="ID of a specific Alert Configuration to retrieve.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8026,12 +8083,13 @@ def get_built_in_event_specification( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BuiltInEventSpecification: - """Built-in event specifications + ) -> AlertingConfigurationWithLastUpdated: + """Get Alert Configuration + Get a specific Alert Configuration by ID. - :param event_specification_id: (required) - :type event_specification_id: str + :param id: ID of a specific Alert Configuration to retrieve. (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8054,8 +8112,8 @@ def get_built_in_event_specification( :return: Returns the result object. """ # noqa: E501 - _param = self._get_built_in_event_specification_serialize( - event_specification_id=event_specification_id, + _param = self._get_alert_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8063,7 +8121,7 @@ def get_built_in_event_specification( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BuiltInEventSpecification", + '200': "AlertingConfigurationWithLastUpdated", '401': None, '403': None, '404': None, @@ -8080,9 +8138,9 @@ def get_built_in_event_specification( @validate_call - def get_built_in_event_specification_with_http_info( + def get_alert_with_http_info( self, - event_specification_id: StrictStr, + id: Annotated[StrictStr, Field(description="ID of a specific Alert Configuration to retrieve.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8095,12 +8153,13 @@ def get_built_in_event_specification_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BuiltInEventSpecification]: - """Built-in event specifications + ) -> ApiResponse[AlertingConfigurationWithLastUpdated]: + """Get Alert Configuration + Get a specific Alert Configuration by ID. - :param event_specification_id: (required) - :type event_specification_id: str + :param id: ID of a specific Alert Configuration to retrieve. (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8123,8 +8182,8 @@ def get_built_in_event_specification_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_built_in_event_specification_serialize( - event_specification_id=event_specification_id, + _param = self._get_alert_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8132,7 +8191,7 @@ def get_built_in_event_specification_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BuiltInEventSpecification", + '200': "AlertingConfigurationWithLastUpdated", '401': None, '403': None, '404': None, @@ -8149,9 +8208,9 @@ def get_built_in_event_specification_with_http_info( @validate_call - def get_built_in_event_specification_without_preload_content( + def get_alert_without_preload_content( self, - event_specification_id: StrictStr, + id: Annotated[StrictStr, Field(description="ID of a specific Alert Configuration to retrieve.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8165,11 +8224,12 @@ def get_built_in_event_specification_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Built-in event specifications + """Get Alert Configuration + Get a specific Alert Configuration by ID. - :param event_specification_id: (required) - :type event_specification_id: str + :param id: ID of a specific Alert Configuration to retrieve. (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8192,8 +8252,8 @@ def get_built_in_event_specification_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_built_in_event_specification_serialize( - event_specification_id=event_specification_id, + _param = self._get_alert_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8201,7 +8261,7 @@ def get_built_in_event_specification_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BuiltInEventSpecification", + '200': "AlertingConfigurationWithLastUpdated", '401': None, '403': None, '404': None, @@ -8213,9 +8273,9 @@ def get_built_in_event_specification_without_preload_content( return response_data.response - def _get_built_in_event_specification_serialize( + def _get_alert_serialize( self, - event_specification_id, + id, _request_auth, _content_type, _headers, @@ -8237,8 +8297,8 @@ def _get_built_in_event_specification_serialize( _body_params: Optional[bytes] = None # process the path parameters - if event_specification_id is not None: - _path_params['eventSpecificationId'] = event_specification_id + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -8261,7 +8321,7 @@ def _get_built_in_event_specification_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/events/settings/event-specifications/built-in/{eventSpecificationId}', + resource_path='/api/events/settings/alerts/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8278,9 +8338,9 @@ def _get_built_in_event_specification_serialize( @validate_call - def get_built_in_event_specifications( + def get_alerting_channel( self, - ids: Optional[List[StrictStr]] = None, + id: Annotated[StrictStr, Field(description="ID of the Alerting Channel to get.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8293,13 +8353,13 @@ def get_built_in_event_specifications( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[BuiltInEventSpecificationWithLastUpdated]: - """All built-in event specification + ) -> AbstractIntegration: + """Get Alerting Channel - Get all built-in event specifications + Gets an alerting channel. Requires the permission called CanConfigureIntegrations. - :param ids: - :type ids: List[str] + :param id: ID of the Alerting Channel to get. (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8322,8 +8382,8 @@ def get_built_in_event_specifications( :return: Returns the result object. """ # noqa: E501 - _param = self._get_built_in_event_specifications_serialize( - ids=ids, + _param = self._get_alerting_channel_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8331,9 +8391,7 @@ def get_built_in_event_specifications( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[BuiltInEventSpecificationWithLastUpdated]", - '401': None, - '403': None, + '200': "AbstractIntegration", } response_data = self.api_client.call_api( *_param, @@ -8347,9 +8405,9 @@ def get_built_in_event_specifications( @validate_call - def get_built_in_event_specifications_with_http_info( + def get_alerting_channel_with_http_info( self, - ids: Optional[List[StrictStr]] = None, + id: Annotated[StrictStr, Field(description="ID of the Alerting Channel to get.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8362,13 +8420,13 @@ def get_built_in_event_specifications_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[BuiltInEventSpecificationWithLastUpdated]]: - """All built-in event specification + ) -> ApiResponse[AbstractIntegration]: + """Get Alerting Channel - Get all built-in event specifications + Gets an alerting channel. Requires the permission called CanConfigureIntegrations. - :param ids: - :type ids: List[str] + :param id: ID of the Alerting Channel to get. (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8391,8 +8449,8 @@ def get_built_in_event_specifications_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_built_in_event_specifications_serialize( - ids=ids, + _param = self._get_alerting_channel_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8400,9 +8458,7 @@ def get_built_in_event_specifications_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[BuiltInEventSpecificationWithLastUpdated]", - '401': None, - '403': None, + '200': "AbstractIntegration", } response_data = self.api_client.call_api( *_param, @@ -8416,9 +8472,9 @@ def get_built_in_event_specifications_with_http_info( @validate_call - def get_built_in_event_specifications_without_preload_content( + def get_alerting_channel_without_preload_content( self, - ids: Optional[List[StrictStr]] = None, + id: Annotated[StrictStr, Field(description="ID of the Alerting Channel to get.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8432,12 +8488,12 @@ def get_built_in_event_specifications_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """All built-in event specification + """Get Alerting Channel - Get all built-in event specifications + Gets an alerting channel. Requires the permission called CanConfigureIntegrations. - :param ids: - :type ids: List[str] + :param id: ID of the Alerting Channel to get. (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8460,8 +8516,8 @@ def get_built_in_event_specifications_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_built_in_event_specifications_serialize( - ids=ids, + _param = self._get_alerting_channel_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8469,9 +8525,7 @@ def get_built_in_event_specifications_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[BuiltInEventSpecificationWithLastUpdated]", - '401': None, - '403': None, + '200': "AbstractIntegration", } response_data = self.api_client.call_api( *_param, @@ -8480,9 +8534,9 @@ def get_built_in_event_specifications_without_preload_content( return response_data.response - def _get_built_in_event_specifications_serialize( + def _get_alerting_channel_serialize( self, - ids, + id, _request_auth, _content_type, _headers, @@ -8492,7 +8546,6 @@ def _get_built_in_event_specifications_serialize( _host = None _collection_formats: Dict[str, str] = { - 'ids': 'multi', } _path_params: Dict[str, str] = {} @@ -8505,11 +8558,9 @@ def _get_built_in_event_specifications_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters - if ids is not None: - - _query_params.append(('ids', ids)) - # process the header parameters # process the form parameters # process the body parameter @@ -8531,7 +8582,7 @@ def _get_built_in_event_specifications_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/events/settings/event-specifications/built-in', + resource_path='/api/events/settings/alertingChannels/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8548,9 +8599,9 @@ def _get_built_in_event_specifications_serialize( @validate_call - def get_custom_event_specification( + def get_alerting_channels( self, - event_specification_id: Annotated[StrictStr, Field(description="eventSpecificationId")], + ids: Annotated[Optional[List[StrictStr]], Field(description="List of IDs of alert channels defined in Instana. Can be left empty.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8563,13 +8614,13 @@ def get_custom_event_specification( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CustomEventSpecificationWithLastUpdated: - """Custom event specification + ) -> List[AbstractIntegration]: + """Get all Alerting Channels - This API helps to get the Custom Event specification for the given ID. + Gets all the alerting channels. Requires the permission called CanConfigureIntegrations. - :param event_specification_id: eventSpecificationId (required) - :type event_specification_id: str + :param ids: List of IDs of alert channels defined in Instana. Can be left empty. + :type ids: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8592,8 +8643,8 @@ def get_custom_event_specification( :return: Returns the result object. """ # noqa: E501 - _param = self._get_custom_event_specification_serialize( - event_specification_id=event_specification_id, + _param = self._get_alerting_channels_serialize( + ids=ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8601,10 +8652,7 @@ def get_custom_event_specification( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CustomEventSpecificationWithLastUpdated", - '401': None, - '403': None, - '404': None, + '200': "List[AbstractIntegration]", } response_data = self.api_client.call_api( *_param, @@ -8618,9 +8666,9 @@ def get_custom_event_specification( @validate_call - def get_custom_event_specification_with_http_info( + def get_alerting_channels_with_http_info( self, - event_specification_id: Annotated[StrictStr, Field(description="eventSpecificationId")], + ids: Annotated[Optional[List[StrictStr]], Field(description="List of IDs of alert channels defined in Instana. Can be left empty.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8633,13 +8681,13 @@ def get_custom_event_specification_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CustomEventSpecificationWithLastUpdated]: - """Custom event specification + ) -> ApiResponse[List[AbstractIntegration]]: + """Get all Alerting Channels - This API helps to get the Custom Event specification for the given ID. + Gets all the alerting channels. Requires the permission called CanConfigureIntegrations. - :param event_specification_id: eventSpecificationId (required) - :type event_specification_id: str + :param ids: List of IDs of alert channels defined in Instana. Can be left empty. + :type ids: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8662,8 +8710,8 @@ def get_custom_event_specification_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_custom_event_specification_serialize( - event_specification_id=event_specification_id, + _param = self._get_alerting_channels_serialize( + ids=ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8671,10 +8719,7 @@ def get_custom_event_specification_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CustomEventSpecificationWithLastUpdated", - '401': None, - '403': None, - '404': None, + '200': "List[AbstractIntegration]", } response_data = self.api_client.call_api( *_param, @@ -8688,9 +8733,9 @@ def get_custom_event_specification_with_http_info( @validate_call - def get_custom_event_specification_without_preload_content( + def get_alerting_channels_without_preload_content( self, - event_specification_id: Annotated[StrictStr, Field(description="eventSpecificationId")], + ids: Annotated[Optional[List[StrictStr]], Field(description="List of IDs of alert channels defined in Instana. Can be left empty.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8704,12 +8749,12 @@ def get_custom_event_specification_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Custom event specification + """Get all Alerting Channels - This API helps to get the Custom Event specification for the given ID. + Gets all the alerting channels. Requires the permission called CanConfigureIntegrations. - :param event_specification_id: eventSpecificationId (required) - :type event_specification_id: str + :param ids: List of IDs of alert channels defined in Instana. Can be left empty. + :type ids: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8732,8 +8777,8 @@ def get_custom_event_specification_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_custom_event_specification_serialize( - event_specification_id=event_specification_id, + _param = self._get_alerting_channels_serialize( + ids=ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8741,10 +8786,7 @@ def get_custom_event_specification_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CustomEventSpecificationWithLastUpdated", - '401': None, - '403': None, - '404': None, + '200': "List[AbstractIntegration]", } response_data = self.api_client.call_api( *_param, @@ -8753,9 +8795,9 @@ def get_custom_event_specification_without_preload_content( return response_data.response - def _get_custom_event_specification_serialize( + def _get_alerting_channels_serialize( self, - event_specification_id, + ids, _request_auth, _content_type, _headers, @@ -8765,6 +8807,7 @@ def _get_custom_event_specification_serialize( _host = None _collection_formats: Dict[str, str] = { + 'ids': 'multi', } _path_params: Dict[str, str] = {} @@ -8777,9 +8820,11 @@ def _get_custom_event_specification_serialize( _body_params: Optional[bytes] = None # process the path parameters - if event_specification_id is not None: - _path_params['eventSpecificationId'] = event_specification_id # process the query parameters + if ids is not None: + + _query_params.append(('ids', ids)) + # process the header parameters # process the form parameters # process the body parameter @@ -8801,7 +8846,7 @@ def _get_custom_event_specification_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/events/settings/event-specifications/custom/{eventSpecificationId}', + resource_path='/api/events/settings/alertingChannels', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8818,8 +8863,9 @@ def _get_custom_event_specification_serialize( @validate_call - def get_custom_event_specifications( + def get_alerting_channels_overview( self, + ids: Annotated[Optional[List[StrictStr]], Field(description="List of IDs of alert channels defined in Instana. Can be left empty.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8832,11 +8878,13 @@ def get_custom_event_specifications( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[CustomEventSpecificationWithLastUpdated]: - """All custom event specifications + ) -> List[IntegrationOverview]: + """Get Overview of Alerting Channels - This API helps in getting all the custom event specifications. + Gets the overview information of all alerting channels. Requires the permission called CanConfigureIntegrations. + :param ids: List of IDs of alert channels defined in Instana. Can be left empty. + :type ids: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8859,7 +8907,8 @@ def get_custom_event_specifications( :return: Returns the result object. """ # noqa: E501 - _param = self._get_custom_event_specifications_serialize( + _param = self._get_alerting_channels_overview_serialize( + ids=ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8867,9 +8916,7 @@ def get_custom_event_specifications( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[CustomEventSpecificationWithLastUpdated]", - '401': None, - '403': None, + '200': "List[IntegrationOverview]", } response_data = self.api_client.call_api( *_param, @@ -8883,8 +8930,9 @@ def get_custom_event_specifications( @validate_call - def get_custom_event_specifications_with_http_info( + def get_alerting_channels_overview_with_http_info( self, + ids: Annotated[Optional[List[StrictStr]], Field(description="List of IDs of alert channels defined in Instana. Can be left empty.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8897,11 +8945,13 @@ def get_custom_event_specifications_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[CustomEventSpecificationWithLastUpdated]]: - """All custom event specifications + ) -> ApiResponse[List[IntegrationOverview]]: + """Get Overview of Alerting Channels - This API helps in getting all the custom event specifications. + Gets the overview information of all alerting channels. Requires the permission called CanConfigureIntegrations. + :param ids: List of IDs of alert channels defined in Instana. Can be left empty. + :type ids: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8924,7 +8974,8 @@ def get_custom_event_specifications_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_custom_event_specifications_serialize( + _param = self._get_alerting_channels_overview_serialize( + ids=ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8932,9 +8983,7 @@ def get_custom_event_specifications_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[CustomEventSpecificationWithLastUpdated]", - '401': None, - '403': None, + '200': "List[IntegrationOverview]", } response_data = self.api_client.call_api( *_param, @@ -8948,8 +8997,9 @@ def get_custom_event_specifications_with_http_info( @validate_call - def get_custom_event_specifications_without_preload_content( + def get_alerting_channels_overview_without_preload_content( self, + ids: Annotated[Optional[List[StrictStr]], Field(description="List of IDs of alert channels defined in Instana. Can be left empty.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8963,10 +9013,12 @@ def get_custom_event_specifications_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """All custom event specifications + """Get Overview of Alerting Channels - This API helps in getting all the custom event specifications. + Gets the overview information of all alerting channels. Requires the permission called CanConfigureIntegrations. + :param ids: List of IDs of alert channels defined in Instana. Can be left empty. + :type ids: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8989,7 +9041,8 @@ def get_custom_event_specifications_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_custom_event_specifications_serialize( + _param = self._get_alerting_channels_overview_serialize( + ids=ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8997,9 +9050,7 @@ def get_custom_event_specifications_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[CustomEventSpecificationWithLastUpdated]", - '401': None, - '403': None, + '200': "List[IntegrationOverview]", } response_data = self.api_client.call_api( *_param, @@ -9008,8 +9059,9 @@ def get_custom_event_specifications_without_preload_content( return response_data.response - def _get_custom_event_specifications_serialize( + def _get_alerting_channels_overview_serialize( self, + ids, _request_auth, _content_type, _headers, @@ -9019,6 +9071,7 @@ def _get_custom_event_specifications_serialize( _host = None _collection_formats: Dict[str, str] = { + 'ids': 'multi', } _path_params: Dict[str, str] = {} @@ -9032,6 +9085,10 @@ def _get_custom_event_specifications_serialize( # process the path parameters # process the query parameters + if ids is not None: + + _query_params.append(('ids', ids)) + # process the header parameters # process the form parameters # process the body parameter @@ -9053,7 +9110,7 @@ def _get_custom_event_specifications_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/events/settings/event-specifications/custom', + resource_path='/api/events/settings/alertingChannels/infos', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9070,9 +9127,9 @@ def _get_custom_event_specifications_serialize( @validate_call - def get_custom_payload_configurations( + def get_alerting_configuration_infos( self, - context: Optional[StrictStr] = None, + integration_id: Annotated[StrictStr, Field(description="ID of a specific alert channel configuration.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9085,13 +9142,13 @@ def get_custom_payload_configurations( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CustomPayloadWithVersion: - """Get All Global Custom Payload Configurations + ) -> List[ValidatedAlertingChannelInputInfo]: + """All alerting configuration info - Gets All Global Custom Payload Configurations. + Gets all alert configurations that relate to the given alert channel. - :param context: - :type context: str + :param integration_id: ID of a specific alert channel configuration. (required) + :type integration_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9114,8 +9171,8 @@ def get_custom_payload_configurations( :return: Returns the result object. """ # noqa: E501 - _param = self._get_custom_payload_configurations_serialize( - context=context, + _param = self._get_alerting_configuration_infos_serialize( + integration_id=integration_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9123,7 +9180,7 @@ def get_custom_payload_configurations( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CustomPayloadWithVersion", + '200': "List[ValidatedAlertingChannelInputInfo]", '401': None, '403': None, } @@ -9139,9 +9196,9 @@ def get_custom_payload_configurations( @validate_call - def get_custom_payload_configurations_with_http_info( + def get_alerting_configuration_infos_with_http_info( self, - context: Optional[StrictStr] = None, + integration_id: Annotated[StrictStr, Field(description="ID of a specific alert channel configuration.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9154,13 +9211,13 @@ def get_custom_payload_configurations_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CustomPayloadWithVersion]: - """Get All Global Custom Payload Configurations + ) -> ApiResponse[List[ValidatedAlertingChannelInputInfo]]: + """All alerting configuration info - Gets All Global Custom Payload Configurations. + Gets all alert configurations that relate to the given alert channel. - :param context: - :type context: str + :param integration_id: ID of a specific alert channel configuration. (required) + :type integration_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9183,8 +9240,8 @@ def get_custom_payload_configurations_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_custom_payload_configurations_serialize( - context=context, + _param = self._get_alerting_configuration_infos_serialize( + integration_id=integration_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9192,7 +9249,7 @@ def get_custom_payload_configurations_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CustomPayloadWithVersion", + '200': "List[ValidatedAlertingChannelInputInfo]", '401': None, '403': None, } @@ -9208,9 +9265,9 @@ def get_custom_payload_configurations_with_http_info( @validate_call - def get_custom_payload_configurations_without_preload_content( + def get_alerting_configuration_infos_without_preload_content( self, - context: Optional[StrictStr] = None, + integration_id: Annotated[StrictStr, Field(description="ID of a specific alert channel configuration.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9224,12 +9281,12 @@ def get_custom_payload_configurations_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get All Global Custom Payload Configurations + """All alerting configuration info - Gets All Global Custom Payload Configurations. + Gets all alert configurations that relate to the given alert channel. - :param context: - :type context: str + :param integration_id: ID of a specific alert channel configuration. (required) + :type integration_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9252,8 +9309,8 @@ def get_custom_payload_configurations_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_custom_payload_configurations_serialize( - context=context, + _param = self._get_alerting_configuration_infos_serialize( + integration_id=integration_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9261,7 +9318,7 @@ def get_custom_payload_configurations_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CustomPayloadWithVersion", + '200': "List[ValidatedAlertingChannelInputInfo]", '401': None, '403': None, } @@ -9272,9 +9329,9 @@ def get_custom_payload_configurations_without_preload_content( return response_data.response - def _get_custom_payload_configurations_serialize( + def _get_alerting_configuration_infos_serialize( self, - context, + integration_id, _request_auth, _content_type, _headers, @@ -9297,9 +9354,9 @@ def _get_custom_payload_configurations_serialize( # process the path parameters # process the query parameters - if context is not None: + if integration_id is not None: - _query_params.append(('context', context)) + _query_params.append(('integrationId', integration_id)) # process the header parameters # process the form parameters @@ -9322,7 +9379,7 @@ def _get_custom_payload_configurations_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/events/settings/custom-payload-configurations', + resource_path='/api/events/settings/alerts/infos', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9339,7 +9396,7 @@ def _get_custom_payload_configurations_serialize( @validate_call - def get_custom_payload_tag_catalog( + def get_alerts( self, _request_timeout: Union[ None, @@ -9353,10 +9410,10 @@ def get_custom_payload_tag_catalog( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> TagCatalog: - """Get Tag Catalog for Custom Payload + ) -> List[ValidatedAlertingConfiguration]: + """Get all Alert Configurations - Custom payload tags used to filter, extract and aggregate specific data like AP calls for alert notifications. The catalog defines available tags like application.name and their types, and other attributes. + Gets all Alert Configurations :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -9380,7 +9437,7 @@ def get_custom_payload_tag_catalog( :return: Returns the result object. """ # noqa: E501 - _param = self._get_custom_payload_tag_catalog_serialize( + _param = self._get_alerts_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9388,7 +9445,7 @@ def get_custom_payload_tag_catalog( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TagCatalog", + '200': "List[ValidatedAlertingConfiguration]", '401': None, '403': None, } @@ -9404,7 +9461,7 @@ def get_custom_payload_tag_catalog( @validate_call - def get_custom_payload_tag_catalog_with_http_info( + def get_alerts_with_http_info( self, _request_timeout: Union[ None, @@ -9418,10 +9475,10 @@ def get_custom_payload_tag_catalog_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[TagCatalog]: - """Get Tag Catalog for Custom Payload + ) -> ApiResponse[List[ValidatedAlertingConfiguration]]: + """Get all Alert Configurations - Custom payload tags used to filter, extract and aggregate specific data like AP calls for alert notifications. The catalog defines available tags like application.name and their types, and other attributes. + Gets all Alert Configurations :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -9445,7 +9502,7 @@ def get_custom_payload_tag_catalog_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_custom_payload_tag_catalog_serialize( + _param = self._get_alerts_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9453,7 +9510,7 @@ def get_custom_payload_tag_catalog_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TagCatalog", + '200': "List[ValidatedAlertingConfiguration]", '401': None, '403': None, } @@ -9469,7 +9526,7 @@ def get_custom_payload_tag_catalog_with_http_info( @validate_call - def get_custom_payload_tag_catalog_without_preload_content( + def get_alerts_without_preload_content( self, _request_timeout: Union[ None, @@ -9484,9 +9541,9 @@ def get_custom_payload_tag_catalog_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Tag Catalog for Custom Payload + """Get all Alert Configurations - Custom payload tags used to filter, extract and aggregate specific data like AP calls for alert notifications. The catalog defines available tags like application.name and their types, and other attributes. + Gets all Alert Configurations :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -9510,7 +9567,7 @@ def get_custom_payload_tag_catalog_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_custom_payload_tag_catalog_serialize( + _param = self._get_alerts_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9518,7 +9575,7 @@ def get_custom_payload_tag_catalog_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TagCatalog", + '200': "List[ValidatedAlertingConfiguration]", '401': None, '403': None, } @@ -9529,7 +9586,7 @@ def get_custom_payload_tag_catalog_without_preload_content( return response_data.response - def _get_custom_payload_tag_catalog_serialize( + def _get_alerts_serialize( self, _request_auth, _content_type, @@ -9574,7 +9631,7 @@ def _get_custom_payload_tag_catalog_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/events/settings/custom-payload-configurations/catalog', + resource_path='/api/events/settings/alerts', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9591,8 +9648,9 @@ def _get_custom_payload_tag_catalog_serialize( @validate_call - def get_event_specification_infos( + def get_built_in_event_specification( self, + event_specification_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9605,11 +9663,12 @@ def get_event_specification_infos( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[EventSpecificationInfo]: - """Summary of all built-in and custom event specifications + ) -> BuiltInEventSpecification: + """Built-in event specifications - This API helps to get the summary of all build-in and custom event specifications + :param event_specification_id: (required) + :type event_specification_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9632,7 +9691,8 @@ def get_event_specification_infos( :return: Returns the result object. """ # noqa: E501 - _param = self._get_event_specification_infos_serialize( + _param = self._get_built_in_event_specification_serialize( + event_specification_id=event_specification_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9640,9 +9700,10 @@ def get_event_specification_infos( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[EventSpecificationInfo]", + '200': "BuiltInEventSpecification", '401': None, '403': None, + '404': None, } response_data = self.api_client.call_api( *_param, @@ -9656,8 +9717,9 @@ def get_event_specification_infos( @validate_call - def get_event_specification_infos_with_http_info( + def get_built_in_event_specification_with_http_info( self, + event_specification_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9670,11 +9732,12 @@ def get_event_specification_infos_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[EventSpecificationInfo]]: - """Summary of all built-in and custom event specifications + ) -> ApiResponse[BuiltInEventSpecification]: + """Built-in event specifications - This API helps to get the summary of all build-in and custom event specifications + :param event_specification_id: (required) + :type event_specification_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9697,7 +9760,8 @@ def get_event_specification_infos_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_event_specification_infos_serialize( + _param = self._get_built_in_event_specification_serialize( + event_specification_id=event_specification_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9705,9 +9769,10 @@ def get_event_specification_infos_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[EventSpecificationInfo]", + '200': "BuiltInEventSpecification", '401': None, '403': None, + '404': None, } response_data = self.api_client.call_api( *_param, @@ -9721,8 +9786,9 @@ def get_event_specification_infos_with_http_info( @validate_call - def get_event_specification_infos_without_preload_content( + def get_built_in_event_specification_without_preload_content( self, + event_specification_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9736,10 +9802,11 @@ def get_event_specification_infos_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Summary of all built-in and custom event specifications + """Built-in event specifications - This API helps to get the summary of all build-in and custom event specifications + :param event_specification_id: (required) + :type event_specification_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9762,7 +9829,8 @@ def get_event_specification_infos_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_event_specification_infos_serialize( + _param = self._get_built_in_event_specification_serialize( + event_specification_id=event_specification_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9770,9 +9838,10 @@ def get_event_specification_infos_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[EventSpecificationInfo]", + '200': "BuiltInEventSpecification", '401': None, '403': None, + '404': None, } response_data = self.api_client.call_api( *_param, @@ -9781,8 +9850,9 @@ def get_event_specification_infos_without_preload_content( return response_data.response - def _get_event_specification_infos_serialize( + def _get_built_in_event_specification_serialize( self, + event_specification_id, _request_auth, _content_type, _headers, @@ -9804,6 +9874,8 @@ def _get_event_specification_infos_serialize( _body_params: Optional[bytes] = None # process the path parameters + if event_specification_id is not None: + _path_params['eventSpecificationId'] = event_specification_id # process the query parameters # process the header parameters # process the form parameters @@ -9826,7 +9898,7 @@ def _get_event_specification_infos_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/events/settings/event-specifications/infos', + resource_path='/api/events/settings/event-specifications/built-in/{eventSpecificationId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9843,9 +9915,9 @@ def _get_event_specification_infos_serialize( @validate_call - def get_event_specification_infos_by_ids( + def get_built_in_event_specifications( self, - request_body: List[StrictStr], + ids: Optional[List[StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9858,13 +9930,13 @@ def get_event_specification_infos_by_ids( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[EventSpecificationInfo]: - """All built-in and custom event specifications + ) -> List[BuiltInEventSpecificationWithLastUpdated]: + """All built-in event specification - Summary of all built-in and custom event specifications by IDs + Get all built-in event specifications - :param request_body: (required) - :type request_body: List[str] + :param ids: + :type ids: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9887,8 +9959,8 @@ def get_event_specification_infos_by_ids( :return: Returns the result object. """ # noqa: E501 - _param = self._get_event_specification_infos_by_ids_serialize( - request_body=request_body, + _param = self._get_built_in_event_specifications_serialize( + ids=ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9896,7 +9968,7 @@ def get_event_specification_infos_by_ids( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[EventSpecificationInfo]", + '200': "List[BuiltInEventSpecificationWithLastUpdated]", '401': None, '403': None, } @@ -9912,9 +9984,9 @@ def get_event_specification_infos_by_ids( @validate_call - def get_event_specification_infos_by_ids_with_http_info( + def get_built_in_event_specifications_with_http_info( self, - request_body: List[StrictStr], + ids: Optional[List[StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9927,13 +9999,13 @@ def get_event_specification_infos_by_ids_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[EventSpecificationInfo]]: - """All built-in and custom event specifications + ) -> ApiResponse[List[BuiltInEventSpecificationWithLastUpdated]]: + """All built-in event specification - Summary of all built-in and custom event specifications by IDs + Get all built-in event specifications - :param request_body: (required) - :type request_body: List[str] + :param ids: + :type ids: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9956,8 +10028,8 @@ def get_event_specification_infos_by_ids_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_event_specification_infos_by_ids_serialize( - request_body=request_body, + _param = self._get_built_in_event_specifications_serialize( + ids=ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9965,7 +10037,7 @@ def get_event_specification_infos_by_ids_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[EventSpecificationInfo]", + '200': "List[BuiltInEventSpecificationWithLastUpdated]", '401': None, '403': None, } @@ -9981,9 +10053,9 @@ def get_event_specification_infos_by_ids_with_http_info( @validate_call - def get_event_specification_infos_by_ids_without_preload_content( + def get_built_in_event_specifications_without_preload_content( self, - request_body: List[StrictStr], + ids: Optional[List[StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9997,12 +10069,12 @@ def get_event_specification_infos_by_ids_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """All built-in and custom event specifications + """All built-in event specification - Summary of all built-in and custom event specifications by IDs + Get all built-in event specifications - :param request_body: (required) - :type request_body: List[str] + :param ids: + :type ids: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10025,8 +10097,8 @@ def get_event_specification_infos_by_ids_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_event_specification_infos_by_ids_serialize( - request_body=request_body, + _param = self._get_built_in_event_specifications_serialize( + ids=ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10034,7 +10106,7 @@ def get_event_specification_infos_by_ids_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[EventSpecificationInfo]", + '200': "List[BuiltInEventSpecificationWithLastUpdated]", '401': None, '403': None, } @@ -10045,9 +10117,9 @@ def get_event_specification_infos_by_ids_without_preload_content( return response_data.response - def _get_event_specification_infos_by_ids_serialize( + def _get_built_in_event_specifications_serialize( self, - request_body, + ids, _request_auth, _content_type, _headers, @@ -10057,7 +10129,7 @@ def _get_event_specification_infos_by_ids_serialize( _host = None _collection_formats: Dict[str, str] = { - 'request_body': '', + 'ids': 'multi', } _path_params: Dict[str, str] = {} @@ -10071,11 +10143,13 @@ def _get_event_specification_infos_by_ids_serialize( # process the path parameters # process the query parameters + if ids is not None: + + _query_params.append(('ids', ids)) + # process the header parameters # process the form parameters # process the body parameter - if request_body is not None: - _body_params = request_body # set the HTTP header `Accept` @@ -10086,19 +10160,6 @@ def _get_event_specification_infos_by_ids_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -10106,8 +10167,8 @@ def _get_event_specification_infos_by_ids_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/api/events/settings/event-specifications/infos', + method='GET', + resource_path='/api/events/settings/event-specifications/built-in', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10124,7 +10185,7 @@ def _get_event_specification_infos_by_ids_serialize( @validate_call - def get_system_rules( + def get_current_prefix( self, _request_timeout: Union[ None, @@ -10138,10 +10199,10 @@ def get_system_rules( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[SystemRuleLabel]: - """All system rules for custom event specifications + ) -> None: + """Get current shortcode prefix. - This API helps to get all the system rules for custom event specifications. + Returns the current shortcode prefix used for events. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -10165,7 +10226,7 @@ def get_system_rules( :return: Returns the result object. """ # noqa: E501 - _param = self._get_system_rules_serialize( + _param = self._get_current_prefix_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10173,7 +10234,7 @@ def get_system_rules( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[SystemRuleLabel]", + '200': None, '401': None, '403': None, } @@ -10189,7 +10250,7 @@ def get_system_rules( @validate_call - def get_system_rules_with_http_info( + def get_current_prefix_with_http_info( self, _request_timeout: Union[ None, @@ -10203,10 +10264,10 @@ def get_system_rules_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[SystemRuleLabel]]: - """All system rules for custom event specifications + ) -> ApiResponse[None]: + """Get current shortcode prefix. - This API helps to get all the system rules for custom event specifications. + Returns the current shortcode prefix used for events. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -10230,7 +10291,7 @@ def get_system_rules_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_system_rules_serialize( + _param = self._get_current_prefix_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10238,7 +10299,7 @@ def get_system_rules_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[SystemRuleLabel]", + '200': None, '401': None, '403': None, } @@ -10254,7 +10315,7 @@ def get_system_rules_with_http_info( @validate_call - def get_system_rules_without_preload_content( + def get_current_prefix_without_preload_content( self, _request_timeout: Union[ None, @@ -10269,9 +10330,9 @@ def get_system_rules_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """All system rules for custom event specifications + """Get current shortcode prefix. - This API helps to get all the system rules for custom event specifications. + Returns the current shortcode prefix used for events. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -10295,7 +10356,7 @@ def get_system_rules_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_system_rules_serialize( + _param = self._get_current_prefix_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10303,7 +10364,7 @@ def get_system_rules_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[SystemRuleLabel]", + '200': None, '401': None, '403': None, } @@ -10314,7 +10375,7 @@ def get_system_rules_without_preload_content( return response_data.response - def _get_system_rules_serialize( + def _get_current_prefix_serialize( self, _request_auth, _content_type, @@ -10343,13 +10404,6 @@ def _get_system_rules_serialize( # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) # authentication setting @@ -10359,7 +10413,7 @@ def _get_system_rules_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/events/settings/event-specifications/custom/systemRules', + resource_path='/api/events/settings/shortcode/current-prefix', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10376,10 +10430,9 @@ def _get_system_rules_serialize( @validate_call - def manually_close_event( + def get_custom_event_specification( self, - event_id: StrictStr, - manual_close_info: ManualCloseInfo, + event_specification_id: Annotated[StrictStr, Field(description="eventSpecificationId")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10392,15 +10445,13 @@ def manually_close_event( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Event: - """Manually close an event. + ) -> CustomEventSpecificationWithLastUpdated: + """Custom event specification - Manually close an event (issue or incident). A close notification will be sent out and the event state will be updated accordingly. + This API helps to get the Custom Event specification for the given ID. - :param event_id: (required) - :type event_id: str - :param manual_close_info: (required) - :type manual_close_info: ManualCloseInfo + :param event_specification_id: eventSpecificationId (required) + :type event_specification_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10423,9 +10474,8 @@ def manually_close_event( :return: Returns the result object. """ # noqa: E501 - _param = self._manually_close_event_serialize( - event_id=event_id, - manual_close_info=manual_close_info, + _param = self._get_custom_event_specification_serialize( + event_specification_id=event_specification_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10433,8 +10483,7 @@ def manually_close_event( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Event", - '400': None, + '200': "CustomEventSpecificationWithLastUpdated", '401': None, '403': None, '404': None, @@ -10451,10 +10500,9 @@ def manually_close_event( @validate_call - def manually_close_event_with_http_info( + def get_custom_event_specification_with_http_info( self, - event_id: StrictStr, - manual_close_info: ManualCloseInfo, + event_specification_id: Annotated[StrictStr, Field(description="eventSpecificationId")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10467,15 +10515,13 @@ def manually_close_event_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Event]: - """Manually close an event. + ) -> ApiResponse[CustomEventSpecificationWithLastUpdated]: + """Custom event specification - Manually close an event (issue or incident). A close notification will be sent out and the event state will be updated accordingly. + This API helps to get the Custom Event specification for the given ID. - :param event_id: (required) - :type event_id: str - :param manual_close_info: (required) - :type manual_close_info: ManualCloseInfo + :param event_specification_id: eventSpecificationId (required) + :type event_specification_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10498,9 +10544,8 @@ def manually_close_event_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._manually_close_event_serialize( - event_id=event_id, - manual_close_info=manual_close_info, + _param = self._get_custom_event_specification_serialize( + event_specification_id=event_specification_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10508,8 +10553,7 @@ def manually_close_event_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Event", - '400': None, + '200': "CustomEventSpecificationWithLastUpdated", '401': None, '403': None, '404': None, @@ -10526,10 +10570,9 @@ def manually_close_event_with_http_info( @validate_call - def manually_close_event_without_preload_content( + def get_custom_event_specification_without_preload_content( self, - event_id: StrictStr, - manual_close_info: ManualCloseInfo, + event_specification_id: Annotated[StrictStr, Field(description="eventSpecificationId")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10543,14 +10586,12 @@ def manually_close_event_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Manually close an event. + """Custom event specification - Manually close an event (issue or incident). A close notification will be sent out and the event state will be updated accordingly. + This API helps to get the Custom Event specification for the given ID. - :param event_id: (required) - :type event_id: str - :param manual_close_info: (required) - :type manual_close_info: ManualCloseInfo + :param event_specification_id: eventSpecificationId (required) + :type event_specification_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10573,9 +10614,8 @@ def manually_close_event_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._manually_close_event_serialize( - event_id=event_id, - manual_close_info=manual_close_info, + _param = self._get_custom_event_specification_serialize( + event_specification_id=event_specification_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10583,8 +10623,7 @@ def manually_close_event_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Event", - '400': None, + '200': "CustomEventSpecificationWithLastUpdated", '401': None, '403': None, '404': None, @@ -10596,10 +10635,9 @@ def manually_close_event_without_preload_content( return response_data.response - def _manually_close_event_serialize( + def _get_custom_event_specification_serialize( self, - event_id, - manual_close_info, + event_specification_id, _request_auth, _content_type, _headers, @@ -10621,14 +10659,12 @@ def _manually_close_event_serialize( _body_params: Optional[bytes] = None # process the path parameters - if event_id is not None: - _path_params['eventId'] = event_id + if event_specification_id is not None: + _path_params['eventSpecificationId'] = event_specification_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if manual_close_info is not None: - _body_params = manual_close_info # set the HTTP header `Accept` @@ -10639,19 +10675,6 @@ def _manually_close_event_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -10659,8 +10682,8 @@ def _manually_close_event_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/api/events/settings/manual-close/{eventId}', + method='GET', + resource_path='/api/events/settings/event-specifications/custom/{eventSpecificationId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10677,9 +10700,8 @@ def _manually_close_event_serialize( @validate_call - def multi_close_event( + def get_custom_event_specifications( self, - manual_close_info: ManualCloseInfo, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10692,13 +10714,11 @@ def multi_close_event( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """Manually closing multiple events + ) -> List[CustomEventSpecificationWithLastUpdated]: + """All custom event specifications - Manually close a set of events. A close notification will be sent out and the event state will be updated accordingly for each event + This API helps in getting all the custom event specifications. - :param manual_close_info: (required) - :type manual_close_info: ManualCloseInfo :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10721,8 +10741,7 @@ def multi_close_event( :return: Returns the result object. """ # noqa: E501 - _param = self._multi_close_event_serialize( - manual_close_info=manual_close_info, + _param = self._get_custom_event_specifications_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10730,11 +10749,9 @@ def multi_close_event( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '207': None, + '200': "List[CustomEventSpecificationWithLastUpdated]", '401': None, '403': None, - '501': None, } response_data = self.api_client.call_api( *_param, @@ -10748,9 +10765,8 @@ def multi_close_event( @validate_call - def multi_close_event_with_http_info( + def get_custom_event_specifications_with_http_info( self, - manual_close_info: ManualCloseInfo, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10763,13 +10779,11 @@ def multi_close_event_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[object]: - """Manually closing multiple events + ) -> ApiResponse[List[CustomEventSpecificationWithLastUpdated]]: + """All custom event specifications - Manually close a set of events. A close notification will be sent out and the event state will be updated accordingly for each event + This API helps in getting all the custom event specifications. - :param manual_close_info: (required) - :type manual_close_info: ManualCloseInfo :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10792,8 +10806,7 @@ def multi_close_event_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._multi_close_event_serialize( - manual_close_info=manual_close_info, + _param = self._get_custom_event_specifications_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10801,11 +10814,9 @@ def multi_close_event_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '207': None, + '200': "List[CustomEventSpecificationWithLastUpdated]", '401': None, '403': None, - '501': None, } response_data = self.api_client.call_api( *_param, @@ -10819,9 +10830,8 @@ def multi_close_event_with_http_info( @validate_call - def multi_close_event_without_preload_content( + def get_custom_event_specifications_without_preload_content( self, - manual_close_info: ManualCloseInfo, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10835,12 +10845,10 @@ def multi_close_event_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Manually closing multiple events + """All custom event specifications - Manually close a set of events. A close notification will be sent out and the event state will be updated accordingly for each event + This API helps in getting all the custom event specifications. - :param manual_close_info: (required) - :type manual_close_info: ManualCloseInfo :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10863,8 +10871,7 @@ def multi_close_event_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._multi_close_event_serialize( - manual_close_info=manual_close_info, + _param = self._get_custom_event_specifications_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10872,11 +10879,9 @@ def multi_close_event_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '207': None, + '200': "List[CustomEventSpecificationWithLastUpdated]", '401': None, '403': None, - '501': None, } response_data = self.api_client.call_api( *_param, @@ -10885,9 +10890,8 @@ def multi_close_event_without_preload_content( return response_data.response - def _multi_close_event_serialize( + def _get_custom_event_specifications_serialize( self, - manual_close_info, _request_auth, _content_type, _headers, @@ -10913,8 +10917,6 @@ def _multi_close_event_serialize( # process the header parameters # process the form parameters # process the body parameter - if manual_close_info is not None: - _body_params = manual_close_info # set the HTTP header `Accept` @@ -10925,19 +10927,6 @@ def _multi_close_event_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -10945,8 +10934,8 @@ def _multi_close_event_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/api/events/settings/manual-close', + method='GET', + resource_path='/api/events/settings/event-specifications/custom', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10963,9 +10952,10 @@ def _multi_close_event_serialize( @validate_call - def post_alerting_channel( + def get_custom_payload_configurations( self, - abstract_integration: AbstractIntegration, + context: Optional[StrictStr] = None, + owner_type: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10978,13 +10968,15 @@ def post_alerting_channel( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AbstractIntegration: - """Create Alert Channel + ) -> CustomPayloadWithVersion: + """Get All Global Custom Payload Configurations - Creates an alerting channel. Requires the permission called CanConfigureIntegrations. + Gets All Global Custom Payload Configurations. - :param abstract_integration: (required) - :type abstract_integration: AbstractIntegration + :param context: + :type context: str + :param owner_type: + :type owner_type: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11007,8 +10999,9 @@ def post_alerting_channel( :return: Returns the result object. """ # noqa: E501 - _param = self._post_alerting_channel_serialize( - abstract_integration=abstract_integration, + _param = self._get_custom_payload_configurations_serialize( + context=context, + owner_type=owner_type, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11016,9 +11009,9 @@ def post_alerting_channel( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AbstractIntegration", - '302': None, - '400': "str", + '200': "CustomPayloadWithVersion", + '401': None, + '403': None, } response_data = self.api_client.call_api( *_param, @@ -11032,9 +11025,10 @@ def post_alerting_channel( @validate_call - def post_alerting_channel_with_http_info( + def get_custom_payload_configurations_with_http_info( self, - abstract_integration: AbstractIntegration, + context: Optional[StrictStr] = None, + owner_type: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11047,13 +11041,15 @@ def post_alerting_channel_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AbstractIntegration]: - """Create Alert Channel + ) -> ApiResponse[CustomPayloadWithVersion]: + """Get All Global Custom Payload Configurations - Creates an alerting channel. Requires the permission called CanConfigureIntegrations. + Gets All Global Custom Payload Configurations. - :param abstract_integration: (required) - :type abstract_integration: AbstractIntegration + :param context: + :type context: str + :param owner_type: + :type owner_type: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11076,8 +11072,9 @@ def post_alerting_channel_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._post_alerting_channel_serialize( - abstract_integration=abstract_integration, + _param = self._get_custom_payload_configurations_serialize( + context=context, + owner_type=owner_type, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11085,9 +11082,9 @@ def post_alerting_channel_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AbstractIntegration", - '302': None, - '400': "str", + '200': "CustomPayloadWithVersion", + '401': None, + '403': None, } response_data = self.api_client.call_api( *_param, @@ -11101,9 +11098,10 @@ def post_alerting_channel_with_http_info( @validate_call - def post_alerting_channel_without_preload_content( + def get_custom_payload_configurations_without_preload_content( self, - abstract_integration: AbstractIntegration, + context: Optional[StrictStr] = None, + owner_type: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11117,12 +11115,14 @@ def post_alerting_channel_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create Alert Channel + """Get All Global Custom Payload Configurations - Creates an alerting channel. Requires the permission called CanConfigureIntegrations. + Gets All Global Custom Payload Configurations. - :param abstract_integration: (required) - :type abstract_integration: AbstractIntegration + :param context: + :type context: str + :param owner_type: + :type owner_type: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11145,8 +11145,9 @@ def post_alerting_channel_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._post_alerting_channel_serialize( - abstract_integration=abstract_integration, + _param = self._get_custom_payload_configurations_serialize( + context=context, + owner_type=owner_type, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11154,9 +11155,9 @@ def post_alerting_channel_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AbstractIntegration", - '302': None, - '400': "str", + '200': "CustomPayloadWithVersion", + '401': None, + '403': None, } response_data = self.api_client.call_api( *_param, @@ -11165,9 +11166,10 @@ def post_alerting_channel_without_preload_content( return response_data.response - def _post_alerting_channel_serialize( + def _get_custom_payload_configurations_serialize( self, - abstract_integration, + context, + owner_type, _request_auth, _content_type, _headers, @@ -11190,11 +11192,17 @@ def _post_alerting_channel_serialize( # process the path parameters # process the query parameters + if context is not None: + + _query_params.append(('context', context)) + + if owner_type is not None: + + _query_params.append(('ownerType', owner_type)) + # process the header parameters # process the form parameters # process the body parameter - if abstract_integration is not None: - _body_params = abstract_integration # set the HTTP header `Accept` @@ -11205,19 +11213,6 @@ def _post_alerting_channel_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -11225,8 +11220,8 @@ def _post_alerting_channel_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/api/events/settings/alertingChannels', + method='GET', + resource_path='/api/events/settings/custom-payload-configurations', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11243,9 +11238,8 @@ def _post_alerting_channel_serialize( @validate_call - def post_custom_event_specification( + def get_custom_payload_tag_catalog( self, - custom_event_specification: CustomEventSpecification, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11258,12 +11252,11 @@ def post_custom_event_specification( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CustomEventSpecificationWithLastUpdated: - """Create new custom event specification + ) -> TagCatalog: + """Get Tag Catalog for Custom Payload + Custom payload tags used to filter, extract and aggregate specific data like AP calls for alert notifications. The catalog defines available tags like application.name and their types, and other attributes. - :param custom_event_specification: (required) - :type custom_event_specification: CustomEventSpecification :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11286,8 +11279,7 @@ def post_custom_event_specification( :return: Returns the result object. """ # noqa: E501 - _param = self._post_custom_event_specification_serialize( - custom_event_specification=custom_event_specification, + _param = self._get_custom_payload_tag_catalog_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11295,8 +11287,7 @@ def post_custom_event_specification( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CustomEventSpecificationWithLastUpdated", - '400': None, + '200': "TagCatalog", '401': None, '403': None, } @@ -11312,9 +11303,8 @@ def post_custom_event_specification( @validate_call - def post_custom_event_specification_with_http_info( + def get_custom_payload_tag_catalog_with_http_info( self, - custom_event_specification: CustomEventSpecification, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11327,12 +11317,11 @@ def post_custom_event_specification_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CustomEventSpecificationWithLastUpdated]: - """Create new custom event specification + ) -> ApiResponse[TagCatalog]: + """Get Tag Catalog for Custom Payload + Custom payload tags used to filter, extract and aggregate specific data like AP calls for alert notifications. The catalog defines available tags like application.name and their types, and other attributes. - :param custom_event_specification: (required) - :type custom_event_specification: CustomEventSpecification :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11355,8 +11344,7 @@ def post_custom_event_specification_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._post_custom_event_specification_serialize( - custom_event_specification=custom_event_specification, + _param = self._get_custom_payload_tag_catalog_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11364,8 +11352,7 @@ def post_custom_event_specification_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CustomEventSpecificationWithLastUpdated", - '400': None, + '200': "TagCatalog", '401': None, '403': None, } @@ -11381,9 +11368,8 @@ def post_custom_event_specification_with_http_info( @validate_call - def post_custom_event_specification_without_preload_content( + def get_custom_payload_tag_catalog_without_preload_content( self, - custom_event_specification: CustomEventSpecification, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11397,11 +11383,10 @@ def post_custom_event_specification_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create new custom event specification + """Get Tag Catalog for Custom Payload + Custom payload tags used to filter, extract and aggregate specific data like AP calls for alert notifications. The catalog defines available tags like application.name and their types, and other attributes. - :param custom_event_specification: (required) - :type custom_event_specification: CustomEventSpecification :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11424,8 +11409,7 @@ def post_custom_event_specification_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._post_custom_event_specification_serialize( - custom_event_specification=custom_event_specification, + _param = self._get_custom_payload_tag_catalog_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11433,8 +11417,7 @@ def post_custom_event_specification_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CustomEventSpecificationWithLastUpdated", - '400': None, + '200': "TagCatalog", '401': None, '403': None, } @@ -11445,9 +11428,8 @@ def post_custom_event_specification_without_preload_content( return response_data.response - def _post_custom_event_specification_serialize( + def _get_custom_payload_tag_catalog_serialize( self, - custom_event_specification, _request_auth, _content_type, _headers, @@ -11473,8 +11455,6 @@ def _post_custom_event_specification_serialize( # process the header parameters # process the form parameters # process the body parameter - if custom_event_specification is not None: - _body_params = custom_event_specification # set the HTTP header `Accept` @@ -11485,19 +11465,6 @@ def _post_custom_event_specification_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -11505,8 +11472,8 @@ def _post_custom_event_specification_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/api/events/settings/event-specifications/custom', + method='GET', + resource_path='/api/events/settings/custom-payload-configurations/catalog', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11523,10 +11490,8 @@ def _post_custom_event_specification_serialize( @validate_call - def put_alert( + def get_event_specification_infos( self, - id: Annotated[StrictStr, Field(description="ID of a specific Alert Configuration to create or update.")], - alerting_configuration: AlertingConfiguration, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11539,15 +11504,11 @@ def put_alert( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AlertingConfigurationWithLastUpdated: - """Create or update Alert Configuration + ) -> List[EventSpecificationInfo]: + """Summary of all built-in and custom event specifications - Create or update a specific Alert configuration by ID + This API helps to get the summary of all build-in and custom event specifications - :param id: ID of a specific Alert Configuration to create or update. (required) - :type id: str - :param alerting_configuration: (required) - :type alerting_configuration: AlertingConfiguration :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11570,9 +11531,7 @@ def put_alert( :return: Returns the result object. """ # noqa: E501 - _param = self._put_alert_serialize( - id=id, - alerting_configuration=alerting_configuration, + _param = self._get_event_specification_infos_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11580,10 +11539,9 @@ def put_alert( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AlertingConfigurationWithLastUpdated", + '200': "List[EventSpecificationInfo]", '401': None, '403': None, - '422': None, } response_data = self.api_client.call_api( *_param, @@ -11597,10 +11555,8 @@ def put_alert( @validate_call - def put_alert_with_http_info( + def get_event_specification_infos_with_http_info( self, - id: Annotated[StrictStr, Field(description="ID of a specific Alert Configuration to create or update.")], - alerting_configuration: AlertingConfiguration, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11613,15 +11569,11 @@ def put_alert_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AlertingConfigurationWithLastUpdated]: - """Create or update Alert Configuration + ) -> ApiResponse[List[EventSpecificationInfo]]: + """Summary of all built-in and custom event specifications - Create or update a specific Alert configuration by ID + This API helps to get the summary of all build-in and custom event specifications - :param id: ID of a specific Alert Configuration to create or update. (required) - :type id: str - :param alerting_configuration: (required) - :type alerting_configuration: AlertingConfiguration :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11644,9 +11596,7 @@ def put_alert_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._put_alert_serialize( - id=id, - alerting_configuration=alerting_configuration, + _param = self._get_event_specification_infos_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11654,10 +11604,9 @@ def put_alert_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AlertingConfigurationWithLastUpdated", + '200': "List[EventSpecificationInfo]", '401': None, '403': None, - '422': None, } response_data = self.api_client.call_api( *_param, @@ -11671,10 +11620,8 @@ def put_alert_with_http_info( @validate_call - def put_alert_without_preload_content( + def get_event_specification_infos_without_preload_content( self, - id: Annotated[StrictStr, Field(description="ID of a specific Alert Configuration to create or update.")], - alerting_configuration: AlertingConfiguration, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11688,14 +11635,10 @@ def put_alert_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create or update Alert Configuration + """Summary of all built-in and custom event specifications - Create or update a specific Alert configuration by ID + This API helps to get the summary of all build-in and custom event specifications - :param id: ID of a specific Alert Configuration to create or update. (required) - :type id: str - :param alerting_configuration: (required) - :type alerting_configuration: AlertingConfiguration :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11718,9 +11661,7 @@ def put_alert_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._put_alert_serialize( - id=id, - alerting_configuration=alerting_configuration, + _param = self._get_event_specification_infos_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11728,10 +11669,9 @@ def put_alert_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AlertingConfigurationWithLastUpdated", + '200': "List[EventSpecificationInfo]", '401': None, '403': None, - '422': None, } response_data = self.api_client.call_api( *_param, @@ -11740,10 +11680,8 @@ def put_alert_without_preload_content( return response_data.response - def _put_alert_serialize( + def _get_event_specification_infos_serialize( self, - id, - alerting_configuration, _request_auth, _content_type, _headers, @@ -11765,14 +11703,10 @@ def _put_alert_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if alerting_configuration is not None: - _body_params = alerting_configuration # set the HTTP header `Accept` @@ -11783,19 +11717,6 @@ def _put_alert_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -11803,8 +11724,8 @@ def _put_alert_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/api/events/settings/alerts/{id}', + method='GET', + resource_path='/api/events/settings/event-specifications/infos', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11821,10 +11742,9 @@ def _put_alert_serialize( @validate_call - def put_alerting_channel( + def get_event_specification_infos_by_ids( self, - id: Annotated[StrictStr, Field(description="ID of the Alerting Channel to update.")], - abstract_integration: AbstractIntegration, + request_body: List[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11837,15 +11757,13 @@ def put_alerting_channel( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AbstractIntegration: - """Update Alert Channel + ) -> List[EventSpecificationInfo]: + """All built-in and custom event specifications - Updates an alerting channel. Requires the permission called CanConfigureIntegrations. + Summary of all built-in and custom event specifications by IDs - :param id: ID of the Alerting Channel to update. (required) - :type id: str - :param abstract_integration: (required) - :type abstract_integration: AbstractIntegration + :param request_body: (required) + :type request_body: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11868,9 +11786,8 @@ def put_alerting_channel( :return: Returns the result object. """ # noqa: E501 - _param = self._put_alerting_channel_serialize( - id=id, - abstract_integration=abstract_integration, + _param = self._get_event_specification_infos_by_ids_serialize( + request_body=request_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11878,9 +11795,9 @@ def put_alerting_channel( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AbstractIntegration", - '302': None, - '400': "str", + '200': "List[EventSpecificationInfo]", + '401': None, + '403': None, } response_data = self.api_client.call_api( *_param, @@ -11894,10 +11811,9 @@ def put_alerting_channel( @validate_call - def put_alerting_channel_with_http_info( + def get_event_specification_infos_by_ids_with_http_info( self, - id: Annotated[StrictStr, Field(description="ID of the Alerting Channel to update.")], - abstract_integration: AbstractIntegration, + request_body: List[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11910,15 +11826,13 @@ def put_alerting_channel_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AbstractIntegration]: - """Update Alert Channel + ) -> ApiResponse[List[EventSpecificationInfo]]: + """All built-in and custom event specifications - Updates an alerting channel. Requires the permission called CanConfigureIntegrations. + Summary of all built-in and custom event specifications by IDs - :param id: ID of the Alerting Channel to update. (required) - :type id: str - :param abstract_integration: (required) - :type abstract_integration: AbstractIntegration + :param request_body: (required) + :type request_body: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11941,9 +11855,8 @@ def put_alerting_channel_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._put_alerting_channel_serialize( - id=id, - abstract_integration=abstract_integration, + _param = self._get_event_specification_infos_by_ids_serialize( + request_body=request_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11951,9 +11864,9 @@ def put_alerting_channel_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AbstractIntegration", - '302': None, - '400': "str", + '200': "List[EventSpecificationInfo]", + '401': None, + '403': None, } response_data = self.api_client.call_api( *_param, @@ -11967,10 +11880,9 @@ def put_alerting_channel_with_http_info( @validate_call - def put_alerting_channel_without_preload_content( + def get_event_specification_infos_by_ids_without_preload_content( self, - id: Annotated[StrictStr, Field(description="ID of the Alerting Channel to update.")], - abstract_integration: AbstractIntegration, + request_body: List[StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11984,14 +11896,12 @@ def put_alerting_channel_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Update Alert Channel + """All built-in and custom event specifications - Updates an alerting channel. Requires the permission called CanConfigureIntegrations. + Summary of all built-in and custom event specifications by IDs - :param id: ID of the Alerting Channel to update. (required) - :type id: str - :param abstract_integration: (required) - :type abstract_integration: AbstractIntegration + :param request_body: (required) + :type request_body: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12014,9 +11924,8 @@ def put_alerting_channel_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._put_alerting_channel_serialize( - id=id, - abstract_integration=abstract_integration, + _param = self._get_event_specification_infos_by_ids_serialize( + request_body=request_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12024,9 +11933,9 @@ def put_alerting_channel_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AbstractIntegration", - '302': None, - '400': "str", + '200': "List[EventSpecificationInfo]", + '401': None, + '403': None, } response_data = self.api_client.call_api( *_param, @@ -12035,10 +11944,9 @@ def put_alerting_channel_without_preload_content( return response_data.response - def _put_alerting_channel_serialize( + def _get_event_specification_infos_by_ids_serialize( self, - id, - abstract_integration, + request_body, _request_auth, _content_type, _headers, @@ -12048,6 +11956,7 @@ def _put_alerting_channel_serialize( _host = None _collection_formats: Dict[str, str] = { + 'request_body': '', } _path_params: Dict[str, str] = {} @@ -12060,14 +11969,12 @@ def _put_alerting_channel_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if abstract_integration is not None: - _body_params = abstract_integration + if request_body is not None: + _body_params = request_body # set the HTTP header `Accept` @@ -12098,8 +12005,8 @@ def _put_alerting_channel_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/api/events/settings/alertingChannels/{id}', + method='POST', + resource_path='/api/events/settings/event-specifications/infos', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12116,11 +12023,8 @@ def _put_alerting_channel_serialize( @validate_call - def put_custom_event_specification( + def get_system_rules( self, - event_specification_id: StrictStr, - custom_event_specification: CustomEventSpecification, - allow_restore: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12133,16 +12037,11 @@ def put_custom_event_specification( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CustomEventSpecificationWithLastUpdated: - """Create or update custom event specification + ) -> List[SystemRuleLabel]: + """All system rules for custom event specifications + This API helps to get all the system rules for custom event specifications. - :param event_specification_id: (required) - :type event_specification_id: str - :param custom_event_specification: (required) - :type custom_event_specification: CustomEventSpecification - :param allow_restore: - :type allow_restore: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12165,10 +12064,7 @@ def put_custom_event_specification( :return: Returns the result object. """ # noqa: E501 - _param = self._put_custom_event_specification_serialize( - event_specification_id=event_specification_id, - custom_event_specification=custom_event_specification, - allow_restore=allow_restore, + _param = self._get_system_rules_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12176,11 +12072,9 @@ def put_custom_event_specification( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CustomEventSpecificationWithLastUpdated", - '400': None, + '200': "List[SystemRuleLabel]", '401': None, '403': None, - '500': None, } response_data = self.api_client.call_api( *_param, @@ -12194,11 +12088,8 @@ def put_custom_event_specification( @validate_call - def put_custom_event_specification_with_http_info( + def get_system_rules_with_http_info( self, - event_specification_id: StrictStr, - custom_event_specification: CustomEventSpecification, - allow_restore: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12211,16 +12102,11 @@ def put_custom_event_specification_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CustomEventSpecificationWithLastUpdated]: - """Create or update custom event specification + ) -> ApiResponse[List[SystemRuleLabel]]: + """All system rules for custom event specifications + This API helps to get all the system rules for custom event specifications. - :param event_specification_id: (required) - :type event_specification_id: str - :param custom_event_specification: (required) - :type custom_event_specification: CustomEventSpecification - :param allow_restore: - :type allow_restore: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12243,10 +12129,7 @@ def put_custom_event_specification_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._put_custom_event_specification_serialize( - event_specification_id=event_specification_id, - custom_event_specification=custom_event_specification, - allow_restore=allow_restore, + _param = self._get_system_rules_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12254,11 +12137,9 @@ def put_custom_event_specification_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CustomEventSpecificationWithLastUpdated", - '400': None, + '200': "List[SystemRuleLabel]", '401': None, '403': None, - '500': None, } response_data = self.api_client.call_api( *_param, @@ -12272,11 +12153,8 @@ def put_custom_event_specification_with_http_info( @validate_call - def put_custom_event_specification_without_preload_content( + def get_system_rules_without_preload_content( self, - event_specification_id: StrictStr, - custom_event_specification: CustomEventSpecification, - allow_restore: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12290,15 +12168,10 @@ def put_custom_event_specification_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create or update custom event specification + """All system rules for custom event specifications + This API helps to get all the system rules for custom event specifications. - :param event_specification_id: (required) - :type event_specification_id: str - :param custom_event_specification: (required) - :type custom_event_specification: CustomEventSpecification - :param allow_restore: - :type allow_restore: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12321,10 +12194,7 @@ def put_custom_event_specification_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._put_custom_event_specification_serialize( - event_specification_id=event_specification_id, - custom_event_specification=custom_event_specification, - allow_restore=allow_restore, + _param = self._get_system_rules_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12332,11 +12202,9 @@ def put_custom_event_specification_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CustomEventSpecificationWithLastUpdated", - '400': None, + '200': "List[SystemRuleLabel]", '401': None, '403': None, - '500': None, } response_data = self.api_client.call_api( *_param, @@ -12345,11 +12213,8 @@ def put_custom_event_specification_without_preload_content( return response_data.response - def _put_custom_event_specification_serialize( + def _get_system_rules_serialize( self, - event_specification_id, - custom_event_specification, - allow_restore, _request_auth, _content_type, _headers, @@ -12371,18 +12236,10 @@ def _put_custom_event_specification_serialize( _body_params: Optional[bytes] = None # process the path parameters - if event_specification_id is not None: - _path_params['eventSpecificationId'] = event_specification_id # process the query parameters - if allow_restore is not None: - - _query_params.append(('allowRestore', allow_restore)) - # process the header parameters # process the form parameters # process the body parameter - if custom_event_specification is not None: - _body_params = custom_event_specification # set the HTTP header `Accept` @@ -12393,6 +12250,2354 @@ def _put_custom_event_specification_serialize( ] ) + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/events/settings/event-specifications/custom/systemRules', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def manually_close_event( + self, + event_id: StrictStr, + manual_close_info: ManualCloseInfo, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Event: + """Manually close an event. + + Manually close an event (issue or incident). A close notification will be sent out and the event state will be updated accordingly. + + :param event_id: (required) + :type event_id: str + :param manual_close_info: (required) + :type manual_close_info: ManualCloseInfo + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._manually_close_event_serialize( + event_id=event_id, + manual_close_info=manual_close_info, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "Event", + '400': None, + '401': None, + '403': None, + '404': None, + '422': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def manually_close_event_with_http_info( + self, + event_id: StrictStr, + manual_close_info: ManualCloseInfo, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[Event]: + """Manually close an event. + + Manually close an event (issue or incident). A close notification will be sent out and the event state will be updated accordingly. + + :param event_id: (required) + :type event_id: str + :param manual_close_info: (required) + :type manual_close_info: ManualCloseInfo + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._manually_close_event_serialize( + event_id=event_id, + manual_close_info=manual_close_info, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "Event", + '400': None, + '401': None, + '403': None, + '404': None, + '422': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def manually_close_event_without_preload_content( + self, + event_id: StrictStr, + manual_close_info: ManualCloseInfo, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Manually close an event. + + Manually close an event (issue or incident). A close notification will be sent out and the event state will be updated accordingly. + + :param event_id: (required) + :type event_id: str + :param manual_close_info: (required) + :type manual_close_info: ManualCloseInfo + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._manually_close_event_serialize( + event_id=event_id, + manual_close_info=manual_close_info, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "Event", + '400': None, + '401': None, + '403': None, + '404': None, + '422': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _manually_close_event_serialize( + self, + event_id, + manual_close_info, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if event_id is not None: + _path_params['eventId'] = event_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if manual_close_info is not None: + _body_params = manual_close_info + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/events/settings/manual-close/{eventId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def multi_close_event( + self, + manual_close_info: ManualCloseInfo, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Manually closing multiple events + + Manually close a set of events. A close notification will be sent out and the event state will be updated accordingly for each event + + :param manual_close_info: (required) + :type manual_close_info: ManualCloseInfo + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._multi_close_event_serialize( + manual_close_info=manual_close_info, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '207': None, + '401': None, + '403': None, + '501': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def multi_close_event_with_http_info( + self, + manual_close_info: ManualCloseInfo, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Manually closing multiple events + + Manually close a set of events. A close notification will be sent out and the event state will be updated accordingly for each event + + :param manual_close_info: (required) + :type manual_close_info: ManualCloseInfo + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._multi_close_event_serialize( + manual_close_info=manual_close_info, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '207': None, + '401': None, + '403': None, + '501': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def multi_close_event_without_preload_content( + self, + manual_close_info: ManualCloseInfo, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Manually closing multiple events + + Manually close a set of events. A close notification will be sent out and the event state will be updated accordingly for each event + + :param manual_close_info: (required) + :type manual_close_info: ManualCloseInfo + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._multi_close_event_serialize( + manual_close_info=manual_close_info, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '207': None, + '401': None, + '403': None, + '501': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _multi_close_event_serialize( + self, + manual_close_info, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if manual_close_info is not None: + _body_params = manual_close_info + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/events/settings/manual-close', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_alerting_channel( + self, + abstract_integration: AbstractIntegration, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AbstractIntegration: + """Create Alert Channel + + Creates an alerting channel. Requires the permission called CanConfigureIntegrations. + + :param abstract_integration: (required) + :type abstract_integration: AbstractIntegration + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_alerting_channel_serialize( + abstract_integration=abstract_integration, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AbstractIntegration", + '302': None, + '400': "str", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_alerting_channel_with_http_info( + self, + abstract_integration: AbstractIntegration, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AbstractIntegration]: + """Create Alert Channel + + Creates an alerting channel. Requires the permission called CanConfigureIntegrations. + + :param abstract_integration: (required) + :type abstract_integration: AbstractIntegration + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_alerting_channel_serialize( + abstract_integration=abstract_integration, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AbstractIntegration", + '302': None, + '400': "str", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_alerting_channel_without_preload_content( + self, + abstract_integration: AbstractIntegration, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create Alert Channel + + Creates an alerting channel. Requires the permission called CanConfigureIntegrations. + + :param abstract_integration: (required) + :type abstract_integration: AbstractIntegration + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_alerting_channel_serialize( + abstract_integration=abstract_integration, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AbstractIntegration", + '302': None, + '400': "str", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_alerting_channel_serialize( + self, + abstract_integration, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if abstract_integration is not None: + _body_params = abstract_integration + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/events/settings/alertingChannels', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_custom_event_specification( + self, + custom_event_specification: CustomEventSpecification, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> CustomEventSpecificationWithLastUpdated: + """Create new custom event specification + + + :param custom_event_specification: (required) + :type custom_event_specification: CustomEventSpecification + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_custom_event_specification_serialize( + custom_event_specification=custom_event_specification, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CustomEventSpecificationWithLastUpdated", + '400': None, + '401': None, + '403': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_custom_event_specification_with_http_info( + self, + custom_event_specification: CustomEventSpecification, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[CustomEventSpecificationWithLastUpdated]: + """Create new custom event specification + + + :param custom_event_specification: (required) + :type custom_event_specification: CustomEventSpecification + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_custom_event_specification_serialize( + custom_event_specification=custom_event_specification, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CustomEventSpecificationWithLastUpdated", + '400': None, + '401': None, + '403': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_custom_event_specification_without_preload_content( + self, + custom_event_specification: CustomEventSpecification, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create new custom event specification + + + :param custom_event_specification: (required) + :type custom_event_specification: CustomEventSpecification + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_custom_event_specification_serialize( + custom_event_specification=custom_event_specification, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CustomEventSpecificationWithLastUpdated", + '400': None, + '401': None, + '403': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_custom_event_specification_serialize( + self, + custom_event_specification, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if custom_event_specification is not None: + _body_params = custom_event_specification + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/events/settings/event-specifications/custom', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def put_alert( + self, + id: Annotated[StrictStr, Field(description="ID of a specific Alert Configuration to create or update.")], + alerting_configuration: AlertingConfiguration, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AlertingConfigurationWithLastUpdated: + """Create or update Alert Configuration + + Create or update a specific Alert configuration by ID + + :param id: ID of a specific Alert Configuration to create or update. (required) + :type id: str + :param alerting_configuration: (required) + :type alerting_configuration: AlertingConfiguration + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_alert_serialize( + id=id, + alerting_configuration=alerting_configuration, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AlertingConfigurationWithLastUpdated", + '401': None, + '403': None, + '422': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def put_alert_with_http_info( + self, + id: Annotated[StrictStr, Field(description="ID of a specific Alert Configuration to create or update.")], + alerting_configuration: AlertingConfiguration, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AlertingConfigurationWithLastUpdated]: + """Create or update Alert Configuration + + Create or update a specific Alert configuration by ID + + :param id: ID of a specific Alert Configuration to create or update. (required) + :type id: str + :param alerting_configuration: (required) + :type alerting_configuration: AlertingConfiguration + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_alert_serialize( + id=id, + alerting_configuration=alerting_configuration, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AlertingConfigurationWithLastUpdated", + '401': None, + '403': None, + '422': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def put_alert_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="ID of a specific Alert Configuration to create or update.")], + alerting_configuration: AlertingConfiguration, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create or update Alert Configuration + + Create or update a specific Alert configuration by ID + + :param id: ID of a specific Alert Configuration to create or update. (required) + :type id: str + :param alerting_configuration: (required) + :type alerting_configuration: AlertingConfiguration + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_alert_serialize( + id=id, + alerting_configuration=alerting_configuration, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AlertingConfigurationWithLastUpdated", + '401': None, + '403': None, + '422': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _put_alert_serialize( + self, + id, + alerting_configuration, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if alerting_configuration is not None: + _body_params = alerting_configuration + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/api/events/settings/alerts/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def put_alerting_channel( + self, + id: Annotated[StrictStr, Field(description="ID of the Alerting Channel to update.")], + abstract_integration: AbstractIntegration, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AbstractIntegration: + """Update Alert Channel + + Updates an alerting channel. Requires the permission called CanConfigureIntegrations. + + :param id: ID of the Alerting Channel to update. (required) + :type id: str + :param abstract_integration: (required) + :type abstract_integration: AbstractIntegration + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_alerting_channel_serialize( + id=id, + abstract_integration=abstract_integration, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AbstractIntegration", + '302': None, + '400': "str", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def put_alerting_channel_with_http_info( + self, + id: Annotated[StrictStr, Field(description="ID of the Alerting Channel to update.")], + abstract_integration: AbstractIntegration, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AbstractIntegration]: + """Update Alert Channel + + Updates an alerting channel. Requires the permission called CanConfigureIntegrations. + + :param id: ID of the Alerting Channel to update. (required) + :type id: str + :param abstract_integration: (required) + :type abstract_integration: AbstractIntegration + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_alerting_channel_serialize( + id=id, + abstract_integration=abstract_integration, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AbstractIntegration", + '302': None, + '400': "str", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def put_alerting_channel_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="ID of the Alerting Channel to update.")], + abstract_integration: AbstractIntegration, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update Alert Channel + + Updates an alerting channel. Requires the permission called CanConfigureIntegrations. + + :param id: ID of the Alerting Channel to update. (required) + :type id: str + :param abstract_integration: (required) + :type abstract_integration: AbstractIntegration + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_alerting_channel_serialize( + id=id, + abstract_integration=abstract_integration, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AbstractIntegration", + '302': None, + '400': "str", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _put_alerting_channel_serialize( + self, + id, + abstract_integration, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if abstract_integration is not None: + _body_params = abstract_integration + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/api/events/settings/alertingChannels/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def put_custom_event_specification( + self, + event_specification_id: StrictStr, + custom_event_specification: CustomEventSpecification, + allow_restore: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> CustomEventSpecificationWithLastUpdated: + """Create or update custom event specification + + + :param event_specification_id: (required) + :type event_specification_id: str + :param custom_event_specification: (required) + :type custom_event_specification: CustomEventSpecification + :param allow_restore: + :type allow_restore: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_custom_event_specification_serialize( + event_specification_id=event_specification_id, + custom_event_specification=custom_event_specification, + allow_restore=allow_restore, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CustomEventSpecificationWithLastUpdated", + '400': None, + '401': None, + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def put_custom_event_specification_with_http_info( + self, + event_specification_id: StrictStr, + custom_event_specification: CustomEventSpecification, + allow_restore: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[CustomEventSpecificationWithLastUpdated]: + """Create or update custom event specification + + + :param event_specification_id: (required) + :type event_specification_id: str + :param custom_event_specification: (required) + :type custom_event_specification: CustomEventSpecification + :param allow_restore: + :type allow_restore: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_custom_event_specification_serialize( + event_specification_id=event_specification_id, + custom_event_specification=custom_event_specification, + allow_restore=allow_restore, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CustomEventSpecificationWithLastUpdated", + '400': None, + '401': None, + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def put_custom_event_specification_without_preload_content( + self, + event_specification_id: StrictStr, + custom_event_specification: CustomEventSpecification, + allow_restore: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create or update custom event specification + + + :param event_specification_id: (required) + :type event_specification_id: str + :param custom_event_specification: (required) + :type custom_event_specification: CustomEventSpecification + :param allow_restore: + :type allow_restore: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_custom_event_specification_serialize( + event_specification_id=event_specification_id, + custom_event_specification=custom_event_specification, + allow_restore=allow_restore, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CustomEventSpecificationWithLastUpdated", + '400': None, + '401': None, + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _put_custom_event_specification_serialize( + self, + event_specification_id, + custom_event_specification, + allow_restore, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if event_specification_id is not None: + _path_params['eventSpecificationId'] = event_specification_id + # process the query parameters + if allow_restore is not None: + + _query_params.append(('allowRestore', allow_restore)) + + # process the header parameters + # process the form parameters + # process the body parameter + if custom_event_specification is not None: + _body_params = custom_event_specification + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/api/events/settings/event-specifications/custom/{eventSpecificationId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def restore_mobile_app_alert_config( + self, + id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to restore.")], + created: Annotated[StrictInt, Field(description="Unix timestamp representing the creation time of a specific Mobile Smart Alert Configuration.")], + body: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Restore Mobile Smart Alert Config + + Restores a Mobile Smart Alert Configuration. + + :param id: ID of a specific Mobile Smart Alert Configuration to restore. (required) + :type id: str + :param created: Unix timestamp representing the creation time of a specific Mobile Smart Alert Configuration. (required) + :type created: int + :param body: + :type body: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._restore_mobile_app_alert_config_serialize( + id=id, + created=created, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '403': None, + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def restore_mobile_app_alert_config_with_http_info( + self, + id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to restore.")], + created: Annotated[StrictInt, Field(description="Unix timestamp representing the creation time of a specific Mobile Smart Alert Configuration.")], + body: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Restore Mobile Smart Alert Config + + Restores a Mobile Smart Alert Configuration. + + :param id: ID of a specific Mobile Smart Alert Configuration to restore. (required) + :type id: str + :param created: Unix timestamp representing the creation time of a specific Mobile Smart Alert Configuration. (required) + :type created: int + :param body: + :type body: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._restore_mobile_app_alert_config_serialize( + id=id, + created=created, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '403': None, + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def restore_mobile_app_alert_config_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to restore.")], + created: Annotated[StrictInt, Field(description="Unix timestamp representing the creation time of a specific Mobile Smart Alert Configuration.")], + body: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Restore Mobile Smart Alert Config + + Restores a Mobile Smart Alert Configuration. + + :param id: ID of a specific Mobile Smart Alert Configuration to restore. (required) + :type id: str + :param created: Unix timestamp representing the creation time of a specific Mobile Smart Alert Configuration. (required) + :type created: int + :param body: + :type body: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._restore_mobile_app_alert_config_serialize( + id=id, + created=created, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '403': None, + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _restore_mobile_app_alert_config_serialize( + self, + id, + created, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + if created is not None: + _path_params['created'] = created + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Content-Type` if _content_type: _header_params['Content-Type'] = _content_type @@ -12414,7 +14619,7 @@ def _put_custom_event_specification_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/api/events/settings/event-specifications/custom/{eventSpecificationId}', + resource_path='/api/events/settings/mobile-app-alert-configs/{id}/restore/{created}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12431,10 +14636,10 @@ def _put_custom_event_specification_serialize( @validate_call - def restore_mobile_app_alert_config( + def restore_website_alert_config( self, - id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to restore.")], - created: Annotated[StrictInt, Field(description="Unix timestamp representing the creation time of a specific Mobile Smart Alert Configuration.")], + id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to restore.")], + created: Annotated[StrictInt, Field(description="Unix timestamp representing the creation time of a specific Website Smart Alert Configuration.")], body: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -12449,13 +14654,13 @@ def restore_mobile_app_alert_config( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """Restore Mobile Smart Alert Config + """Restore Website Smart Alert Config - Restores a Mobile Smart Alert Configuration. + Restores a deleted Website Smart Alert Configuration. - :param id: ID of a specific Mobile Smart Alert Configuration to restore. (required) + :param id: ID of a specific Website Smart Alert Configuration to restore. (required) :type id: str - :param created: Unix timestamp representing the creation time of a specific Mobile Smart Alert Configuration. (required) + :param created: Unix timestamp representing the creation time of a specific Website Smart Alert Configuration. (required) :type created: int :param body: :type body: str @@ -12481,7 +14686,7 @@ def restore_mobile_app_alert_config( :return: Returns the result object. """ # noqa: E501 - _param = self._restore_mobile_app_alert_config_serialize( + _param = self._restore_website_alert_config_serialize( id=id, created=created, body=body, @@ -12508,10 +14713,10 @@ def restore_mobile_app_alert_config( @validate_call - def restore_mobile_app_alert_config_with_http_info( + def restore_website_alert_config_with_http_info( self, - id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to restore.")], - created: Annotated[StrictInt, Field(description="Unix timestamp representing the creation time of a specific Mobile Smart Alert Configuration.")], + id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to restore.")], + created: Annotated[StrictInt, Field(description="Unix timestamp representing the creation time of a specific Website Smart Alert Configuration.")], body: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -12526,13 +14731,13 @@ def restore_mobile_app_alert_config_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """Restore Mobile Smart Alert Config + """Restore Website Smart Alert Config - Restores a Mobile Smart Alert Configuration. + Restores a deleted Website Smart Alert Configuration. - :param id: ID of a specific Mobile Smart Alert Configuration to restore. (required) + :param id: ID of a specific Website Smart Alert Configuration to restore. (required) :type id: str - :param created: Unix timestamp representing the creation time of a specific Mobile Smart Alert Configuration. (required) + :param created: Unix timestamp representing the creation time of a specific Website Smart Alert Configuration. (required) :type created: int :param body: :type body: str @@ -12558,7 +14763,7 @@ def restore_mobile_app_alert_config_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._restore_mobile_app_alert_config_serialize( + _param = self._restore_website_alert_config_serialize( id=id, created=created, body=body, @@ -12585,10 +14790,10 @@ def restore_mobile_app_alert_config_with_http_info( @validate_call - def restore_mobile_app_alert_config_without_preload_content( + def restore_website_alert_config_without_preload_content( self, - id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to restore.")], - created: Annotated[StrictInt, Field(description="Unix timestamp representing the creation time of a specific Mobile Smart Alert Configuration.")], + id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to restore.")], + created: Annotated[StrictInt, Field(description="Unix timestamp representing the creation time of a specific Website Smart Alert Configuration.")], body: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -12603,13 +14808,13 @@ def restore_mobile_app_alert_config_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Restore Mobile Smart Alert Config + """Restore Website Smart Alert Config - Restores a Mobile Smart Alert Configuration. + Restores a deleted Website Smart Alert Configuration. - :param id: ID of a specific Mobile Smart Alert Configuration to restore. (required) + :param id: ID of a specific Website Smart Alert Configuration to restore. (required) :type id: str - :param created: Unix timestamp representing the creation time of a specific Mobile Smart Alert Configuration. (required) + :param created: Unix timestamp representing the creation time of a specific Website Smart Alert Configuration. (required) :type created: int :param body: :type body: str @@ -12635,7 +14840,7 @@ def restore_mobile_app_alert_config_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._restore_mobile_app_alert_config_serialize( + _param = self._restore_website_alert_config_serialize( id=id, created=created, body=body, @@ -12657,7 +14862,7 @@ def restore_mobile_app_alert_config_without_preload_content( return response_data.response - def _restore_mobile_app_alert_config_serialize( + def _restore_website_alert_config_serialize( self, id, created, @@ -12717,7 +14922,7 @@ def _restore_mobile_app_alert_config_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/api/events/settings/mobile-app-alert-configs/{id}/restore/{created}', + resource_path='/api/events/settings/website-alert-configs/{id}/restore/{created}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12734,11 +14939,9 @@ def _restore_mobile_app_alert_config_serialize( @validate_call - def restore_website_alert_config( + def send_test_alerting( self, - id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to restore.")], - created: Annotated[StrictInt, Field(description="Unix timestamp representing the creation time of a specific Website Smart Alert Configuration.")], - body: Optional[StrictStr] = None, + abstract_integration: AbstractIntegration, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12752,16 +14955,12 @@ def restore_website_alert_config( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """Restore Website Smart Alert Config + """Test Alerting Channel - Restores a deleted Website Smart Alert Configuration. + Sends a test alert to an alert channel. This is for testing if an potential alert channel is able to receive alerts from Instana. Requires the permission called CanConfigureIntegrations. - :param id: ID of a specific Website Smart Alert Configuration to restore. (required) - :type id: str - :param created: Unix timestamp representing the creation time of a specific Website Smart Alert Configuration. (required) - :type created: int - :param body: - :type body: str + :param abstract_integration: (required) + :type abstract_integration: AbstractIntegration :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12784,10 +14983,8 @@ def restore_website_alert_config( :return: Returns the result object. """ # noqa: E501 - _param = self._restore_website_alert_config_serialize( - id=id, - created=created, - body=body, + _param = self._send_test_alerting_serialize( + abstract_integration=abstract_integration, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12795,9 +14992,7 @@ def restore_website_alert_config( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '403': None, - '404': None, + '200': None, } response_data = self.api_client.call_api( *_param, @@ -12811,11 +15006,9 @@ def restore_website_alert_config( @validate_call - def restore_website_alert_config_with_http_info( + def send_test_alerting_with_http_info( self, - id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to restore.")], - created: Annotated[StrictInt, Field(description="Unix timestamp representing the creation time of a specific Website Smart Alert Configuration.")], - body: Optional[StrictStr] = None, + abstract_integration: AbstractIntegration, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12829,16 +15022,12 @@ def restore_website_alert_config_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """Restore Website Smart Alert Config + """Test Alerting Channel - Restores a deleted Website Smart Alert Configuration. + Sends a test alert to an alert channel. This is for testing if an potential alert channel is able to receive alerts from Instana. Requires the permission called CanConfigureIntegrations. - :param id: ID of a specific Website Smart Alert Configuration to restore. (required) - :type id: str - :param created: Unix timestamp representing the creation time of a specific Website Smart Alert Configuration. (required) - :type created: int - :param body: - :type body: str + :param abstract_integration: (required) + :type abstract_integration: AbstractIntegration :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12861,10 +15050,8 @@ def restore_website_alert_config_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._restore_website_alert_config_serialize( - id=id, - created=created, - body=body, + _param = self._send_test_alerting_serialize( + abstract_integration=abstract_integration, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12872,9 +15059,7 @@ def restore_website_alert_config_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '403': None, - '404': None, + '200': None, } response_data = self.api_client.call_api( *_param, @@ -12888,11 +15073,9 @@ def restore_website_alert_config_with_http_info( @validate_call - def restore_website_alert_config_without_preload_content( + def send_test_alerting_without_preload_content( self, - id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to restore.")], - created: Annotated[StrictInt, Field(description="Unix timestamp representing the creation time of a specific Website Smart Alert Configuration.")], - body: Optional[StrictStr] = None, + abstract_integration: AbstractIntegration, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12906,16 +15089,12 @@ def restore_website_alert_config_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Restore Website Smart Alert Config + """Test Alerting Channel - Restores a deleted Website Smart Alert Configuration. + Sends a test alert to an alert channel. This is for testing if an potential alert channel is able to receive alerts from Instana. Requires the permission called CanConfigureIntegrations. - :param id: ID of a specific Website Smart Alert Configuration to restore. (required) - :type id: str - :param created: Unix timestamp representing the creation time of a specific Website Smart Alert Configuration. (required) - :type created: int - :param body: - :type body: str + :param abstract_integration: (required) + :type abstract_integration: AbstractIntegration :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12938,10 +15117,8 @@ def restore_website_alert_config_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._restore_website_alert_config_serialize( - id=id, - created=created, - body=body, + _param = self._send_test_alerting_serialize( + abstract_integration=abstract_integration, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12949,9 +15126,7 @@ def restore_website_alert_config_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '403': None, - '404': None, + '200': None, } response_data = self.api_client.call_api( *_param, @@ -12960,11 +15135,9 @@ def restore_website_alert_config_without_preload_content( return response_data.response - def _restore_website_alert_config_serialize( + def _send_test_alerting_serialize( self, - id, - created, - body, + abstract_integration, _request_auth, _content_type, _headers, @@ -12986,18 +15159,21 @@ def _restore_website_alert_config_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id - if created is not None: - _path_params['created'] = created # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body + if abstract_integration is not None: + _body_params = abstract_integration + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -13020,7 +15196,7 @@ def _restore_website_alert_config_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/api/events/settings/website-alert-configs/{id}/restore/{created}', + resource_path='/api/events/settings/alertingChannels/test', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13037,9 +15213,10 @@ def _restore_website_alert_config_serialize( @validate_call - def send_test_alerting( + def send_test_alerting_by_id( self, - abstract_integration: AbstractIntegration, + id: Annotated[StrictStr, Field(description="ID of the alerting channel to be notified on.")], + manual_alerting_channel_configuration: ManualAlertingChannelConfiguration, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13053,12 +15230,14 @@ def send_test_alerting( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """Test Alerting Channel + """Notify manually to Alerting Channel. Requires the permission called CanConfigureIntegrations. - Sends a test alert to an alert channel. This is for testing if an potential alert channel is able to receive alerts from Instana. Requires the permission called CanConfigureIntegrations. + Sends alert for a specific event to an alerting channel. Provided the event Id, an alert could be sent to the alerting channel. This endpoint requires `canInvokeAlertChannel` permission. - :param abstract_integration: (required) - :type abstract_integration: AbstractIntegration + :param id: ID of the alerting channel to be notified on. (required) + :type id: str + :param manual_alerting_channel_configuration: (required) + :type manual_alerting_channel_configuration: ManualAlertingChannelConfiguration :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13081,8 +15260,9 @@ def send_test_alerting( :return: Returns the result object. """ # noqa: E501 - _param = self._send_test_alerting_serialize( - abstract_integration=abstract_integration, + _param = self._send_test_alerting_by_id_serialize( + id=id, + manual_alerting_channel_configuration=manual_alerting_channel_configuration, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13090,7 +15270,6 @@ def send_test_alerting( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, } response_data = self.api_client.call_api( *_param, @@ -13104,9 +15283,10 @@ def send_test_alerting( @validate_call - def send_test_alerting_with_http_info( + def send_test_alerting_by_id_with_http_info( self, - abstract_integration: AbstractIntegration, + id: Annotated[StrictStr, Field(description="ID of the alerting channel to be notified on.")], + manual_alerting_channel_configuration: ManualAlertingChannelConfiguration, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13120,12 +15300,14 @@ def send_test_alerting_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """Test Alerting Channel + """Notify manually to Alerting Channel. Requires the permission called CanConfigureIntegrations. - Sends a test alert to an alert channel. This is for testing if an potential alert channel is able to receive alerts from Instana. Requires the permission called CanConfigureIntegrations. + Sends alert for a specific event to an alerting channel. Provided the event Id, an alert could be sent to the alerting channel. This endpoint requires `canInvokeAlertChannel` permission. - :param abstract_integration: (required) - :type abstract_integration: AbstractIntegration + :param id: ID of the alerting channel to be notified on. (required) + :type id: str + :param manual_alerting_channel_configuration: (required) + :type manual_alerting_channel_configuration: ManualAlertingChannelConfiguration :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13148,8 +15330,9 @@ def send_test_alerting_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._send_test_alerting_serialize( - abstract_integration=abstract_integration, + _param = self._send_test_alerting_by_id_serialize( + id=id, + manual_alerting_channel_configuration=manual_alerting_channel_configuration, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13157,7 +15340,6 @@ def send_test_alerting_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, } response_data = self.api_client.call_api( *_param, @@ -13171,9 +15353,10 @@ def send_test_alerting_with_http_info( @validate_call - def send_test_alerting_without_preload_content( + def send_test_alerting_by_id_without_preload_content( self, - abstract_integration: AbstractIntegration, + id: Annotated[StrictStr, Field(description="ID of the alerting channel to be notified on.")], + manual_alerting_channel_configuration: ManualAlertingChannelConfiguration, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13187,12 +15370,14 @@ def send_test_alerting_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Test Alerting Channel + """Notify manually to Alerting Channel. Requires the permission called CanConfigureIntegrations. - Sends a test alert to an alert channel. This is for testing if an potential alert channel is able to receive alerts from Instana. Requires the permission called CanConfigureIntegrations. + Sends alert for a specific event to an alerting channel. Provided the event Id, an alert could be sent to the alerting channel. This endpoint requires `canInvokeAlertChannel` permission. - :param abstract_integration: (required) - :type abstract_integration: AbstractIntegration + :param id: ID of the alerting channel to be notified on. (required) + :type id: str + :param manual_alerting_channel_configuration: (required) + :type manual_alerting_channel_configuration: ManualAlertingChannelConfiguration :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13215,8 +15400,9 @@ def send_test_alerting_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._send_test_alerting_serialize( - abstract_integration=abstract_integration, + _param = self._send_test_alerting_by_id_serialize( + id=id, + manual_alerting_channel_configuration=manual_alerting_channel_configuration, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13224,7 +15410,6 @@ def send_test_alerting_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, } response_data = self.api_client.call_api( *_param, @@ -13233,9 +15418,10 @@ def send_test_alerting_without_preload_content( return response_data.response - def _send_test_alerting_serialize( + def _send_test_alerting_by_id_serialize( self, - abstract_integration, + id, + manual_alerting_channel_configuration, _request_auth, _content_type, _headers, @@ -13257,12 +15443,14 @@ def _send_test_alerting_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if abstract_integration is not None: - _body_params = abstract_integration + if manual_alerting_channel_configuration is not None: + _body_params = manual_alerting_channel_configuration # set the HTTP header `Accept` @@ -13293,8 +15481,8 @@ def _send_test_alerting_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/api/events/settings/alertingChannels/test', + method='POST', + resource_path='/api/events/settings/alertingChannels/notify/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13311,10 +15499,10 @@ def _send_test_alerting_serialize( @validate_call - def send_test_alerting_by_id( + def update_mobile_app_alert_config( self, - id: Annotated[StrictStr, Field(description="ID of the alerting channel to be notified on.")], - manual_alerting_channel_configuration: ManualAlertingChannelConfiguration, + id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to update.")], + mobile_app_alert_config: MobileAppAlertConfig, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13327,15 +15515,15 @@ def send_test_alerting_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """Notify manually to Alerting Channel. Requires the permission called CanConfigureIntegrations. + ) -> WithMetaData: + """Update Mobile Smart Alert Config - Sends alert for a specific event to an alerting channel. Provided the event Id, an alert could be sent to the alerting channel. This endpoint requires `canInvokeAlertChannel` permission. + Updates an existing Mobile Smart Alert Configuration. - :param id: ID of the alerting channel to be notified on. (required) + :param id: ID of a specific Mobile Smart Alert Configuration to update. (required) :type id: str - :param manual_alerting_channel_configuration: (required) - :type manual_alerting_channel_configuration: ManualAlertingChannelConfiguration + :param mobile_app_alert_config: (required) + :type mobile_app_alert_config: MobileAppAlertConfig :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13358,9 +15546,9 @@ def send_test_alerting_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._send_test_alerting_by_id_serialize( + _param = self._update_mobile_app_alert_config_serialize( id=id, - manual_alerting_channel_configuration=manual_alerting_channel_configuration, + mobile_app_alert_config=mobile_app_alert_config, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13368,6 +15556,13 @@ def send_test_alerting_by_id( ) _response_types_map: Dict[str, Optional[str]] = { + '200': "WithMetaData", + '204': None, + '400': None, + '403': None, + '404': None, + '422': None, + '500': None, } response_data = self.api_client.call_api( *_param, @@ -13381,10 +15576,10 @@ def send_test_alerting_by_id( @validate_call - def send_test_alerting_by_id_with_http_info( + def update_mobile_app_alert_config_with_http_info( self, - id: Annotated[StrictStr, Field(description="ID of the alerting channel to be notified on.")], - manual_alerting_channel_configuration: ManualAlertingChannelConfiguration, + id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to update.")], + mobile_app_alert_config: MobileAppAlertConfig, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13397,15 +15592,15 @@ def send_test_alerting_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """Notify manually to Alerting Channel. Requires the permission called CanConfigureIntegrations. + ) -> ApiResponse[WithMetaData]: + """Update Mobile Smart Alert Config - Sends alert for a specific event to an alerting channel. Provided the event Id, an alert could be sent to the alerting channel. This endpoint requires `canInvokeAlertChannel` permission. + Updates an existing Mobile Smart Alert Configuration. - :param id: ID of the alerting channel to be notified on. (required) + :param id: ID of a specific Mobile Smart Alert Configuration to update. (required) :type id: str - :param manual_alerting_channel_configuration: (required) - :type manual_alerting_channel_configuration: ManualAlertingChannelConfiguration + :param mobile_app_alert_config: (required) + :type mobile_app_alert_config: MobileAppAlertConfig :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13428,9 +15623,9 @@ def send_test_alerting_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._send_test_alerting_by_id_serialize( + _param = self._update_mobile_app_alert_config_serialize( id=id, - manual_alerting_channel_configuration=manual_alerting_channel_configuration, + mobile_app_alert_config=mobile_app_alert_config, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13438,6 +15633,13 @@ def send_test_alerting_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { + '200': "WithMetaData", + '204': None, + '400': None, + '403': None, + '404': None, + '422': None, + '500': None, } response_data = self.api_client.call_api( *_param, @@ -13451,10 +15653,10 @@ def send_test_alerting_by_id_with_http_info( @validate_call - def send_test_alerting_by_id_without_preload_content( + def update_mobile_app_alert_config_without_preload_content( self, - id: Annotated[StrictStr, Field(description="ID of the alerting channel to be notified on.")], - manual_alerting_channel_configuration: ManualAlertingChannelConfiguration, + id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to update.")], + mobile_app_alert_config: MobileAppAlertConfig, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13468,14 +15670,14 @@ def send_test_alerting_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Notify manually to Alerting Channel. Requires the permission called CanConfigureIntegrations. + """Update Mobile Smart Alert Config - Sends alert for a specific event to an alerting channel. Provided the event Id, an alert could be sent to the alerting channel. This endpoint requires `canInvokeAlertChannel` permission. + Updates an existing Mobile Smart Alert Configuration. - :param id: ID of the alerting channel to be notified on. (required) + :param id: ID of a specific Mobile Smart Alert Configuration to update. (required) :type id: str - :param manual_alerting_channel_configuration: (required) - :type manual_alerting_channel_configuration: ManualAlertingChannelConfiguration + :param mobile_app_alert_config: (required) + :type mobile_app_alert_config: MobileAppAlertConfig :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13498,9 +15700,9 @@ def send_test_alerting_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._send_test_alerting_by_id_serialize( + _param = self._update_mobile_app_alert_config_serialize( id=id, - manual_alerting_channel_configuration=manual_alerting_channel_configuration, + mobile_app_alert_config=mobile_app_alert_config, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13508,6 +15710,13 @@ def send_test_alerting_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { + '200': "WithMetaData", + '204': None, + '400': None, + '403': None, + '404': None, + '422': None, + '500': None, } response_data = self.api_client.call_api( *_param, @@ -13516,10 +15725,10 @@ def send_test_alerting_by_id_without_preload_content( return response_data.response - def _send_test_alerting_by_id_serialize( + def _update_mobile_app_alert_config_serialize( self, id, - manual_alerting_channel_configuration, + mobile_app_alert_config, _request_auth, _content_type, _headers, @@ -13547,8 +15756,8 @@ def _send_test_alerting_by_id_serialize( # process the header parameters # process the form parameters # process the body parameter - if manual_alerting_channel_configuration is not None: - _body_params = manual_alerting_channel_configuration + if mobile_app_alert_config is not None: + _body_params = mobile_app_alert_config # set the HTTP header `Accept` @@ -13580,7 +15789,7 @@ def _send_test_alerting_by_id_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/events/settings/alertingChannels/notify/{id}', + resource_path='/api/events/settings/mobile-app-alert-configs/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13597,10 +15806,10 @@ def _send_test_alerting_by_id_serialize( @validate_call - def update_mobile_app_alert_config( + def update_mobile_app_historic_baseline( self, - id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to update.")], - mobile_app_alert_config: MobileAppAlertConfig, + id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to recalculate.")], + body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13613,15 +15822,15 @@ def update_mobile_app_alert_config( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> WithMetadata: - """Update Mobile Smart Alert Config + ) -> None: + """Recalculate Mobile Smart Alert Config Baseline - Updates an existing Mobile Smart Alert Configuration. + Recalculates and updates the historic baseline (static seasonal threshold) of a Configuration. The `LastUpdated` field of the Configuration is changed to the current time. - :param id: ID of a specific Mobile Smart Alert Configuration to update. (required) + :param id: ID of a specific Mobile Smart Alert Configuration to recalculate. (required) :type id: str - :param mobile_app_alert_config: (required) - :type mobile_app_alert_config: MobileAppAlertConfig + :param body: + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13644,9 +15853,9 @@ def update_mobile_app_alert_config( :return: Returns the result object. """ # noqa: E501 - _param = self._update_mobile_app_alert_config_serialize( + _param = self._update_mobile_app_historic_baseline_serialize( id=id, - mobile_app_alert_config=mobile_app_alert_config, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13654,12 +15863,12 @@ def update_mobile_app_alert_config( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "WithMetadata", + '200': None, '204': None, '400': None, '403': None, - '422': None, - '500': None, + '404': None, + '428': None, } response_data = self.api_client.call_api( *_param, @@ -13673,10 +15882,10 @@ def update_mobile_app_alert_config( @validate_call - def update_mobile_app_alert_config_with_http_info( + def update_mobile_app_historic_baseline_with_http_info( self, - id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to update.")], - mobile_app_alert_config: MobileAppAlertConfig, + id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to recalculate.")], + body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13689,15 +15898,15 @@ def update_mobile_app_alert_config_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[WithMetadata]: - """Update Mobile Smart Alert Config + ) -> ApiResponse[None]: + """Recalculate Mobile Smart Alert Config Baseline - Updates an existing Mobile Smart Alert Configuration. + Recalculates and updates the historic baseline (static seasonal threshold) of a Configuration. The `LastUpdated` field of the Configuration is changed to the current time. - :param id: ID of a specific Mobile Smart Alert Configuration to update. (required) + :param id: ID of a specific Mobile Smart Alert Configuration to recalculate. (required) :type id: str - :param mobile_app_alert_config: (required) - :type mobile_app_alert_config: MobileAppAlertConfig + :param body: + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13720,9 +15929,9 @@ def update_mobile_app_alert_config_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_mobile_app_alert_config_serialize( + _param = self._update_mobile_app_historic_baseline_serialize( id=id, - mobile_app_alert_config=mobile_app_alert_config, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13730,12 +15939,12 @@ def update_mobile_app_alert_config_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "WithMetadata", + '200': None, '204': None, '400': None, '403': None, - '422': None, - '500': None, + '404': None, + '428': None, } response_data = self.api_client.call_api( *_param, @@ -13749,10 +15958,10 @@ def update_mobile_app_alert_config_with_http_info( @validate_call - def update_mobile_app_alert_config_without_preload_content( + def update_mobile_app_historic_baseline_without_preload_content( self, - id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to update.")], - mobile_app_alert_config: MobileAppAlertConfig, + id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to recalculate.")], + body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13766,14 +15975,14 @@ def update_mobile_app_alert_config_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Update Mobile Smart Alert Config + """Recalculate Mobile Smart Alert Config Baseline - Updates an existing Mobile Smart Alert Configuration. + Recalculates and updates the historic baseline (static seasonal threshold) of a Configuration. The `LastUpdated` field of the Configuration is changed to the current time. - :param id: ID of a specific Mobile Smart Alert Configuration to update. (required) + :param id: ID of a specific Mobile Smart Alert Configuration to recalculate. (required) :type id: str - :param mobile_app_alert_config: (required) - :type mobile_app_alert_config: MobileAppAlertConfig + :param body: + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13796,9 +16005,9 @@ def update_mobile_app_alert_config_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_mobile_app_alert_config_serialize( + _param = self._update_mobile_app_historic_baseline_serialize( id=id, - mobile_app_alert_config=mobile_app_alert_config, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13806,12 +16015,12 @@ def update_mobile_app_alert_config_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "WithMetadata", + '200': None, '204': None, '400': None, '403': None, - '422': None, - '500': None, + '404': None, + '428': None, } response_data = self.api_client.call_api( *_param, @@ -13820,10 +16029,10 @@ def update_mobile_app_alert_config_without_preload_content( return response_data.response - def _update_mobile_app_alert_config_serialize( + def _update_mobile_app_historic_baseline_serialize( self, id, - mobile_app_alert_config, + body, _request_auth, _content_type, _headers, @@ -13851,17 +16060,10 @@ def _update_mobile_app_alert_config_serialize( # process the header parameters # process the form parameters # process the body parameter - if mobile_app_alert_config is not None: - _body_params = mobile_app_alert_config + if body is not None: + _body_params = body - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) # set the HTTP header `Content-Type` if _content_type: @@ -13884,7 +16086,7 @@ def _update_mobile_app_alert_config_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/events/settings/mobile-app-alert-configs/{id}', + resource_path='/api/events/settings/mobile-app-alert-configs/{id}/update-baseline', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13901,9 +16103,8 @@ def _update_mobile_app_alert_config_serialize( @validate_call - def update_mobile_app_historic_baseline( + def update_prefix( self, - id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to recalculate.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13917,12 +16118,10 @@ def update_mobile_app_historic_baseline( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """Recalculate Mobile Smart Alert Config Baseline + """Update shortcode prefix. - Recalculates and updates the historic baseline (static seasonal threshold) of a Configuration. The `LastUpdated` field of the Configuration is changed to the current time. + Updates the shortcode prefix used for events. - :param id: ID of a specific Mobile Smart Alert Configuration to recalculate. (required) - :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13945,8 +16144,7 @@ def update_mobile_app_historic_baseline( :return: Returns the result object. """ # noqa: E501 - _param = self._update_mobile_app_historic_baseline_serialize( - id=id, + _param = self._update_prefix_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13955,11 +16153,8 @@ def update_mobile_app_historic_baseline( _response_types_map: Dict[str, Optional[str]] = { '200': None, - '204': None, - '400': None, + '401': None, '403': None, - '404': None, - '428': None, } response_data = self.api_client.call_api( *_param, @@ -13973,9 +16168,8 @@ def update_mobile_app_historic_baseline( @validate_call - def update_mobile_app_historic_baseline_with_http_info( + def update_prefix_with_http_info( self, - id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to recalculate.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13989,12 +16183,10 @@ def update_mobile_app_historic_baseline_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """Recalculate Mobile Smart Alert Config Baseline + """Update shortcode prefix. - Recalculates and updates the historic baseline (static seasonal threshold) of a Configuration. The `LastUpdated` field of the Configuration is changed to the current time. + Updates the shortcode prefix used for events. - :param id: ID of a specific Mobile Smart Alert Configuration to recalculate. (required) - :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14017,8 +16209,7 @@ def update_mobile_app_historic_baseline_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_mobile_app_historic_baseline_serialize( - id=id, + _param = self._update_prefix_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14027,11 +16218,8 @@ def update_mobile_app_historic_baseline_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': None, - '204': None, - '400': None, + '401': None, '403': None, - '404': None, - '428': None, } response_data = self.api_client.call_api( *_param, @@ -14045,9 +16233,8 @@ def update_mobile_app_historic_baseline_with_http_info( @validate_call - def update_mobile_app_historic_baseline_without_preload_content( + def update_prefix_without_preload_content( self, - id: Annotated[StrictStr, Field(description="ID of a specific Mobile Smart Alert Configuration to recalculate.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14061,12 +16248,10 @@ def update_mobile_app_historic_baseline_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Recalculate Mobile Smart Alert Config Baseline + """Update shortcode prefix. - Recalculates and updates the historic baseline (static seasonal threshold) of a Configuration. The `LastUpdated` field of the Configuration is changed to the current time. + Updates the shortcode prefix used for events. - :param id: ID of a specific Mobile Smart Alert Configuration to recalculate. (required) - :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14089,8 +16274,7 @@ def update_mobile_app_historic_baseline_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_mobile_app_historic_baseline_serialize( - id=id, + _param = self._update_prefix_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14099,11 +16283,8 @@ def update_mobile_app_historic_baseline_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': None, - '204': None, - '400': None, + '401': None, '403': None, - '404': None, - '428': None, } response_data = self.api_client.call_api( *_param, @@ -14112,9 +16293,8 @@ def update_mobile_app_historic_baseline_without_preload_content( return response_data.response - def _update_mobile_app_historic_baseline_serialize( + def _update_prefix_serialize( self, - id, _request_auth, _content_type, _headers, @@ -14136,8 +16316,6 @@ def _update_mobile_app_historic_baseline_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -14152,8 +16330,8 @@ def _update_mobile_app_historic_baseline_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/api/events/settings/mobile-app-alert-configs/{id}/update-baseline', + method='PUT', + resource_path='/api/events/settings/shortcode/current-prefix', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14483,6 +16661,7 @@ def _update_website_alert_config_serialize( def update_website_historic_baseline( self, id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to recalculate.")], + body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14502,6 +16681,8 @@ def update_website_historic_baseline( :param id: ID of a specific Website Smart Alert Configuration to recalculate. (required) :type id: str + :param body: + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14526,6 +16707,7 @@ def update_website_historic_baseline( _param = self._update_website_historic_baseline_serialize( id=id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14555,6 +16737,7 @@ def update_website_historic_baseline( def update_website_historic_baseline_with_http_info( self, id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to recalculate.")], + body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14574,6 +16757,8 @@ def update_website_historic_baseline_with_http_info( :param id: ID of a specific Website Smart Alert Configuration to recalculate. (required) :type id: str + :param body: + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14598,6 +16783,7 @@ def update_website_historic_baseline_with_http_info( _param = self._update_website_historic_baseline_serialize( id=id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14627,6 +16813,7 @@ def update_website_historic_baseline_with_http_info( def update_website_historic_baseline_without_preload_content( self, id: Annotated[StrictStr, Field(description="ID of a specific Website Smart Alert Configuration to recalculate.")], + body: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14646,6 +16833,8 @@ def update_website_historic_baseline_without_preload_content( :param id: ID of a specific Website Smart Alert Configuration to recalculate. (required) :type id: str + :param body: + :type body: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14670,6 +16859,7 @@ def update_website_historic_baseline_without_preload_content( _param = self._update_website_historic_baseline_serialize( id=id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14694,6 +16884,7 @@ def update_website_historic_baseline_without_preload_content( def _update_website_historic_baseline_serialize( self, id, + body, _request_auth, _content_type, _headers, @@ -14721,9 +16912,24 @@ def _update_website_historic_baseline_serialize( # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -15034,7 +17240,7 @@ def _upsert_custom_payload_configuration_serialize( @validate_call def upsert_custom_payload_configuration_v2( self, - custom_payload_configuration: CustomPayloadConfiguration, + custom_payload_with_version: CustomPayloadWithVersion, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15052,8 +17258,8 @@ def upsert_custom_payload_configuration_v2( Creates or Updates Global Custom Payload Configuration. - :param custom_payload_configuration: (required) - :type custom_payload_configuration: CustomPayloadConfiguration + :param custom_payload_with_version: (required) + :type custom_payload_with_version: CustomPayloadWithVersion :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15077,7 +17283,7 @@ def upsert_custom_payload_configuration_v2( """ # noqa: E501 _param = self._upsert_custom_payload_configuration_v2_serialize( - custom_payload_configuration=custom_payload_configuration, + custom_payload_with_version=custom_payload_with_version, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15106,7 +17312,7 @@ def upsert_custom_payload_configuration_v2( @validate_call def upsert_custom_payload_configuration_v2_with_http_info( self, - custom_payload_configuration: CustomPayloadConfiguration, + custom_payload_with_version: CustomPayloadWithVersion, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15124,8 +17330,8 @@ def upsert_custom_payload_configuration_v2_with_http_info( Creates or Updates Global Custom Payload Configuration. - :param custom_payload_configuration: (required) - :type custom_payload_configuration: CustomPayloadConfiguration + :param custom_payload_with_version: (required) + :type custom_payload_with_version: CustomPayloadWithVersion :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15149,7 +17355,7 @@ def upsert_custom_payload_configuration_v2_with_http_info( """ # noqa: E501 _param = self._upsert_custom_payload_configuration_v2_serialize( - custom_payload_configuration=custom_payload_configuration, + custom_payload_with_version=custom_payload_with_version, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15178,7 +17384,7 @@ def upsert_custom_payload_configuration_v2_with_http_info( @validate_call def upsert_custom_payload_configuration_v2_without_preload_content( self, - custom_payload_configuration: CustomPayloadConfiguration, + custom_payload_with_version: CustomPayloadWithVersion, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15196,8 +17402,8 @@ def upsert_custom_payload_configuration_v2_without_preload_content( Creates or Updates Global Custom Payload Configuration. - :param custom_payload_configuration: (required) - :type custom_payload_configuration: CustomPayloadConfiguration + :param custom_payload_with_version: (required) + :type custom_payload_with_version: CustomPayloadWithVersion :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15221,7 +17427,7 @@ def upsert_custom_payload_configuration_v2_without_preload_content( """ # noqa: E501 _param = self._upsert_custom_payload_configuration_v2_serialize( - custom_payload_configuration=custom_payload_configuration, + custom_payload_with_version=custom_payload_with_version, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15245,7 +17451,7 @@ def upsert_custom_payload_configuration_v2_without_preload_content( def _upsert_custom_payload_configuration_v2_serialize( self, - custom_payload_configuration, + custom_payload_with_version, _request_auth, _content_type, _headers, @@ -15271,8 +17477,8 @@ def _upsert_custom_payload_configuration_v2_serialize( # process the header parameters # process the form parameters # process the body parameter - if custom_payload_configuration is not None: - _body_params = custom_payload_configuration + if custom_payload_with_version is not None: + _body_params = custom_payload_with_version # set the HTTP header `Accept` diff --git a/instana_client/api/events_api.py b/instana_client/api/events_api.py index 66c59f3..af48ecd 100644 --- a/instana_client/api/events_api.py +++ b/instana_client/api/events_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/global_application_alert_configuration_api.py b/instana_client/api/global_application_alert_configuration_api.py index c1a5fc7..2eb6665 100644 --- a/instana_client/api/global_application_alert_configuration_api.py +++ b/instana_client/api/global_application_alert_configuration_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -1220,7 +1220,6 @@ def find_active_global_application_alert_configs( _response_types_map: Dict[str, Optional[str]] = { '200': "List[GlobalApplicationAlertConfigWithMetadata]", - '403': None, } response_data = self.api_client.call_api( *_param, @@ -1292,7 +1291,6 @@ def find_active_global_application_alert_configs_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "List[GlobalApplicationAlertConfigWithMetadata]", - '403': None, } response_data = self.api_client.call_api( *_param, @@ -1364,7 +1362,6 @@ def find_active_global_application_alert_configs_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "List[GlobalApplicationAlertConfigWithMetadata]", - '403': None, } response_data = self.api_client.call_api( *_param, @@ -2361,6 +2358,7 @@ def update_global_application_alert_config( '204': None, '400': None, '403': None, + '404': None, '422': None, '500': None, } @@ -2437,6 +2435,7 @@ def update_global_application_alert_config_with_http_info( '204': None, '400': None, '403': None, + '404': None, '422': None, '500': None, } @@ -2513,6 +2512,7 @@ def update_global_application_alert_config_without_preload_content( '204': None, '400': None, '403': None, + '404': None, '422': None, '500': None, } diff --git a/instana_client/api/groups_api.py b/instana_client/api/groups_api.py index ff94b47..cb68b79 100644 --- a/instana_client/api/groups_api.py +++ b/instana_client/api/groups_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/health_api.py b/instana_client/api/health_api.py index 4e5ff11..ce29fcd 100644 --- a/instana_client/api/health_api.py +++ b/instana_client/api/health_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/host_agent_api.py b/instana_client/api/host_agent_api.py index 74aafec..545a465 100644 --- a/instana_client/api/host_agent_api.py +++ b/instana_client/api/host_agent_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -17,8 +17,9 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import StrictBool, StrictInt, StrictStr +from pydantic import Field, StrictBool, StrictInt, StrictStr from typing import List, Optional +from typing_extensions import Annotated from instana_client.models.agent_configuration_update import AgentConfigurationUpdate from instana_client.models.snapshot_item import SnapshotItem from instana_client.models.snapshot_result import SnapshotResult @@ -44,7 +45,7 @@ def __init__(self, api_client=None) -> None: @validate_call def get_agent_clr_logs( self, - host_id: StrictStr, + host_id: Annotated[str, Field(min_length=1, strict=True)], download: Optional[StrictBool] = None, _request_timeout: Union[ None, @@ -113,7 +114,7 @@ def get_agent_clr_logs( @validate_call def get_agent_clr_logs_with_http_info( self, - host_id: StrictStr, + host_id: Annotated[str, Field(min_length=1, strict=True)], download: Optional[StrictBool] = None, _request_timeout: Union[ None, @@ -182,7 +183,7 @@ def get_agent_clr_logs_with_http_info( @validate_call def get_agent_clr_logs_without_preload_content( self, - host_id: StrictStr, + host_id: Annotated[str, Field(min_length=1, strict=True)], download: Optional[StrictBool] = None, _request_timeout: Union[ None, @@ -316,7 +317,7 @@ def _get_agent_clr_logs_serialize( @validate_call def get_agent_logs( self, - host_id: StrictStr, + host_id: Annotated[str, Field(min_length=1, strict=True)], file: List[StrictStr], download: Optional[StrictBool] = None, _request_timeout: Union[ @@ -389,7 +390,7 @@ def get_agent_logs( @validate_call def get_agent_logs_with_http_info( self, - host_id: StrictStr, + host_id: Annotated[str, Field(min_length=1, strict=True)], file: List[StrictStr], download: Optional[StrictBool] = None, _request_timeout: Union[ @@ -462,7 +463,7 @@ def get_agent_logs_with_http_info( @validate_call def get_agent_logs_without_preload_content( self, - host_id: StrictStr, + host_id: Annotated[str, Field(min_length=1, strict=True)], file: List[StrictStr], download: Optional[StrictBool] = None, _request_timeout: Union[ @@ -606,7 +607,7 @@ def _get_agent_logs_serialize( @validate_call def get_agent_snapshot( self, - id: StrictStr, + id: Annotated[str, Field(min_length=1, strict=True)], to: Optional[StrictInt] = None, window_size: Optional[StrictInt] = None, _request_timeout: Union[ @@ -680,7 +681,7 @@ def get_agent_snapshot( @validate_call def get_agent_snapshot_with_http_info( self, - id: StrictStr, + id: Annotated[str, Field(min_length=1, strict=True)], to: Optional[StrictInt] = None, window_size: Optional[StrictInt] = None, _request_timeout: Union[ @@ -754,7 +755,7 @@ def get_agent_snapshot_with_http_info( @validate_call def get_agent_snapshot_without_preload_content( self, - id: StrictStr, + id: Annotated[str, Field(min_length=1, strict=True)], to: Optional[StrictInt] = None, window_size: Optional[StrictInt] = None, _request_timeout: Union[ @@ -898,8 +899,8 @@ def _get_agent_snapshot_serialize( @validate_call def get_agent_support_information( self, - host_id: StrictStr, - support_info_id: StrictStr, + host_id: Annotated[str, Field(min_length=1, strict=True)], + support_info_id: Annotated[str, Field(min_length=1, strict=True)], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -967,8 +968,8 @@ def get_agent_support_information( @validate_call def get_agent_support_information_with_http_info( self, - host_id: StrictStr, - support_info_id: StrictStr, + host_id: Annotated[str, Field(min_length=1, strict=True)], + support_info_id: Annotated[str, Field(min_length=1, strict=True)], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1036,8 +1037,8 @@ def get_agent_support_information_with_http_info( @validate_call def get_agent_support_information_without_preload_content( self, - host_id: StrictStr, - support_info_id: StrictStr, + host_id: Annotated[str, Field(min_length=1, strict=True)], + support_info_id: Annotated[str, Field(min_length=1, strict=True)], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1498,7 +1499,7 @@ def _search_host_agents_serialize( @validate_call def update_agent( self, - host_id: StrictStr, + host_id: Annotated[str, Field(min_length=1, strict=True)], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1563,7 +1564,7 @@ def update_agent( @validate_call def update_agent_with_http_info( self, - host_id: StrictStr, + host_id: Annotated[str, Field(min_length=1, strict=True)], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1628,7 +1629,7 @@ def update_agent_with_http_info( @validate_call def update_agent_without_preload_content( self, - host_id: StrictStr, + host_id: Annotated[str, Field(min_length=1, strict=True)], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1753,7 +1754,7 @@ def _update_agent_serialize( @validate_call def update_configuration_by_host( self, - host_id: StrictStr, + host_id: Annotated[str, Field(min_length=1, strict=True)], agent_configuration_update: Optional[AgentConfigurationUpdate] = None, _request_timeout: Union[ None, @@ -1822,7 +1823,7 @@ def update_configuration_by_host( @validate_call def update_configuration_by_host_with_http_info( self, - host_id: StrictStr, + host_id: Annotated[str, Field(min_length=1, strict=True)], agent_configuration_update: Optional[AgentConfigurationUpdate] = None, _request_timeout: Union[ None, @@ -1891,7 +1892,7 @@ def update_configuration_by_host_with_http_info( @validate_call def update_configuration_by_host_without_preload_content( self, - host_id: StrictStr, + host_id: Annotated[str, Field(min_length=1, strict=True)], agent_configuration_update: Optional[AgentConfigurationUpdate] = None, _request_timeout: Union[ None, diff --git a/instana_client/api/infrastructure_alert_configuration_api.py b/instana_client/api/infrastructure_alert_configuration_api.py index 5d6e5bd..4a487cf 100644 --- a/instana_client/api/infrastructure_alert_configuration_api.py +++ b/instana_client/api/infrastructure_alert_configuration_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -42,6 +42,828 @@ def __init__(self, api_client=None) -> None: self.api_client = api_client + @validate_call + def bulk_delete_infra_alert_configs( + self, + request_body: List[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Bulk Delete Infra Smart Alert Configs + + Delete multiple Infra Smart Alert configurations in a single operation. Only configs that are not already deleted will be updated. + + :param request_body: (required) + :type request_body: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._bulk_delete_infra_alert_configs_serialize( + request_body=request_body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '403': None, + '422': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def bulk_delete_infra_alert_configs_with_http_info( + self, + request_body: List[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Bulk Delete Infra Smart Alert Configs + + Delete multiple Infra Smart Alert configurations in a single operation. Only configs that are not already deleted will be updated. + + :param request_body: (required) + :type request_body: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._bulk_delete_infra_alert_configs_serialize( + request_body=request_body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '403': None, + '422': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def bulk_delete_infra_alert_configs_without_preload_content( + self, + request_body: List[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Bulk Delete Infra Smart Alert Configs + + Delete multiple Infra Smart Alert configurations in a single operation. Only configs that are not already deleted will be updated. + + :param request_body: (required) + :type request_body: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._bulk_delete_infra_alert_configs_serialize( + request_body=request_body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '403': None, + '422': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _bulk_delete_infra_alert_configs_serialize( + self, + request_body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'request_body': '', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if request_body is not None: + _body_params = request_body + + + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/api/events/settings/infra-alert-configs/bulk/delete', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def bulk_disable_infra_alert_configs( + self, + request_body: List[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Bulk Disable Infra Smart Alert Configs + + Disable multiple Infra Smart Alert configurations in a single operation. Only configs that are currently enabled will be updated. + + :param request_body: (required) + :type request_body: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._bulk_disable_infra_alert_configs_serialize( + request_body=request_body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '403': None, + '422': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def bulk_disable_infra_alert_configs_with_http_info( + self, + request_body: List[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Bulk Disable Infra Smart Alert Configs + + Disable multiple Infra Smart Alert configurations in a single operation. Only configs that are currently enabled will be updated. + + :param request_body: (required) + :type request_body: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._bulk_disable_infra_alert_configs_serialize( + request_body=request_body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '403': None, + '422': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def bulk_disable_infra_alert_configs_without_preload_content( + self, + request_body: List[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Bulk Disable Infra Smart Alert Configs + + Disable multiple Infra Smart Alert configurations in a single operation. Only configs that are currently enabled will be updated. + + :param request_body: (required) + :type request_body: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._bulk_disable_infra_alert_configs_serialize( + request_body=request_body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '403': None, + '422': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _bulk_disable_infra_alert_configs_serialize( + self, + request_body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'request_body': '', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if request_body is not None: + _body_params = request_body + + + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/api/events/settings/infra-alert-configs/bulk/disable', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def bulk_enable_infra_alert_configs( + self, + request_body: List[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Bulk Enable Infra Smart Alert Configs + + Enable multiple Infra Smart Alert configurations in a single operation. Only configs that are currently disabled will be updated. + + :param request_body: (required) + :type request_body: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._bulk_enable_infra_alert_configs_serialize( + request_body=request_body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '403': None, + '422': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def bulk_enable_infra_alert_configs_with_http_info( + self, + request_body: List[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Bulk Enable Infra Smart Alert Configs + + Enable multiple Infra Smart Alert configurations in a single operation. Only configs that are currently disabled will be updated. + + :param request_body: (required) + :type request_body: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._bulk_enable_infra_alert_configs_serialize( + request_body=request_body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '403': None, + '422': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def bulk_enable_infra_alert_configs_without_preload_content( + self, + request_body: List[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Bulk Enable Infra Smart Alert Configs + + Enable multiple Infra Smart Alert configurations in a single operation. Only configs that are currently disabled will be updated. + + :param request_body: (required) + :type request_body: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._bulk_enable_infra_alert_configs_serialize( + request_body=request_body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '403': None, + '422': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _bulk_enable_infra_alert_configs_serialize( + self, + request_body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'request_body': '', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if request_body is not None: + _body_params = request_body + + + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/api/events/settings/infra-alert-configs/bulk/enable', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def create_infra_alert_config( self, @@ -97,6 +919,7 @@ def create_infra_alert_config( _response_types_map: Dict[str, Optional[str]] = { '200': "InfraAlertConfigWithMetadata", '403': None, + '422': None, } response_data = self.api_client.call_api( *_param, @@ -164,6 +987,7 @@ def create_infra_alert_config_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "InfraAlertConfigWithMetadata", '403': None, + '422': None, } response_data = self.api_client.call_api( *_param, @@ -231,6 +1055,7 @@ def create_infra_alert_config_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "InfraAlertConfigWithMetadata", '403': None, + '422': None, } response_data = self.api_client.call_api( *_param, @@ -2312,6 +3137,8 @@ def update_infra_alert_config( '200': "InfraAlertConfigWithMetadata", '204': None, '403': None, + '404': None, + '422': None, } response_data = self.api_client.call_api( *_param, @@ -2384,6 +3211,8 @@ def update_infra_alert_config_with_http_info( '200': "InfraAlertConfigWithMetadata", '204': None, '403': None, + '404': None, + '422': None, } response_data = self.api_client.call_api( *_param, @@ -2456,6 +3285,8 @@ def update_infra_alert_config_without_preload_content( '200': "InfraAlertConfigWithMetadata", '204': None, '403': None, + '404': None, + '422': None, } response_data = self.api_client.call_api( *_param, diff --git a/instana_client/api/infrastructure_analyze_api.py b/instana_client/api/infrastructure_analyze_api.py index 19099b0..b113426 100644 --- a/instana_client/api/infrastructure_analyze_api.py +++ b/instana_client/api/infrastructure_analyze_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/infrastructure_catalog_api.py b/instana_client/api/infrastructure_catalog_api.py index 91fc467..bfe4f1f 100644 --- a/instana_client/api/infrastructure_catalog_api.py +++ b/instana_client/api/infrastructure_catalog_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/infrastructure_metrics_api.py b/instana_client/api/infrastructure_metrics_api.py index 4b2b9df..26ab5f2 100644 --- a/instana_client/api/infrastructure_metrics_api.py +++ b/instana_client/api/infrastructure_metrics_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/infrastructure_resources_api.py b/instana_client/api/infrastructure_resources_api.py index c35da72..7158655 100644 --- a/instana_client/api/infrastructure_resources_api.py +++ b/instana_client/api/infrastructure_resources_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/infrastructure_topology_api.py b/instana_client/api/infrastructure_topology_api.py index 694ee1e..ffd8132 100644 --- a/instana_client/api/infrastructure_topology_api.py +++ b/instana_client/api/infrastructure_topology_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/llm_price_configuration_api.py b/instana_client/api/llm_price_configuration_api.py new file mode 100644 index 0000000..abead8d --- /dev/null +++ b/instana_client/api/llm_price_configuration_api.py @@ -0,0 +1,2562 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import StrictStr +from typing import Optional +from instana_client.models.llm_model_price import LlmModelPrice +from instana_client.models.llm_model_price_metadata import LlmModelPriceMetadata + +from instana_client.api_client import ApiClient, RequestSerialized +from instana_client.api_response import ApiResponse +from instana_client.rest import RESTResponseType + + +class LLMPriceConfigurationApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def delete_llm_model_price( + self, + provider: StrictStr, + model_name: StrictStr, + platform: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Delete LLM model price + + Delete a tenant-specific price configuration for a specific provider+model. Optionally specify a platform. Only user-defined prices can be deleted. + + :param provider: (required) + :type provider: str + :param model_name: (required) + :type model_name: str + :param platform: + :type platform: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_llm_model_price_serialize( + provider=provider, + model_name=model_name, + platform=platform, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_llm_model_price_with_http_info( + self, + provider: StrictStr, + model_name: StrictStr, + platform: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Delete LLM model price + + Delete a tenant-specific price configuration for a specific provider+model. Optionally specify a platform. Only user-defined prices can be deleted. + + :param provider: (required) + :type provider: str + :param model_name: (required) + :type model_name: str + :param platform: + :type platform: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_llm_model_price_serialize( + provider=provider, + model_name=model_name, + platform=platform, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_llm_model_price_without_preload_content( + self, + provider: StrictStr, + model_name: StrictStr, + platform: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete LLM model price + + Delete a tenant-specific price configuration for a specific provider+model. Optionally specify a platform. Only user-defined prices can be deleted. + + :param provider: (required) + :type provider: str + :param model_name: (required) + :type model_name: str + :param platform: + :type platform: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_llm_model_price_serialize( + provider=provider, + model_name=model_name, + platform=platform, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_llm_model_price_serialize( + self, + provider, + model_name, + platform, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if provider is not None: + _path_params['provider'] = provider + if model_name is not None: + _path_params['modelName'] = model_name + # process the query parameters + if platform is not None: + + _query_params.append(('platform', platform)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/api/settings/llm-pricing/{provider}/{modelName}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def delete_llm_model_price_without_provider( + self, + model_name: StrictStr, + platform: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Delete LLM model price without provider + + Delete a tenant-specific price configuration for a model without specifying provider. Optionally specify a platform. Only user-defined prices can be deleted. + + :param model_name: (required) + :type model_name: str + :param platform: + :type platform: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_llm_model_price_without_provider_serialize( + model_name=model_name, + platform=platform, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_llm_model_price_without_provider_with_http_info( + self, + model_name: StrictStr, + platform: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Delete LLM model price without provider + + Delete a tenant-specific price configuration for a model without specifying provider. Optionally specify a platform. Only user-defined prices can be deleted. + + :param model_name: (required) + :type model_name: str + :param platform: + :type platform: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_llm_model_price_without_provider_serialize( + model_name=model_name, + platform=platform, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_llm_model_price_without_provider_without_preload_content( + self, + model_name: StrictStr, + platform: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete LLM model price without provider + + Delete a tenant-specific price configuration for a model without specifying provider. Optionally specify a platform. Only user-defined prices can be deleted. + + :param model_name: (required) + :type model_name: str + :param platform: + :type platform: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_llm_model_price_without_provider_serialize( + model_name=model_name, + platform=platform, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_llm_model_price_without_provider_serialize( + self, + model_name, + platform, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if model_name is not None: + _path_params['modelName'] = model_name + # process the query parameters + if platform is not None: + + _query_params.append(('platform', platform)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/api/settings/llm-pricing/model/{modelName}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_all_llm_model_prices( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> LlmModelPrice: + """Get all LLM model prices + + Fetch all LLM price configurations for the current tenant unit. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_all_llm_model_prices_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "LlmModelPrice", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_all_llm_model_prices_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[LlmModelPrice]: + """Get all LLM model prices + + Fetch all LLM price configurations for the current tenant unit. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_all_llm_model_prices_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "LlmModelPrice", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_all_llm_model_prices_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get all LLM model prices + + Fetch all LLM price configurations for the current tenant unit. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_all_llm_model_prices_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "LlmModelPrice", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_all_llm_model_prices_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/settings/llm-pricing', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_llm_model_currency( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> LlmModelPriceMetadata: + """Get currency for LLM model prices + + Fetch the currency code used for LLM model pricing. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_llm_model_currency_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "LlmModelPriceMetadata", + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_llm_model_currency_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[LlmModelPriceMetadata]: + """Get currency for LLM model prices + + Fetch the currency code used for LLM model pricing. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_llm_model_currency_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "LlmModelPriceMetadata", + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_llm_model_currency_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get currency for LLM model prices + + Fetch the currency code used for LLM model pricing. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_llm_model_currency_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "LlmModelPriceMetadata", + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_llm_model_currency_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/settings/llm-pricing/currency', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_llm_model_price( + self, + provider: StrictStr, + model_name: StrictStr, + platform: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> LlmModelPrice: + """Get LLM model price + + Fetch the price for a specific provider+model. Optionally specify a platform for platform-specific pricing. + + :param provider: (required) + :type provider: str + :param model_name: (required) + :type model_name: str + :param platform: + :type platform: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_llm_model_price_serialize( + provider=provider, + model_name=model_name, + platform=platform, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "LlmModelPrice", + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_llm_model_price_with_http_info( + self, + provider: StrictStr, + model_name: StrictStr, + platform: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[LlmModelPrice]: + """Get LLM model price + + Fetch the price for a specific provider+model. Optionally specify a platform for platform-specific pricing. + + :param provider: (required) + :type provider: str + :param model_name: (required) + :type model_name: str + :param platform: + :type platform: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_llm_model_price_serialize( + provider=provider, + model_name=model_name, + platform=platform, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "LlmModelPrice", + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_llm_model_price_without_preload_content( + self, + provider: StrictStr, + model_name: StrictStr, + platform: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get LLM model price + + Fetch the price for a specific provider+model. Optionally specify a platform for platform-specific pricing. + + :param provider: (required) + :type provider: str + :param model_name: (required) + :type model_name: str + :param platform: + :type platform: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_llm_model_price_serialize( + provider=provider, + model_name=model_name, + platform=platform, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "LlmModelPrice", + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_llm_model_price_serialize( + self, + provider, + model_name, + platform, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if provider is not None: + _path_params['provider'] = provider + if model_name is not None: + _path_params['modelName'] = model_name + # process the query parameters + if platform is not None: + + _query_params.append(('platform', platform)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/settings/llm-pricing/{provider}/{modelName}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_llm_model_price_without_provider( + self, + model_name: StrictStr, + platform: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> LlmModelPrice: + """Get LLM model price without provider + + Fetch the price for a model without specifying provider. Optionally specify a platform for platform-specific pricing. + + :param model_name: (required) + :type model_name: str + :param platform: + :type platform: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_llm_model_price_without_provider_serialize( + model_name=model_name, + platform=platform, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "LlmModelPrice", + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_llm_model_price_without_provider_with_http_info( + self, + model_name: StrictStr, + platform: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[LlmModelPrice]: + """Get LLM model price without provider + + Fetch the price for a model without specifying provider. Optionally specify a platform for platform-specific pricing. + + :param model_name: (required) + :type model_name: str + :param platform: + :type platform: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_llm_model_price_without_provider_serialize( + model_name=model_name, + platform=platform, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "LlmModelPrice", + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_llm_model_price_without_provider_without_preload_content( + self, + model_name: StrictStr, + platform: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get LLM model price without provider + + Fetch the price for a model without specifying provider. Optionally specify a platform for platform-specific pricing. + + :param model_name: (required) + :type model_name: str + :param platform: + :type platform: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_llm_model_price_without_provider_serialize( + model_name=model_name, + platform=platform, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "LlmModelPrice", + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_llm_model_price_without_provider_serialize( + self, + model_name, + platform, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if model_name is not None: + _path_params['modelName'] = model_name + # process the query parameters + if platform is not None: + + _query_params.append(('platform', platform)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/settings/llm-pricing/model/{modelName}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def set_llm_model_currency( + self, + llm_model_price_metadata: Optional[LlmModelPriceMetadata] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> LlmModelPriceMetadata: + """Set currency for LLM model prices + + Set the currency code used for LLM model pricing. + + :param llm_model_price_metadata: + :type llm_model_price_metadata: LlmModelPriceMetadata + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_llm_model_currency_serialize( + llm_model_price_metadata=llm_model_price_metadata, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "LlmModelPriceMetadata", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def set_llm_model_currency_with_http_info( + self, + llm_model_price_metadata: Optional[LlmModelPriceMetadata] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[LlmModelPriceMetadata]: + """Set currency for LLM model prices + + Set the currency code used for LLM model pricing. + + :param llm_model_price_metadata: + :type llm_model_price_metadata: LlmModelPriceMetadata + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_llm_model_currency_serialize( + llm_model_price_metadata=llm_model_price_metadata, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "LlmModelPriceMetadata", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def set_llm_model_currency_without_preload_content( + self, + llm_model_price_metadata: Optional[LlmModelPriceMetadata] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Set currency for LLM model prices + + Set the currency code used for LLM model pricing. + + :param llm_model_price_metadata: + :type llm_model_price_metadata: LlmModelPriceMetadata + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_llm_model_currency_serialize( + llm_model_price_metadata=llm_model_price_metadata, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "LlmModelPriceMetadata", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _set_llm_model_currency_serialize( + self, + llm_model_price_metadata, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if llm_model_price_metadata is not None: + _body_params = llm_model_price_metadata + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/api/settings/llm-pricing/currency', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def upsert_llm_model_price( + self, + provider: StrictStr, + model_name: StrictStr, + platform: Optional[StrictStr] = None, + llm_model_price: Optional[LlmModelPrice] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Upsert LLM model price + + Create or update price for a specific provider+model. Optionally specify a platform for platform-specific pricing. + + :param provider: (required) + :type provider: str + :param model_name: (required) + :type model_name: str + :param platform: + :type platform: str + :param llm_model_price: + :type llm_model_price: LlmModelPrice + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._upsert_llm_model_price_serialize( + provider=provider, + model_name=model_name, + platform=platform, + llm_model_price=llm_model_price, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def upsert_llm_model_price_with_http_info( + self, + provider: StrictStr, + model_name: StrictStr, + platform: Optional[StrictStr] = None, + llm_model_price: Optional[LlmModelPrice] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Upsert LLM model price + + Create or update price for a specific provider+model. Optionally specify a platform for platform-specific pricing. + + :param provider: (required) + :type provider: str + :param model_name: (required) + :type model_name: str + :param platform: + :type platform: str + :param llm_model_price: + :type llm_model_price: LlmModelPrice + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._upsert_llm_model_price_serialize( + provider=provider, + model_name=model_name, + platform=platform, + llm_model_price=llm_model_price, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def upsert_llm_model_price_without_preload_content( + self, + provider: StrictStr, + model_name: StrictStr, + platform: Optional[StrictStr] = None, + llm_model_price: Optional[LlmModelPrice] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Upsert LLM model price + + Create or update price for a specific provider+model. Optionally specify a platform for platform-specific pricing. + + :param provider: (required) + :type provider: str + :param model_name: (required) + :type model_name: str + :param platform: + :type platform: str + :param llm_model_price: + :type llm_model_price: LlmModelPrice + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._upsert_llm_model_price_serialize( + provider=provider, + model_name=model_name, + platform=platform, + llm_model_price=llm_model_price, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _upsert_llm_model_price_serialize( + self, + provider, + model_name, + platform, + llm_model_price, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if provider is not None: + _path_params['provider'] = provider + if model_name is not None: + _path_params['modelName'] = model_name + # process the query parameters + if platform is not None: + + _query_params.append(('platform', platform)) + + # process the header parameters + # process the form parameters + # process the body parameter + if llm_model_price is not None: + _body_params = llm_model_price + + + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/api/settings/llm-pricing/{provider}/{modelName}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def upsert_llm_model_price_without_provider( + self, + model_name: StrictStr, + platform: Optional[StrictStr] = None, + llm_model_price: Optional[LlmModelPrice] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Upsert LLM model price without provider + + Create or update price for a model without specifying provider. Optionally specify a platform for platform-specific pricing. + + :param model_name: (required) + :type model_name: str + :param platform: + :type platform: str + :param llm_model_price: + :type llm_model_price: LlmModelPrice + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._upsert_llm_model_price_without_provider_serialize( + model_name=model_name, + platform=platform, + llm_model_price=llm_model_price, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def upsert_llm_model_price_without_provider_with_http_info( + self, + model_name: StrictStr, + platform: Optional[StrictStr] = None, + llm_model_price: Optional[LlmModelPrice] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Upsert LLM model price without provider + + Create or update price for a model without specifying provider. Optionally specify a platform for platform-specific pricing. + + :param model_name: (required) + :type model_name: str + :param platform: + :type platform: str + :param llm_model_price: + :type llm_model_price: LlmModelPrice + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._upsert_llm_model_price_without_provider_serialize( + model_name=model_name, + platform=platform, + llm_model_price=llm_model_price, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def upsert_llm_model_price_without_provider_without_preload_content( + self, + model_name: StrictStr, + platform: Optional[StrictStr] = None, + llm_model_price: Optional[LlmModelPrice] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Upsert LLM model price without provider + + Create or update price for a model without specifying provider. Optionally specify a platform for platform-specific pricing. + + :param model_name: (required) + :type model_name: str + :param platform: + :type platform: str + :param llm_model_price: + :type llm_model_price: LlmModelPrice + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._upsert_llm_model_price_without_provider_serialize( + model_name=model_name, + platform=platform, + llm_model_price=llm_model_price, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _upsert_llm_model_price_without_provider_serialize( + self, + model_name, + platform, + llm_model_price, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if model_name is not None: + _path_params['modelName'] = model_name + # process the query parameters + if platform is not None: + + _query_params.append(('platform', platform)) + + # process the header parameters + # process the form parameters + # process the body parameter + if llm_model_price is not None: + _body_params = llm_model_price + + + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/api/settings/llm-pricing/model/{modelName}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/instana_client/api/log_alert_configuration_api.py b/instana_client/api/log_alert_configuration_api.py index 3fa7195..8375f39 100644 --- a/instana_client/api/log_alert_configuration_api.py +++ b/instana_client/api/log_alert_configuration_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/logging_analyze_api.py b/instana_client/api/logging_analyze_api.py index ef49f34..d43c47d 100644 --- a/instana_client/api/logging_analyze_api.py +++ b/instana_client/api/logging_analyze_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/maintenance_configuration_api.py b/instana_client/api/maintenance_configuration_api.py index d300c88..097df91 100644 --- a/instana_client/api/maintenance_configuration_api.py +++ b/instana_client/api/maintenance_configuration_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/mobile_app_analyze_api.py b/instana_client/api/mobile_app_analyze_api.py index 1df387f..12c7d2e 100644 --- a/instana_client/api/mobile_app_analyze_api.py +++ b/instana_client/api/mobile_app_analyze_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/mobile_app_catalog_api.py b/instana_client/api/mobile_app_catalog_api.py index ed37530..83065e9 100644 --- a/instana_client/api/mobile_app_catalog_api.py +++ b/instana_client/api/mobile_app_catalog_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -17,9 +17,12 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import StrictStr, field_validator -from typing import List +from pydantic import Field, StrictInt, StrictStr, field_validator +from typing import List, Optional +from typing_extensions import Annotated +from instana_client.models.get_session_replay_metadata_result import GetSessionReplayMetadataResult from instana_client.models.mobile_app_monitoring_metric_description import MobileAppMonitoringMetricDescription +from instana_client.models.session_replay_timestamps import SessionReplayTimestamps from instana_client.models.tag import Tag from instana_client.models.tag_catalog import TagCatalog @@ -548,7 +551,7 @@ def _get_mobile_app_metric_catalog_serialize( @validate_call def get_mobile_app_tag_catalog( self, - beacon_type: StrictStr, + beacon_type: Annotated[str, Field(min_length=1, strict=True)], use_case: StrictStr, _request_timeout: Union[ None, @@ -621,7 +624,7 @@ def get_mobile_app_tag_catalog( @validate_call def get_mobile_app_tag_catalog_with_http_info( self, - beacon_type: StrictStr, + beacon_type: Annotated[str, Field(min_length=1, strict=True)], use_case: StrictStr, _request_timeout: Union[ None, @@ -694,7 +697,7 @@ def get_mobile_app_tag_catalog_with_http_info( @validate_call def get_mobile_app_tag_catalog_without_preload_content( self, - beacon_type: StrictStr, + beacon_type: Annotated[str, Field(min_length=1, strict=True)], use_case: StrictStr, _request_timeout: Union[ None, @@ -829,3 +832,617 @@ def _get_mobile_app_tag_catalog_serialize( ) + + + @validate_call + def get_session_replay_metadata( + self, + mobile_app_id: Annotated[str, Field(min_length=1, strict=True, description="Mobile app identifier")], + session_id: Annotated[str, Field(min_length=1, strict=True, description="Session identifier")], + cursor: Annotated[Optional[StrictInt], Field(description="Timestamp cursor for pagination (epoch milliseconds). Retrieves metadata from this timestamp onwards.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Time window size in milliseconds (default: 20000ms = 20 seconds)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetSessionReplayMetadataResult: + """Get session replay metadata + + Retrieves detailed metadata for session replay captured during a mobile app session. Uses cursor-based pagination with timestamp cursors. Returns metadata within the time window from cursor to cursor + pageSize. The pageSize represents milliseconds (default 20000ms = 20 seconds). Includes all metadata fields such as event type, view components, orientation changes, etc. + + :param mobile_app_id: Mobile app identifier (required) + :type mobile_app_id: str + :param session_id: Session identifier (required) + :type session_id: str + :param cursor: Timestamp cursor for pagination (epoch milliseconds). Retrieves metadata from this timestamp onwards. + :type cursor: int + :param page_size: Time window size in milliseconds (default: 20000ms = 20 seconds) + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_session_replay_metadata_serialize( + mobile_app_id=mobile_app_id, + session_id=session_id, + cursor=cursor, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetSessionReplayMetadataResult", + '400': None, + '401': None, + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_session_replay_metadata_with_http_info( + self, + mobile_app_id: Annotated[str, Field(min_length=1, strict=True, description="Mobile app identifier")], + session_id: Annotated[str, Field(min_length=1, strict=True, description="Session identifier")], + cursor: Annotated[Optional[StrictInt], Field(description="Timestamp cursor for pagination (epoch milliseconds). Retrieves metadata from this timestamp onwards.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Time window size in milliseconds (default: 20000ms = 20 seconds)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetSessionReplayMetadataResult]: + """Get session replay metadata + + Retrieves detailed metadata for session replay captured during a mobile app session. Uses cursor-based pagination with timestamp cursors. Returns metadata within the time window from cursor to cursor + pageSize. The pageSize represents milliseconds (default 20000ms = 20 seconds). Includes all metadata fields such as event type, view components, orientation changes, etc. + + :param mobile_app_id: Mobile app identifier (required) + :type mobile_app_id: str + :param session_id: Session identifier (required) + :type session_id: str + :param cursor: Timestamp cursor for pagination (epoch milliseconds). Retrieves metadata from this timestamp onwards. + :type cursor: int + :param page_size: Time window size in milliseconds (default: 20000ms = 20 seconds) + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_session_replay_metadata_serialize( + mobile_app_id=mobile_app_id, + session_id=session_id, + cursor=cursor, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetSessionReplayMetadataResult", + '400': None, + '401': None, + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_session_replay_metadata_without_preload_content( + self, + mobile_app_id: Annotated[str, Field(min_length=1, strict=True, description="Mobile app identifier")], + session_id: Annotated[str, Field(min_length=1, strict=True, description="Session identifier")], + cursor: Annotated[Optional[StrictInt], Field(description="Timestamp cursor for pagination (epoch milliseconds). Retrieves metadata from this timestamp onwards.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Time window size in milliseconds (default: 20000ms = 20 seconds)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get session replay metadata + + Retrieves detailed metadata for session replay captured during a mobile app session. Uses cursor-based pagination with timestamp cursors. Returns metadata within the time window from cursor to cursor + pageSize. The pageSize represents milliseconds (default 20000ms = 20 seconds). Includes all metadata fields such as event type, view components, orientation changes, etc. + + :param mobile_app_id: Mobile app identifier (required) + :type mobile_app_id: str + :param session_id: Session identifier (required) + :type session_id: str + :param cursor: Timestamp cursor for pagination (epoch milliseconds). Retrieves metadata from this timestamp onwards. + :type cursor: int + :param page_size: Time window size in milliseconds (default: 20000ms = 20 seconds) + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_session_replay_metadata_serialize( + mobile_app_id=mobile_app_id, + session_id=session_id, + cursor=cursor, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetSessionReplayMetadataResult", + '400': None, + '401': None, + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_session_replay_metadata_serialize( + self, + mobile_app_id, + session_id, + cursor, + page_size, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if mobile_app_id is not None: + _path_params['mobileAppId'] = mobile_app_id + if session_id is not None: + _path_params['sessionId'] = session_id + # process the query parameters + if cursor is not None: + + _query_params.append(('cursor', cursor)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/mobile-app-monitoring/mobile-apps/{mobileAppId}/sessions/{sessionId}/replay-metadata', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_session_replay_timestamps( + self, + mobile_app_id: Annotated[str, Field(min_length=1, strict=True, description="Mobile app identifier")], + session_id: Annotated[str, Field(min_length=1, strict=True, description="Session identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SessionReplayTimestamps: + """Get session replay timestamps + + Retrieves the first and last image timestamps for a mobile app session. Returns null values if the session has no images. + + :param mobile_app_id: Mobile app identifier (required) + :type mobile_app_id: str + :param session_id: Session identifier (required) + :type session_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_session_replay_timestamps_serialize( + mobile_app_id=mobile_app_id, + session_id=session_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SessionReplayTimestamps", + '400': None, + '401': None, + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_session_replay_timestamps_with_http_info( + self, + mobile_app_id: Annotated[str, Field(min_length=1, strict=True, description="Mobile app identifier")], + session_id: Annotated[str, Field(min_length=1, strict=True, description="Session identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SessionReplayTimestamps]: + """Get session replay timestamps + + Retrieves the first and last image timestamps for a mobile app session. Returns null values if the session has no images. + + :param mobile_app_id: Mobile app identifier (required) + :type mobile_app_id: str + :param session_id: Session identifier (required) + :type session_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_session_replay_timestamps_serialize( + mobile_app_id=mobile_app_id, + session_id=session_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SessionReplayTimestamps", + '400': None, + '401': None, + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_session_replay_timestamps_without_preload_content( + self, + mobile_app_id: Annotated[str, Field(min_length=1, strict=True, description="Mobile app identifier")], + session_id: Annotated[str, Field(min_length=1, strict=True, description="Session identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get session replay timestamps + + Retrieves the first and last image timestamps for a mobile app session. Returns null values if the session has no images. + + :param mobile_app_id: Mobile app identifier (required) + :type mobile_app_id: str + :param session_id: Session identifier (required) + :type session_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_session_replay_timestamps_serialize( + mobile_app_id=mobile_app_id, + session_id=session_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SessionReplayTimestamps", + '400': None, + '401': None, + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_session_replay_timestamps_serialize( + self, + mobile_app_id, + session_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if mobile_app_id is not None: + _path_params['mobileAppId'] = mobile_app_id + if session_id is not None: + _path_params['sessionId'] = session_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/mobile-app-monitoring/mobile-apps/{mobileAppId}/sessions/{sessionId}/replay-timestamps', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/instana_client/api/mobile_app_configuration_api.py b/instana_client/api/mobile_app_configuration_api.py index 5dec335..210e459 100644 --- a/instana_client/api/mobile_app_configuration_api.py +++ b/instana_client/api/mobile_app_configuration_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/mobile_app_metrics_api.py b/instana_client/api/mobile_app_metrics_api.py index 4401d98..d5e1ac3 100644 --- a/instana_client/api/mobile_app_metrics_api.py +++ b/instana_client/api/mobile_app_metrics_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/policies_api.py b/instana_client/api/policies_api.py index 6bf341f..e0d3a86 100644 --- a/instana_client/api/policies_api.py +++ b/instana_client/api/policies_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -669,7 +669,7 @@ def delete_policy( _response_types_map: Dict[str, Optional[str]] = { '204': None, '403': None, - '412': None, + '404': None, } response_data = self.api_client.call_api( *_param, @@ -738,7 +738,7 @@ def delete_policy_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '204': None, '403': None, - '412': None, + '404': None, } response_data = self.api_client.call_api( *_param, @@ -807,7 +807,7 @@ def delete_policy_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '204': None, '403': None, - '412': None, + '404': None, } response_data = self.api_client.call_api( *_param, @@ -1520,6 +1520,7 @@ def update_policy( _response_types_map: Dict[str, Optional[str]] = { '200': "Policy", '403': None, + '404': None, '412': None, '500': None, } @@ -1594,6 +1595,7 @@ def update_policy_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "Policy", '403': None, + '404': None, '412': None, '500': None, } @@ -1668,6 +1670,7 @@ def update_policy_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "Policy", '403': None, + '404': None, '412': None, '500': None, } diff --git a/instana_client/api/releases_api.py b/instana_client/api/releases_api.py index 4bf1109..3823a1c 100644 --- a/instana_client/api/releases_api.py +++ b/instana_client/api/releases_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/roles_api.py b/instana_client/api/roles_api.py index 9b06d9a..ddb2de1 100644 --- a/instana_client/api/roles_api.py +++ b/instana_client/api/roles_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/service_levels_alert_configuration_api.py b/instana_client/api/service_levels_alert_configuration_api.py index 965fd0c..c607d72 100644 --- a/instana_client/api/service_levels_alert_configuration_api.py +++ b/instana_client/api/service_levels_alert_configuration_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -1158,7 +1158,7 @@ def _enable_service_levels_alert_config_serialize( @validate_call def find_active_service_levels_alert_configs( self, - slo_id: Annotated[Optional[StrictStr], Field(description="Service Levels Objective(SLO) Configuration ID")] = None, + slo_id: Annotated[Optional[StrictStr], Field(description="SLO Configuration ID")] = None, alert_ids: Annotated[Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=1000)]], Field(description="List of Service Levels Alert Configuration IDs")] = None, _request_timeout: Union[ None, @@ -1177,7 +1177,7 @@ def find_active_service_levels_alert_configs( Configs are sorted descending by their created date. - :param slo_id: Service Levels Objective(SLO) Configuration ID + :param slo_id: SLO Configuration ID :type slo_id: str :param alert_ids: List of Service Levels Alert Configuration IDs :type alert_ids: List[str] @@ -1229,7 +1229,7 @@ def find_active_service_levels_alert_configs( @validate_call def find_active_service_levels_alert_configs_with_http_info( self, - slo_id: Annotated[Optional[StrictStr], Field(description="Service Levels Objective(SLO) Configuration ID")] = None, + slo_id: Annotated[Optional[StrictStr], Field(description="SLO Configuration ID")] = None, alert_ids: Annotated[Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=1000)]], Field(description="List of Service Levels Alert Configuration IDs")] = None, _request_timeout: Union[ None, @@ -1248,7 +1248,7 @@ def find_active_service_levels_alert_configs_with_http_info( Configs are sorted descending by their created date. - :param slo_id: Service Levels Objective(SLO) Configuration ID + :param slo_id: SLO Configuration ID :type slo_id: str :param alert_ids: List of Service Levels Alert Configuration IDs :type alert_ids: List[str] @@ -1300,7 +1300,7 @@ def find_active_service_levels_alert_configs_with_http_info( @validate_call def find_active_service_levels_alert_configs_without_preload_content( self, - slo_id: Annotated[Optional[StrictStr], Field(description="Service Levels Objective(SLO) Configuration ID")] = None, + slo_id: Annotated[Optional[StrictStr], Field(description="SLO Configuration ID")] = None, alert_ids: Annotated[Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=1000)]], Field(description="List of Service Levels Alert Configuration IDs")] = None, _request_timeout: Union[ None, @@ -1319,7 +1319,7 @@ def find_active_service_levels_alert_configs_without_preload_content( Configs are sorted descending by their created date. - :param slo_id: Service Levels Objective(SLO) Configuration ID + :param slo_id: SLO Configuration ID :type slo_id: str :param alert_ids: List of Service Levels Alert Configuration IDs :type alert_ids: List[str] diff --git a/instana_client/api/service_levels_objective_slo_report_api.py b/instana_client/api/service_levels_objective_slo_report_api.py index 5e78d4b..3ef60ba 100644 --- a/instana_client/api/service_levels_objective_slo_report_api.py +++ b/instana_client/api/service_levels_objective_slo_report_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -43,7 +43,7 @@ def __init__(self, api_client=None) -> None: @validate_call def get_slo( self, - slo_id: Annotated[StrictStr, Field(description="Service Levels Objective(SLO) Configuration ID")], + slo_id: Annotated[StrictStr, Field(description="SLO Configuration ID")], var_from: Annotated[Optional[StrictStr], Field(description="Starting point for the data retrieval, specified as 13 digit Unix Timestamp milliseconds")] = None, to: Annotated[Optional[StrictStr], Field(description="Ending point for the data retrieval, specified as 13 digit Unix Timestamp milliseconds")] = None, exclude_correction_id: Annotated[Optional[List[StrictStr]], Field(description="IDs of Correction Configurations to be Excluded from the result")] = None, @@ -64,7 +64,7 @@ def get_slo( """Generate Service Levels report - :param slo_id: Service Levels Objective(SLO) Configuration ID (required) + :param slo_id: SLO Configuration ID (required) :type slo_id: str :param var_from: Starting point for the data retrieval, specified as 13 digit Unix Timestamp milliseconds :type var_from: str @@ -126,7 +126,7 @@ def get_slo( @validate_call def get_slo_with_http_info( self, - slo_id: Annotated[StrictStr, Field(description="Service Levels Objective(SLO) Configuration ID")], + slo_id: Annotated[StrictStr, Field(description="SLO Configuration ID")], var_from: Annotated[Optional[StrictStr], Field(description="Starting point for the data retrieval, specified as 13 digit Unix Timestamp milliseconds")] = None, to: Annotated[Optional[StrictStr], Field(description="Ending point for the data retrieval, specified as 13 digit Unix Timestamp milliseconds")] = None, exclude_correction_id: Annotated[Optional[List[StrictStr]], Field(description="IDs of Correction Configurations to be Excluded from the result")] = None, @@ -147,7 +147,7 @@ def get_slo_with_http_info( """Generate Service Levels report - :param slo_id: Service Levels Objective(SLO) Configuration ID (required) + :param slo_id: SLO Configuration ID (required) :type slo_id: str :param var_from: Starting point for the data retrieval, specified as 13 digit Unix Timestamp milliseconds :type var_from: str @@ -209,7 +209,7 @@ def get_slo_with_http_info( @validate_call def get_slo_without_preload_content( self, - slo_id: Annotated[StrictStr, Field(description="Service Levels Objective(SLO) Configuration ID")], + slo_id: Annotated[StrictStr, Field(description="SLO Configuration ID")], var_from: Annotated[Optional[StrictStr], Field(description="Starting point for the data retrieval, specified as 13 digit Unix Timestamp milliseconds")] = None, to: Annotated[Optional[StrictStr], Field(description="Ending point for the data retrieval, specified as 13 digit Unix Timestamp milliseconds")] = None, exclude_correction_id: Annotated[Optional[List[StrictStr]], Field(description="IDs of Correction Configurations to be Excluded from the result")] = None, @@ -230,7 +230,7 @@ def get_slo_without_preload_content( """Generate Service Levels report - :param slo_id: Service Levels Objective(SLO) Configuration ID (required) + :param slo_id: SLO Configuration ID (required) :type slo_id: str :param var_from: Starting point for the data retrieval, specified as 13 digit Unix Timestamp milliseconds :type var_from: str diff --git a/instana_client/api/session_settings_api.py b/instana_client/api/session_settings_api.py index b80b16b..71b002c 100644 --- a/instana_client/api/session_settings_api.py +++ b/instana_client/api/session_settings_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/sli_report_api.py b/instana_client/api/sli_report_api.py index e1b0c18..a262ccf 100644 --- a/instana_client/api/sli_report_api.py +++ b/instana_client/api/sli_report_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/sli_settings_api.py b/instana_client/api/sli_settings_api.py index 6909677..cfe0dcf 100644 --- a/instana_client/api/sli_settings_api.py +++ b/instana_client/api/sli_settings_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/slo_configurations_api.py b/instana_client/api/slo_configurations_api.py new file mode 100644 index 0000000..512c342 --- /dev/null +++ b/instana_client/api/slo_configurations_api.py @@ -0,0 +1,1949 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import StrictBool, StrictInt, StrictStr, field_validator +from typing import List, Optional +from instana_client.models.paginated_result import PaginatedResult +from instana_client.models.slo_config_with_rbac_tag import SLOConfigWithRBACTag + +from instana_client.api_client import ApiClient, RequestSerialized +from instana_client.api_response import ApiResponse +from instana_client.rest import RESTResponseType + + +class SLOConfigurationsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def create_slo_config( + self, + slo_config_with_rbac_tag: SLOConfigWithRBACTag, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SLOConfigWithRBACTag: + """Create a new SLO Config + + + :param slo_config_with_rbac_tag: (required) + :type slo_config_with_rbac_tag: SLOConfigWithRBACTag + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_slo_config_serialize( + slo_config_with_rbac_tag=slo_config_with_rbac_tag, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SLOConfigWithRBACTag", + '400': "str", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_slo_config_with_http_info( + self, + slo_config_with_rbac_tag: SLOConfigWithRBACTag, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SLOConfigWithRBACTag]: + """Create a new SLO Config + + + :param slo_config_with_rbac_tag: (required) + :type slo_config_with_rbac_tag: SLOConfigWithRBACTag + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_slo_config_serialize( + slo_config_with_rbac_tag=slo_config_with_rbac_tag, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SLOConfigWithRBACTag", + '400': "str", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_slo_config_without_preload_content( + self, + slo_config_with_rbac_tag: SLOConfigWithRBACTag, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create a new SLO Config + + + :param slo_config_with_rbac_tag: (required) + :type slo_config_with_rbac_tag: SLOConfigWithRBACTag + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_slo_config_serialize( + slo_config_with_rbac_tag=slo_config_with_rbac_tag, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SLOConfigWithRBACTag", + '400': "str", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_slo_config_serialize( + self, + slo_config_with_rbac_tag, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if slo_config_with_rbac_tag is not None: + _body_params = slo_config_with_rbac_tag + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/settings/slo', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def delete_slo_config( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Delete an existing SLO Config + + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_slo_config_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_slo_config_with_http_info( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Delete an existing SLO Config + + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_slo_config_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_slo_config_without_preload_content( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete an existing SLO Config + + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_slo_config_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_slo_config_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/api/settings/slo/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_all_slo_config_tags( + self, + query: Optional[StrictStr] = None, + tag: Optional[List[StrictStr]] = None, + entity_type: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[str]: + """Get All SLO Config tags + + + :param query: + :type query: str + :param tag: + :type tag: List[str] + :param entity_type: + :type entity_type: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_all_slo_config_tags_serialize( + query=query, + tag=tag, + entity_type=entity_type, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[str]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_all_slo_config_tags_with_http_info( + self, + query: Optional[StrictStr] = None, + tag: Optional[List[StrictStr]] = None, + entity_type: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[str]]: + """Get All SLO Config tags + + + :param query: + :type query: str + :param tag: + :type tag: List[str] + :param entity_type: + :type entity_type: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_all_slo_config_tags_serialize( + query=query, + tag=tag, + entity_type=entity_type, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[str]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_all_slo_config_tags_without_preload_content( + self, + query: Optional[StrictStr] = None, + tag: Optional[List[StrictStr]] = None, + entity_type: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get All SLO Config tags + + + :param query: + :type query: str + :param tag: + :type tag: List[str] + :param entity_type: + :type entity_type: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_all_slo_config_tags_serialize( + query=query, + tag=tag, + entity_type=entity_type, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[str]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_all_slo_config_tags_serialize( + self, + query, + tag, + entity_type, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'tag': 'multi', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if query is not None: + + _query_params.append(('query', query)) + + if tag is not None: + + _query_params.append(('tag', tag)) + + if entity_type is not None: + + _query_params.append(('entityType', entity_type)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/settings/slo/tags', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_all_slo_configs( + self, + page_size: Optional[StrictInt] = None, + page: Optional[StrictInt] = None, + order_by: Optional[StrictStr] = None, + order_direction: Optional[StrictStr] = None, + query: Optional[StrictStr] = None, + tag: Optional[List[StrictStr]] = None, + entity_type: Optional[List[StrictStr]] = None, + infra_entity_types: Optional[List[StrictStr]] = None, + kubernetes_cluster_uuid: Optional[StrictStr] = None, + blueprint: Optional[List[StrictStr]] = None, + slo_ids: Optional[List[StrictStr]] = None, + slo_status: Optional[StrictStr] = None, + entity_ids: Optional[List[StrictStr]] = None, + grouped: Optional[StrictBool] = None, + refresh: Optional[StrictBool] = None, + rbac_tags: Optional[List[StrictStr]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PaginatedResult: + """Get All SLO Configs + + + :param page_size: + :type page_size: int + :param page: + :type page: int + :param order_by: + :type order_by: str + :param order_direction: + :type order_direction: str + :param query: + :type query: str + :param tag: + :type tag: List[str] + :param entity_type: + :type entity_type: List[str] + :param infra_entity_types: + :type infra_entity_types: List[str] + :param kubernetes_cluster_uuid: + :type kubernetes_cluster_uuid: str + :param blueprint: + :type blueprint: List[str] + :param slo_ids: + :type slo_ids: List[str] + :param slo_status: + :type slo_status: str + :param entity_ids: + :type entity_ids: List[str] + :param grouped: + :type grouped: bool + :param refresh: + :type refresh: bool + :param rbac_tags: + :type rbac_tags: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_all_slo_configs_serialize( + page_size=page_size, + page=page, + order_by=order_by, + order_direction=order_direction, + query=query, + tag=tag, + entity_type=entity_type, + infra_entity_types=infra_entity_types, + kubernetes_cluster_uuid=kubernetes_cluster_uuid, + blueprint=blueprint, + slo_ids=slo_ids, + slo_status=slo_status, + entity_ids=entity_ids, + grouped=grouped, + refresh=refresh, + rbac_tags=rbac_tags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedResult", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_all_slo_configs_with_http_info( + self, + page_size: Optional[StrictInt] = None, + page: Optional[StrictInt] = None, + order_by: Optional[StrictStr] = None, + order_direction: Optional[StrictStr] = None, + query: Optional[StrictStr] = None, + tag: Optional[List[StrictStr]] = None, + entity_type: Optional[List[StrictStr]] = None, + infra_entity_types: Optional[List[StrictStr]] = None, + kubernetes_cluster_uuid: Optional[StrictStr] = None, + blueprint: Optional[List[StrictStr]] = None, + slo_ids: Optional[List[StrictStr]] = None, + slo_status: Optional[StrictStr] = None, + entity_ids: Optional[List[StrictStr]] = None, + grouped: Optional[StrictBool] = None, + refresh: Optional[StrictBool] = None, + rbac_tags: Optional[List[StrictStr]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PaginatedResult]: + """Get All SLO Configs + + + :param page_size: + :type page_size: int + :param page: + :type page: int + :param order_by: + :type order_by: str + :param order_direction: + :type order_direction: str + :param query: + :type query: str + :param tag: + :type tag: List[str] + :param entity_type: + :type entity_type: List[str] + :param infra_entity_types: + :type infra_entity_types: List[str] + :param kubernetes_cluster_uuid: + :type kubernetes_cluster_uuid: str + :param blueprint: + :type blueprint: List[str] + :param slo_ids: + :type slo_ids: List[str] + :param slo_status: + :type slo_status: str + :param entity_ids: + :type entity_ids: List[str] + :param grouped: + :type grouped: bool + :param refresh: + :type refresh: bool + :param rbac_tags: + :type rbac_tags: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_all_slo_configs_serialize( + page_size=page_size, + page=page, + order_by=order_by, + order_direction=order_direction, + query=query, + tag=tag, + entity_type=entity_type, + infra_entity_types=infra_entity_types, + kubernetes_cluster_uuid=kubernetes_cluster_uuid, + blueprint=blueprint, + slo_ids=slo_ids, + slo_status=slo_status, + entity_ids=entity_ids, + grouped=grouped, + refresh=refresh, + rbac_tags=rbac_tags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedResult", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_all_slo_configs_without_preload_content( + self, + page_size: Optional[StrictInt] = None, + page: Optional[StrictInt] = None, + order_by: Optional[StrictStr] = None, + order_direction: Optional[StrictStr] = None, + query: Optional[StrictStr] = None, + tag: Optional[List[StrictStr]] = None, + entity_type: Optional[List[StrictStr]] = None, + infra_entity_types: Optional[List[StrictStr]] = None, + kubernetes_cluster_uuid: Optional[StrictStr] = None, + blueprint: Optional[List[StrictStr]] = None, + slo_ids: Optional[List[StrictStr]] = None, + slo_status: Optional[StrictStr] = None, + entity_ids: Optional[List[StrictStr]] = None, + grouped: Optional[StrictBool] = None, + refresh: Optional[StrictBool] = None, + rbac_tags: Optional[List[StrictStr]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get All SLO Configs + + + :param page_size: + :type page_size: int + :param page: + :type page: int + :param order_by: + :type order_by: str + :param order_direction: + :type order_direction: str + :param query: + :type query: str + :param tag: + :type tag: List[str] + :param entity_type: + :type entity_type: List[str] + :param infra_entity_types: + :type infra_entity_types: List[str] + :param kubernetes_cluster_uuid: + :type kubernetes_cluster_uuid: str + :param blueprint: + :type blueprint: List[str] + :param slo_ids: + :type slo_ids: List[str] + :param slo_status: + :type slo_status: str + :param entity_ids: + :type entity_ids: List[str] + :param grouped: + :type grouped: bool + :param refresh: + :type refresh: bool + :param rbac_tags: + :type rbac_tags: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_all_slo_configs_serialize( + page_size=page_size, + page=page, + order_by=order_by, + order_direction=order_direction, + query=query, + tag=tag, + entity_type=entity_type, + infra_entity_types=infra_entity_types, + kubernetes_cluster_uuid=kubernetes_cluster_uuid, + blueprint=blueprint, + slo_ids=slo_ids, + slo_status=slo_status, + entity_ids=entity_ids, + grouped=grouped, + refresh=refresh, + rbac_tags=rbac_tags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedResult", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_all_slo_configs_serialize( + self, + page_size, + page, + order_by, + order_direction, + query, + tag, + entity_type, + infra_entity_types, + kubernetes_cluster_uuid, + blueprint, + slo_ids, + slo_status, + entity_ids, + grouped, + refresh, + rbac_tags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'tag': 'multi', + 'entityType': 'multi', + 'infraEntityTypes': 'multi', + 'blueprint': 'multi', + 'sloIds': 'multi', + 'entityIds': 'multi', + 'rbacTags': 'multi', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + if page is not None: + + _query_params.append(('page', page)) + + if order_by is not None: + + _query_params.append(('orderBy', order_by)) + + if order_direction is not None: + + _query_params.append(('orderDirection', order_direction)) + + if query is not None: + + _query_params.append(('query', query)) + + if tag is not None: + + _query_params.append(('tag', tag)) + + if entity_type is not None: + + _query_params.append(('entityType', entity_type)) + + if infra_entity_types is not None: + + _query_params.append(('infraEntityTypes', infra_entity_types)) + + if kubernetes_cluster_uuid is not None: + + _query_params.append(('kubernetesClusterUuid', kubernetes_cluster_uuid)) + + if blueprint is not None: + + _query_params.append(('blueprint', blueprint)) + + if slo_ids is not None: + + _query_params.append(('sloIds', slo_ids)) + + if slo_status is not None: + + _query_params.append(('sloStatus', slo_status)) + + if entity_ids is not None: + + _query_params.append(('entityIds', entity_ids)) + + if grouped is not None: + + _query_params.append(('grouped', grouped)) + + if refresh is not None: + + _query_params.append(('refresh', refresh)) + + if rbac_tags is not None: + + _query_params.append(('rbacTags', rbac_tags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/settings/slo', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_slo_config_by_id( + self, + id: StrictStr, + refresh: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SLOConfigWithRBACTag: + """Get an existing SLO Config + + + :param id: (required) + :type id: str + :param refresh: + :type refresh: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_slo_config_by_id_serialize( + id=id, + refresh=refresh, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SLOConfigWithRBACTag", + '404': "str", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_slo_config_by_id_with_http_info( + self, + id: StrictStr, + refresh: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SLOConfigWithRBACTag]: + """Get an existing SLO Config + + + :param id: (required) + :type id: str + :param refresh: + :type refresh: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_slo_config_by_id_serialize( + id=id, + refresh=refresh, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SLOConfigWithRBACTag", + '404': "str", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_slo_config_by_id_without_preload_content( + self, + id: StrictStr, + refresh: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get an existing SLO Config + + + :param id: (required) + :type id: str + :param refresh: + :type refresh: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_slo_config_by_id_serialize( + id=id, + refresh=refresh, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SLOConfigWithRBACTag", + '404': "str", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_slo_config_by_id_serialize( + self, + id, + refresh, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + if refresh is not None: + + _query_params.append(('refresh', refresh)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/settings/slo/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_slo_config( + self, + id: StrictStr, + slo_config_with_rbac_tag: SLOConfigWithRBACTag, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SLOConfigWithRBACTag: + """Update an existing SLO Config + + + :param id: (required) + :type id: str + :param slo_config_with_rbac_tag: (required) + :type slo_config_with_rbac_tag: SLOConfigWithRBACTag + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_slo_config_serialize( + id=id, + slo_config_with_rbac_tag=slo_config_with_rbac_tag, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SLOConfigWithRBACTag", + '400': "str", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_slo_config_with_http_info( + self, + id: StrictStr, + slo_config_with_rbac_tag: SLOConfigWithRBACTag, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SLOConfigWithRBACTag]: + """Update an existing SLO Config + + + :param id: (required) + :type id: str + :param slo_config_with_rbac_tag: (required) + :type slo_config_with_rbac_tag: SLOConfigWithRBACTag + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_slo_config_serialize( + id=id, + slo_config_with_rbac_tag=slo_config_with_rbac_tag, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SLOConfigWithRBACTag", + '400': "str", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def update_slo_config_without_preload_content( + self, + id: StrictStr, + slo_config_with_rbac_tag: SLOConfigWithRBACTag, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update an existing SLO Config + + + :param id: (required) + :type id: str + :param slo_config_with_rbac_tag: (required) + :type slo_config_with_rbac_tag: SLOConfigWithRBACTag + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_slo_config_serialize( + id=id, + slo_config_with_rbac_tag=slo_config_with_rbac_tag, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SLOConfigWithRBACTag", + '400': "str", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_slo_config_serialize( + self, + id, + slo_config_with_rbac_tag, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if slo_config_with_rbac_tag is not None: + _body_params = slo_config_with_rbac_tag + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/api/settings/slo/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/instana_client/api/slo_correction_configurations_api.py b/instana_client/api/slo_correction_configurations_api.py index 7a09b98..6e40d78 100644 --- a/instana_client/api/slo_correction_configurations_api.py +++ b/instana_client/api/slo_correction_configurations_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/slo_correction_windows_api.py b/instana_client/api/slo_correction_windows_api.py index 2463a38..8a5d7c3 100644 --- a/instana_client/api/slo_correction_windows_api.py +++ b/instana_client/api/slo_correction_windows_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/synthetic_alert_configuration_api.py b/instana_client/api/synthetic_alert_configuration_api.py index 7435019..07229f5 100644 --- a/instana_client/api/synthetic_alert_configuration_api.py +++ b/instana_client/api/synthetic_alert_configuration_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from instana_client.models.config_version import ConfigVersion from instana_client.models.synthetic_alert_config import SyntheticAlertConfig from instana_client.models.synthetic_alert_config_with_metadata import SyntheticAlertConfigWithMetadata +from instana_client.models.synthetic_alert_config_with_rbac_tag import SyntheticAlertConfigWithRBACTag from instana_client.api_client import ApiClient, RequestSerialized from instana_client.api_response import ApiResponse @@ -42,6 +43,828 @@ def __init__(self, api_client=None) -> None: self.api_client = api_client + @validate_call + def bulk_delete_synthetic_alert_configs( + self, + request_body: List[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Bulk Delete Synthetic Smart Alert Configs + + Deletes multiple Synthetic Smart Alert Configurations. For more information on Synthetic Alert Configuration please access the https://developer.ibm.com/apis/catalog/instana--instana-rest-api/Synthetic+Monitoring#synthetic-alert-configuration. + + :param request_body: (required) + :type request_body: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._bulk_delete_synthetic_alert_configs_serialize( + request_body=request_body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': None, + '403': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def bulk_delete_synthetic_alert_configs_with_http_info( + self, + request_body: List[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Bulk Delete Synthetic Smart Alert Configs + + Deletes multiple Synthetic Smart Alert Configurations. For more information on Synthetic Alert Configuration please access the https://developer.ibm.com/apis/catalog/instana--instana-rest-api/Synthetic+Monitoring#synthetic-alert-configuration. + + :param request_body: (required) + :type request_body: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._bulk_delete_synthetic_alert_configs_serialize( + request_body=request_body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': None, + '403': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def bulk_delete_synthetic_alert_configs_without_preload_content( + self, + request_body: List[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Bulk Delete Synthetic Smart Alert Configs + + Deletes multiple Synthetic Smart Alert Configurations. For more information on Synthetic Alert Configuration please access the https://developer.ibm.com/apis/catalog/instana--instana-rest-api/Synthetic+Monitoring#synthetic-alert-configuration. + + :param request_body: (required) + :type request_body: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._bulk_delete_synthetic_alert_configs_serialize( + request_body=request_body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': None, + '403': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _bulk_delete_synthetic_alert_configs_serialize( + self, + request_body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'request_body': '', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if request_body is not None: + _body_params = request_body + + + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/api/events/settings/global-alert-configs/synthetics/bulk/delete', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def bulk_disable_synthetic_alert_configs( + self, + request_body: List[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Bulk Disable Synthetic Smart Alert Configs + + Disables multiple Synthetic Smart Alert Configurations. For more information on Synthetic Alert Configuration please access the https://developer.ibm.com/apis/catalog/instana--instana-rest-api/Synthetic+Monitoring#synthetic-alert-configuration. + + :param request_body: (required) + :type request_body: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._bulk_disable_synthetic_alert_configs_serialize( + request_body=request_body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': None, + '403': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def bulk_disable_synthetic_alert_configs_with_http_info( + self, + request_body: List[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Bulk Disable Synthetic Smart Alert Configs + + Disables multiple Synthetic Smart Alert Configurations. For more information on Synthetic Alert Configuration please access the https://developer.ibm.com/apis/catalog/instana--instana-rest-api/Synthetic+Monitoring#synthetic-alert-configuration. + + :param request_body: (required) + :type request_body: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._bulk_disable_synthetic_alert_configs_serialize( + request_body=request_body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': None, + '403': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def bulk_disable_synthetic_alert_configs_without_preload_content( + self, + request_body: List[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Bulk Disable Synthetic Smart Alert Configs + + Disables multiple Synthetic Smart Alert Configurations. For more information on Synthetic Alert Configuration please access the https://developer.ibm.com/apis/catalog/instana--instana-rest-api/Synthetic+Monitoring#synthetic-alert-configuration. + + :param request_body: (required) + :type request_body: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._bulk_disable_synthetic_alert_configs_serialize( + request_body=request_body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': None, + '403': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _bulk_disable_synthetic_alert_configs_serialize( + self, + request_body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'request_body': '', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if request_body is not None: + _body_params = request_body + + + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/api/events/settings/global-alert-configs/synthetics/bulk/disable', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def bulk_enable_synthetic_alert_configs( + self, + request_body: List[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Bulk Enable Synthetic Smart Alert Configs + + Enables multiple Synthetic Smart Alert Configurations. For more information on Synthetic Alert Configuration please access the https://developer.ibm.com/apis/catalog/instana--instana-rest-api/Synthetic+Monitoring#synthetic-alert-configuration. + + :param request_body: (required) + :type request_body: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._bulk_enable_synthetic_alert_configs_serialize( + request_body=request_body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': None, + '403': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def bulk_enable_synthetic_alert_configs_with_http_info( + self, + request_body: List[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Bulk Enable Synthetic Smart Alert Configs + + Enables multiple Synthetic Smart Alert Configurations. For more information on Synthetic Alert Configuration please access the https://developer.ibm.com/apis/catalog/instana--instana-rest-api/Synthetic+Monitoring#synthetic-alert-configuration. + + :param request_body: (required) + :type request_body: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._bulk_enable_synthetic_alert_configs_serialize( + request_body=request_body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': None, + '403': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def bulk_enable_synthetic_alert_configs_without_preload_content( + self, + request_body: List[StrictStr], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Bulk Enable Synthetic Smart Alert Configs + + Enables multiple Synthetic Smart Alert Configurations. For more information on Synthetic Alert Configuration please access the https://developer.ibm.com/apis/catalog/instana--instana-rest-api/Synthetic+Monitoring#synthetic-alert-configuration. + + :param request_body: (required) + :type request_body: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._bulk_enable_synthetic_alert_configs_serialize( + request_body=request_body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': None, + '403': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _bulk_enable_synthetic_alert_configs_serialize( + self, + request_body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'request_body': '', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if request_body is not None: + _body_params = request_body + + + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/api/events/settings/global-alert-configs/synthetics/bulk/enable', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def create_synthetic_alert_config( self, @@ -1220,7 +2043,6 @@ def find_active_synthetic_alert_configs( _response_types_map: Dict[str, Optional[str]] = { '200': "List[SyntheticAlertConfigWithMetadata]", - '403': None, } response_data = self.api_client.call_api( *_param, @@ -1292,7 +2114,6 @@ def find_active_synthetic_alert_configs_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "List[SyntheticAlertConfigWithMetadata]", - '403': None, } response_data = self.api_client.call_api( *_param, @@ -1364,7 +2185,6 @@ def find_active_synthetic_alert_configs_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "List[SyntheticAlertConfigWithMetadata]", - '403': None, } response_data = self.api_client.call_api( *_param, @@ -1462,7 +2282,7 @@ def find_synthetic_alert_config( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SyntheticAlertConfigWithMetadata: + ) -> SyntheticAlertConfigWithRBACTag: """Get Synthetic Smart Alert Config Gets a specific Synthetic Smart Alert Configuration. This may return a deleted Configuration. For more information on Synthetic Alert Configuration please access the https://developer.ibm.com/apis/catalog/instana--instana-rest-api/Synthetic+Monitoring#synthetic-alert-configuration. @@ -1503,7 +2323,7 @@ def find_synthetic_alert_config( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SyntheticAlertConfigWithMetadata", + '200': "SyntheticAlertConfigWithRBACTag", '403': None, '404': None, } @@ -1535,7 +2355,7 @@ def find_synthetic_alert_config_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SyntheticAlertConfigWithMetadata]: + ) -> ApiResponse[SyntheticAlertConfigWithRBACTag]: """Get Synthetic Smart Alert Config Gets a specific Synthetic Smart Alert Configuration. This may return a deleted Configuration. For more information on Synthetic Alert Configuration please access the https://developer.ibm.com/apis/catalog/instana--instana-rest-api/Synthetic+Monitoring#synthetic-alert-configuration. @@ -1576,7 +2396,7 @@ def find_synthetic_alert_config_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SyntheticAlertConfigWithMetadata", + '200': "SyntheticAlertConfigWithRBACTag", '403': None, '404': None, } @@ -1649,7 +2469,7 @@ def find_synthetic_alert_config_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SyntheticAlertConfigWithMetadata", + '200': "SyntheticAlertConfigWithRBACTag", '403': None, '404': None, } @@ -2359,8 +3179,8 @@ def update_synthetic_alert_config( _response_types_map: Dict[str, Optional[str]] = { '200': "SyntheticAlertConfigWithMetadata", '204': None, - '400': None, '403': None, + '404': None, '422': None, '500': None, } @@ -2435,8 +3255,8 @@ def update_synthetic_alert_config_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "SyntheticAlertConfigWithMetadata", '204': None, - '400': None, '403': None, + '404': None, '422': None, '500': None, } @@ -2511,8 +3331,8 @@ def update_synthetic_alert_config_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "SyntheticAlertConfigWithMetadata", '204': None, - '400': None, '403': None, + '404': None, '422': None, '500': None, } diff --git a/instana_client/api/synthetic_calls_api.py b/instana_client/api/synthetic_calls_api.py index b8f7a4a..4b9f855 100644 --- a/instana_client/api/synthetic_calls_api.py +++ b/instana_client/api/synthetic_calls_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/synthetic_catalog_api.py b/instana_client/api/synthetic_catalog_api.py index 2025304..20f4c89 100644 --- a/instana_client/api/synthetic_catalog_api.py +++ b/instana_client/api/synthetic_catalog_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/synthetic_metrics_api.py b/instana_client/api/synthetic_metrics_api.py index 53eae0c..3db4955 100644 --- a/instana_client/api/synthetic_metrics_api.py +++ b/instana_client/api/synthetic_metrics_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/synthetic_settings_api.py b/instana_client/api/synthetic_settings_api.py index 691b5c9..53e47fa 100644 --- a/instana_client/api/synthetic_settings_api.py +++ b/instana_client/api/synthetic_settings_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/synthetic_test_playback_results_api.py b/instana_client/api/synthetic_test_playback_results_api.py index ae051a1..d4e4379 100644 --- a/instana_client/api/synthetic_test_playback_results_api.py +++ b/instana_client/api/synthetic_test_playback_results_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/teams_api.py b/instana_client/api/teams_api.py index 06a9810..f5a09c2 100644 --- a/instana_client/api/teams_api.py +++ b/instana_client/api/teams_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -1099,7 +1099,7 @@ def _get_teams_serialize( def update_team( self, id: Annotated[StrictStr, Field(description="Id of the team to update")], - api_team: Optional[ApiTeam] = None, + api_team: ApiTeam, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1119,7 +1119,7 @@ def update_team( :param id: Id of the team to update (required) :type id: str - :param api_team: + :param api_team: (required) :type api_team: ApiTeam :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1154,6 +1154,7 @@ def update_team( _response_types_map: Dict[str, Optional[str]] = { '200': None, + '400': None, '404': None, } response_data = self.api_client.call_api( @@ -1171,7 +1172,7 @@ def update_team( def update_team_with_http_info( self, id: Annotated[StrictStr, Field(description="Id of the team to update")], - api_team: Optional[ApiTeam] = None, + api_team: ApiTeam, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1191,7 +1192,7 @@ def update_team_with_http_info( :param id: Id of the team to update (required) :type id: str - :param api_team: + :param api_team: (required) :type api_team: ApiTeam :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1226,6 +1227,7 @@ def update_team_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': None, + '400': None, '404': None, } response_data = self.api_client.call_api( @@ -1243,7 +1245,7 @@ def update_team_with_http_info( def update_team_without_preload_content( self, id: Annotated[StrictStr, Field(description="Id of the team to update")], - api_team: Optional[ApiTeam] = None, + api_team: ApiTeam, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1263,7 +1265,7 @@ def update_team_without_preload_content( :param id: Id of the team to update (required) :type id: str - :param api_team: + :param api_team: (required) :type api_team: ApiTeam :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1298,6 +1300,7 @@ def update_team_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': None, + '400': None, '404': None, } response_data = self.api_client.call_api( diff --git a/instana_client/api/usage_api.py b/instana_client/api/usage_api.py index 87aa120..a5a5100 100644 --- a/instana_client/api/usage_api.py +++ b/instana_client/api/usage_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/user_api.py b/instana_client/api/user_api.py index b7a65ef..113cf36 100644 --- a/instana_client/api/user_api.py +++ b/instana_client/api/user_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -1597,7 +1597,7 @@ def _remove_user_from_tenant_serialize( @validate_call def revoke_pending_invitation( self, - email: Annotated[StrictStr, Field(description="Email of the invite for removal")], + email: Annotated[str, Field(min_length=1, strict=True, description="Email of the invite for removal")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1662,7 +1662,7 @@ def revoke_pending_invitation( @validate_call def revoke_pending_invitation_with_http_info( self, - email: Annotated[StrictStr, Field(description="Email of the invite for removal")], + email: Annotated[str, Field(min_length=1, strict=True, description="Email of the invite for removal")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1727,7 +1727,7 @@ def revoke_pending_invitation_with_http_info( @validate_call def revoke_pending_invitation_without_preload_content( self, - email: Annotated[StrictStr, Field(description="Email of the invite for removal")], + email: Annotated[str, Field(min_length=1, strict=True, description="Email of the invite for removal")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], diff --git a/instana_client/api/website_analyze_api.py b/instana_client/api/website_analyze_api.py index a9b30b9..5de7067 100644 --- a/instana_client/api/website_analyze_api.py +++ b/instana_client/api/website_analyze_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/website_catalog_api.py b/instana_client/api/website_catalog_api.py index 8eef4df..e59d333 100644 --- a/instana_client/api/website_catalog_api.py +++ b/instana_client/api/website_catalog_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -549,7 +549,7 @@ def _get_website_catalog_tags_serialize( @validate_call def get_website_tag_catalog( self, - beacon_type: Annotated[StrictStr, Field(description="beaconType")], + beacon_type: Annotated[str, Field(min_length=1, strict=True, description="beaconType")], use_case: Annotated[StrictStr, Field(description="useCase")], _request_timeout: Union[ None, @@ -623,7 +623,7 @@ def get_website_tag_catalog( @validate_call def get_website_tag_catalog_with_http_info( self, - beacon_type: Annotated[StrictStr, Field(description="beaconType")], + beacon_type: Annotated[str, Field(min_length=1, strict=True, description="beaconType")], use_case: Annotated[StrictStr, Field(description="useCase")], _request_timeout: Union[ None, @@ -697,7 +697,7 @@ def get_website_tag_catalog_with_http_info( @validate_call def get_website_tag_catalog_without_preload_content( self, - beacon_type: Annotated[StrictStr, Field(description="beaconType")], + beacon_type: Annotated[str, Field(min_length=1, strict=True, description="beaconType")], use_case: Annotated[StrictStr, Field(description="useCase")], _request_timeout: Union[ None, diff --git a/instana_client/api/website_configuration_api.py b/instana_client/api/website_configuration_api.py index 1d1035e..6772e4b 100644 --- a/instana_client/api/website_configuration_api.py +++ b/instana_client/api/website_configuration_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api/website_metrics_api.py b/instana_client/api/website_metrics_api.py index a4d6067..c4ff540 100644 --- a/instana_client/api/website_metrics_api.py +++ b/instana_client/api/website_metrics_api.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/api_client.py b/instana_client/api_client.py index 7876b1f..acb09e5 100644 --- a/instana_client/api_client.py +++ b/instana_client/api_client.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ import os import re import tempfile +import uuid from urllib.parse import quote from typing import Tuple, Optional, List, Dict, Union @@ -91,7 +92,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.0.2/python' + self.user_agent = 'OpenAPI-Generator/1.0.4/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): @@ -357,6 +358,8 @@ def sanitize_for_serialization(self, obj): return obj.get_secret_value() elif isinstance(obj, self.PRIMITIVE_TYPES): return obj + elif isinstance(obj, uuid.UUID): + return str(obj) elif isinstance(obj, list): return [ self.sanitize_for_serialization(sub_obj) for sub_obj in obj @@ -383,6 +386,10 @@ def sanitize_for_serialization(self, obj): else: obj_dict = obj.__dict__ + if isinstance(obj_dict, list): + # here we handle instances that can either be a list or something else, and only became a real list by calling to_dict() + return self.sanitize_for_serialization(obj_dict) + return { key: self.sanitize_for_serialization(val) for key, val in obj_dict.items() @@ -405,7 +412,7 @@ def deserialize(self, response_text: str, response_type: str, content_type: Opti data = json.loads(response_text) except ValueError: data = response_text - elif re.match(r'^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE): + elif re.match(r'^application/(json|[\w!#$&.+\-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE): if response_text == "": data = "" else: @@ -454,13 +461,13 @@ def __deserialize(self, data, klass): if klass in self.PRIMITIVE_TYPES: return self.__deserialize_primitive(data, klass) - elif klass == object: + elif klass is object: return self.__deserialize_object(data) - elif klass == datetime.date: + elif klass is datetime.date: return self.__deserialize_date(data) - elif klass == datetime.datetime: + elif klass is datetime.datetime: return self.__deserialize_datetime(data) - elif klass == decimal.Decimal: + elif klass is decimal.Decimal: return decimal.Decimal(data) elif issubclass(klass, Enum): return self.__deserialize_enum(data, klass) diff --git a/instana_client/configuration.py b/instana_client/configuration.py index cbe1798..696fa64 100644 --- a/instana_client/configuration.py +++ b/instana_client/configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -164,6 +164,8 @@ class Configuration: :param retries: Number of retries for API requests. :param ca_cert_data: verify the peer using concatenated CA certificate data in PEM (str) or DER (bytes) format. + :param cert_file: the path to a client certificate file, for mTLS. + :param key_file: the path to a client key file, for mTLS. :Example: @@ -205,6 +207,8 @@ def __init__( ssl_ca_cert: Optional[str]=None, retries: Optional[int] = None, ca_cert_data: Optional[Union[str, bytes]] = None, + cert_file: Optional[str]=None, + key_file: Optional[str]=None, *, debug: Optional[bool] = None, ) -> None: @@ -286,10 +290,10 @@ def __init__( """Set this to verify the peer using PEM (str) or DER (bytes) certificate data. """ - self.cert_file = None + self.cert_file = cert_file """client certificate file """ - self.key_file = None + self.key_file = key_file """client key file """ self.assert_hostname = None @@ -531,8 +535,8 @@ def to_debug_report(self) -> str: return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 1.309.1268\n"\ - "SDK Package Version: 1.0.3".\ + "Version of the API: 1.315.1425\n"\ + "SDK Package Version: 1.0.4".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/instana_client/exceptions.py b/instana_client/exceptions.py index 74a04fe..a0baa02 100644 --- a/instana_client/exceptions.py +++ b/instana_client/exceptions.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/__init__.py b/instana_client/models/__init__.py index 48cd310..a2e7620 100644 --- a/instana_client/models/__init__.py +++ b/instana_client/models/__init__.py @@ -1,553 +1,19 @@ # coding: utf-8 +# flake8: noqa """ Instana REST API documentation Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 - -# Disable lazy loading to avoid dependency on lazy_imports package -# Always use direct imports for better compatibility -if True: # Changed from: if __import__("typing").TYPE_CHECKING: - # import models into model package - from instana_client.models.abstract_integration import AbstractIntegration - from instana_client.models.abstract_rule import AbstractRule - from instana_client.models.access_log_entry import AccessLogEntry - from instana_client.models.access_log_response import AccessLogResponse - from instana_client.models.access_rule import AccessRule - from instana_client.models.action import Action - from instana_client.models.action_configuration import ActionConfiguration - from instana_client.models.action_instance import ActionInstance - from instana_client.models.action_instance_metadata_entry import ActionInstanceMetadataEntry - from instana_client.models.action_instance_parameter import ActionInstanceParameter - from instana_client.models.action_instance_request import ActionInstanceRequest - from instana_client.models.action_instance_request_parameters import ActionInstanceRequestParameters - from instana_client.models.action_match import ActionMatch - from instana_client.models.action_search_space import ActionSearchSpace - from instana_client.models.adaptive_baseline import AdaptiveBaseline - from instana_client.models.adaptive_threshold_rule import AdaptiveThresholdRule - from instana_client.models.addition import Addition - from instana_client.models.adjusted_timeframe import AdjustedTimeframe - from instana_client.models.agent_configuration_update import AgentConfigurationUpdate - from instana_client.models.alerting_configuration import AlertingConfiguration - from instana_client.models.alerting_configuration_with_last_updated import AlertingConfigurationWithLastUpdated - from instana_client.models.alerting_time_window import AlertingTimeWindow - from instana_client.models.apdex_configuration import ApdexConfiguration - from instana_client.models.apdex_configuration_input import ApdexConfigurationInput - from instana_client.models.apdex_entity import ApdexEntity - from instana_client.models.apdex_report import ApdexReport - from instana_client.models.api_create_group import ApiCreateGroup - from instana_client.models.api_create_role import ApiCreateRole - from instana_client.models.api_group import ApiGroup - from instana_client.models.api_member import ApiMember - from instana_client.models.api_permission_set import ApiPermissionSet - from instana_client.models.api_restricted_application_filter import ApiRestrictedApplicationFilter - from instana_client.models.api_role import ApiRole - from instana_client.models.api_tag import ApiTag - from instana_client.models.api_team import ApiTeam - from instana_client.models.api_team_info import ApiTeamInfo - from instana_client.models.api_team_member import ApiTeamMember - from instana_client.models.api_team_role import ApiTeamRole - from instana_client.models.api_team_scope import ApiTeamScope - from instana_client.models.api_token import ApiToken - from instana_client.models.app_data_metric_configuration import AppDataMetricConfiguration - from instana_client.models.application import Application - from instana_client.models.application_alert_config import ApplicationAlertConfig - from instana_client.models.application_alert_config_with_metadata import ApplicationAlertConfigWithMetadata - from instana_client.models.application_alert_rule import ApplicationAlertRule - from instana_client.models.application_apdex_entity import ApplicationApdexEntity - from instana_client.models.application_config import ApplicationConfig - from instana_client.models.application_event_result import ApplicationEventResult - from instana_client.models.application_item import ApplicationItem - from instana_client.models.application_metric_result import ApplicationMetricResult - from instana_client.models.application_node import ApplicationNode - from instana_client.models.application_result import ApplicationResult - from instana_client.models.application_scope import ApplicationScope - from instana_client.models.application_scope_with_metadata import ApplicationScopeWithMetadata - from instana_client.models.application_sli_entity import ApplicationSliEntity - from instana_client.models.application_slo_entity import ApplicationSloEntity - from instana_client.models.application_time_threshold import ApplicationTimeThreshold - from instana_client.models.arithmetic_configuration import ArithmeticConfiguration - from instana_client.models.arithmetic_operand import ArithmeticOperand - from instana_client.models.arithmetic_operation import ArithmeticOperation - from instana_client.models.audit_log_entry import AuditLogEntry - from instana_client.models.audit_log_ui_response import AuditLogUiResponse - from instana_client.models.author import Author - from instana_client.models.availability_blueprint_indicator import AvailabilityBlueprintIndicator - from instana_client.models.availability_sli_entity import AvailabilitySliEntity - from instana_client.models.available_metrics import AvailableMetrics - from instana_client.models.available_plugins import AvailablePlugins - from instana_client.models.backend_trace_reference import BackendTraceReference - from instana_client.models.bidirectional_ms_teams_app_integration import BidirectionalMsTeamsAppIntegration - from instana_client.models.bidirectional_slack_app_integration import BidirectionalSlackAppIntegration - from instana_client.models.binary_operator_dto import BinaryOperatorDTO - from instana_client.models.browser_script_configuration import BrowserScriptConfiguration - from instana_client.models.browser_script_configuration_update import BrowserScriptConfigurationUpdate - from instana_client.models.built_in_event_specification import BuiltInEventSpecification - from instana_client.models.built_in_event_specification_with_last_updated import BuiltInEventSpecificationWithLastUpdated - from instana_client.models.business_activity import BusinessActivity - from instana_client.models.business_perspective_config import BusinessPerspectiveConfig - from instana_client.models.call_groups_item import CallGroupsItem - from instana_client.models.call_groups_result import CallGroupsResult - from instana_client.models.call_relation import CallRelation - from instana_client.models.change_summary import ChangeSummary - from instana_client.models.cloudfoundry_physical_context import CloudfoundryPhysicalContext - from instana_client.models.condition import Condition - from instana_client.models.config_version import ConfigVersion - from instana_client.models.correction import Correction - from instana_client.models.correction_configuration import CorrectionConfiguration - from instana_client.models.correction_scheduling import CorrectionScheduling - from instana_client.models.correction_window import CorrectionWindow - from instana_client.models.crash_mobile_app_alert_rule import CrashMobileAppAlertRule - from instana_client.models.create_website_request_inner import CreateWebsiteRequestInner - from instana_client.models.cursor_paginated_business_activity_item import CursorPaginatedBusinessActivityItem - from instana_client.models.cursor_pagination import CursorPagination - from instana_client.models.custom_blueprint_indicator import CustomBlueprintIndicator - from instana_client.models.custom_dashboard import CustomDashboard - from instana_client.models.custom_dashboard_preview import CustomDashboardPreview - from instana_client.models.custom_dashboard_with_user_specific_information import CustomDashboardWithUserSpecificInformation - from instana_client.models.custom_dependency import CustomDependency - from instana_client.models.custom_email_subject_prefix import CustomEmailSubjectPrefix - from instana_client.models.custom_entity_model import CustomEntityModel - from instana_client.models.custom_entity_with_metadata import CustomEntityWithMetadata - from instana_client.models.custom_event_mobile_app_alert_rule import CustomEventMobileAppAlertRule - from instana_client.models.custom_event_specification import CustomEventSpecification - from instana_client.models.custom_event_specification_with_last_updated import CustomEventSpecificationWithLastUpdated - from instana_client.models.custom_event_website_alert_rule import CustomEventWebsiteAlertRule - from instana_client.models.custom_metric import CustomMetric - from instana_client.models.custom_payload_configuration import CustomPayloadConfiguration - from instana_client.models.custom_payload_field import CustomPayloadField - from instana_client.models.custom_payload_with_last_updated import CustomPayloadWithLastUpdated - from instana_client.models.custom_payload_with_version import CustomPayloadWithVersion - from instana_client.models.dns_configuration import DNSConfiguration - from instana_client.models.dns_configuration_update import DNSConfigurationUpdate - from instana_client.models.dns_filter_query_time import DNSFilterQueryTime - from instana_client.models.dns_filter_target_value import DNSFilterTargetValue - from instana_client.models.dashboard_api_token import DashboardApiToken - from instana_client.models.database_integration import DatabaseIntegration - from instana_client.models.deprecated_tag_filter import DeprecatedTagFilter - from instana_client.models.division import Division - from instana_client.models.duration import Duration - from instana_client.models.dynamic_field import DynamicField - from instana_client.models.dynamic_field_value import DynamicFieldValue - from instana_client.models.dynamic_parameter import DynamicParameter - from instana_client.models.edit_user import EditUser - from instana_client.models.email_integration import EmailIntegration - from instana_client.models.empty_configuration import EmptyConfiguration - from instana_client.models.endpoint import Endpoint - from instana_client.models.endpoint_config import EndpointConfig - from instana_client.models.endpoint_event_result import EndpointEventResult - from instana_client.models.endpoint_item import EndpointItem - from instana_client.models.endpoint_metric_result import EndpointMetricResult - from instana_client.models.endpoint_node import EndpointNode - from instana_client.models.endpoint_result import EndpointResult - from instana_client.models.endpoint_simple import EndpointSimple - from instana_client.models.entity_count_rule import EntityCountRule - from instana_client.models.entity_count_verification_rule import EntityCountVerificationRule - from instana_client.models.entity_health_info import EntityHealthInfo - from instana_client.models.entity_id import EntityId - from instana_client.models.entity_verification_rule import EntityVerificationRule - from instana_client.models.error_budget_alert_rule import ErrorBudgetAlertRule - from instana_client.models.errors_application_alert_rule import ErrorsApplicationAlertRule - from instana_client.models.event import Event - from instana_client.models.event_filtering_configuration import EventFilteringConfiguration - from instana_client.models.event_result import EventResult - from instana_client.models.event_specification_info import EventSpecificationInfo - from instana_client.models.extended_service import ExtendedService - from instana_client.models.failure_synthetic_alert_rule import FailureSyntheticAlertRule - from instana_client.models.fixed_http_path_segment_matching_rule import FixedHttpPathSegmentMatchingRule - from instana_client.models.fixed_time_window import FixedTimeWindow - from instana_client.models.generic_infra_alert_rule import GenericInfraAlertRule - from instana_client.models.geo_location_configuration import GeoLocationConfiguration - from instana_client.models.geo_mapping_rule import GeoMappingRule - from instana_client.models.geo_subdivision import GeoSubdivision - from instana_client.models.get_activities import GetActivities - from instana_client.models.get_application_metrics import GetApplicationMetrics - from instana_client.models.get_applications import GetApplications - from instana_client.models.get_available_metrics_query import GetAvailableMetricsQuery - from instana_client.models.get_available_plugins_query import GetAvailablePluginsQuery - from instana_client.models.get_call_groups import GetCallGroups - from instana_client.models.get_combined_metrics import GetCombinedMetrics - from instana_client.models.get_dynamic_parameter_values import GetDynamicParameterValues - from instana_client.models.get_endpoints import GetEndpoints - from instana_client.models.get_infrastructure_groups_query import GetInfrastructureGroupsQuery - from instana_client.models.get_infrastructure_query import GetInfrastructureQuery - from instana_client.models.get_metrics_result import GetMetricsResult - from instana_client.models.get_mobile_app_beacon_groups import GetMobileAppBeaconGroups - from instana_client.models.get_mobile_app_beacons import GetMobileAppBeacons - from instana_client.models.get_mobile_app_metrics import GetMobileAppMetrics - from instana_client.models.get_mobile_app_metrics_v2 import GetMobileAppMetricsV2 - from instana_client.models.get_payload_keys_result import GetPayloadKeysResult - from instana_client.models.get_services import GetServices - from instana_client.models.get_snapshots_query import GetSnapshotsQuery - from instana_client.models.get_test_result import GetTestResult - from instana_client.models.get_test_result_analytic import GetTestResultAnalytic - from instana_client.models.get_test_result_base import GetTestResultBase - from instana_client.models.get_test_result_list import GetTestResultList - from instana_client.models.get_test_summary_result import GetTestSummaryResult - from instana_client.models.get_trace_download_result_item import GetTraceDownloadResultItem - from instana_client.models.get_trace_groups import GetTraceGroups - from instana_client.models.get_traces import GetTraces - from instana_client.models.get_website_beacon_groups import GetWebsiteBeaconGroups - from instana_client.models.get_website_beacons import GetWebsiteBeacons - from instana_client.models.get_website_metrics import GetWebsiteMetrics - from instana_client.models.get_website_metrics_v2 import GetWebsiteMetricsV2 - from instana_client.models.global_application_alert_config_with_metadata import GlobalApplicationAlertConfigWithMetadata - from instana_client.models.global_applications_alert_config import GlobalApplicationsAlertConfig - from instana_client.models.google_chat_integration import GoogleChatIntegration - from instana_client.models.graph_edge import GraphEdge - from instana_client.models.graph_node import GraphNode - from instana_client.models.group import Group - from instana_client.models.group_by_tag import GroupByTag - from instana_client.models.group_mapping import GroupMapping - from instana_client.models.group_mapping_overview import GroupMappingOverview - from instana_client.models.health_state import HealthState - from instana_client.models.historic_baseline import HistoricBaseline - from instana_client.models.host_availability_rule import HostAvailabilityRule - from instana_client.models.http_action_configuration import HttpActionConfiguration - from instana_client.models.http_action_configuration_update import HttpActionConfigurationUpdate - from instana_client.models.http_endpoint_config import HttpEndpointConfig - from instana_client.models.http_endpoint_rule import HttpEndpointRule - from instana_client.models.http_path_segment_matching_rule import HttpPathSegmentMatchingRule - from instana_client.models.http_script_configuration import HttpScriptConfiguration - from instana_client.models.http_script_configuration_update import HttpScriptConfigurationUpdate - from instana_client.models.hyper_param import HyperParam - from instana_client.models.identity_provider_patch import IdentityProviderPatch - from instana_client.models.impacted_beacon_info import ImpactedBeaconInfo - from instana_client.models.infra_alert_config import InfraAlertConfig - from instana_client.models.infra_alert_config_with_metadata import InfraAlertConfigWithMetadata - from instana_client.models.infra_alert_rule import InfraAlertRule - from instana_client.models.infra_event_result import InfraEventResult - from instana_client.models.infra_metric_configuration import InfraMetricConfiguration - from instana_client.models.infra_slo_entity import InfraSloEntity - from instana_client.models.infra_time_threshold import InfraTimeThreshold - from instana_client.models.infrastructure_entities_result import InfrastructureEntitiesResult - from instana_client.models.infrastructure_group import InfrastructureGroup - from instana_client.models.infrastructure_groups_result import InfrastructureGroupsResult - from instana_client.models.infrastructure_item import InfrastructureItem - from instana_client.models.infrastructure_metric_result import InfrastructureMetricResult - from instana_client.models.instana_version_info import InstanaVersionInfo - from instana_client.models.integration_overview import IntegrationOverview - from instana_client.models.invitation import Invitation - from instana_client.models.invitation_response import InvitationResponse - from instana_client.models.invitation_result import InvitationResult - from instana_client.models.ip_masking_configuration import IpMaskingConfiguration - from instana_client.models.js_stack_trace_line import JsStackTraceLine - from instana_client.models.kubernetes_physical_context import KubernetesPhysicalContext - from instana_client.models.llm_egress_gateway import LLMEgressGateway - from instana_client.models.latency_blueprint_indicator import LatencyBlueprintIndicator - # from instana_client.models.llm_model_price import LlmModelPrice - # from instana_client.models.llm_model_price_metadata import LlmModelPriceMetadata - from instana_client.models.location_status import LocationStatus - from instana_client.models.log_alert_config import LogAlertConfig - from instana_client.models.log_alert_config_with_metadata import LogAlertConfigWithMetadata - from instana_client.models.log_alert_rule import LogAlertRule - from instana_client.models.log_count_alert_rule import LogCountAlertRule - from instana_client.models.log_entry_actor import LogEntryActor - from instana_client.models.log_event_result import LogEventResult - from instana_client.models.log_time_threshold import LogTimeThreshold - from instana_client.models.log_volume_group import LogVolumeGroup - from instana_client.models.log_volume_usage_item import LogVolumeUsageItem - from instana_client.models.log_volume_usage_result import LogVolumeUsageResult - from instana_client.models.logs_application_alert_rule import LogsApplicationAlertRule - from instana_client.models.maintenance_config import MaintenanceConfig - from instana_client.models.maintenance_config_scheduling import MaintenanceConfigScheduling - from instana_client.models.maintenance_config_v2 import MaintenanceConfigV2 - from instana_client.models.maintenance_config_v2_with_state_and_occurrence import MaintenanceConfigV2WithStateAndOccurrence - from instana_client.models.maintenance_config_with_last_updated import MaintenanceConfigWithLastUpdated - from instana_client.models.maintenance_window import MaintenanceWindow - from instana_client.models.manual_alerting_channel_configuration import ManualAlertingChannelConfiguration - from instana_client.models.manual_close_info import ManualCloseInfo - from instana_client.models.manual_service_config import ManualServiceConfig - from instana_client.models.match_all_http_path_segment_matching_rule import MatchAllHttpPathSegmentMatchingRule - from instana_client.models.match_expression_dto import MatchExpressionDTO - from instana_client.models.meta_data import MetaData - from instana_client.models.metric_api_result import MetricAPIResult - from instana_client.models.metric_config import MetricConfig - from instana_client.models.metric_configuration import MetricConfiguration - from instana_client.models.metric_description import MetricDescription - from instana_client.models.metric_instance import MetricInstance - from instana_client.models.metric_item import MetricItem - from instana_client.models.metric_metadata import MetricMetadata - from instana_client.models.metric_pattern import MetricPattern - from instana_client.models.metric_query import MetricQuery - from instana_client.models.metrics_result import MetricsResult - from instana_client.models.metrics_result_item import MetricsResultItem - from instana_client.models.metrics_test_result_item import MetricsTestResultItem - from instana_client.models.mobile_app import MobileApp - from instana_client.models.mobile_app_alert_config import MobileAppAlertConfig - from instana_client.models.mobile_app_alert_rule import MobileAppAlertRule - from instana_client.models.mobile_app_beacon_groups_item import MobileAppBeaconGroupsItem - from instana_client.models.mobile_app_beacon_groups_result import MobileAppBeaconGroupsResult - from instana_client.models.mobile_app_beacon_result import MobileAppBeaconResult - from instana_client.models.mobile_app_beacon_tag_group import MobileAppBeaconTagGroup - from instana_client.models.mobile_app_beacons_item import MobileAppBeaconsItem - from instana_client.models.mobile_app_event_result import MobileAppEventResult - from instana_client.models.mobile_app_metric_result import MobileAppMetricResult - from instana_client.models.mobile_app_monitoring_beacon import MobileAppMonitoringBeacon - from instana_client.models.mobile_app_monitoring_metric_description import MobileAppMonitoringMetricDescription - from instana_client.models.mobile_app_monitoring_metrics_configuration import MobileAppMonitoringMetricsConfiguration - from instana_client.models.mobile_app_time_threshold import MobileAppTimeThreshold - from instana_client.models.model_field import ModelField - from instana_client.models.monitored_entities_stats import MonitoredEntitiesStats - from instana_client.models.monitoring_state import MonitoringState - from instana_client.models.multiple_scripts_configuration import MultipleScriptsConfiguration - from instana_client.models.multiplication import Multiplication - from instana_client.models.nested_operation import NestedOperation - from instana_client.models.new_application_config import NewApplicationConfig - from instana_client.models.new_business_perspective_config import NewBusinessPerspectiveConfig - from instana_client.models.new_manual_service_config import NewManualServiceConfig - from instana_client.models.o_auth_config import OAuthConfig - from instana_client.models.o_auth_integration import OAuthIntegration - from instana_client.models.o_auth_token import OAuthToken - from instana_client.models.occurrence import Occurrence - from instana_client.models.office365_integration import Office365Integration - from instana_client.models.one_time_maintenance_window import OneTimeMaintenanceWindow - from instana_client.models.opsgenie_integration import OpsgenieIntegration - from instana_client.models.order import Order - from instana_client.models.pagerduty_integration import PagerdutyIntegration - from instana_client.models.paginated_result import PaginatedResult - from instana_client.models.pagination import Pagination - from instana_client.models.parameter import Parameter - from instana_client.models.parameter_value import ParameterValue - from instana_client.models.path_parameter_http_path_segment_matching_rule import PathParameterHttpPathSegmentMatchingRule - from instana_client.models.physical_context import PhysicalContext - from instana_client.models.plugin_result import PluginResult - from instana_client.models.policy import Policy - from instana_client.models.policy_runnable import PolicyRunnable - from instana_client.models.policy_scheduling import PolicyScheduling - from instana_client.models.post_mobile_app_source_map_config_request import PostMobileAppSourceMapConfigRequest - from instana_client.models.post_snapshots_result import PostSnapshotsResult - from instana_client.models.problem import Problem - from instana_client.models.prometheus_webhook_integration import PrometheusWebhookIntegration - from instana_client.models.recurrent_maintenance_window import RecurrentMaintenanceWindow - from instana_client.models.release import Release - from instana_client.models.release_scope import ReleaseScope - from instana_client.models.release_with_metadata import ReleaseWithMetadata - from instana_client.models.retention_period import RetentionPeriod - from instana_client.models.rolling_time_window import RollingTimeWindow - from instana_client.models.rule_input import RuleInput - from instana_client.models.rule_with_threshold_application_alert_rule import RuleWithThresholdApplicationAlertRule - from instana_client.models.rule_with_threshold_infra_alert_rule import RuleWithThresholdInfraAlertRule - from instana_client.models.rule_with_threshold_log_alert_rule import RuleWithThresholdLogAlertRule - from instana_client.models.rule_with_threshold_mobile_app_alert_rule import RuleWithThresholdMobileAppAlertRule - from instana_client.models.rule_with_threshold_website_alert_rule import RuleWithThresholdWebsiteAlertRule - from instana_client.models.run_configuration import RunConfiguration - from instana_client.models.slo_config_with_rbac_tag import SLOConfigWithRBACTag - from instana_client.models.ssl_certificate_configuration import SSLCertificateConfiguration - from instana_client.models.ssl_certificate_configuration_update import SSLCertificateConfigurationUpdate - from instana_client.models.ssl_certificate_validation import SSLCertificateValidation - from instana_client.models.salesforce_integration import SalesforceIntegration - from instana_client.models.saturation_blueprint_indicator import SaturationBlueprintIndicator - from instana_client.models.scope_binding import ScopeBinding - from instana_client.models.search_field_result import SearchFieldResult - from instana_client.models.service import Service - from instana_client.models.service_config import ServiceConfig - from instana_client.models.service_event_result import ServiceEventResult - from instana_client.models.service_item import ServiceItem - from instana_client.models.service_level_indicator import ServiceLevelIndicator - from instana_client.models.service_level_objective_alert_rule import ServiceLevelObjectiveAlertRule - from instana_client.models.service_levels_alert_config import ServiceLevelsAlertConfig - from instana_client.models.service_levels_alert_rule import ServiceLevelsAlertRule - from instana_client.models.service_levels_burn_rate_config import ServiceLevelsBurnRateConfig - from instana_client.models.service_levels_burn_rate_time_windows import ServiceLevelsBurnRateTimeWindows - from instana_client.models.service_levels_static_threshold_config import ServiceLevelsStaticThresholdConfig - from instana_client.models.service_levels_time_threshold import ServiceLevelsTimeThreshold - from instana_client.models.service_levelse_alert_config_with_metadata import ServiceLevelseAlertConfigWithMetadata - from instana_client.models.service_map import ServiceMap - from instana_client.models.service_map_connection import ServiceMapConnection - from instana_client.models.service_matching_rule import ServiceMatchingRule - from instana_client.models.service_metric_result import ServiceMetricResult - from instana_client.models.service_node import ServiceNode - from instana_client.models.service_now_enhanced_integration import ServiceNowEnhancedIntegration - from instana_client.models.service_now_integration import ServiceNowIntegration - from instana_client.models.service_result import ServiceResult - from instana_client.models.service_scope import ServiceScope - from instana_client.models.service_scope_with_metadata import ServiceScopeWithMetadata - from instana_client.models.service_scoped_to import ServiceScopedTo - from instana_client.models.service_scoped_to_with_metadata import ServiceScopedToWithMetadata - from instana_client.models.service_simple import ServiceSimple - from instana_client.models.session_settings import SessionSettings - from instana_client.models.simple_metric_configuration import SimpleMetricConfiguration - from instana_client.models.single_value import SingleValue - from instana_client.models.slack_integration import SlackIntegration - from instana_client.models.sli_configuration import SliConfiguration - from instana_client.models.sli_configuration_with_last_updated import SliConfigurationWithLastUpdated - from instana_client.models.sli_entity import SliEntity - from instana_client.models.sli_report import SliReport - from instana_client.models.slo_entity import SloEntity - from instana_client.models.slo_report import SloReport - from instana_client.models.slowness_application_alert_rule import SlownessApplicationAlertRule - from instana_client.models.slowness_mobile_app_alert_rule import SlownessMobileAppAlertRule - from instana_client.models.slowness_website_alert_rule import SlownessWebsiteAlertRule - from instana_client.models.snapshot_item import SnapshotItem - from instana_client.models.snapshot_preview import SnapshotPreview - from instana_client.models.snapshot_result import SnapshotResult - from instana_client.models.software_user import SoftwareUser - from instana_client.models.software_version import SoftwareVersion - from instana_client.models.source_map_file_blob import SourceMapFileBlob - from instana_client.models.source_map_file_meta import SourceMapFileMeta - from instana_client.models.source_map_upload_config import SourceMapUploadConfig - from instana_client.models.source_map_upload_configs import SourceMapUploadConfigs - from instana_client.models.span_excerpt import SpanExcerpt - from instana_client.models.span_relation import SpanRelation - from instana_client.models.specific_js_errors_website_alert_rule import SpecificJsErrorsWebsiteAlertRule - from instana_client.models.splunk_integration import SplunkIntegration - from instana_client.models.stack_trace_item import StackTraceItem - from instana_client.models.stack_trace_line import StackTraceLine - from instana_client.models.static_baseline_threshold_rule import StaticBaselineThresholdRule - from instana_client.models.static_string_field import StaticStringField - from instana_client.models.static_threshold import StaticThreshold - from instana_client.models.static_threshold_rule import StaticThresholdRule - from instana_client.models.status_code_application_alert_rule import StatusCodeApplicationAlertRule - from instana_client.models.status_code_mobile_app_alert_rule import StatusCodeMobileAppAlertRule - from instana_client.models.status_code_website_alert_rule import StatusCodeWebsiteAlertRule - from instana_client.models.subtraction import Subtraction - from instana_client.models.synthetic_alert_config import SyntheticAlertConfig - from instana_client.models.synthetic_alert_config_with_metadata import SyntheticAlertConfigWithMetadata - from instana_client.models.synthetic_alert_rule import SyntheticAlertRule - from instana_client.models.synthetic_bulk_response import SyntheticBulkResponse - from instana_client.models.synthetic_call_config import SyntheticCallConfig - from instana_client.models.synthetic_call_rule import SyntheticCallRule - from instana_client.models.synthetic_call_with_defaults_config import SyntheticCallWithDefaultsConfig - from instana_client.models.synthetic_configuration import SyntheticConfiguration - from instana_client.models.synthetic_configuration_update import SyntheticConfigurationUpdate - from instana_client.models.synthetic_credential import SyntheticCredential - from instana_client.models.synthetic_datacenter import SyntheticDatacenter - from instana_client.models.synthetic_datacenter_configuration import SyntheticDatacenterConfiguration - from instana_client.models.synthetic_geo_point import SyntheticGeoPoint - from instana_client.models.synthetic_location import SyntheticLocation - from instana_client.models.synthetic_location_configuration import SyntheticLocationConfiguration - from instana_client.models.synthetic_metric_configuration import SyntheticMetricConfiguration - from instana_client.models.synthetic_metric_tag_group import SyntheticMetricTagGroup - from instana_client.models.synthetic_playback_capabilities import SyntheticPlaybackCapabilities - from instana_client.models.synthetic_resource_update_list_dns_filter_target_value_list_dns_filter_target_value import SyntheticResourceUpdateListDNSFilterTargetValueListDNSFilterTargetValue - from instana_client.models.synthetic_resource_update_list_ssl_certificate_validation_list_ssl_certificate_validation import SyntheticResourceUpdateListSSLCertificateValidationListSSLCertificateValidation - from instana_client.models.synthetic_resource_update_list_string_list_string import SyntheticResourceUpdateListStringListString - from instana_client.models.synthetic_resource_update_map_string_string_list_string import SyntheticResourceUpdateMapStringStringListString - from instana_client.models.synthetic_slo_entity import SyntheticSloEntity - from instana_client.models.synthetic_test import SyntheticTest - from instana_client.models.synthetic_test_cicd import SyntheticTestCICD - from instana_client.models.synthetic_test_cicd_customization import SyntheticTestCICDCustomization - from instana_client.models.synthetic_test_cicd_item import SyntheticTestCICDItem - from instana_client.models.synthetic_test_cicd_response import SyntheticTestCICDResponse - from instana_client.models.synthetic_test_deep_update import SyntheticTestDeepUpdate - from instana_client.models.synthetic_test_shallow_update import SyntheticTestShallowUpdate - from instana_client.models.synthetic_test_update import SyntheticTestUpdate - from instana_client.models.synthetic_time_threshold import SyntheticTimeThreshold - from instana_client.models.synthetic_type_configuration import SyntheticTypeConfiguration - from instana_client.models.synthetic_type_configuration_update import SyntheticTypeConfigurationUpdate - from instana_client.models.synthetics_event_result import SyntheticsEventResult - from instana_client.models.system_rule import SystemRule - from instana_client.models.system_rule_label import SystemRuleLabel - from instana_client.models.tag import Tag - from instana_client.models.tag_catalog import TagCatalog - from instana_client.models.tag_filter import TagFilter - from instana_client.models.tag_filter_all_of_value import TagFilterAllOfValue - from instana_client.models.tag_filter_expression import TagFilterExpression - from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement - from instana_client.models.tag_matcher_dto import TagMatcherDTO - from instana_client.models.tag_tree_level import TagTreeLevel - from instana_client.models.tag_tree_node import TagTreeNode - from instana_client.models.tag_tree_tag import TagTreeTag - from instana_client.models.test_common_properties import TestCommonProperties - from instana_client.models.test_last_error import TestLastError - from instana_client.models.test_result import TestResult - from instana_client.models.test_result_common_properties import TestResultCommonProperties - from instana_client.models.test_result_detail_data import TestResultDetailData - from instana_client.models.test_result_item import TestResultItem - from instana_client.models.test_result_list_item import TestResultListItem - from instana_client.models.test_result_list_result import TestResultListResult - from instana_client.models.test_result_metadata import TestResultMetadata - from instana_client.models.test_result_subtransaction import TestResultSubtransaction - from instana_client.models.threshold import Threshold - from instana_client.models.threshold_config_rule import ThresholdConfigRule - from instana_client.models.threshold_rule import ThresholdRule - from instana_client.models.throughput_application_alert_rule import ThroughputApplicationAlertRule - from instana_client.models.throughput_mobile_app_alert_rule import ThroughputMobileAppAlertRule - from instana_client.models.throughput_website_alert_rule import ThroughputWebsiteAlertRule - from instana_client.models.time_frame import TimeFrame - from instana_client.models.time_window import TimeWindow - from instana_client.models.topology import Topology - from instana_client.models.trace import Trace - from instana_client.models.trace_activity_tree_node_details import TraceActivityTreeNodeDetails - from instana_client.models.trace_download_result import TraceDownloadResult - from instana_client.models.trace_groups_item import TraceGroupsItem - from instana_client.models.trace_groups_result import TraceGroupsResult - from instana_client.models.trace_impact_application_time_threshold import TraceImpactApplicationTimeThreshold - from instana_client.models.trace_item import TraceItem - from instana_client.models.trace_result import TraceResult - from instana_client.models.traffic_blueprint_indicator import TrafficBlueprintIndicator - from instana_client.models.trigger import Trigger - from instana_client.models.type_configuration import TypeConfiguration - from instana_client.models.unsupported_http_path_segment_matching_rule import UnsupportedHttpPathSegmentMatchingRule - from instana_client.models.updated_business_perspective_config import UpdatedBusinessPerspectiveConfig - from instana_client.models.usage_result import UsageResult - from instana_client.models.usage_result_items import UsageResultItems - from instana_client.models.user_basic_result import UserBasicResult - from instana_client.models.user_impact_mobile_app_time_threshold import UserImpactMobileAppTimeThreshold - from instana_client.models.user_impact_website_time_threshold import UserImpactWebsiteTimeThreshold - from instana_client.models.user_result import UserResult - from instana_client.models.users_result import UsersResult - from instana_client.models.validated_alerting_channel_input_info import ValidatedAlertingChannelInputInfo - from instana_client.models.validated_alerting_configuration import ValidatedAlertingConfiguration - from instana_client.models.validated_maintenance_config_v2_with_state_and_occurrence import ValidatedMaintenanceConfigV2WithStateAndOccurrence - from instana_client.models.validated_maintenance_config_with_status import ValidatedMaintenanceConfigWithStatus - from instana_client.models.victor_ops_integration import VictorOpsIntegration - from instana_client.models.violations_in_period_application_time_threshold import ViolationsInPeriodApplicationTimeThreshold - from instana_client.models.violations_in_period_mobile_app_time_threshold import ViolationsInPeriodMobileAppTimeThreshold - from instana_client.models.violations_in_period_website_time_threshold import ViolationsInPeriodWebsiteTimeThreshold - from instana_client.models.violations_in_sequence_application_time_threshold import ViolationsInSequenceApplicationTimeThreshold - from instana_client.models.violations_in_sequence_infra_time_threshold import ViolationsInSequenceInfraTimeThreshold - from instana_client.models.violations_in_sequence_log_time_threshold import ViolationsInSequenceLogTimeThreshold - from instana_client.models.violations_in_sequence_mobile_app_time_threshold import ViolationsInSequenceMobileAppTimeThreshold - from instana_client.models.violations_in_sequence_synthetic_time_threshold import ViolationsInSequenceSyntheticTimeThreshold - from instana_client.models.violations_in_sequence_website_time_threshold import ViolationsInSequenceWebsiteTimeThreshold - from instana_client.models.watson_ai_ops_webhook_integration import WatsonAIOpsWebhookIntegration - from instana_client.models.webex_teams_webhook_integration import WebexTeamsWebhookIntegration - from instana_client.models.webhook_integration import WebhookIntegration - from instana_client.models.webpage_action_configuration import WebpageActionConfiguration - from instana_client.models.webpage_action_configuration_update import WebpageActionConfigurationUpdate - from instana_client.models.webpage_script_configuration import WebpageScriptConfiguration - from instana_client.models.webpage_script_configuration_update import WebpageScriptConfigurationUpdate - from instana_client.models.website import Website - from instana_client.models.website_alert_config import WebsiteAlertConfig - from instana_client.models.website_alert_config_with_metadata import WebsiteAlertConfigWithMetadata - from instana_client.models.website_alert_rule import WebsiteAlertRule - from instana_client.models.website_apdex_entity import WebsiteApdexEntity - from instana_client.models.website_beacon_groups_item import WebsiteBeaconGroupsItem - from instana_client.models.website_beacon_groups_result import WebsiteBeaconGroupsResult - from instana_client.models.website_beacon_result import WebsiteBeaconResult - from instana_client.models.website_beacon_tag_group import WebsiteBeaconTagGroup - from instana_client.models.website_beacons_item import WebsiteBeaconsItem - from instana_client.models.website_event_based_sli_entity import WebsiteEventBasedSliEntity - from instana_client.models.website_event_result import WebsiteEventResult - from instana_client.models.website_metric_result import WebsiteMetricResult - from instana_client.models.website_monitoring_beacon import WebsiteMonitoringBeacon - from instana_client.models.website_monitoring_metric_description import WebsiteMonitoringMetricDescription - from instana_client.models.website_monitoring_metrics_configuration import WebsiteMonitoringMetricsConfiguration - from instana_client.models.website_slo_entity import WebsiteSloEntity - from instana_client.models.website_time_based_sli_entity import WebsiteTimeBasedSliEntity - from instana_client.models.website_time_threshold import WebsiteTimeThreshold - from instana_client.models.widget import Widget - from instana_client.models.with_metadata import WithMetadata - from instana_client.models.with_resolved_name import WithResolvedName - from instana_client.models.z_chat_ops_integration import ZChatOpsIntegration - -else: - from lazy_imports import LazyModule, as_package, load - - load( - LazyModule( - *as_package(__file__), - """# import models into model package +# import models into model package from instana_client.models.abstract_integration import AbstractIntegration from instana_client.models.abstract_rule import AbstractRule from instana_client.models.access_log_entry import AccessLogEntry @@ -657,6 +123,7 @@ from instana_client.models.custom_payload_field import CustomPayloadField from instana_client.models.custom_payload_with_last_updated import CustomPayloadWithLastUpdated from instana_client.models.custom_payload_with_version import CustomPayloadWithVersion +from instana_client.models.custom_tag import CustomTag from instana_client.models.dns_configuration import DNSConfiguration from instana_client.models.dns_configuration_update import DNSConfigurationUpdate from instana_client.models.dns_filter_query_time import DNSFilterQueryTime @@ -717,6 +184,7 @@ from instana_client.models.get_mobile_app_metrics_v2 import GetMobileAppMetricsV2 from instana_client.models.get_payload_keys_result import GetPayloadKeysResult from instana_client.models.get_services import GetServices +from instana_client.models.get_session_replay_metadata_result import GetSessionReplayMetadataResult from instana_client.models.get_snapshots_query import GetSnapshotsQuery from instana_client.models.get_test_result import GetTestResult from instana_client.models.get_test_result_analytic import GetTestResultAnalytic @@ -751,6 +219,7 @@ from instana_client.models.http_script_configuration_update import HttpScriptConfigurationUpdate from instana_client.models.hyper_param import HyperParam from instana_client.models.identity_provider_patch import IdentityProviderPatch +from instana_client.models.idp_status_update import IdpStatusUpdate from instana_client.models.impacted_beacon_info import ImpactedBeaconInfo from instana_client.models.infra_alert_config import InfraAlertConfig from instana_client.models.infra_alert_config_with_metadata import InfraAlertConfigWithMetadata @@ -773,6 +242,9 @@ from instana_client.models.js_stack_trace_line import JsStackTraceLine from instana_client.models.kubernetes_physical_context import KubernetesPhysicalContext from instana_client.models.llm_egress_gateway import LLMEgressGateway +from instana_client.models.llm_gateway_capability import LLMGatewayCapability +from instana_client.models.llm_gateway_model import LLMGatewayModel +from instana_client.models.llm_gateway_service import LLMGatewayService from instana_client.models.latency_blueprint_indicator import LatencyBlueprintIndicator from instana_client.models.llm_model_price import LlmModelPrice from instana_client.models.llm_model_price_metadata import LlmModelPriceMetadata @@ -814,6 +286,7 @@ from instana_client.models.metrics_test_result_item import MetricsTestResultItem from instana_client.models.mobile_app import MobileApp from instana_client.models.mobile_app_alert_config import MobileAppAlertConfig +from instana_client.models.mobile_app_alert_config_with_rbac_tag import MobileAppAlertConfigWithRBACTag from instana_client.models.mobile_app_alert_rule import MobileAppAlertRule from instana_client.models.mobile_app_beacon_groups_item import MobileAppBeaconGroupsItem from instana_client.models.mobile_app_beacon_groups_result import MobileAppBeaconGroupsResult @@ -831,6 +304,7 @@ from instana_client.models.monitoring_state import MonitoringState from instana_client.models.multiple_scripts_configuration import MultipleScriptsConfiguration from instana_client.models.multiplication import Multiplication +from instana_client.models.ns1_integration import NS1Integration from instana_client.models.nested_operation import NestedOperation from instana_client.models.new_application_config import NewApplicationConfig from instana_client.models.new_business_perspective_config import NewBusinessPerspectiveConfig @@ -905,6 +379,8 @@ from instana_client.models.service_scoped_to import ServiceScopedTo from instana_client.models.service_scoped_to_with_metadata import ServiceScopedToWithMetadata from instana_client.models.service_simple import ServiceSimple +from instana_client.models.session_replay_metadata import SessionReplayMetadata +from instana_client.models.session_replay_timestamps import SessionReplayTimestamps from instana_client.models.session_settings import SessionSettings from instana_client.models.simple_metric_configuration import SimpleMetricConfiguration from instana_client.models.single_value import SingleValue @@ -943,6 +419,7 @@ from instana_client.models.subtraction import Subtraction from instana_client.models.synthetic_alert_config import SyntheticAlertConfig from instana_client.models.synthetic_alert_config_with_metadata import SyntheticAlertConfigWithMetadata +from instana_client.models.synthetic_alert_config_with_rbac_tag import SyntheticAlertConfigWithRBACTag from instana_client.models.synthetic_alert_rule import SyntheticAlertRule from instana_client.models.synthetic_bulk_response import SyntheticBulkResponse from instana_client.models.synthetic_call_config import SyntheticCallConfig @@ -981,7 +458,6 @@ from instana_client.models.tag import Tag from instana_client.models.tag_catalog import TagCatalog from instana_client.models.tag_filter import TagFilter -from instana_client.models.tag_filter_all_of_value import TagFilterAllOfValue from instana_client.models.tag_filter_expression import TagFilterExpression from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from instana_client.models.tag_matcher_dto import TagMatcherDTO @@ -1051,6 +527,7 @@ from instana_client.models.website import Website from instana_client.models.website_alert_config import WebsiteAlertConfig from instana_client.models.website_alert_config_with_metadata import WebsiteAlertConfigWithMetadata +from instana_client.models.website_alert_config_with_rbac_tag import WebsiteAlertConfigWithRBACTag from instana_client.models.website_alert_rule import WebsiteAlertRule from instana_client.models.website_apdex_entity import WebsiteApdexEntity from instana_client.models.website_beacon_groups_item import WebsiteBeaconGroupsItem @@ -1068,12 +545,7 @@ from instana_client.models.website_time_based_sli_entity import WebsiteTimeBasedSliEntity from instana_client.models.website_time_threshold import WebsiteTimeThreshold from instana_client.models.widget import Widget -from instana_client.models.with_metadata import WithMetadata +from instana_client.models.with_meta_data import WithMetaData from instana_client.models.with_resolved_name import WithResolvedName from instana_client.models.z_chat_ops_integration import ZChatOpsIntegration -""", - name=__name__, - doc=__doc__, - ) - ) diff --git a/instana_client/models/abstract_integration.py b/instana_client/models/abstract_integration.py index cd1675f..b993be5 100644 --- a/instana_client/models/abstract_integration.py +++ b/instana_client/models/abstract_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,6 +21,7 @@ from importlib import import_module from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Union +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -30,6 +31,7 @@ from instana_client.models.bidirectional_slack_app_integration import BidirectionalSlackAppIntegration from instana_client.models.email_integration import EmailIntegration from instana_client.models.google_chat_integration import GoogleChatIntegration + from instana_client.models.ns1_integration import NS1Integration from instana_client.models.office365_integration import Office365Integration from instana_client.models.opsgenie_integration import OpsgenieIntegration from instana_client.models.pagerduty_integration import PagerdutyIntegration @@ -49,7 +51,7 @@ class AbstractIntegration(BaseModel): """ AbstractIntegration """ # noqa: E501 - id: StrictStr = Field(description="Unique ID of the returned Alert Channel") + id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Unique ID of the returned Alert Channel") kind: StrictStr = Field(description="The type of the Alerting Channel.") name: StrictStr = Field(description="The name of the Alerting Channel.") __properties: ClassVar[List[str]] = ["id", "kind", "name"] @@ -66,7 +68,7 @@ class AbstractIntegration(BaseModel): # discriminator mappings __discriminator_value_class_map: ClassVar[Dict[str, str]] = { - 'BIDIRECTIONAL_MS_TEAMS': 'BidirectionalMsTeamsAppIntegration','BIDIRECTIONAL_SLACK': 'BidirectionalSlackAppIntegration','EMAIL': 'EmailIntegration','GOOGLE_CHAT': 'GoogleChatIntegration','OFFICE_365': 'Office365Integration','OPS_GENIE': 'OpsgenieIntegration','PAGER_DUTY': 'PagerdutyIntegration','PROMETHEUS_WEBHOOK': 'PrometheusWebhookIntegration','SALESFORCE': 'SalesforceIntegration','SERVICE_NOW_APPLICATION': 'ServiceNowEnhancedIntegration','SERVICE_NOW_WEBHOOK': 'ServiceNowIntegration','SLACK': 'SlackIntegration','SPLUNK': 'SplunkIntegration','VICTOR_OPS': 'VictorOpsIntegration','WATSON_AIOPS_WEBHOOK': 'WatsonAIOpsWebhookIntegration','WEBEX_TEAMS_WEBHOOK': 'WebexTeamsWebhookIntegration','WEB_HOOK': 'WebhookIntegration','Z_CHATOPS': 'ZChatOpsIntegration' + 'BIDIRECTIONAL_MS_TEAMS': 'BidirectionalMsTeamsAppIntegration','BIDIRECTIONAL_SLACK': 'BidirectionalSlackAppIntegration','EMAIL': 'EmailIntegration','GOOGLE_CHAT': 'GoogleChatIntegration','NS1': 'NS1Integration','OFFICE_365': 'Office365Integration','OPS_GENIE': 'OpsgenieIntegration','PAGER_DUTY': 'PagerdutyIntegration','PROMETHEUS_WEBHOOK': 'PrometheusWebhookIntegration','SALESFORCE': 'SalesforceIntegration','SERVICE_NOW_APPLICATION': 'ServiceNowEnhancedIntegration','SERVICE_NOW_WEBHOOK': 'ServiceNowIntegration','SLACK': 'SlackIntegration','SPLUNK': 'SplunkIntegration','VICTOR_OPS': 'VictorOpsIntegration','WATSON_AIOPS_WEBHOOK': 'WatsonAIOpsWebhookIntegration','WEBEX_TEAMS_WEBHOOK': 'WebexTeamsWebhookIntegration','WEB_HOOK': 'WebhookIntegration','Z_CHATOPS': 'ZChatOpsIntegration' } @classmethod @@ -88,7 +90,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Optional[Union[BidirectionalMsTeamsAppIntegration, BidirectionalSlackAppIntegration, EmailIntegration, GoogleChatIntegration, Office365Integration, OpsgenieIntegration, PagerdutyIntegration, PrometheusWebhookIntegration, SalesforceIntegration, ServiceNowEnhancedIntegration, ServiceNowIntegration, SlackIntegration, SplunkIntegration, VictorOpsIntegration, WatsonAIOpsWebhookIntegration, WebexTeamsWebhookIntegration, WebhookIntegration, ZChatOpsIntegration]]: + def from_json(cls, json_str: str) -> Optional[Union[BidirectionalMsTeamsAppIntegration, BidirectionalSlackAppIntegration, EmailIntegration, GoogleChatIntegration, NS1Integration, Office365Integration, OpsgenieIntegration, PagerdutyIntegration, PrometheusWebhookIntegration, SalesforceIntegration, ServiceNowEnhancedIntegration, ServiceNowIntegration, SlackIntegration, SplunkIntegration, VictorOpsIntegration, WatsonAIOpsWebhookIntegration, WebexTeamsWebhookIntegration, WebhookIntegration, ZChatOpsIntegration]]: """Create an instance of AbstractIntegration from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -113,7 +115,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Optional[Union[BidirectionalMsTeamsAppIntegration, BidirectionalSlackAppIntegration, EmailIntegration, GoogleChatIntegration, Office365Integration, OpsgenieIntegration, PagerdutyIntegration, PrometheusWebhookIntegration, SalesforceIntegration, ServiceNowEnhancedIntegration, ServiceNowIntegration, SlackIntegration, SplunkIntegration, VictorOpsIntegration, WatsonAIOpsWebhookIntegration, WebexTeamsWebhookIntegration, WebhookIntegration, ZChatOpsIntegration]]: + def from_dict(cls, obj: Dict[str, Any]) -> Optional[Union[BidirectionalMsTeamsAppIntegration, BidirectionalSlackAppIntegration, EmailIntegration, GoogleChatIntegration, NS1Integration, Office365Integration, OpsgenieIntegration, PagerdutyIntegration, PrometheusWebhookIntegration, SalesforceIntegration, ServiceNowEnhancedIntegration, ServiceNowIntegration, SlackIntegration, SplunkIntegration, VictorOpsIntegration, WatsonAIOpsWebhookIntegration, WebexTeamsWebhookIntegration, WebhookIntegration, ZChatOpsIntegration]]: """Create an instance of AbstractIntegration from a dict""" # look up the object type based on discriminator mapping object_type = cls.get_discriminator_value(obj) @@ -125,6 +127,8 @@ def from_dict(cls, obj: Dict[str, Any]) -> Optional[Union[BidirectionalMsTeamsAp return import_module("instana_client.models.email_integration").EmailIntegration.from_dict(obj) if object_type == 'GoogleChatIntegration': return import_module("instana_client.models.google_chat_integration").GoogleChatIntegration.from_dict(obj) + if object_type == 'NS1Integration': + return import_module("instana_client.models.ns1_integration").NS1Integration.from_dict(obj) if object_type == 'Office365Integration': return import_module("instana_client.models.office365_integration").Office365Integration.from_dict(obj) if object_type == 'OpsgenieIntegration': diff --git a/instana_client/models/abstract_rule.py b/instana_client/models/abstract_rule.py index 5e0e6ee..b2765aa 100644 --- a/instana_client/models/abstract_rule.py +++ b/instana_client/models/abstract_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/access_log_entry.py b/instana_client/models/access_log_entry.py index 0985325..c18bfff 100644 --- a/instana_client/models/access_log_entry.py +++ b/instana_client/models/access_log_entry.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -29,11 +29,11 @@ class AccessLogEntry(BaseModel): AccessLogEntry """ # noqa: E501 action: StrictStr - email: StrictStr - full_name: StrictStr = Field(alias="fullName") + email: Annotated[str, Field(min_length=1, strict=True)] + full_name: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="fullName") message: Optional[StrictStr] = None meta: Optional[Dict[str, Dict[str, Any]]] = None - tenant_id: StrictStr = Field(alias="tenantId") + tenant_id: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="tenantId") tenant_unit_id: Optional[StrictStr] = Field(default=None, alias="tenantUnitId") timestamp: Optional[Annotated[int, Field(strict=True, ge=1118583367265)]] = None __properties: ClassVar[List[str]] = ["action", "email", "fullName", "message", "meta", "tenantId", "tenantUnitId", "timestamp"] @@ -41,8 +41,8 @@ class AccessLogEntry(BaseModel): @field_validator('action') def action_validate_enum(cls, value): """Validates the enum""" - if value not in set(['GRANT_TEMP_ACCESS', 'FIRST_LOGIN', 'LOGIN', 'ACCESS', 'FAILED_LOGIN', 'LOGOUT', 'CREATE_API_TOKEN_BY_POLICY', 'IDP_MAPPING', 'DISABLE_IP_RESTRICTION']): - raise ValueError("must be one of enum values ('GRANT_TEMP_ACCESS', 'FIRST_LOGIN', 'LOGIN', 'ACCESS', 'FAILED_LOGIN', 'LOGOUT', 'CREATE_API_TOKEN_BY_POLICY', 'IDP_MAPPING', 'DISABLE_IP_RESTRICTION')") + if value not in set(['GRANT_TEMP_ACCESS', 'FIRST_LOGIN', 'LOGIN', 'ACCESS', 'FAILED_LOGIN', 'LOGOUT', 'CREATE_API_TOKEN_BY_POLICY', 'IDP_MAPPING', 'DISABLE_IP_FILTERING']): + raise ValueError("must be one of enum values ('GRANT_TEMP_ACCESS', 'FIRST_LOGIN', 'LOGIN', 'ACCESS', 'FAILED_LOGIN', 'LOGOUT', 'CREATE_API_TOKEN_BY_POLICY', 'IDP_MAPPING', 'DISABLE_IP_FILTERING')") return value model_config = ConfigDict( diff --git a/instana_client/models/access_log_response.py b/instana_client/models/access_log_response.py index 59f8f7a..37aa467 100644 --- a/instana_client/models/access_log_response.py +++ b/instana_client/models/access_log_response.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/access_rule.py b/instana_client/models/access_rule.py index 9bb0577..bbff4ff 100644 --- a/instana_client/models/access_rule.py +++ b/instana_client/models/access_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/action.py b/instana_client/models/action.py index 4ed83bc..b8cd6d8 100644 --- a/instana_client/models/action.py +++ b/instana_client/models/action.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -19,7 +19,7 @@ import json from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from instana_client.models.meta_data import MetaData @@ -40,7 +40,7 @@ class Action(BaseModel): metadata: Optional[MetaData] = None modified_at: datetime = Field(description="Action modified time.", alias="modifiedAt") name: Annotated[str, Field(min_length=1, strict=True, max_length=128)] = Field(description="Action name.") - tags: Optional[List[StrictStr]] = Field(default=None, description="List of tags added to the action.") + tags: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = Field(default=None, description="List of tags added to the action.") type: Annotated[str, Field(min_length=0, strict=True, max_length=128)] = Field(description="Action type can be one of the following values: SCRIPT, HTTP, ANSIBLE, EXTERNAL, GITHUB, GITLAB, JIRA, MANUAL, DOC_LINK") __properties: ClassVar[List[str]] = ["createdAt", "description", "fields", "id", "inputParameters", "metadata", "modifiedAt", "name", "tags", "type"] diff --git a/instana_client/models/action_configuration.py b/instana_client/models/action_configuration.py index 90a2d64..559769c 100644 --- a/instana_client/models/action_configuration.py +++ b/instana_client/models/action_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/action_instance.py b/instana_client/models/action_instance.py index da9eb89..a918731 100644 --- a/instana_client/models/action_instance.py +++ b/instana_client/models/action_instance.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from instana_client.models.action_instance_metadata_entry import ActionInstanceMetadataEntry from instana_client.models.action_instance_parameter import ActionInstanceParameter from typing import Optional, Set @@ -30,9 +31,9 @@ class ActionInstance(BaseModel): ActionInstance """ # noqa: E501 action_description: Optional[StrictStr] = Field(default=None, description="Action description of the action to run.", alias="actionDescription") - action_id: StrictStr = Field(description="Action identifier of the action to run.", alias="actionId") + action_id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Action identifier of the action to run.", alias="actionId") action_instance_id: Optional[StrictStr] = Field(default=None, description="Action run identifier.", alias="actionInstanceId") - action_name: StrictStr = Field(description="Action name of the action to run.", alias="actionName") + action_name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Action name of the action to run.", alias="actionName") action_snapshot: Optional[StrictStr] = Field(default=None, description="Snapshot of the action definition.", alias="actionSnapshot") actor_id: Optional[StrictStr] = Field(default=None, description="User identifier, API token or the policy identifier that started the action run.", alias="actorId") actor_name: Optional[StrictStr] = Field(default=None, description="Name of the user, API token or the policy that started the action run.", alias="actorName") diff --git a/instana_client/models/action_instance_metadata_entry.py b/instana_client/models/action_instance_metadata_entry.py index efcac12..09b90a3 100644 --- a/instana_client/models/action_instance_metadata_entry.py +++ b/instana_client/models/action_instance_metadata_entry.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -27,7 +28,7 @@ class ActionInstanceMetadataEntry(BaseModel): """ List of metadata parameters set to this action run by sensors. """ # noqa: E501 - name: StrictStr = Field(description="Metadata name.") + name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Metadata name.") value: Optional[StrictStr] = Field(default=None, description="Metadata value.") __properties: ClassVar[List[str]] = ["name", "value"] diff --git a/instana_client/models/action_instance_parameter.py b/instana_client/models/action_instance_parameter.py index f1398ab..d83d53a 100644 --- a/instana_client/models/action_instance_parameter.py +++ b/instana_client/models/action_instance_parameter.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -27,8 +28,8 @@ class ActionInstanceParameter(BaseModel): """ List of input parameters to this action run. """ # noqa: E501 - display_name: StrictStr = Field(description="Parameter display name.", alias="displayName") - name: StrictStr = Field(description="Parameter name.") + display_name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Parameter display name.", alias="displayName") + name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Parameter name.") type: Optional[StrictStr] = Field(default=None, description="Parameter type. Valid values are `static`, `dynamic` or `vault`") value: Optional[StrictStr] = Field(default=None, description="Parameter value.") __properties: ClassVar[List[str]] = ["displayName", "name", "type", "value"] diff --git a/instana_client/models/action_instance_request.py b/instana_client/models/action_instance_request.py index 5e7821c..87fc169 100644 --- a/instana_client/models/action_instance_request.py +++ b/instana_client/models/action_instance_request.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/action_instance_request_parameters.py b/instana_client/models/action_instance_request_parameters.py index 3a6a97c..16f5036 100644 --- a/instana_client/models/action_instance_request_parameters.py +++ b/instana_client/models/action_instance_request_parameters.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/action_match.py b/instana_client/models/action_match.py index 0e4fde0..1c0bbcc 100644 --- a/instana_client/models/action_match.py +++ b/instana_client/models/action_match.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -30,15 +30,18 @@ class ActionMatch(BaseModel): ActionMatch """ # noqa: E501 action: Optional[Action] = None - ai_engine: StrictStr = Field(alias="aiEngine") - confidence: StrictStr + ai_engine: Optional[StrictStr] = Field(default=None, alias="aiEngine") + confidence: Optional[StrictStr] = None policy: Optional[Policy] = None - score: Union[StrictFloat, StrictInt] + score: Optional[Union[StrictFloat, StrictInt]] = None __properties: ClassVar[List[str]] = ["action", "aiEngine", "confidence", "policy", "score"] @field_validator('ai_engine') def ai_engine_validate_enum(cls, value): """Validates the enum""" + if value is None: + return value + if value not in set(['POLICY', 'EVENT_SIMILARITY', 'NLP', 'SUCCESS_RATE', 'TURBONOMIC', 'WATSONX']): raise ValueError("must be one of enum values ('POLICY', 'EVENT_SIMILARITY', 'NLP', 'SUCCESS_RATE', 'TURBONOMIC', 'WATSONX')") return value diff --git a/instana_client/models/action_search_space.py b/instana_client/models/action_search_space.py index c4c370c..07cfe0f 100644 --- a/instana_client/models/action_search_space.py +++ b/instana_client/models/action_search_space.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -30,7 +31,7 @@ class ActionSearchSpace(BaseModel): description: Optional[StrictStr] = Field(default=None, description="The description of an incident or issue.") entity_type: Optional[StrictStr] = Field(default=None, description="The entity type associated with the incident or issue.", alias="entityType") event_id: Optional[StrictStr] = Field(default=None, description="The event identifier associated with the incident or issue.", alias="eventId") - name: StrictStr = Field(description="The name of an incident or issue.") + name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The name of an incident or issue.") __properties: ClassVar[List[str]] = ["description", "entityType", "eventId", "name"] model_config = ConfigDict( diff --git a/instana_client/models/adaptive_baseline.py b/instana_client/models/adaptive_baseline.py index 12962d5..cefee60 100644 --- a/instana_client/models/adaptive_baseline.py +++ b/instana_client/models/adaptive_baseline.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/adaptive_threshold_rule.py b/instana_client/models/adaptive_threshold_rule.py index ed605bd..4a1a612 100644 --- a/instana_client/models/adaptive_threshold_rule.py +++ b/instana_client/models/adaptive_threshold_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/addition.py b/instana_client/models/addition.py index 4dba35c..5ab11f1 100644 --- a/instana_client/models/addition.py +++ b/instana_client/models/addition.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/adjusted_timeframe.py b/instana_client/models/adjusted_timeframe.py index 7e7aac6..19b811e 100644 --- a/instana_client/models/adjusted_timeframe.py +++ b/instana_client/models/adjusted_timeframe.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/agent_configuration_update.py b/instana_client/models/agent_configuration_update.py index 7aeafed..709d9af 100644 --- a/instana_client/models/agent_configuration_update.py +++ b/instana_client/models/agent_configuration_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/alerting_configuration.py b/instana_client/models/alerting_configuration.py index 260d104..3a1dd64 100644 --- a/instana_client/models/alerting_configuration.py +++ b/instana_client/models/alerting_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,11 +18,11 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated +from instana_client.models.custom_payload_field import CustomPayloadField from instana_client.models.event_filtering_configuration import EventFilteringConfiguration -from instana_client.models.static_string_field import StaticStringField from typing import Optional, Set from typing_extensions import Self @@ -31,11 +31,11 @@ class AlertingConfiguration(BaseModel): AlertingConfiguration """ # noqa: E501 alert_name: Annotated[str, Field(min_length=0, strict=True, max_length=256)] = Field(description="Name of the Alert Configuration.", alias="alertName") - custom_payload_fields: Annotated[List[StaticStringField], Field(min_length=0, max_length=20)] = Field(description="Custom payload fields to send additional information in the alert notifications. Can be left empty.", alias="customPayloadFields") + custom_payload_fields: Annotated[List[CustomPayloadField], Field(min_length=0, max_length=20)] = Field(description="Custom payload fields to send additional information in the alert notifications. Supports both static and dynamic fields. Can be left empty.", alias="customPayloadFields") event_filtering_configuration: EventFilteringConfiguration = Field(alias="eventFilteringConfiguration") id: Annotated[str, Field(min_length=0, strict=True, max_length=64)] = Field(description="ID of the Alert Configuration.") include_entity_name_in_legacy_alerts: Optional[StrictBool] = Field(default=None, description="To include the entity name in a legacy alert based on built-in/custom events.", alias="includeEntityNameInLegacyAlerts") - integration_ids: Annotated[List[StrictStr], Field(min_length=0, max_length=1024)] = Field(description="List of Alert Channel IDs added in this Alert Configuration.", alias="integrationIds") + integration_ids: Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)] = Field(description="List of Alert Channel IDs added in this Alert Configuration.", alias="integrationIds") mute_until: Optional[StrictInt] = Field(default=None, description="Timer dictating how long the Alert Configuration will stay muted. A value of `0` means the Alert Configuration is currently enabled. Otherwise, the Alert Configuration is currently disabled (muted).", alias="muteUntil") __properties: ClassVar[List[str]] = ["alertName", "customPayloadFields", "eventFilteringConfiguration", "id", "includeEntityNameInLegacyAlerts", "integrationIds", "muteUntil"] @@ -101,7 +101,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "alertName": obj.get("alertName"), - "customPayloadFields": [StaticStringField.from_dict(_item) for _item in obj["customPayloadFields"]] if obj.get("customPayloadFields") is not None else None, + "customPayloadFields": [CustomPayloadField.from_dict(_item) for _item in obj["customPayloadFields"]] if obj.get("customPayloadFields") is not None else None, "eventFilteringConfiguration": EventFilteringConfiguration.from_dict(obj["eventFilteringConfiguration"]) if obj.get("eventFilteringConfiguration") is not None else None, "id": obj.get("id"), "includeEntityNameInLegacyAlerts": obj.get("includeEntityNameInLegacyAlerts"), diff --git a/instana_client/models/alerting_configuration_with_last_updated.py b/instana_client/models/alerting_configuration_with_last_updated.py index 638d12b..d7738ca 100644 --- a/instana_client/models/alerting_configuration_with_last_updated.py +++ b/instana_client/models/alerting_configuration_with_last_updated.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,11 +18,11 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated +from instana_client.models.custom_payload_field import CustomPayloadField from instana_client.models.event_filtering_configuration import EventFilteringConfiguration -from instana_client.models.static_string_field import StaticStringField from typing import Optional, Set from typing_extensions import Self @@ -31,11 +31,11 @@ class AlertingConfigurationWithLastUpdated(BaseModel): AlertingConfigurationWithLastUpdated """ # noqa: E501 alert_name: Annotated[str, Field(min_length=0, strict=True, max_length=256)] = Field(description="Name of the Alert Configuration.", alias="alertName") - custom_payload_fields: Annotated[List[StaticStringField], Field(min_length=0, max_length=20)] = Field(description="Custom payload fields to send additional information in the alert notifications. Can be left empty.", alias="customPayloadFields") + custom_payload_fields: Annotated[List[CustomPayloadField], Field(min_length=0, max_length=20)] = Field(description="Custom payload fields to send additional information in the alert notifications. Supports both static and dynamic fields. Can be left empty.", alias="customPayloadFields") event_filtering_configuration: EventFilteringConfiguration = Field(alias="eventFilteringConfiguration") id: Annotated[str, Field(min_length=0, strict=True, max_length=64)] = Field(description="ID of the Alert Configuration.") include_entity_name_in_legacy_alerts: Optional[StrictBool] = Field(default=None, description="To include the entity name in a legacy alert based on built-in/custom events.", alias="includeEntityNameInLegacyAlerts") - integration_ids: Annotated[List[StrictStr], Field(min_length=0, max_length=1024)] = Field(description="List of Alert Channel IDs added in this Alert Configuration.", alias="integrationIds") + integration_ids: Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)] = Field(description="List of Alert Channel IDs added in this Alert Configuration.", alias="integrationIds") last_updated: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Unix timestamp representing the time the configuration was last updated.", alias="lastUpdated") mute_until: Optional[StrictInt] = Field(default=None, description="Timer dictating how long the Alert Configuration will stay muted. A value of `0` means the Alert Configuration is currently enabled. Otherwise, the Alert Configuration is currently disabled (muted).", alias="muteUntil") __properties: ClassVar[List[str]] = ["alertName", "customPayloadFields", "eventFilteringConfiguration", "id", "includeEntityNameInLegacyAlerts", "integrationIds", "lastUpdated", "muteUntil"] @@ -102,7 +102,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "alertName": obj.get("alertName"), - "customPayloadFields": [StaticStringField.from_dict(_item) for _item in obj["customPayloadFields"]] if obj.get("customPayloadFields") is not None else None, + "customPayloadFields": [CustomPayloadField.from_dict(_item) for _item in obj["customPayloadFields"]] if obj.get("customPayloadFields") is not None else None, "eventFilteringConfiguration": EventFilteringConfiguration.from_dict(obj["eventFilteringConfiguration"]) if obj.get("eventFilteringConfiguration") is not None else None, "id": obj.get("id"), "includeEntityNameInLegacyAlerts": obj.get("includeEntityNameInLegacyAlerts"), diff --git a/instana_client/models/alerting_time_window.py b/instana_client/models/alerting_time_window.py index 4baf35e..1f901d9 100644 --- a/instana_client/models/alerting_time_window.py +++ b/instana_client/models/alerting_time_window.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/apdex_configuration.py b/instana_client/models/apdex_configuration.py index 42d12d1..3a3b7b1 100644 --- a/instana_client/models/apdex_configuration.py +++ b/instana_client/models/apdex_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/apdex_configuration_input.py b/instana_client/models/apdex_configuration_input.py index dc24076..c8266bd 100644 --- a/instana_client/models/apdex_configuration_input.py +++ b/instana_client/models/apdex_configuration_input.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/apdex_entity.py b/instana_client/models/apdex_entity.py index 5757e93..5387e0a 100644 --- a/instana_client/models/apdex_entity.py +++ b/instana_client/models/apdex_entity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -36,7 +36,7 @@ class ApdexEntity(BaseModel): Entity which holds the information of Apdex Configuration """ # noqa: E501 apdex_type: StrictStr = Field(alias="apdexType") - entity_id: StrictStr = Field(alias="entityId") + entity_id: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="entityId") tag_filter_expression: TagFilterExpressionElement = Field(alias="tagFilterExpression") threshold: Optional[Annotated[int, Field(strict=True, ge=1)]] = None __properties: ClassVar[List[str]] = ["apdexType", "entityId", "tagFilterExpression", "threshold"] diff --git a/instana_client/models/apdex_report.py b/instana_client/models/apdex_report.py index 6684a47..02a4aee 100644 --- a/instana_client/models/apdex_report.py +++ b/instana_client/models/apdex_report.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/api_create_group.py b/instana_client/models/api_create_group.py index 8594f91..7c9f171 100644 --- a/instana_client/models/api_create_group.py +++ b/instana_client/models/api_create_group.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated from instana_client.models.api_member import ApiMember from instana_client.models.api_permission_set import ApiPermissionSet from typing import Optional, Set @@ -30,7 +31,7 @@ class ApiCreateGroup(BaseModel): ApiCreateGroup """ # noqa: E501 members: List[ApiMember] - name: StrictStr + name: Annotated[str, Field(min_length=1, strict=True)] permission_set: ApiPermissionSet = Field(alias="permissionSet") __properties: ClassVar[List[str]] = ["members", "name", "permissionSet"] diff --git a/instana_client/models/api_create_role.py b/instana_client/models/api_create_role.py index 9637c2a..1bb9d9c 100644 --- a/instana_client/models/api_create_role.py +++ b/instana_client/models/api_create_role.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from instana_client.models.api_member import ApiMember @@ -30,8 +30,8 @@ class ApiCreateRole(BaseModel): ApiCreateRole """ # noqa: E501 members: Optional[List[ApiMember]] = None - name: StrictStr - permissions: Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=1024)]] = None + name: Annotated[str, Field(min_length=1, strict=True)] + permissions: Optional[Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)]] = None __properties: ClassVar[List[str]] = ["members", "name", "permissions"] model_config = ConfigDict( diff --git a/instana_client/models/api_group.py b/instana_client/models/api_group.py index c84d907..bcd21e5 100644 --- a/instana_client/models/api_group.py +++ b/instana_client/models/api_group.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated from instana_client.models.api_member import ApiMember @@ -32,7 +32,7 @@ class ApiGroup(BaseModel): """ # noqa: E501 id: Annotated[str, Field(min_length=0, strict=True, max_length=64)] members: List[ApiMember] - name: StrictStr + name: Annotated[str, Field(min_length=1, strict=True)] permission_set: ApiPermissionSet = Field(alias="permissionSet") __properties: ClassVar[List[str]] = ["id", "members", "name", "permissionSet"] diff --git a/instana_client/models/api_member.py b/instana_client/models/api_member.py index 3db6533..372db33 100644 --- a/instana_client/models/api_member.py +++ b/instana_client/models/api_member.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/api_permission_set.py b/instana_client/models/api_permission_set.py index 05a65a7..0808153 100644 --- a/instana_client/models/api_permission_set.py +++ b/instana_client/models/api_permission_set.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from instana_client.models.api_restricted_application_filter import ApiRestrictedApplicationFilter @@ -37,7 +37,7 @@ class ApiPermissionSet(BaseModel): kubernetes_cluster_uuids: Annotated[List[ScopeBinding], Field(min_length=0, max_length=1024)] = Field(alias="kubernetesClusterUUIDs") kubernetes_namespace_uids: Annotated[List[ScopeBinding], Field(min_length=0, max_length=1024)] = Field(alias="kubernetesNamespaceUIDs") mobile_app_ids: Annotated[List[ScopeBinding], Field(min_length=0, max_length=1024)] = Field(alias="mobileAppIds") - permissions: Annotated[List[StrictStr], Field(min_length=0, max_length=1024)] + permissions: Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)] restricted_application_filter: Optional[ApiRestrictedApplicationFilter] = Field(default=None, alias="restrictedApplicationFilter") slo_ids: Annotated[List[ScopeBinding], Field(min_length=0, max_length=1024)] = Field(alias="sloIds") synthetic_credential_keys: Annotated[List[ScopeBinding], Field(min_length=0, max_length=1024)] = Field(alias="syntheticCredentialKeys") diff --git a/instana_client/models/api_restricted_application_filter.py b/instana_client/models/api_restricted_application_filter.py index c4fb252..7be9c43 100644 --- a/instana_client/models/api_restricted_application_filter.py +++ b/instana_client/models/api_restricted_application_filter.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self @@ -28,18 +29,15 @@ class ApiRestrictedApplicationFilter(BaseModel): """ ApiRestrictedApplicationFilter """ # noqa: E501 - label: Optional[StrictStr] = None + label: Annotated[str, Field(min_length=1, strict=True, max_length=128)] restricting_application_id: Optional[StrictStr] = Field(default=None, alias="restrictingApplicationId") - scope: Optional[StrictStr] = None + scope: StrictStr tag_filter_expression: Optional[TagFilterExpressionElement] = Field(default=None, alias="tagFilterExpression") __properties: ClassVar[List[str]] = ["label", "restrictingApplicationId", "scope", "tagFilterExpression"] @field_validator('scope') def scope_validate_enum(cls, value): """Validates the enum""" - if value is None: - return value - if value not in set(['INCLUDE_NO_DOWNSTREAM', 'INCLUDE_IMMEDIATE_DOWNSTREAM_DATABASE_AND_MESSAGING', 'INCLUDE_ALL_DOWNSTREAM']): raise ValueError("must be one of enum values ('INCLUDE_NO_DOWNSTREAM', 'INCLUDE_IMMEDIATE_DOWNSTREAM_DATABASE_AND_MESSAGING', 'INCLUDE_ALL_DOWNSTREAM')") return value diff --git a/instana_client/models/api_role.py b/instana_client/models/api_role.py index aa7631c..79e85a9 100644 --- a/instana_client/models/api_role.py +++ b/instana_client/models/api_role.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated from instana_client.models.api_member import ApiMember from typing import Optional, Set from typing_extensions import Self @@ -30,7 +31,7 @@ class ApiRole(BaseModel): """ # noqa: E501 id: StrictStr members: List[ApiMember] - name: StrictStr + name: Annotated[str, Field(min_length=1, strict=True)] permissions: List[StrictStr] __properties: ClassVar[List[str]] = ["id", "members", "name", "permissions"] diff --git a/instana_client/models/api_tag.py b/instana_client/models/api_tag.py index 4828b8e..519ae2e 100644 --- a/instana_client/models/api_tag.py +++ b/instana_client/models/api_tag.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/api_team.py b/instana_client/models/api_team.py index 30e1662..e0e84f3 100644 --- a/instana_client/models/api_team.py +++ b/instana_client/models/api_team.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/api_team_info.py b/instana_client/models/api_team_info.py index de34490..90b0161 100644 --- a/instana_client/models/api_team_info.py +++ b/instana_client/models/api_team_info.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/api_team_member.py b/instana_client/models/api_team_member.py index 65f1451..e4270ba 100644 --- a/instana_client/models/api_team_member.py +++ b/instana_client/models/api_team_member.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/api_team_role.py b/instana_client/models/api_team_role.py index bdca343..a0d39a4 100644 --- a/instana_client/models/api_team_role.py +++ b/instana_client/models/api_team_role.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/api_team_scope.py b/instana_client/models/api_team_scope.py index d98e686..923a028 100644 --- a/instana_client/models/api_team_scope.py +++ b/instana_client/models/api_team_scope.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/api_token.py b/instana_client/models/api_token.py index ba202dd..09731d8 100644 --- a/instana_client/models/api_token.py +++ b/instana_client/models/api_token.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -27,7 +28,7 @@ class ApiToken(BaseModel): """ ApiToken """ # noqa: E501 - access_granting_token: StrictStr = Field(alias="accessGrantingToken") + access_granting_token: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="accessGrantingToken") can_configure_agent_run_mode: Optional[StrictBool] = Field(default=None, alias="canConfigureAgentRunMode") can_configure_agents: Optional[StrictBool] = Field(default=None, alias="canConfigureAgents") can_configure_ai_agents: Optional[StrictBool] = Field(default=None, alias="canConfigureAiAgents") @@ -48,14 +49,17 @@ class ApiToken(BaseModel): can_configure_global_infra_smart_alerts: Optional[StrictBool] = Field(default=None, alias="canConfigureGlobalInfraSmartAlerts") can_configure_global_log_smart_alerts: Optional[StrictBool] = Field(default=None, alias="canConfigureGlobalLogSmartAlerts") can_configure_global_synthetic_smart_alerts: Optional[StrictBool] = Field(default=None, alias="canConfigureGlobalSyntheticSmartAlerts") + can_configure_ip_filtering: Optional[StrictBool] = Field(default=None, alias="canConfigureIPFiltering") can_configure_integrations: Optional[StrictBool] = Field(default=None, alias="canConfigureIntegrations") can_configure_llm: Optional[StrictBool] = Field(default=None, alias="canConfigureLLM") + can_configure_llm_model_price: Optional[StrictBool] = Field(default=None, alias="canConfigureLLMModelPrice") can_configure_log_management: Optional[StrictBool] = Field(default=None, alias="canConfigureLogManagement") can_configure_log_retention_period: Optional[StrictBool] = Field(default=None, alias="canConfigureLogRetentionPeriod") can_configure_maintenance_windows: Optional[StrictBool] = Field(default=None, alias="canConfigureMaintenanceWindows") can_configure_mobile_app_monitoring: Optional[StrictBool] = Field(default=None, alias="canConfigureMobileAppMonitoring") can_configure_mobile_app_smart_alerts: Optional[StrictBool] = Field(default=None, alias="canConfigureMobileAppSmartAlerts") can_configure_personal_api_tokens: Optional[StrictBool] = Field(default=None, alias="canConfigurePersonalApiTokens") + can_configure_personally_identifiable_information_masking: Optional[StrictBool] = Field(default=None, alias="canConfigurePersonallyIdentifiableInformationMasking") can_configure_releases: Optional[StrictBool] = Field(default=None, alias="canConfigureReleases") can_configure_service_level_correction_windows: Optional[StrictBool] = Field(default=None, alias="canConfigureServiceLevelCorrectionWindows") can_configure_service_level_smart_alerts: Optional[StrictBool] = Field(default=None, alias="canConfigureServiceLevelSmartAlerts") @@ -97,7 +101,7 @@ class ApiToken(BaseModel): created_on: Optional[StrictInt] = Field(default=None, alias="createdOn") expires_on: Optional[StrictInt] = Field(default=None, alias="expiresOn") id: Optional[StrictStr] = None - internal_id: StrictStr = Field(alias="internalId") + internal_id: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="internalId") last_used_on: Optional[StrictInt] = Field(default=None, alias="lastUsedOn") limited_ai_gateway_scope: Optional[StrictBool] = Field(default=None, alias="limitedAiGatewayScope") limited_alert_channels_scope: Optional[StrictBool] = Field(default=None, alias="limitedAlertChannelsScope") @@ -123,8 +127,8 @@ class ApiToken(BaseModel): limited_windows_hypervisor_scope: Optional[StrictBool] = Field(default=None, alias="limitedWindowsHypervisorScope") limited_xen_server_scope: Optional[StrictBool] = Field(default=None, alias="limitedXenServerScope") limited_zhmc_scope: Optional[StrictBool] = Field(default=None, alias="limitedZhmcScope") - name: StrictStr - __properties: ClassVar[List[str]] = ["accessGrantingToken", "canConfigureAgentRunMode", "canConfigureAgents", "canConfigureAiAgents", "canConfigureApdex", "canConfigureApiTokens", "canConfigureApplicationSmartAlerts", "canConfigureApplications", "canConfigureAuthenticationMethods", "canConfigureAutomationActions", "canConfigureAutomationPolicies", "canConfigureBizops", "canConfigureCustomEntities", "canConfigureDatabaseManagement", "canConfigureEumApplications", "canConfigureEventsAndAlerts", "canConfigureGlobalAlertPayload", "canConfigureGlobalApplicationSmartAlerts", "canConfigureGlobalInfraSmartAlerts", "canConfigureGlobalLogSmartAlerts", "canConfigureGlobalSyntheticSmartAlerts", "canConfigureIntegrations", "canConfigureLLM", "canConfigureLogManagement", "canConfigureLogRetentionPeriod", "canConfigureMaintenanceWindows", "canConfigureMobileAppMonitoring", "canConfigureMobileAppSmartAlerts", "canConfigurePersonalApiTokens", "canConfigureReleases", "canConfigureServiceLevelCorrectionWindows", "canConfigureServiceLevelSmartAlerts", "canConfigureServiceLevels", "canConfigureServiceMapping", "canConfigureSessionSettings", "canConfigureSubtraces", "canConfigureSyntheticCredentials", "canConfigureSyntheticLocations", "canConfigureSyntheticTests", "canConfigureTeams", "canConfigureUsers", "canConfigureWebsiteConversions", "canConfigureWebsiteSmartAlerts", "canCreateHeapDump", "canCreatePublicCustomDashboards", "canCreateThreadDump", "canDeleteAutomationActionHistory", "canDeleteLogs", "canEditAllAccessibleCustomDashboards", "canInstallNewAgents", "canInvokeAlertChannel", "canManuallyCloseIssue", "canRunAutomationActions", "canUseSyntheticCredentials", "canViewAccountAndBillingInformation", "canViewAuditLog", "canViewBizAlerts", "canViewBusinessActivities", "canViewBusinessProcessDetails", "canViewBusinessProcesses", "canViewLogVolume", "canViewLogs", "canViewSyntheticLocations", "canViewSyntheticTestResults", "canViewSyntheticTests", "canViewTraceDetails", "createdBy", "createdOn", "expiresOn", "id", "internalId", "lastUsedOn", "limitedAiGatewayScope", "limitedAlertChannelsScope", "limitedApplicationsScope", "limitedAutomationScope", "limitedBizOpsScope", "limitedGenAIScope", "limitedInfrastructureScope", "limitedKubernetesScope", "limitedLinuxKVMHypervisorScope", "limitedLogsScope", "limitedMobileAppsScope", "limitedNutanixScope", "limitedOpenstackScope", "limitedPcfScope", "limitedPhmcScope", "limitedPvcScope", "limitedSAPScope", "limitedServiceLevelScope", "limitedSyntheticsScope", "limitedVsphereScope", "limitedWebsitesScope", "limitedWindowsHypervisorScope", "limitedXenServerScope", "limitedZhmcScope", "name"] + name: Annotated[str, Field(min_length=1, strict=True)] + __properties: ClassVar[List[str]] = ["accessGrantingToken", "canConfigureAgentRunMode", "canConfigureAgents", "canConfigureAiAgents", "canConfigureApdex", "canConfigureApiTokens", "canConfigureApplicationSmartAlerts", "canConfigureApplications", "canConfigureAuthenticationMethods", "canConfigureAutomationActions", "canConfigureAutomationPolicies", "canConfigureBizops", "canConfigureCustomEntities", "canConfigureDatabaseManagement", "canConfigureEumApplications", "canConfigureEventsAndAlerts", "canConfigureGlobalAlertPayload", "canConfigureGlobalApplicationSmartAlerts", "canConfigureGlobalInfraSmartAlerts", "canConfigureGlobalLogSmartAlerts", "canConfigureGlobalSyntheticSmartAlerts", "canConfigureIPFiltering", "canConfigureIntegrations", "canConfigureLLM", "canConfigureLLMModelPrice", "canConfigureLogManagement", "canConfigureLogRetentionPeriod", "canConfigureMaintenanceWindows", "canConfigureMobileAppMonitoring", "canConfigureMobileAppSmartAlerts", "canConfigurePersonalApiTokens", "canConfigurePersonallyIdentifiableInformationMasking", "canConfigureReleases", "canConfigureServiceLevelCorrectionWindows", "canConfigureServiceLevelSmartAlerts", "canConfigureServiceLevels", "canConfigureServiceMapping", "canConfigureSessionSettings", "canConfigureSubtraces", "canConfigureSyntheticCredentials", "canConfigureSyntheticLocations", "canConfigureSyntheticTests", "canConfigureTeams", "canConfigureUsers", "canConfigureWebsiteConversions", "canConfigureWebsiteSmartAlerts", "canCreateHeapDump", "canCreatePublicCustomDashboards", "canCreateThreadDump", "canDeleteAutomationActionHistory", "canDeleteLogs", "canEditAllAccessibleCustomDashboards", "canInstallNewAgents", "canInvokeAlertChannel", "canManuallyCloseIssue", "canRunAutomationActions", "canUseSyntheticCredentials", "canViewAccountAndBillingInformation", "canViewAuditLog", "canViewBizAlerts", "canViewBusinessActivities", "canViewBusinessProcessDetails", "canViewBusinessProcesses", "canViewLogVolume", "canViewLogs", "canViewSyntheticLocations", "canViewSyntheticTestResults", "canViewSyntheticTests", "canViewTraceDetails", "createdBy", "createdOn", "expiresOn", "id", "internalId", "lastUsedOn", "limitedAiGatewayScope", "limitedAlertChannelsScope", "limitedApplicationsScope", "limitedAutomationScope", "limitedBizOpsScope", "limitedGenAIScope", "limitedInfrastructureScope", "limitedKubernetesScope", "limitedLinuxKVMHypervisorScope", "limitedLogsScope", "limitedMobileAppsScope", "limitedNutanixScope", "limitedOpenstackScope", "limitedPcfScope", "limitedPhmcScope", "limitedPvcScope", "limitedSAPScope", "limitedServiceLevelScope", "limitedSyntheticsScope", "limitedVsphereScope", "limitedWebsitesScope", "limitedWindowsHypervisorScope", "limitedXenServerScope", "limitedZhmcScope", "name"] model_config = ConfigDict( populate_by_name=True, @@ -198,14 +202,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "canConfigureGlobalInfraSmartAlerts": obj.get("canConfigureGlobalInfraSmartAlerts"), "canConfigureGlobalLogSmartAlerts": obj.get("canConfigureGlobalLogSmartAlerts"), "canConfigureGlobalSyntheticSmartAlerts": obj.get("canConfigureGlobalSyntheticSmartAlerts"), + "canConfigureIPFiltering": obj.get("canConfigureIPFiltering"), "canConfigureIntegrations": obj.get("canConfigureIntegrations"), "canConfigureLLM": obj.get("canConfigureLLM"), + "canConfigureLLMModelPrice": obj.get("canConfigureLLMModelPrice"), "canConfigureLogManagement": obj.get("canConfigureLogManagement"), "canConfigureLogRetentionPeriod": obj.get("canConfigureLogRetentionPeriod"), "canConfigureMaintenanceWindows": obj.get("canConfigureMaintenanceWindows"), "canConfigureMobileAppMonitoring": obj.get("canConfigureMobileAppMonitoring"), "canConfigureMobileAppSmartAlerts": obj.get("canConfigureMobileAppSmartAlerts"), "canConfigurePersonalApiTokens": obj.get("canConfigurePersonalApiTokens"), + "canConfigurePersonallyIdentifiableInformationMasking": obj.get("canConfigurePersonallyIdentifiableInformationMasking"), "canConfigureReleases": obj.get("canConfigureReleases"), "canConfigureServiceLevelCorrectionWindows": obj.get("canConfigureServiceLevelCorrectionWindows"), "canConfigureServiceLevelSmartAlerts": obj.get("canConfigureServiceLevelSmartAlerts"), diff --git a/instana_client/models/app_data_metric_configuration.py b/instana_client/models/app_data_metric_configuration.py index c0d0878..8bb7f95 100644 --- a/instana_client/models/app_data_metric_configuration.py +++ b/instana_client/models/app_data_metric_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self @@ -30,7 +31,7 @@ class AppDataMetricConfiguration(BaseModel): """ # noqa: E501 aggregation: StrictStr = Field(description="Set aggregation that can be applied to a series of values. Eg: `MEAN`.") granularity: Optional[StrictInt] = Field(default=None, description="If the granularity is set you will get data points with the specified granularity in seconds. Default: `1000` milliseconds") - metric: StrictStr = Field(description="Set a particular metric, eg: `latency`.") + metric: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Set a particular metric, eg: `latency`.") numerator_tag_filter_expression: Optional[TagFilterExpressionElement] = Field(default=None, alias="numeratorTagFilterExpression") __properties: ClassVar[List[str]] = ["aggregation", "granularity", "metric", "numeratorTagFilterExpression"] diff --git a/instana_client/models/application.py b/instana_client/models/application.py index a8420ae..9b95cc6 100644 --- a/instana_client/models/application.py +++ b/instana_client/models/application.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -27,10 +28,10 @@ class Application(BaseModel): """ Returns a list of Application Perspectives. """ # noqa: E501 - boundary_scope: StrictStr = Field(description="Here, `ALL` Application Boundary Scope is considered.", alias="boundaryScope") + boundary_scope: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Here, `ALL` Application Boundary Scope is considered.", alias="boundaryScope") entity_type: Optional[StrictStr] = Field(default=None, description="Since, this is an Application Perspective, it will be of type `APPLICATION`.", alias="entityType") - id: StrictStr = Field(description="Unique ID of the Application Perspective. Eg: `Av62RoIKQv-A3n6DbMQh9g`.") - label: StrictStr = Field(description="Name of the Application Perspective. Eg: `app1`.") + id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Unique ID of the Application Perspective. Eg: `Av62RoIKQv-A3n6DbMQh9g`.") + label: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Name of the Application Perspective. Eg: `app1`.") __properties: ClassVar[List[str]] = ["boundaryScope", "entityType", "id", "label"] @field_validator('entity_type') diff --git a/instana_client/models/application_alert_config.py b/instana_client/models/application_alert_config.py index 15cf1f1..d10122e 100644 --- a/instana_client/models/application_alert_config.py +++ b/instana_client/models/application_alert_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -36,13 +36,14 @@ class ApplicationAlertConfig(BaseModel): """ ApplicationAlertConfig """ # noqa: E501 - alert_channel_ids: Annotated[List[StrictStr], Field(min_length=0, max_length=1024)] = Field(description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") + alert_channel_ids: Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)] = Field(description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") alert_channels: Optional[Dict[str, List[StrictStr]]] = Field(default=None, description="Set of alert channel IDs associated with the severity.", alias="alertChannels") application_id: Optional[StrictStr] = Field(default=None, alias="applicationId") applications: Dict[str, ApplicationNode] = Field(description="Selection of applications, services, and endpoints that this Smart Alert configuration is associated with. This selection is connected to the defined `tagFilterExpression` by the logical `AND` operator.") boundary_scope: StrictStr = Field(description="Determines the source of the application alert configuration. An `INBOUND` scope refers to consumer-made calls. An `ALL` scope refers to both consumer and internally made calls.", alias="boundaryScope") custom_payload_fields: Annotated[List[CustomPayloadField], Field(min_length=0, max_length=20)] = Field(description="Custom payload fields to send additional information in the alert notifications. Can be left empty.", alias="customPayloadFields") description: Annotated[str, Field(min_length=0, strict=True, max_length=65536)] = Field(description="Description of the application alert configuration. Used as a template for the description of alert/event notifications triggered by this Smart Alert configuration.") + enabled: Optional[StrictBool] = Field(default=None, description="Flag to indicate whether or not the configuration is enabled.") evaluation_type: StrictStr = Field(description="Determines whether calls of the aggregated metrics are grouped by the application, the service, or the endpoint. This also determines whether the resulting events are categorized as an issue on the respective entity of that group.", alias="evaluationType") grace_period: Optional[StrictInt] = Field(default=None, description="The duration for which an alert remains open after conditions are no longer violated, with the alert auto-closing once the grace period expires.", alias="gracePeriod") granularity: StrictInt = Field(description="The evaluation granularity used for detection of violations of the defined threshold. Defines the size of the tumbling window used.") @@ -57,7 +58,7 @@ class ApplicationAlertConfig(BaseModel): threshold: Optional[Threshold] = None time_threshold: ApplicationTimeThreshold = Field(alias="timeThreshold") triggering: Optional[StrictBool] = Field(default=None, description="Optional flag to indicate whether an Incident is also triggered or not.") - __properties: ClassVar[List[str]] = ["alertChannelIds", "alertChannels", "applicationId", "applications", "boundaryScope", "customPayloadFields", "description", "evaluationType", "gracePeriod", "granularity", "includeInternal", "includeSynthetic", "name", "rule", "rules", "severity", "tagFilterExpression", "tagFilters", "threshold", "timeThreshold", "triggering"] + __properties: ClassVar[List[str]] = ["alertChannelIds", "alertChannels", "applicationId", "applications", "boundaryScope", "customPayloadFields", "description", "enabled", "evaluationType", "gracePeriod", "granularity", "includeInternal", "includeSynthetic", "name", "rule", "rules", "severity", "tagFilterExpression", "tagFilters", "threshold", "timeThreshold", "triggering"] @field_validator('boundary_scope') def boundary_scope_validate_enum(cls, value): @@ -183,6 +184,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "boundaryScope": obj.get("boundaryScope"), "customPayloadFields": [CustomPayloadField.from_dict(_item) for _item in obj["customPayloadFields"]] if obj.get("customPayloadFields") is not None else None, "description": obj.get("description"), + "enabled": obj.get("enabled"), "evaluationType": obj.get("evaluationType"), "gracePeriod": obj.get("gracePeriod"), "granularity": obj.get("granularity") if obj.get("granularity") is not None else 600000, diff --git a/instana_client/models/application_alert_config_with_metadata.py b/instana_client/models/application_alert_config_with_metadata.py index 2cf7896..ce30c29 100644 --- a/instana_client/models/application_alert_config_with_metadata.py +++ b/instana_client/models/application_alert_config_with_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -36,7 +36,7 @@ class ApplicationAlertConfigWithMetadata(BaseModel): """ ApplicationAlertConfigWithMetadata """ # noqa: E501 - alert_channel_ids: Annotated[List[StrictStr], Field(min_length=0, max_length=1024)] = Field(description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") + alert_channel_ids: Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)] = Field(description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") alert_channels: Optional[Dict[str, List[StrictStr]]] = Field(default=None, description="Set of alert channel IDs associated with the severity.", alias="alertChannels") application_id: Optional[Annotated[str, Field(min_length=0, strict=True, max_length=64)]] = Field(default=None, description="ID of the application that this Smart Alert configuration is applied to.", alias="applicationId") applications: Dict[str, ApplicationNode] = Field(description="Selection of applications, services, and endpoints that this Smart Alert configuration is associated with. This selection is connected to the defined `tagFilterExpression` by the logical `AND` operator.") diff --git a/instana_client/models/application_alert_rule.py b/instana_client/models/application_alert_rule.py index a97d2cc..59453de 100644 --- a/instana_client/models/application_alert_rule.py +++ b/instana_client/models/application_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,6 +21,7 @@ from importlib import import_module from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -39,7 +40,7 @@ class ApplicationAlertRule(BaseModel): """ # noqa: E501 aggregation: Optional[StrictStr] = None alert_type: StrictStr = Field(alias="alertType") - metric_name: StrictStr = Field(alias="metricName") + metric_name: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="metricName") __properties: ClassVar[List[str]] = ["aggregation", "alertType", "metricName"] @field_validator('aggregation') diff --git a/instana_client/models/application_apdex_entity.py b/instana_client/models/application_apdex_entity.py index 40f2e81..101cf20 100644 --- a/instana_client/models/application_apdex_entity.py +++ b/instana_client/models/application_apdex_entity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -31,7 +31,7 @@ class ApplicationApdexEntity(ApdexEntity): ApplicationApdexEntity """ # noqa: E501 boundary_scope: StrictStr = Field(description="Application Boundary Scope, it could be ALL or INBOUND", alias="boundaryScope") - entity_id: StrictStr = Field(description="Application ID", alias="entityId") + entity_id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Application ID", alias="entityId") include_internal: Optional[StrictBool] = Field(default=None, description="A boolean value indicating whether the SLO takes Internal calls into account", alias="includeInternal") include_synthetic: Optional[StrictBool] = Field(default=None, description="A boolean value indicating whether the SLO takes Synthetic calls into account", alias="includeSynthetic") threshold: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Value of the Apdex Threshold") diff --git a/instana_client/models/application_config.py b/instana_client/models/application_config.py index 658e356..3d75606 100644 --- a/instana_client/models/application_config.py +++ b/instana_client/models/application_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/application_event_result.py b/instana_client/models/application_event_result.py index 4e1a8d2..f7c43fe 100644 --- a/instana_client/models/application_event_result.py +++ b/instana_client/models/application_event_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/application_item.py b/instana_client/models/application_item.py index 8508565..d89e96f 100644 --- a/instana_client/models/application_item.py +++ b/instana_client/models/application_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/application_metric_result.py b/instana_client/models/application_metric_result.py index 7edd508..3cfaac9 100644 --- a/instana_client/models/application_metric_result.py +++ b/instana_client/models/application_metric_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/application_node.py b/instana_client/models/application_node.py index fb39550..ac94976 100644 --- a/instana_client/models/application_node.py +++ b/instana_client/models/application_node.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/application_result.py b/instana_client/models/application_result.py index 492b0f8..0ec1d76 100644 --- a/instana_client/models/application_result.py +++ b/instana_client/models/application_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/application_scope.py b/instana_client/models/application_scope.py index 3908119..26fb584 100644 --- a/instana_client/models/application_scope.py +++ b/instana_client/models/application_scope.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/application_scope_with_metadata.py b/instana_client/models/application_scope_with_metadata.py index 046cc79..c960342 100644 --- a/instana_client/models/application_scope_with_metadata.py +++ b/instana_client/models/application_scope_with_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -27,7 +28,7 @@ class ApplicationScopeWithMetadata(BaseModel): """ The list of application perspectives where the release can be viewed. """ # noqa: E501 - id: StrictStr = Field(description="Unique ID of the Application Perspective. Eg: `Av62RoIKQv-A3n6DbMQh9g`.") + id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Unique ID of the Application Perspective. Eg: `Av62RoIKQv-A3n6DbMQh9g`.") name: Optional[StrictStr] = Field(default=None, description="Name of the Application Perspective. Eg: `app1`.") __properties: ClassVar[List[str]] = ["id", "name"] diff --git a/instana_client/models/application_sli_entity.py b/instana_client/models/application_sli_entity.py index 93654c9..30e2fe2 100644 --- a/instana_client/models/application_sli_entity.py +++ b/instana_client/models/application_sli_entity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/application_slo_entity.py b/instana_client/models/application_slo_entity.py index d699219..b5089a3 100644 --- a/instana_client/models/application_slo_entity.py +++ b/instana_client/models/application_slo_entity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from instana_client.models.slo_entity import SloEntity from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set @@ -29,11 +30,11 @@ class ApplicationSloEntity(SloEntity): """ ApplicationSloEntity """ # noqa: E501 - application_id: StrictStr = Field(description="The ID of the Application", alias="applicationId") + application_id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The ID of the Application", alias="applicationId") boundary_scope: StrictStr = Field(description="The Boundary Scope of the Application", alias="boundaryScope") endpoint_id: Optional[StrictStr] = Field(default=None, description="The Endpoint ID of the Application", alias="endpointId") - include_internal: Optional[StrictBool] = Field(default=None, description="A boolean value indicating whether the SLO takes Internal calls into account", alias="includeInternal") - include_synthetic: Optional[StrictBool] = Field(default=None, description="A boolean value indicating whether the SLO takes Synthetic calls into account", alias="includeSynthetic") + include_internal: StrictBool = Field(description="A boolean value indicating whether the SLO takes Internal calls into account", alias="includeInternal") + include_synthetic: StrictBool = Field(description="A boolean value indicating whether the SLO takes Synthetic calls into account", alias="includeSynthetic") service_id: Optional[StrictStr] = Field(default=None, description="The Service ID of the Application", alias="serviceId") __properties: ClassVar[List[str]] = ["tagFilterExpression", "type", "applicationId", "boundaryScope", "endpointId", "includeInternal", "includeSynthetic", "serviceId"] diff --git a/instana_client/models/application_time_threshold.py b/instana_client/models/application_time_threshold.py index e8986ee..12ca78b 100644 --- a/instana_client/models/application_time_threshold.py +++ b/instana_client/models/application_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/arithmetic_configuration.py b/instana_client/models/arithmetic_configuration.py index f6c6360..d5883f1 100644 --- a/instana_client/models/arithmetic_configuration.py +++ b/instana_client/models/arithmetic_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union +from typing_extensions import Annotated from instana_client.models.arithmetic_operation import ArithmeticOperation from typing import Optional, Set from typing_extensions import Self @@ -31,7 +32,7 @@ class ArithmeticConfiguration(BaseModel): aggregation: StrictStr cross_series_aggregation: Optional[StrictStr] = Field(default=None, alias="crossSeriesAggregation") granularity: Optional[StrictInt] = Field(default=None, description=" * If granularity is not specified an aggregated value for the selected timeframe is returned. * If granularity is specified data points are returned with the specified granularity * The granularity should not be greater than the `windowSize` (important: `windowSize` is expressed in milliseconds) * The granularity should not be set too small relative to the `windowSize` to avoid creating an excessively large number of data points (max 600) ") - metric: StrictStr + metric: Annotated[str, Field(min_length=1, strict=True)] missing_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="missingValue") regex: Optional[StrictBool] = None required: Optional[StrictBool] = Field(default=None, description="When true, metric must be present with values") diff --git a/instana_client/models/arithmetic_operand.py b/instana_client/models/arithmetic_operand.py index d21b8a0..86fec14 100644 --- a/instana_client/models/arithmetic_operand.py +++ b/instana_client/models/arithmetic_operand.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/arithmetic_operation.py b/instana_client/models/arithmetic_operation.py index 344ab51..622b96d 100644 --- a/instana_client/models/arithmetic_operation.py +++ b/instana_client/models/arithmetic_operation.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -19,8 +19,8 @@ import json from importlib import import_module -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Union +from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set from typing_extensions import Self @@ -36,10 +36,20 @@ class ArithmeticOperation(BaseModel): ArithmeticOperation """ # noqa: E501 left: ArithmeticOperand - operator: StrictStr + operator: Optional[StrictStr] = None right: ArithmeticOperand __properties: ClassVar[List[str]] = ["left", "operator", "right"] + @field_validator('operator') + def operator_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['ADDITION', 'SUBTRACTION', 'MULTIPLICATION', 'DIVISION', 'NOOP', 'UNRECOGNIZED']): + raise ValueError("must be one of enum values ('ADDITION', 'SUBTRACTION', 'MULTIPLICATION', 'DIVISION', 'NOOP', 'UNRECOGNIZED')") + return value + model_config = ConfigDict( populate_by_name=True, validate_assignment=True, diff --git a/instana_client/models/audit_log_entry.py b/instana_client/models/audit_log_entry.py index cd8a9df..9ee7cfc 100644 --- a/instana_client/models/audit_log_entry.py +++ b/instana_client/models/audit_log_entry.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from instana_client.models.log_entry_actor import LogEntryActor from typing import Optional, Set from typing_extensions import Self @@ -28,10 +29,10 @@ class AuditLogEntry(BaseModel): """ AuditLogEntry """ # noqa: E501 - action: StrictStr + action: Annotated[str, Field(min_length=1, strict=True)] actor: LogEntryActor - id: StrictStr - message: StrictStr + id: Annotated[str, Field(min_length=1, strict=True)] + message: Annotated[str, Field(min_length=1, strict=True)] meta: Dict[str, Dict[str, Any]] timestamp: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["action", "actor", "id", "message", "meta", "timestamp"] diff --git a/instana_client/models/audit_log_ui_response.py b/instana_client/models/audit_log_ui_response.py index 2c3820e..27f40cc 100644 --- a/instana_client/models/audit_log_ui_response.py +++ b/instana_client/models/audit_log_ui_response.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/author.py b/instana_client/models/author.py index 7d13325..bb00c4e 100644 --- a/instana_client/models/author.py +++ b/instana_client/models/author.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/availability_blueprint_indicator.py b/instana_client/models/availability_blueprint_indicator.py index ef1c936..9cb7a21 100644 --- a/instana_client/models/availability_blueprint_indicator.py +++ b/instana_client/models/availability_blueprint_indicator.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/availability_sli_entity.py b/instana_client/models/availability_sli_entity.py index 6a65062..0a31d23 100644 --- a/instana_client/models/availability_sli_entity.py +++ b/instana_client/models/availability_sli_entity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/available_metrics.py b/instana_client/models/available_metrics.py index 290dd0b..2a2d70e 100644 --- a/instana_client/models/available_metrics.py +++ b/instana_client/models/available_metrics.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/available_plugins.py b/instana_client/models/available_plugins.py index 17dcfff..4d442b8 100644 --- a/instana_client/models/available_plugins.py +++ b/instana_client/models/available_plugins.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/backend_trace_reference.py b/instana_client/models/backend_trace_reference.py index fb98a02..c159e3b 100644 --- a/instana_client/models/backend_trace_reference.py +++ b/instana_client/models/backend_trace_reference.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/bidirectional_ms_teams_app_integration.py b/instana_client/models/bidirectional_ms_teams_app_integration.py index 63483af..542f742 100644 --- a/instana_client/models/bidirectional_ms_teams_app_integration.py +++ b/instana_client/models/bidirectional_ms_teams_app_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self @@ -28,14 +29,14 @@ class BidirectionalMsTeamsAppIntegration(AbstractIntegration): """ BidirectionalMsTeamsAppIntegration """ # noqa: E501 - api_token_id: StrictStr = Field(alias="apiTokenId") - channel_id: StrictStr = Field(alias="channelId") - channel_name: StrictStr = Field(alias="channelName") - instana_url: StrictStr = Field(alias="instanaUrl") + api_token_id: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="apiTokenId") + channel_id: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="channelId") + channel_name: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="channelName") + instana_url: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="instanaUrl") service_url: Optional[StrictStr] = Field(default=None, alias="serviceUrl") - team_id: StrictStr = Field(alias="teamId") + team_id: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="teamId") team_name: Optional[StrictStr] = Field(default=None, alias="teamName") - tenant_id: StrictStr = Field(alias="tenantId") + tenant_id: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="tenantId") tenant_name: Optional[StrictStr] = Field(default=None, alias="tenantName") __properties: ClassVar[List[str]] = ["id", "kind", "name", "apiTokenId", "channelId", "channelName", "instanaUrl", "serviceUrl", "teamId", "teamName", "tenantId", "tenantName"] diff --git a/instana_client/models/bidirectional_slack_app_integration.py b/instana_client/models/bidirectional_slack_app_integration.py index 2e2a444..5281304 100644 --- a/instana_client/models/bidirectional_slack_app_integration.py +++ b/instana_client/models/bidirectional_slack_app_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/binary_operator_dto.py b/instana_client/models/binary_operator_dto.py index 53a5621..27cd104 100644 --- a/instana_client/models/binary_operator_dto.py +++ b/instana_client/models/binary_operator_dto.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/browser_script_configuration.py b/instana_client/models/browser_script_configuration.py index 097d1f4..ac931e2 100644 --- a/instana_client/models/browser_script_configuration.py +++ b/instana_client/models/browser_script_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/browser_script_configuration_update.py b/instana_client/models/browser_script_configuration_update.py index b912c79..754b892 100644 --- a/instana_client/models/browser_script_configuration_update.py +++ b/instana_client/models/browser_script_configuration_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/built_in_event_specification.py b/instana_client/models/built_in_event_specification.py index 0991eba..077117b 100644 --- a/instana_client/models/built_in_event_specification.py +++ b/instana_client/models/built_in_event_specification.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/built_in_event_specification_with_last_updated.py b/instana_client/models/built_in_event_specification_with_last_updated.py index c8db81d..43a655c 100644 --- a/instana_client/models/built_in_event_specification_with_last_updated.py +++ b/instana_client/models/built_in_event_specification_with_last_updated.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/business_activity.py b/instana_client/models/business_activity.py index 67857f6..dfd3abe 100644 --- a/instana_client/models/business_activity.py +++ b/instana_client/models/business_activity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -30,7 +31,7 @@ class BusinessActivity(BaseModel): activity_id: Optional[StrictStr] = Field(default=None, description="Unique identifier for the activity generated by the source BPM tool", alias="activityId") activity_name: Optional[StrictStr] = Field(default=None, description="Name of the activity ", alias="activityName") activity_start: Optional[StrictInt] = Field(default=None, description="Unix timestamp representing the activity's start time", alias="activityStart") - activity_type: StrictStr = Field(description="Type of the activity ", alias="activityType") + activity_type: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Type of the activity ", alias="activityType") call_id: Optional[StrictStr] = Field(default=None, alias="callId") endpoint_ids: Optional[List[StrictStr]] = Field(default=None, alias="endpointIds") process_definition_id: Optional[StrictStr] = Field(default=None, description="The identifier of the process the activity is an instance of.", alias="processDefinitionId") diff --git a/instana_client/models/business_perspective_config.py b/instana_client/models/business_perspective_config.py index b53f308..e281b45 100644 --- a/instana_client/models/business_perspective_config.py +++ b/instana_client/models/business_perspective_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/call_groups_item.py b/instana_client/models/call_groups_item.py index 2a93e66..6cfe2fe 100644 --- a/instana_client/models/call_groups_item.py +++ b/instana_client/models/call_groups_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated from typing import Optional, Set @@ -30,7 +30,7 @@ class CallGroupsItem(BaseModel): """ # noqa: E501 cursor: Dict[str, Any] = Field(description="Cursor to use between successive queries") metrics: Dict[str, List[List[Union[StrictFloat, StrictInt]]]] = Field(description="Grouped metric details like `errors.mean`, `calls.sum`. It is usually a array of key-value pair. Format of key is `metric.aggregation.granularity`, for example: `latency.p75.360`. Format of value is `[earliest timestamp, value of key]`, for example: `[1725602720000, 0.013141001434936938]`. ") - name: StrictStr = Field(description="Name of the group.") + name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Name of the group.") timestamp: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Earliest timestamp of the call from the group") __properties: ClassVar[List[str]] = ["cursor", "metrics", "name", "timestamp"] diff --git a/instana_client/models/call_groups_result.py b/instana_client/models/call_groups_result.py index d32910e..6b7d987 100644 --- a/instana_client/models/call_groups_result.py +++ b/instana_client/models/call_groups_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/call_relation.py b/instana_client/models/call_relation.py index 504b56a..f56a41a 100644 --- a/instana_client/models/call_relation.py +++ b/instana_client/models/call_relation.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/change_summary.py b/instana_client/models/change_summary.py index b9b032e..0fc9c2f 100644 --- a/instana_client/models/change_summary.py +++ b/instana_client/models/change_summary.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/cloudfoundry_physical_context.py b/instana_client/models/cloudfoundry_physical_context.py index 53bfe36..ec32b0c 100644 --- a/instana_client/models/cloudfoundry_physical_context.py +++ b/instana_client/models/cloudfoundry_physical_context.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/condition.py b/instana_client/models/condition.py index 9c23efd..3486110 100644 --- a/instana_client/models/condition.py +++ b/instana_client/models/condition.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/config_version.py b/instana_client/models/config_version.py index 91de3e6..dc11fb5 100644 --- a/instana_client/models/config_version.py +++ b/instana_client/models/config_version.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/correction.py b/instana_client/models/correction.py index 1182d13..6c5994e 100644 --- a/instana_client/models/correction.py +++ b/instana_client/models/correction.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/correction_configuration.py b/instana_client/models/correction_configuration.py index 2349c17..3a39546 100644 --- a/instana_client/models/correction_configuration.py +++ b/instana_client/models/correction_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,7 +37,7 @@ class CorrectionConfiguration(BaseModel): last_updated: Optional[datetime] = Field(default=None, description="Last updated date of SLO Correction Window Configuration", alias="lastUpdated") name: StrictStr = Field(description="Name of the SLO Correction Window Configuration") scheduling: CorrectionScheduling - slo_ids: Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=1024)]] = Field(default=None, description="This is the list of SLO configurations related to this Correction Window.", alias="sloIds") + slo_ids: Optional[Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)]] = Field(default=None, description="This is the list of SLO configurations related to this Correction Window.", alias="sloIds") tags: Optional[List[StrictStr]] = Field(default=None, description="List of tags associated with SLO Correction Window Configuration") __properties: ClassVar[List[str]] = ["active", "createdDate", "description", "id", "lastUpdated", "name", "scheduling", "sloIds", "tags"] diff --git a/instana_client/models/correction_scheduling.py b/instana_client/models/correction_scheduling.py index 60aa3df..513fb87 100644 --- a/instana_client/models/correction_scheduling.py +++ b/instana_client/models/correction_scheduling.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,8 +39,8 @@ class CorrectionScheduling(BaseModel): @field_validator('duration_unit') def duration_unit_validate_enum(cls, value): """Validates the enum""" - if value not in set(['millisecond', 'second', 'minute', 'hour', 'day', 'week', 'month']): - raise ValueError("must be one of enum values ('millisecond', 'second', 'minute', 'hour', 'day', 'week', 'month')") + if value not in set(['millisecond', 'second', 'minute', 'hour', 'day', 'week', 'calendar_month']): + raise ValueError("must be one of enum values ('millisecond', 'second', 'minute', 'hour', 'day', 'week', 'calendar_month')") return value model_config = ConfigDict( diff --git a/instana_client/models/correction_window.py b/instana_client/models/correction_window.py index 5ae8515..5484779 100644 --- a/instana_client/models/correction_window.py +++ b/instana_client/models/correction_window.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/crash_mobile_app_alert_rule.py b/instana_client/models/crash_mobile_app_alert_rule.py index ee241dc..fb65c06 100644 --- a/instana_client/models/crash_mobile_app_alert_rule.py +++ b/instana_client/models/crash_mobile_app_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/create_website_request_inner.py b/instana_client/models/create_website_request_inner.py index c75392a..f6a7a59 100644 --- a/instana_client/models/create_website_request_inner.py +++ b/instana_client/models/create_website_request_inner.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/cursor_paginated_business_activity_item.py b/instana_client/models/cursor_paginated_business_activity_item.py index 64598e0..016734f 100644 --- a/instana_client/models/cursor_paginated_business_activity_item.py +++ b/instana_client/models/cursor_paginated_business_activity_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/cursor_pagination.py b/instana_client/models/cursor_pagination.py index 199c0c8..e93316f 100644 --- a/instana_client/models/cursor_pagination.py +++ b/instana_client/models/cursor_pagination.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/custom_blueprint_indicator.py b/instana_client/models/custom_blueprint_indicator.py index 2e1c973..5541dc3 100644 --- a/instana_client/models/custom_blueprint_indicator.py +++ b/instana_client/models/custom_blueprint_indicator.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/custom_dashboard.py b/instana_client/models/custom_dashboard.py index 214878c..89ab966 100644 --- a/instana_client/models/custom_dashboard.py +++ b/instana_client/models/custom_dashboard.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -19,7 +19,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from instana_client.models.access_rule import AccessRule from instana_client.models.widget import Widget @@ -31,8 +31,8 @@ class CustomDashboard(BaseModel): CustomDashboard """ # noqa: E501 access_rules: Annotated[List[AccessRule], Field(min_length=1, max_length=64)] = Field(alias="accessRules") - id: StrictStr - title: StrictStr + id: Optional[StrictStr] = None + title: Annotated[str, Field(min_length=1, strict=True)] widgets: Annotated[List[Widget], Field(min_length=0, max_length=128)] __properties: ClassVar[List[str]] = ["accessRules", "id", "title", "widgets"] diff --git a/instana_client/models/custom_dashboard_preview.py b/instana_client/models/custom_dashboard_preview.py index 3df841f..2a00653 100644 --- a/instana_client/models/custom_dashboard_preview.py +++ b/instana_client/models/custom_dashboard_preview.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -30,8 +30,8 @@ class CustomDashboardPreview(BaseModel): """ # noqa: E501 annotations: Annotated[List[StrictStr], Field(min_length=0, max_length=8)] id: Annotated[str, Field(min_length=0, strict=True, max_length=64)] - owner_id: StrictStr = Field(alias="ownerId") - title: StrictStr + owner_id: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="ownerId") + title: Annotated[str, Field(min_length=1, strict=True)] __properties: ClassVar[List[str]] = ["annotations", "id", "ownerId", "title"] @field_validator('annotations') diff --git a/instana_client/models/custom_dashboard_with_user_specific_information.py b/instana_client/models/custom_dashboard_with_user_specific_information.py index e140521..859e680 100644 --- a/instana_client/models/custom_dashboard_with_user_specific_information.py +++ b/instana_client/models/custom_dashboard_with_user_specific_information.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -19,7 +19,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from instana_client.models.access_rule import AccessRule from instana_client.models.widget import Widget @@ -31,9 +31,9 @@ class CustomDashboardWithUserSpecificInformation(BaseModel): CustomDashboardWithUserSpecificInformation """ # noqa: E501 access_rules: Annotated[List[AccessRule], Field(min_length=1, max_length=64)] = Field(alias="accessRules") - id: StrictStr + id: Optional[StrictStr] = None owner_id: StrictStr = Field(alias="ownerId") - title: StrictStr + title: Annotated[str, Field(min_length=1, strict=True)] widgets: Annotated[List[Widget], Field(min_length=0, max_length=128)] writable: StrictBool __properties: ClassVar[List[str]] = ["accessRules", "id", "ownerId", "title", "widgets", "writable"] diff --git a/instana_client/models/custom_dependency.py b/instana_client/models/custom_dependency.py index a50ae1e..41d10b3 100644 --- a/instana_client/models/custom_dependency.py +++ b/instana_client/models/custom_dependency.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/custom_email_subject_prefix.py b/instana_client/models/custom_email_subject_prefix.py index 08c0758..b70a9d9 100644 --- a/instana_client/models/custom_email_subject_prefix.py +++ b/instana_client/models/custom_email_subject_prefix.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/custom_entity_model.py b/instana_client/models/custom_entity_model.py index 4268e1e..2d09eb2 100644 --- a/instana_client/models/custom_entity_model.py +++ b/instana_client/models/custom_entity_model.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,9 +20,11 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from instana_client.models.custom_dashboard import CustomDashboard from instana_client.models.custom_dependency import CustomDependency from instana_client.models.custom_metric import CustomMetric +from instana_client.models.custom_tag import CustomTag from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self @@ -34,10 +36,11 @@ class CustomEntityModel(BaseModel): dashboards: Optional[List[CustomDashboard]] = None dependencies: Optional[List[CustomDependency]] = None identifiers: List[StrictStr] - label: StrictStr + label: Annotated[str, Field(min_length=1, strict=True)] metrics: Optional[List[CustomMetric]] = None tag_filter_expression: TagFilterExpressionElement = Field(alias="tagFilterExpression") - __properties: ClassVar[List[str]] = ["dashboards", "dependencies", "identifiers", "label", "metrics", "tagFilterExpression"] + tags: Optional[List[CustomTag]] = None + __properties: ClassVar[List[str]] = ["dashboards", "dependencies", "identifiers", "label", "metrics", "tagFilterExpression", "tags"] model_config = ConfigDict( populate_by_name=True, @@ -102,6 +105,13 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of tag_filter_expression if self.tag_filter_expression: _dict['tagFilterExpression'] = self.tag_filter_expression.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in tags (list) + _items = [] + if self.tags: + for _item_tags in self.tags: + if _item_tags: + _items.append(_item_tags.to_dict()) + _dict['tags'] = _items return _dict @classmethod @@ -119,7 +129,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "identifiers": obj.get("identifiers"), "label": obj.get("label"), "metrics": [CustomMetric.from_dict(_item) for _item in obj["metrics"]] if obj.get("metrics") is not None else None, - "tagFilterExpression": TagFilterExpressionElement.from_dict(obj["tagFilterExpression"]) if obj.get("tagFilterExpression") is not None else None + "tagFilterExpression": TagFilterExpressionElement.from_dict(obj["tagFilterExpression"]) if obj.get("tagFilterExpression") is not None else None, + "tags": [CustomTag.from_dict(_item) for _item in obj["tags"]] if obj.get("tags") is not None else None }) return _obj diff --git a/instana_client/models/custom_entity_with_metadata.py b/instana_client/models/custom_entity_with_metadata.py index c72252d..d92ab8a 100644 --- a/instana_client/models/custom_entity_with_metadata.py +++ b/instana_client/models/custom_entity_with_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from instana_client.models.custom_entity_model import CustomEntityModel from typing import Optional, Set from typing_extensions import Self @@ -30,7 +31,7 @@ class CustomEntityWithMetadata(BaseModel): """ # noqa: E501 created: Optional[StrictInt] = None data: CustomEntityModel - id: StrictStr + id: Annotated[str, Field(min_length=1, strict=True)] version: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["created", "data", "id", "version"] diff --git a/instana_client/models/custom_event_mobile_app_alert_rule.py b/instana_client/models/custom_event_mobile_app_alert_rule.py index c2129f2..08df479 100644 --- a/instana_client/models/custom_event_mobile_app_alert_rule.py +++ b/instana_client/models/custom_event_mobile_app_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import ConfigDict, Field, StrictStr +from pydantic import ConfigDict, Field from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated from instana_client.models.mobile_app_alert_rule import MobileAppAlertRule from typing import Optional, Set from typing_extensions import Self @@ -28,7 +29,7 @@ class CustomEventMobileAppAlertRule(MobileAppAlertRule): """ CustomEventMobileAppAlertRule """ # noqa: E501 - custom_event_name: StrictStr = Field(alias="customEventName") + custom_event_name: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="customEventName") __properties: ClassVar[List[str]] = ["aggregation", "alertType", "metricName", "customEventName"] model_config = ConfigDict( diff --git a/instana_client/models/custom_event_specification.py b/instana_client/models/custom_event_specification.py index 05f4821..221f728 100644 --- a/instana_client/models/custom_event_specification.py +++ b/instana_client/models/custom_event_specification.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/custom_event_specification_with_last_updated.py b/instana_client/models/custom_event_specification_with_last_updated.py index 93b19a7..06cb5d0 100644 --- a/instana_client/models/custom_event_specification_with_last_updated.py +++ b/instana_client/models/custom_event_specification_with_last_updated.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -38,6 +38,7 @@ class CustomEventSpecificationWithLastUpdated(BaseModel): entity_type: Annotated[str, Field(min_length=0, strict=True, max_length=64)] = Field(alias="entityType") expiration_time: Optional[StrictInt] = Field(default=None, alias="expirationTime") id: Annotated[str, Field(min_length=0, strict=True, max_length=64)] + infra_alert_config_id: Optional[Annotated[str, Field(min_length=0, strict=True, max_length=64)]] = Field(default=None, alias="infraAlertConfigId") last_updated: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, alias="lastUpdated") migrated: Optional[StrictBool] = None name: Annotated[str, Field(min_length=0, strict=True, max_length=256)] @@ -48,7 +49,7 @@ class CustomEventSpecificationWithLastUpdated(BaseModel): transient_event_enabled: Optional[StrictBool] = Field(default=None, alias="transientEventEnabled") transient_event_threshold: Optional[StrictInt] = Field(default=None, alias="transientEventThreshold") triggering: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["actions", "applicationAlertConfigId", "deleted", "description", "enabled", "entityType", "expirationTime", "id", "lastUpdated", "migrated", "name", "query", "ruleLogicalOperator", "rules", "transientEventAlertMuted", "transientEventEnabled", "transientEventThreshold", "triggering"] + __properties: ClassVar[List[str]] = ["actions", "applicationAlertConfigId", "deleted", "description", "enabled", "entityType", "expirationTime", "id", "infraAlertConfigId", "lastUpdated", "migrated", "name", "query", "ruleLogicalOperator", "rules", "transientEventAlertMuted", "transientEventEnabled", "transientEventThreshold", "triggering"] @field_validator('rule_logical_operator') def rule_logical_operator_validate_enum(cls, value): @@ -133,6 +134,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "entityType": obj.get("entityType"), "expirationTime": obj.get("expirationTime"), "id": obj.get("id"), + "infraAlertConfigId": obj.get("infraAlertConfigId"), "lastUpdated": obj.get("lastUpdated"), "migrated": obj.get("migrated"), "name": obj.get("name"), diff --git a/instana_client/models/custom_event_website_alert_rule.py b/instana_client/models/custom_event_website_alert_rule.py index d822fe0..867581f 100644 --- a/instana_client/models/custom_event_website_alert_rule.py +++ b/instana_client/models/custom_event_website_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import ConfigDict, Field, StrictStr +from pydantic import ConfigDict, Field from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated from instana_client.models.website_alert_rule import WebsiteAlertRule from typing import Optional, Set from typing_extensions import Self @@ -28,7 +29,7 @@ class CustomEventWebsiteAlertRule(WebsiteAlertRule): """ CustomEventWebsiteAlertRule """ # noqa: E501 - custom_event_name: StrictStr = Field(alias="customEventName") + custom_event_name: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="customEventName") __properties: ClassVar[List[str]] = ["aggregation", "alertType", "metricName", "customEventName"] model_config = ConfigDict( diff --git a/instana_client/models/custom_metric.py b/instana_client/models/custom_metric.py index 7502319..8050ddf 100644 --- a/instana_client/models/custom_metric.py +++ b/instana_client/models/custom_metric.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -27,25 +27,22 @@ class CustomMetric(BaseModel): """ CustomMetric """ # noqa: E501 - aggregation: Optional[StrictStr] = Field(default=None, description="Aggregation to apply on the metric for every member.") + aggregation: StrictStr = Field(description="Aggregation to apply on the metric for every member.") category: Optional[StrictStr] = Field(default=None, description="Category of the metric in the catalog") description: Optional[StrictStr] = Field(default=None, description="Description to be used in the catalog") formatter: Optional[StrictStr] = Field(default=None, description="| * NUMBER: Generic number * BYTES: Number of bytes * KILO_BYTES: Number of kilobytes * MEGA_BYTES: Number of megabytes * PERCENTAGE: Percentage in scale [0,1] * PERCENTAGE_100: Percentage in scale [0,100] * PERCENTAGE_NO_CAPPING: Percentage in scale [0,1] but value could exceed 1 for example when metric is aggregated * PERCENTAGE_100_NO_CAPPING: Percentage in scale [0,100] but value could exceed 100 for example when metric is aggregated * LATENCY: Time in milliseconds, with value of 0 should not be considered a a strict 0, but considered as < 1ms * NANOS: Time in nanoseconds * MILLIS: Time in milliseconds * MICROS: Time in microseconds * SECONDS: Time in seconds * RATE: Number of occurrences per second * BYTE_RATE: Number of bytes per second * UNDEFINED: Metric value unit is not known ") label: Optional[StrictStr] = Field(default=None, description="Label to be used in the catalog") name: Optional[StrictStr] = Field(default=None, description="Name of the metric") section: Optional[StrictStr] = Field(default=None, description="Section of the metric in the catalog") - source: Optional[StrictStr] = Field(default=None, description="Name of the source metric") + source: StrictStr = Field(description="Name of the source metric") type: Optional[StrictStr] = Field(default=None, description="Type of entity for the source metric") __properties: ClassVar[List[str]] = ["aggregation", "category", "description", "formatter", "label", "name", "section", "source", "type"] @field_validator('aggregation') def aggregation_validate_enum(cls, value): """Validates the enum""" - if value is None: - return value - - if value not in set(['AVG', 'SUM']): - raise ValueError("must be one of enum values ('AVG', 'SUM')") + if value not in set(['MEAN', 'SUM']): + raise ValueError("must be one of enum values ('MEAN', 'SUM')") return value @field_validator('formatter') @@ -64,8 +61,8 @@ def section_validate_enum(cls, value): if value is None: return value - if value not in set(['ACE', 'ALICLOUD', 'AWS', 'AZURE', 'CASSANDRA', 'CLOUD_FOUNDRY', 'CLR', 'COCKROACH', 'CONSUL', 'CONTAINER', 'COUCHBASE', 'DFQ', 'ELASTICSEARCH', 'GCP', 'HADOOP_YARN', 'HAZELCAST', 'IBM_CLOUD', 'IBM_DATAPOWER', 'IBM_I_SERIES', 'IBM_MQ', 'IBM_MQMFT', 'IBM_OPENSTACK', 'KAFKA_CONNECT', 'KUBERNETES', 'MONGO_DB', 'OTHERS', 'REDIS', 'SAP', 'SELF_MONITORING', 'SOLR', 'SPARK', 'TIBCOBW', 'TUXEDO', 'VSHPERE', 'WEBSPHERE', 'CUSTOM_ENTITY']): - raise ValueError("must be one of enum values ('ACE', 'ALICLOUD', 'AWS', 'AZURE', 'CASSANDRA', 'CLOUD_FOUNDRY', 'CLR', 'COCKROACH', 'CONSUL', 'CONTAINER', 'COUCHBASE', 'DFQ', 'ELASTICSEARCH', 'GCP', 'HADOOP_YARN', 'HAZELCAST', 'IBM_CLOUD', 'IBM_DATAPOWER', 'IBM_I_SERIES', 'IBM_MQ', 'IBM_MQMFT', 'IBM_OPENSTACK', 'KAFKA_CONNECT', 'KUBERNETES', 'MONGO_DB', 'OTHERS', 'REDIS', 'SAP', 'SELF_MONITORING', 'SOLR', 'SPARK', 'TIBCOBW', 'TUXEDO', 'VSHPERE', 'WEBSPHERE', 'CUSTOM_ENTITY')") + if value not in set(['ACE', 'ALICLOUD', 'AWS', 'AZURE', 'CASSANDRA', 'CLOUD_FOUNDRY', 'CLR', 'COCKROACH', 'CONSUL', 'CONTAINER', 'COUCHBASE', 'DFQ', 'ELASTICSEARCH', 'GCP', 'HADOOP_YARN', 'HAZELCAST', 'IBM_CLOUD', 'IBM_DATAPOWER', 'IBM_I_SERIES', 'IBM_MQ', 'IBM_MQMFT', 'IBM_OPENSTACK', 'KAFKA_CONNECT', 'KUBERNETES', 'MONGO_DB', 'MSSQL', 'OTHERS', 'POSTGRESQL', 'REDIS', 'SAP', 'SELF_MONITORING', 'SOLR', 'SPARK', 'TIBCOBW', 'TUXEDO', 'VSHPERE', 'WEBSPHERE', 'CUSTOM_ENTITY']): + raise ValueError("must be one of enum values ('ACE', 'ALICLOUD', 'AWS', 'AZURE', 'CASSANDRA', 'CLOUD_FOUNDRY', 'CLR', 'COCKROACH', 'CONSUL', 'CONTAINER', 'COUCHBASE', 'DFQ', 'ELASTICSEARCH', 'GCP', 'HADOOP_YARN', 'HAZELCAST', 'IBM_CLOUD', 'IBM_DATAPOWER', 'IBM_I_SERIES', 'IBM_MQ', 'IBM_MQMFT', 'IBM_OPENSTACK', 'KAFKA_CONNECT', 'KUBERNETES', 'MONGO_DB', 'MSSQL', 'OTHERS', 'POSTGRESQL', 'REDIS', 'SAP', 'SELF_MONITORING', 'SOLR', 'SPARK', 'TIBCOBW', 'TUXEDO', 'VSHPERE', 'WEBSPHERE', 'CUSTOM_ENTITY')") return value model_config = ConfigDict( diff --git a/instana_client/models/custom_payload_configuration.py b/instana_client/models/custom_payload_configuration.py index 1d6bb26..a94b803 100644 --- a/instana_client/models/custom_payload_configuration.py +++ b/instana_client/models/custom_payload_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/custom_payload_field.py b/instana_client/models/custom_payload_field.py index 4f452bd..4c2f341 100644 --- a/instana_client/models/custom_payload_field.py +++ b/instana_client/models/custom_payload_field.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,6 +21,7 @@ from importlib import import_module from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Union +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -33,7 +34,7 @@ class CustomPayloadField(BaseModel): """ Custom payload fields to send additional information in the alert notifications. Can be left empty. """ # noqa: E501 - key: StrictStr = Field(description="A user-specified unique identifier or name for a custom payload entry.") + key: Annotated[str, Field(min_length=1, strict=True)] = Field(description="A user-specified unique identifier or name for a custom payload entry.") type: StrictStr __properties: ClassVar[List[str]] = ["key", "type"] diff --git a/instana_client/models/custom_payload_with_last_updated.py b/instana_client/models/custom_payload_with_last_updated.py index ac1a1cb..9a5d166 100644 --- a/instana_client/models/custom_payload_with_last_updated.py +++ b/instana_client/models/custom_payload_with_last_updated.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -63,8 +63,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ + "last_updated", ]) _dict = self.model_dump( diff --git a/instana_client/models/custom_payload_with_version.py b/instana_client/models/custom_payload_with_version.py index 31cb9a4..9df7f49 100644 --- a/instana_client/models/custom_payload_with_version.py +++ b/instana_client/models/custom_payload_with_version.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -64,8 +64,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ + "last_updated", ]) _dict = self.model_dump( diff --git a/instana_client/models/custom_tag.py b/instana_client/models/custom_tag.py new file mode 100644 index 0000000..616326f --- /dev/null +++ b/instana_client/models/custom_tag.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class CustomTag(BaseModel): + """ + CustomTag + """ # noqa: E501 + aggregation: Optional[StrictStr] = Field(default=None, description="Aggregation to apply on the tag for every member.") + category: Optional[StrictStr] = Field(default=None, description="Category of the tag in the catalog") + description: Optional[StrictStr] = Field(default=None, description="Description to be used in the catalog") + label: Optional[StrictStr] = Field(default=None, description="Label to be used in the catalog") + name: Optional[StrictStr] = Field(default=None, description="Name of the tag. Will use the same value as the source tag if not specified.") + section: Optional[StrictStr] = Field(default=None, description="Section of the tag in the catalog") + source: Optional[StrictStr] = Field(default=None, description="Name of the source tag") + type: Optional[StrictStr] = Field(default=None, description="Type of entity for the source tag") + __properties: ClassVar[List[str]] = ["aggregation", "category", "description", "label", "name", "section", "source", "type"] + + @field_validator('aggregation') + def aggregation_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['FIRST', 'UNIQUE', 'LIST']): + raise ValueError("must be one of enum values ('FIRST', 'UNIQUE', 'LIST')") + return value + + @field_validator('section') + def section_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['ACE', 'ALICLOUD', 'AWS', 'AZURE', 'CASSANDRA', 'CLOUD_FOUNDRY', 'CLR', 'COCKROACH', 'CONSUL', 'CONTAINER', 'COUCHBASE', 'DFQ', 'ELASTICSEARCH', 'GCP', 'HADOOP_YARN', 'HAZELCAST', 'IBM_CLOUD', 'IBM_DATAPOWER', 'IBM_I_SERIES', 'IBM_MQ', 'IBM_MQMFT', 'IBM_OPENSTACK', 'KAFKA_CONNECT', 'KUBERNETES', 'MONGO_DB', 'MSSQL', 'OTHERS', 'POSTGRESQL', 'REDIS', 'SAP', 'SELF_MONITORING', 'SOLR', 'SPARK', 'TIBCOBW', 'TUXEDO', 'VSHPERE', 'WEBSPHERE', 'CUSTOM_ENTITY']): + raise ValueError("must be one of enum values ('ACE', 'ALICLOUD', 'AWS', 'AZURE', 'CASSANDRA', 'CLOUD_FOUNDRY', 'CLR', 'COCKROACH', 'CONSUL', 'CONTAINER', 'COUCHBASE', 'DFQ', 'ELASTICSEARCH', 'GCP', 'HADOOP_YARN', 'HAZELCAST', 'IBM_CLOUD', 'IBM_DATAPOWER', 'IBM_I_SERIES', 'IBM_MQ', 'IBM_MQMFT', 'IBM_OPENSTACK', 'KAFKA_CONNECT', 'KUBERNETES', 'MONGO_DB', 'MSSQL', 'OTHERS', 'POSTGRESQL', 'REDIS', 'SAP', 'SELF_MONITORING', 'SOLR', 'SPARK', 'TIBCOBW', 'TUXEDO', 'VSHPERE', 'WEBSPHERE', 'CUSTOM_ENTITY')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CustomTag from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CustomTag from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "aggregation": obj.get("aggregation"), + "category": obj.get("category"), + "description": obj.get("description"), + "label": obj.get("label"), + "name": obj.get("name"), + "section": obj.get("section"), + "source": obj.get("source"), + "type": obj.get("type") + }) + return _obj + + diff --git a/instana_client/models/dashboard_api_token.py b/instana_client/models/dashboard_api_token.py index db4ffe8..a9f4623 100644 --- a/instana_client/models/dashboard_api_token.py +++ b/instana_client/models/dashboard_api_token.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -27,8 +28,8 @@ class DashboardApiToken(BaseModel): """ DashboardApiToken """ # noqa: E501 - id: StrictStr - name: StrictStr + id: Annotated[str, Field(min_length=1, strict=True)] + name: Annotated[str, Field(min_length=1, strict=True)] __properties: ClassVar[List[str]] = ["id", "name"] model_config = ConfigDict( diff --git a/instana_client/models/database_integration.py b/instana_client/models/database_integration.py index 2e24ac8..c5ed6eb 100644 --- a/instana_client/models/database_integration.py +++ b/instana_client/models/database_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/deprecated_tag_filter.py b/instana_client/models/deprecated_tag_filter.py index 1e6570b..4cf717f 100644 --- a/instana_client/models/deprecated_tag_filter.py +++ b/instana_client/models/deprecated_tag_filter.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -28,7 +29,7 @@ class DeprecatedTagFilter(BaseModel): DeprecatedTagFilter """ # noqa: E501 entity: Optional[StrictStr] = None - name: StrictStr + name: Annotated[str, Field(min_length=1, strict=True)] operator: StrictStr value: StrictStr __properties: ClassVar[List[str]] = ["entity", "name", "operator", "value"] @@ -46,8 +47,8 @@ def entity_validate_enum(cls, value): @field_validator('operator') def operator_validate_enum(cls, value): """Validates the enum""" - if value not in set(['EQUALS', 'CONTAINS', 'LESS_THAN', 'LESS_OR_EQUAL_THAN', 'GREATER_THAN', 'GREATER_OR_EQUAL_THAN', 'NOT_EMPTY', 'NOT_EQUAL', 'NOT_CONTAIN', 'IS_EMPTY', 'NOT_BLANK', 'IS_BLANK', 'STARTS_WITH', 'ENDS_WITH', 'NOT_STARTS_WITH', 'NOT_ENDS_WITH', 'REGEX_MATCH']): - raise ValueError("must be one of enum values ('EQUALS', 'CONTAINS', 'LESS_THAN', 'LESS_OR_EQUAL_THAN', 'GREATER_THAN', 'GREATER_OR_EQUAL_THAN', 'NOT_EMPTY', 'NOT_EQUAL', 'NOT_CONTAIN', 'IS_EMPTY', 'NOT_BLANK', 'IS_BLANK', 'STARTS_WITH', 'ENDS_WITH', 'NOT_STARTS_WITH', 'NOT_ENDS_WITH', 'REGEX_MATCH')") + if value not in set(['EQUALS', 'CONTAINS', 'IN', 'NOT_IN', 'LESS_THAN', 'LESS_OR_EQUAL_THAN', 'GREATER_THAN', 'GREATER_OR_EQUAL_THAN', 'NOT_EMPTY', 'NOT_EQUAL', 'NOT_CONTAIN', 'IS_EMPTY', 'NOT_BLANK', 'IS_BLANK', 'STARTS_WITH', 'ENDS_WITH', 'NOT_STARTS_WITH', 'NOT_ENDS_WITH', 'REGEX_MATCH']): + raise ValueError("must be one of enum values ('EQUALS', 'CONTAINS', 'IN', 'NOT_IN', 'LESS_THAN', 'LESS_OR_EQUAL_THAN', 'GREATER_THAN', 'GREATER_OR_EQUAL_THAN', 'NOT_EMPTY', 'NOT_EQUAL', 'NOT_CONTAIN', 'IS_EMPTY', 'NOT_BLANK', 'IS_BLANK', 'STARTS_WITH', 'ENDS_WITH', 'NOT_STARTS_WITH', 'NOT_ENDS_WITH', 'REGEX_MATCH')") return value model_config = ConfigDict( diff --git a/instana_client/models/division.py b/instana_client/models/division.py index 59317a3..0a8eef1 100644 --- a/instana_client/models/division.py +++ b/instana_client/models/division.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/dns_configuration.py b/instana_client/models/dns_configuration.py index df4d9b6..1cbc6fd 100644 --- a/instana_client/models/dns_configuration.py +++ b/instana_client/models/dns_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/dns_configuration_update.py b/instana_client/models/dns_configuration_update.py index 5177e98..ebf6075 100644 --- a/instana_client/models/dns_configuration_update.py +++ b/instana_client/models/dns_configuration_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/dns_filter_query_time.py b/instana_client/models/dns_filter_query_time.py index f2a816c..80cfa74 100644 --- a/instana_client/models/dns_filter_query_time.py +++ b/instana_client/models/dns_filter_query_time.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/dns_filter_target_value.py b/instana_client/models/dns_filter_target_value.py index 5c1469f..49f653b 100644 --- a/instana_client/models/dns_filter_target_value.py +++ b/instana_client/models/dns_filter_target_value.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/duration.py b/instana_client/models/duration.py index 91ae08a..c4c07e9 100644 --- a/instana_client/models/duration.py +++ b/instana_client/models/duration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/dynamic_field.py b/instana_client/models/dynamic_field.py index 6ff2d48..6d73af6 100644 --- a/instana_client/models/dynamic_field.py +++ b/instana_client/models/dynamic_field.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/dynamic_field_value.py b/instana_client/models/dynamic_field_value.py index 1c5a03d..a3a9524 100644 --- a/instana_client/models/dynamic_field_value.py +++ b/instana_client/models/dynamic_field_value.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -28,7 +29,7 @@ class DynamicFieldValue(BaseModel): DynamicFieldValue """ # noqa: E501 key: Optional[StrictStr] = Field(default=None, description="Key for selected dynamic tag: specifies which dictionary style value user is interested in.") - tag_name: StrictStr = Field(description="Each dynamic payload entry is associated with tag from Instana's tag catalog", alias="tagName") + tag_name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Each dynamic payload entry is associated with tag from Instana's tag catalog", alias="tagName") __properties: ClassVar[List[str]] = ["key", "tagName"] model_config = ConfigDict( diff --git a/instana_client/models/dynamic_parameter.py b/instana_client/models/dynamic_parameter.py index 4753ddd..c3eb962 100644 --- a/instana_client/models/dynamic_parameter.py +++ b/instana_client/models/dynamic_parameter.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/edit_user.py b/instana_client/models/edit_user.py index 174431a..fe9c0eb 100644 --- a/instana_client/models/edit_user.py +++ b/instana_client/models/edit_user.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -27,7 +28,7 @@ class EditUser(BaseModel): """ EditUser """ # noqa: E501 - full_name: StrictStr = Field(alias="fullName") + full_name: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="fullName") __properties: ClassVar[List[str]] = ["fullName"] model_config = ConfigDict( diff --git a/instana_client/models/email_integration.py b/instana_client/models/email_integration.py index 07b04fe..bee0888 100644 --- a/instana_client/models/email_integration.py +++ b/instana_client/models/email_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import ConfigDict, Field, StrictStr +from pydantic import ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from instana_client.models.abstract_integration import AbstractIntegration from instana_client.models.custom_email_subject_prefix import CustomEmailSubjectPrefix from typing import Optional, Set @@ -30,7 +31,7 @@ class EmailIntegration(AbstractIntegration): EmailIntegration """ # noqa: E501 custom_email_subject_prefix: Optional[CustomEmailSubjectPrefix] = Field(default=None, alias="customEmailSubjectPrefix") - emails: List[StrictStr] + emails: Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=1)] __properties: ClassVar[List[str]] = ["id", "kind", "name", "customEmailSubjectPrefix", "emails"] model_config = ConfigDict( diff --git a/instana_client/models/empty_configuration.py b/instana_client/models/empty_configuration.py index 18ebc96..6828a6a 100644 --- a/instana_client/models/empty_configuration.py +++ b/instana_client/models/empty_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/endpoint.py b/instana_client/models/endpoint.py index b87e132..3d8b3eb 100644 --- a/instana_client/models/endpoint.py +++ b/instana_client/models/endpoint.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -28,10 +29,10 @@ class Endpoint(BaseModel): Endpoint """ # noqa: E501 entity_type: Optional[StrictStr] = Field(default=None, description="Since, this is a Endpoint, it will be of type `ENDPOINT`.", alias="entityType") - id: StrictStr = Field(description="Unique ID of the Endpoint. Eg: `NCRq5oYnan5x-PkdTPQwLLUdu5M`.") + id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Unique ID of the Endpoint. Eg: `NCRq5oYnan5x-PkdTPQwLLUdu5M`.") is_synthetic: Optional[StrictBool] = Field(default=None, alias="isSynthetic") - label: StrictStr = Field(description="Name of the Endpoint. Eg: `GET /api/fetch`.") - service_id: StrictStr = Field(description="The serviceId this endpoint belongs to.", alias="serviceId") + label: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Name of the Endpoint. Eg: `GET /api/fetch`.") + service_id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The serviceId this endpoint belongs to.", alias="serviceId") synthetic: Optional[StrictBool] = None synthetic_type: Optional[StrictStr] = Field(default=None, alias="syntheticType") technologies: List[StrictStr] = Field(description="List of technologies: `Eg:[\"springbootApplicationContainer\"]`") diff --git a/instana_client/models/endpoint_config.py b/instana_client/models/endpoint_config.py index 1172b78..28a8ff4 100644 --- a/instana_client/models/endpoint_config.py +++ b/instana_client/models/endpoint_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -33,7 +33,7 @@ class EndpointConfig(BaseModel): endpoint_name_by_collected_path_template_rule_enabled: Optional[StrictBool] = Field(default=None, description="The highest default precedence of endpoint rule is creating endpoint is based on path template. For example, ``` /hospital/1948/patient/291148 /hospital/728/patient/924892 /hospital/47/patient/25978 /hospital/108429/patient/1847 ``` can be considered as `/hospital/{hid}/patient/{pid}` if this rule is enabled. For most of the use cases, this rule should be enabled. ", alias="endpointNameByCollectedPathTemplateRuleEnabled") endpoint_name_by_first_path_segment_rule_enabled: Optional[StrictBool] = Field(default=None, description="There are endpoint extraction rules in Instana which take the first path segment from the HTTP request and turn this into an endpoint name. For example, given the following URLs `/users/123/profile` and `/users/123/settings`, the extraction rule will only take the first segment. As a result endpoint name will be `users`. Although this is useful in cases where broad overview of monitoring is required, lot of use cases are more specified. Considering the above example, if this rule is enabled, Instana can't distinguish between `profile` or `settings` as endpoints. For use cases where endpoints has to be monitored at fine granular level, this flag should be set to `false`. ", alias="endpointNameByFirstPathSegmentRuleEnabled") rules: Optional[Annotated[List[HttpEndpointRule], Field(min_length=1, max_length=500)]] = Field(default=None, description="Specify custom rule configuration apart from Instana predefined rules. This rule has the highest precedence. This is only available for HTTP endpoints.") - service_id: StrictStr = Field(description="An Instana generated unique identifier for a Service. If specified, the list of results will be filtered for the specified Service ID. Eg: `3feb3dcd206c166ef2b41c707e0cd38d7cd325aa`. One can see the service id from Instana UI by going to a Service page. In the URL, there will be `serviceId=3feb3dcd206c166ef2b41c707e0cd38d7cd325aa`. Alternatively, one can use `Get services` API endpoint to get the service id in `id` parameter. ", alias="serviceId") + service_id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="An Instana generated unique identifier for a Service. If specified, the list of results will be filtered for the specified Service ID. Eg: `3feb3dcd206c166ef2b41c707e0cd38d7cd325aa`. One can see the service id from Instana UI by going to a Service page. In the URL, there will be `serviceId=3feb3dcd206c166ef2b41c707e0cd38d7cd325aa`. Alternatively, one can use `Get services` API endpoint to get the service id in `id` parameter. ", alias="serviceId") __properties: ClassVar[List[str]] = ["endpointCase", "endpointNameByCollectedPathTemplateRuleEnabled", "endpointNameByFirstPathSegmentRuleEnabled", "rules", "serviceId"] @field_validator('endpoint_case') diff --git a/instana_client/models/endpoint_event_result.py b/instana_client/models/endpoint_event_result.py index 1196885..911d601 100644 --- a/instana_client/models/endpoint_event_result.py +++ b/instana_client/models/endpoint_event_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/endpoint_item.py b/instana_client/models/endpoint_item.py index b30e7db..2d43d85 100644 --- a/instana_client/models/endpoint_item.py +++ b/instana_client/models/endpoint_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/endpoint_metric_result.py b/instana_client/models/endpoint_metric_result.py index b739cbd..0d191fc 100644 --- a/instana_client/models/endpoint_metric_result.py +++ b/instana_client/models/endpoint_metric_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/endpoint_node.py b/instana_client/models/endpoint_node.py index 7fe4365..9bb7797 100644 --- a/instana_client/models/endpoint_node.py +++ b/instana_client/models/endpoint_node.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/endpoint_result.py b/instana_client/models/endpoint_result.py index 4e129ab..1a24113 100644 --- a/instana_client/models/endpoint_result.py +++ b/instana_client/models/endpoint_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/endpoint_simple.py b/instana_client/models/endpoint_simple.py index cfd2d5c..936542c 100644 --- a/instana_client/models/endpoint_simple.py +++ b/instana_client/models/endpoint_simple.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/entity_count_rule.py b/instana_client/models/entity_count_rule.py index 323032b..fa7d7e4 100644 --- a/instana_client/models/entity_count_rule.py +++ b/instana_client/models/entity_count_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/entity_count_verification_rule.py b/instana_client/models/entity_count_verification_rule.py index e7dcff7..ffae2ca 100644 --- a/instana_client/models/entity_count_verification_rule.py +++ b/instana_client/models/entity_count_verification_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/entity_health_info.py b/instana_client/models/entity_health_info.py index 04cb1f0..b05866e 100644 --- a/instana_client/models/entity_health_info.py +++ b/instana_client/models/entity_health_info.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/entity_id.py b/instana_client/models/entity_id.py index b161667..61afe7f 100644 --- a/instana_client/models/entity_id.py +++ b/instana_client/models/entity_id.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/entity_verification_rule.py b/instana_client/models/entity_verification_rule.py index f04d40a..946e89d 100644 --- a/instana_client/models/entity_verification_rule.py +++ b/instana_client/models/entity_verification_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/error_budget_alert_rule.py b/instana_client/models/error_budget_alert_rule.py index 2b60abe..4a40b79 100644 --- a/instana_client/models/error_budget_alert_rule.py +++ b/instana_client/models/error_budget_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/errors_application_alert_rule.py b/instana_client/models/errors_application_alert_rule.py index 8827bf5..699c242 100644 --- a/instana_client/models/errors_application_alert_rule.py +++ b/instana_client/models/errors_application_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/event.py b/instana_client/models/event.py index 5d13365..b55a54d 100644 --- a/instana_client/models/event.py +++ b/instana_client/models/event.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/event_filtering_configuration.py b/instana_client/models/event_filtering_configuration.py index 3b79df7..fc0c899 100644 --- a/instana_client/models/event_filtering_configuration.py +++ b/instana_client/models/event_filtering_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -28,10 +28,10 @@ class EventFilteringConfiguration(BaseModel): """ Event Filter Configuration for supporting the scope of the Alert Configuration. Applies a filter based on the application perspective or selected entities. """ # noqa: E501 - application_alert_config_ids: Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=1024)]] = Field(default=None, alias="applicationAlertConfigIds") + application_alert_config_ids: Optional[Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)]] = Field(default=None, alias="applicationAlertConfigIds") event_types: Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=1024)]] = Field(default=None, alias="eventTypes") query: Optional[Annotated[str, Field(min_length=0, strict=True, max_length=2048)]] = None - rule_ids: Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=1024)]] = Field(default=None, alias="ruleIds") + rule_ids: Optional[Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)]] = Field(default=None, alias="ruleIds") __properties: ClassVar[List[str]] = ["applicationAlertConfigIds", "eventTypes", "query", "ruleIds"] @field_validator('event_types') diff --git a/instana_client/models/event_result.py b/instana_client/models/event_result.py index 581a676..5f848c1 100644 --- a/instana_client/models/event_result.py +++ b/instana_client/models/event_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/event_specification_info.py b/instana_client/models/event_specification_info.py index b8b32c2..f480c02 100644 --- a/instana_client/models/event_specification_info.py +++ b/instana_client/models/event_specification_info.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/extended_service.py b/instana_client/models/extended_service.py index 5707817..2354625 100644 --- a/instana_client/models/extended_service.py +++ b/instana_client/models/extended_service.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -30,8 +30,8 @@ class ExtendedService(BaseModel): """ # noqa: E501 applications: List[StrictStr] entity_type: Optional[StrictStr] = Field(default=None, description="Since, this is a Service, it will be of type `SERVICE`.", alias="entityType") - id: StrictStr = Field(description="Unique ID of the Service. Eg: `3feb3dcd206c166ef2b41c707e0cd38d7cd325aa`.") - label: StrictStr = Field(description="Name of the Service. Eg: `payment`.") + id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Unique ID of the Service. Eg: `3feb3dcd206c166ef2b41c707e0cd38d7cd325aa`.") + label: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Name of the Service. Eg: `payment`.") max_severity: Optional[Union[Annotated[float, Field(le=10, strict=True, ge=0)], Annotated[int, Field(le=10, strict=True, ge=0)]]] = Field(default=None, alias="maxSeverity") number_of_open_issues: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numberOfOpenIssues") snapshot_ids: List[StrictStr] = Field(description="A unique identifier the metrics are assigned to.", alias="snapshotIds") diff --git a/instana_client/models/failure_synthetic_alert_rule.py b/instana_client/models/failure_synthetic_alert_rule.py index a85bca7..5440e11 100644 --- a/instana_client/models/failure_synthetic_alert_rule.py +++ b/instana_client/models/failure_synthetic_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/fixed_http_path_segment_matching_rule.py b/instana_client/models/fixed_http_path_segment_matching_rule.py index f01c21f..278ec05 100644 --- a/instana_client/models/fixed_http_path_segment_matching_rule.py +++ b/instana_client/models/fixed_http_path_segment_matching_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import ConfigDict, Field, StrictStr +from pydantic import ConfigDict, Field from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated from instana_client.models.http_path_segment_matching_rule import HttpPathSegmentMatchingRule from typing import Optional, Set from typing_extensions import Self @@ -28,7 +29,7 @@ class FixedHttpPathSegmentMatchingRule(HttpPathSegmentMatchingRule): """ FixedHttpPathSegmentMatchingRule """ # noqa: E501 - name: StrictStr = Field(description="Given `/api/{version}/users` URI, `FIXED` names are `api` and `users` in order. ") + name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Given `/api/{version}/users` URI, `FIXED` names are `api` and `users` in order. ") __properties: ClassVar[List[str]] = ["type", "name"] model_config = ConfigDict( diff --git a/instana_client/models/fixed_time_window.py b/instana_client/models/fixed_time_window.py index 3cc4dcb..fe6632b 100644 --- a/instana_client/models/fixed_time_window.py +++ b/instana_client/models/fixed_time_window.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/generic_infra_alert_rule.py b/instana_client/models/generic_infra_alert_rule.py index 39aa03c..aa36a7b 100644 --- a/instana_client/models/generic_infra_alert_rule.py +++ b/instana_client/models/generic_infra_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -30,6 +30,7 @@ class GenericInfraAlertRule(InfraAlertRule): """ GenericInfraAlertRule """ # noqa: E501 + entity_type: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="entityType") metric_group_by: Annotated[List[StrictStr], Field(min_length=0, max_length=1)] = Field(alias="metricGroupBy") __properties: ClassVar[List[str]] = ["aggregation", "alertType", "crossSeriesAggregation", "entityType", "metricGroupBy", "metricName", "metricTagFilterExpression", "regex"] diff --git a/instana_client/models/geo_location_configuration.py b/instana_client/models/geo_location_configuration.py index 2f6bcec..1192783 100644 --- a/instana_client/models/geo_location_configuration.py +++ b/instana_client/models/geo_location_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/geo_mapping_rule.py b/instana_client/models/geo_mapping_rule.py index f2899b1..90b8560 100644 --- a/instana_client/models/geo_mapping_rule.py +++ b/instana_client/models/geo_mapping_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/geo_subdivision.py b/instana_client/models/geo_subdivision.py index ba558b0..f347d66 100644 --- a/instana_client/models/geo_subdivision.py +++ b/instana_client/models/geo_subdivision.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/get_activities.py b/instana_client/models/get_activities.py index 470b856..3c3a935 100644 --- a/instana_client/models/get_activities.py +++ b/instana_client/models/get_activities.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/get_application_metrics.py b/instana_client/models/get_application_metrics.py index 8971ae1..95b7fa4 100644 --- a/instana_client/models/get_application_metrics.py +++ b/instana_client/models/get_application_metrics.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/get_applications.py b/instana_client/models/get_applications.py index fe5c078..b85668a 100644 --- a/instana_client/models/get_applications.py +++ b/instana_client/models/get_applications.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/get_available_metrics_query.py b/instana_client/models/get_available_metrics_query.py index de1259e..d624e7f 100644 --- a/instana_client/models/get_available_metrics_query.py +++ b/instana_client/models/get_available_metrics_query.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/get_available_plugins_query.py b/instana_client/models/get_available_plugins_query.py index 36afdb5..a0e4aa5 100644 --- a/instana_client/models/get_available_plugins_query.py +++ b/instana_client/models/get_available_plugins_query.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/get_call_groups.py b/instana_client/models/get_call_groups.py index eee004d..17fc445 100644 --- a/instana_client/models/get_call_groups.py +++ b/instana_client/models/get_call_groups.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/get_combined_metrics.py b/instana_client/models/get_combined_metrics.py index 1bfabb5..322eb62 100644 --- a/instana_client/models/get_combined_metrics.py +++ b/instana_client/models/get_combined_metrics.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -29,11 +29,11 @@ class GetCombinedMetrics(BaseModel): """ GetCombinedMetrics """ # noqa: E501 - metrics: Annotated[List[StrictStr], Field(min_length=1, max_length=5)] = Field(description="Id of the exact metric you want to retrieve, eg. \"cpu.user\", \"clientrequests.read.mean\"") + metrics: Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=1, max_length=5)] = Field(description="Id of the exact metric you want to retrieve, eg. \"cpu.user\", \"clientrequests.read.mean\"") plugin: StrictStr = Field(description="Plugin name") query: Optional[StrictStr] = Field(default=None, description="Dynamic Focus Query") rollup: Optional[StrictInt] = Field(default=None, description="Rollup value in seconds") - snapshot_ids: Optional[Annotated[List[StrictStr], Field(min_length=1, max_length=30)]] = Field(default=None, description="Unique identifier the metrics are assigned to", alias="snapshotIds") + snapshot_ids: Optional[Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=1, max_length=30)]] = Field(default=None, description="Unique identifier the metrics are assigned to", alias="snapshotIds") time_frame: Optional[TimeFrame] = Field(default=None, alias="timeFrame") __properties: ClassVar[List[str]] = ["metrics", "plugin", "query", "rollup", "snapshotIds", "timeFrame"] diff --git a/instana_client/models/get_dynamic_parameter_values.py b/instana_client/models/get_dynamic_parameter_values.py index caae0f6..f2713a4 100644 --- a/instana_client/models/get_dynamic_parameter_values.py +++ b/instana_client/models/get_dynamic_parameter_values.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated from instana_client.models.dynamic_parameter import DynamicParameter from typing import Optional, Set from typing_extensions import Self @@ -28,7 +29,7 @@ class GetDynamicParameterValues(BaseModel): """ GetDynamicParameterValues """ # noqa: E501 - event_id: StrictStr = Field(description="Event identifier", alias="eventId") + event_id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Event identifier", alias="eventId") parameters: List[DynamicParameter] = Field(description="List of dynamic parameters") timestamp: StrictInt = Field(description="The start of the timestamp expressed in Unix epoch time in milliseconds.") __properties: ClassVar[List[str]] = ["eventId", "parameters", "timestamp"] diff --git a/instana_client/models/get_endpoints.py b/instana_client/models/get_endpoints.py index c7de5b4..0bfc4e7 100644 --- a/instana_client/models/get_endpoints.py +++ b/instana_client/models/get_endpoints.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/get_infrastructure_groups_query.py b/instana_client/models/get_infrastructure_groups_query.py index d7912d7..63d4850 100644 --- a/instana_client/models/get_infrastructure_groups_query.py +++ b/instana_client/models/get_infrastructure_groups_query.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from instana_client.models.cursor_pagination_infra_explore_cursor import CursorPaginationInfraExploreCursor +from instana_client.models.cursor_pagination import CursorPagination from instana_client.models.infra_metric_configuration import InfraMetricConfiguration from instana_client.models.order import Order from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement @@ -37,7 +37,7 @@ class GetInfrastructureGroupsQuery(BaseModel): metrics: Optional[Annotated[List[InfraMetricConfiguration], Field(min_length=0, max_length=10)]] = None missing_placeholder: Optional[StrictStr] = Field(default=None, alias="missingPlaceholder") order: Optional[Order] = None - pagination: CursorPaginationInfraExploreCursor + pagination: CursorPagination tag_filter_expression: TagFilterExpressionElement = Field(alias="tagFilterExpression") time_frame: TimeFrame = Field(alias="timeFrame") type: Optional[StrictStr] = Field(default=None, description="Type of entities") @@ -117,7 +117,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "metrics": [InfraMetricConfiguration.from_dict(_item) for _item in obj["metrics"]] if obj.get("metrics") is not None else None, "missingPlaceholder": obj.get("missingPlaceholder"), "order": Order.from_dict(obj["order"]) if obj.get("order") is not None else None, - "pagination": CursorPaginationInfraExploreCursor.from_dict(obj["pagination"]) if obj.get("pagination") is not None else None, + "pagination": CursorPagination.from_dict(obj["pagination"]) if obj.get("pagination") is not None else None, "tagFilterExpression": TagFilterExpressionElement.from_dict(obj["tagFilterExpression"]) if obj.get("tagFilterExpression") is not None else None, "timeFrame": TimeFrame.from_dict(obj["timeFrame"]) if obj.get("timeFrame") is not None else None, "type": obj.get("type") diff --git a/instana_client/models/get_infrastructure_query.py b/instana_client/models/get_infrastructure_query.py index bdafdba..fb4680b 100644 --- a/instana_client/models/get_infrastructure_query.py +++ b/instana_client/models/get_infrastructure_query.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from instana_client.models.cursor_pagination_infra_explore_cursor import CursorPaginationInfraExploreCursor +from instana_client.models.cursor_pagination import CursorPagination from instana_client.models.infra_metric_configuration import InfraMetricConfiguration from instana_client.models.order import Order from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement @@ -36,7 +36,7 @@ class GetInfrastructureQuery(BaseModel): metrics: Optional[Annotated[List[InfraMetricConfiguration], Field(min_length=0, max_length=10)]] = None missing_placeholder: Optional[StrictStr] = Field(default=None, alias="missingPlaceholder") order: Optional[Order] = None - pagination: CursorPaginationInfraExploreCursor + pagination: CursorPagination tag_filter_expression: TagFilterExpressionElement = Field(alias="tagFilterExpression") tags: Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=5)]] = None time_frame: TimeFrame = Field(alias="timeFrame") @@ -116,7 +116,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "metrics": [InfraMetricConfiguration.from_dict(_item) for _item in obj["metrics"]] if obj.get("metrics") is not None else None, "missingPlaceholder": obj.get("missingPlaceholder"), "order": Order.from_dict(obj["order"]) if obj.get("order") is not None else None, - "pagination": CursorPaginationInfraExploreCursor.from_dict(obj["pagination"]) if obj.get("pagination") is not None else None, + "pagination": CursorPagination.from_dict(obj["pagination"]) if obj.get("pagination") is not None else None, "tagFilterExpression": TagFilterExpressionElement.from_dict(obj["tagFilterExpression"]) if obj.get("tagFilterExpression") is not None else None, "tags": obj.get("tags"), "timeFrame": TimeFrame.from_dict(obj["timeFrame"]) if obj.get("timeFrame") is not None else None, diff --git a/instana_client/models/get_metrics_result.py b/instana_client/models/get_metrics_result.py index e80334d..aca85a7 100644 --- a/instana_client/models/get_metrics_result.py +++ b/instana_client/models/get_metrics_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/get_mobile_app_beacon_groups.py b/instana_client/models/get_mobile_app_beacon_groups.py index aecc5c3..b6b7a2e 100644 --- a/instana_client/models/get_mobile_app_beacon_groups.py +++ b/instana_client/models/get_mobile_app_beacon_groups.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/get_mobile_app_beacons.py b/instana_client/models/get_mobile_app_beacons.py index 8733e0b..7157bbe 100644 --- a/instana_client/models/get_mobile_app_beacons.py +++ b/instana_client/models/get_mobile_app_beacons.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/get_mobile_app_metrics.py b/instana_client/models/get_mobile_app_metrics.py index d387ec4..4c8348a 100644 --- a/instana_client/models/get_mobile_app_metrics.py +++ b/instana_client/models/get_mobile_app_metrics.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/get_mobile_app_metrics_v2.py b/instana_client/models/get_mobile_app_metrics_v2.py index 9a71c5c..0896788 100644 --- a/instana_client/models/get_mobile_app_metrics_v2.py +++ b/instana_client/models/get_mobile_app_metrics_v2.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/get_payload_keys_result.py b/instana_client/models/get_payload_keys_result.py index 5fa4b28..bb53bd1 100644 --- a/instana_client/models/get_payload_keys_result.py +++ b/instana_client/models/get_payload_keys_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/get_services.py b/instana_client/models/get_services.py index 3ff04c5..1ca3539 100644 --- a/instana_client/models/get_services.py +++ b/instana_client/models/get_services.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -40,7 +40,7 @@ class GetServices(BaseModel): order: Optional[Order] = None pagination: Optional[Pagination] = None service_id: Optional[Annotated[str, Field(min_length=0, strict=True, max_length=64)]] = Field(default=None, description="An Instana generated unique identifier for a Service. If specified, the list of results will be filtered for the specified Service ID. Eg: `3feb3dcd206c166ef2b41c707e0cd38d7cd325aa`. One can see the service id from Instana UI by going to a Service page. In the URL, there will be `serviceId=3feb3dcd206c166ef2b41c707e0cd38d7cd325aa`. Alternatively, one can use `Get services` API endpoint to get the service id in `id` parameter. ", alias="serviceId") - technologies: Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=20)]] = Field(default=None, description="A list of technologies to be used for filtering data. For example, technologies could include AWS ECS, Cassandra, DB2, JVM, Kafka, etc. A full list of available technologies can be found in X.") + technologies: Optional[Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=20)]] = Field(default=None, description="A list of technologies to be used for filtering data. For example, technologies could include AWS ECS, Cassandra, DB2, JVM, Kafka, etc. A full list of available technologies can be found in X.") time_frame: Optional[TimeFrame] = Field(default=None, alias="timeFrame") __properties: ClassVar[List[str]] = ["applicationBoundaryScope", "applicationId", "contextScope", "metrics", "nameFilter", "order", "pagination", "serviceId", "technologies", "timeFrame"] diff --git a/instana_client/models/get_session_replay_metadata_result.py b/instana_client/models/get_session_replay_metadata_result.py new file mode 100644 index 0000000..36eb90a --- /dev/null +++ b/instana_client/models/get_session_replay_metadata_result.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from instana_client.models.session_replay_metadata import SessionReplayMetadata +from typing import Optional, Set +from typing_extensions import Self + +class GetSessionReplayMetadataResult(BaseModel): + """ + GetSessionReplayMetadataResult + """ # noqa: E501 + has_more: StrictBool = Field(description="Whether there are more records to fetch beyond this page", alias="hasMore") + metadata: List[SessionReplayMetadata] = Field(description="List of session replay metadata records") + next_cursor: Optional[StrictInt] = Field(default=None, description="Cursor for the next page (timestamp of last record)", alias="nextCursor") + __properties: ClassVar[List[str]] = ["hasMore", "metadata", "nextCursor"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetSessionReplayMetadataResult from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in metadata (list) + _items = [] + if self.metadata: + for _item_metadata in self.metadata: + if _item_metadata: + _items.append(_item_metadata.to_dict()) + _dict['metadata'] = _items + # set to None if next_cursor (nullable) is None + # and model_fields_set contains the field + if self.next_cursor is None and "next_cursor" in self.model_fields_set: + _dict['nextCursor'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetSessionReplayMetadataResult from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "hasMore": obj.get("hasMore"), + "metadata": [SessionReplayMetadata.from_dict(_item) for _item in obj["metadata"]] if obj.get("metadata") is not None else None, + "nextCursor": obj.get("nextCursor") + }) + return _obj + + diff --git a/instana_client/models/get_snapshots_query.py b/instana_client/models/get_snapshots_query.py index e77a3d4..1387f6a 100644 --- a/instana_client/models/get_snapshots_query.py +++ b/instana_client/models/get_snapshots_query.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/get_test_result.py b/instana_client/models/get_test_result.py index 8004ced..e7541f5 100644 --- a/instana_client/models/get_test_result.py +++ b/instana_client/models/get_test_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/get_test_result_analytic.py b/instana_client/models/get_test_result_analytic.py index 96a3d28..399bc19 100644 --- a/instana_client/models/get_test_result_analytic.py +++ b/instana_client/models/get_test_result_analytic.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -32,7 +32,7 @@ class GetTestResultAnalytic(BaseModel): """ GetTestResultAnalytic """ # noqa: E501 - analytic_function: StrictStr = Field(alias="analyticFunction") + analytic_function: Optional[StrictStr] = Field(default=None, alias="analyticFunction") include_location_id_grouping: Optional[StrictBool] = Field(default=None, alias="includeLocationIdGrouping") order: Optional[Order] = None pagination: Optional[Pagination] = None diff --git a/instana_client/models/get_test_result_base.py b/instana_client/models/get_test_result_base.py index 3ff340e..965a19d 100644 --- a/instana_client/models/get_test_result_base.py +++ b/instana_client/models/get_test_result_base.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/get_test_result_list.py b/instana_client/models/get_test_result_list.py index cda9f8c..fcfdebb 100644 --- a/instana_client/models/get_test_result_list.py +++ b/instana_client/models/get_test_result_list.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/get_test_summary_result.py b/instana_client/models/get_test_summary_result.py index 3fdb7d1..26cc933 100644 --- a/instana_client/models/get_test_summary_result.py +++ b/instana_client/models/get_test_summary_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/get_trace_download_result_item.py b/instana_client/models/get_trace_download_result_item.py index ad95cb0..1a0dfd7 100644 --- a/instana_client/models/get_trace_download_result_item.py +++ b/instana_client/models/get_trace_download_result_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/get_trace_groups.py b/instana_client/models/get_trace_groups.py index 2c02e45..bb98591 100644 --- a/instana_client/models/get_trace_groups.py +++ b/instana_client/models/get_trace_groups.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/get_traces.py b/instana_client/models/get_traces.py index 6844bc3..1cbb42e 100644 --- a/instana_client/models/get_traces.py +++ b/instana_client/models/get_traces.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/get_website_beacon_groups.py b/instana_client/models/get_website_beacon_groups.py index d8d68ea..6d78b21 100644 --- a/instana_client/models/get_website_beacon_groups.py +++ b/instana_client/models/get_website_beacon_groups.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/get_website_beacons.py b/instana_client/models/get_website_beacons.py index 51dabad..a03b051 100644 --- a/instana_client/models/get_website_beacons.py +++ b/instana_client/models/get_website_beacons.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/get_website_metrics.py b/instana_client/models/get_website_metrics.py index b3a1364..219d985 100644 --- a/instana_client/models/get_website_metrics.py +++ b/instana_client/models/get_website_metrics.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/get_website_metrics_v2.py b/instana_client/models/get_website_metrics_v2.py index 5b67d8b..8497cbf 100644 --- a/instana_client/models/get_website_metrics_v2.py +++ b/instana_client/models/get_website_metrics_v2.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/global_application_alert_config_with_metadata.py b/instana_client/models/global_application_alert_config_with_metadata.py index 6965c4c..4006592 100644 --- a/instana_client/models/global_application_alert_config_with_metadata.py +++ b/instana_client/models/global_application_alert_config_with_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -35,9 +35,9 @@ class GlobalApplicationAlertConfigWithMetadata(BaseModel): """ GlobalApplicationAlertConfigWithMetadata """ # noqa: E501 - alert_channel_ids: Annotated[List[StrictStr], Field(min_length=0, max_length=1024)] = Field(description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") + alert_channel_ids: Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)] = Field(description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") alert_channels: Optional[Dict[str, List[StrictStr]]] = Field(default=None, description="Set of alert channel IDs associated with the severity.", alias="alertChannels") - application_ids: Optional[List[StrictStr]] = Field(default=None, description="IDs of the applications that this Smart Alert is applied to.", alias="applicationIds") + application_ids: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = Field(default=None, description="IDs of the applications that this Smart Alert is applied to.", alias="applicationIds") applications: Dict[str, ApplicationNode] = Field(description="Selection of applications, services, and endpoints that this Smart Alert configuration is associated with. This selection is connected to the defined `tagFilterExpression` by the logical `AND` operator.") boundary_scope: StrictStr = Field(description="Determines the source of the application alert configuration. An `INBOUND` scope refers to consumer-made calls. An `ALL` scope refers to both consumer and internally made calls.", alias="boundaryScope") built_in: Optional[StrictBool] = Field(default=None, description="Flag that indicates whether this configuration is a built-in Smart Alert. ", alias="builtIn") diff --git a/instana_client/models/global_applications_alert_config.py b/instana_client/models/global_applications_alert_config.py index 00d8e41..c7ee7d3 100644 --- a/instana_client/models/global_applications_alert_config.py +++ b/instana_client/models/global_applications_alert_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -35,7 +35,7 @@ class GlobalApplicationsAlertConfig(BaseModel): """ GlobalApplicationsAlertConfig """ # noqa: E501 - alert_channel_ids: Annotated[List[StrictStr], Field(min_length=0, max_length=1024)] = Field(description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") + alert_channel_ids: Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)] = Field(description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") alert_channels: Optional[Dict[str, List[StrictStr]]] = Field(default=None, description="Set of alert channel IDs associated with the severity.", alias="alertChannels") applications: Dict[str, ApplicationNode] = Field(description="Selection of applications, services, and endpoints that this Smart Alert configuration is associated with. This selection is connected to the defined `tagFilterExpression` by the logical `AND` operator.") boundary_scope: StrictStr = Field(description="Determines the source of the application alert configuration. An `INBOUND` scope refers to consumer-made calls. An `ALL` scope refers to both consumer and internally made calls.", alias="boundaryScope") diff --git a/instana_client/models/google_chat_integration.py b/instana_client/models/google_chat_integration.py index bcddea7..5e32c69 100644 --- a/instana_client/models/google_chat_integration.py +++ b/instana_client/models/google_chat_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import ConfigDict, Field, StrictStr +from pydantic import ConfigDict, Field from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self @@ -28,7 +29,7 @@ class GoogleChatIntegration(AbstractIntegration): """ GoogleChatIntegration """ # noqa: E501 - webhook_url: StrictStr = Field(alias="webhookUrl") + webhook_url: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="webhookUrl") __properties: ClassVar[List[str]] = ["id", "kind", "name", "webhookUrl"] model_config = ConfigDict( diff --git a/instana_client/models/graph_edge.py b/instana_client/models/graph_edge.py index 6d8cb2b..d6d0bc3 100644 --- a/instana_client/models/graph_edge.py +++ b/instana_client/models/graph_edge.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/graph_node.py b/instana_client/models/graph_node.py index 0bd2a9a..db78737 100644 --- a/instana_client/models/graph_node.py +++ b/instana_client/models/graph_node.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/group.py b/instana_client/models/group.py index 5644b62..708d4ab 100644 --- a/instana_client/models/group.py +++ b/instana_client/models/group.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/group_by_tag.py b/instana_client/models/group_by_tag.py index e9e2210..69b483c 100644 --- a/instana_client/models/group_by_tag.py +++ b/instana_client/models/group_by_tag.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -28,7 +29,7 @@ class GroupByTag(BaseModel): The grouping tags used to group the metric results. """ # noqa: E501 key: Optional[StrictStr] = None - tag_name: StrictStr = Field(alias="tagName") + tag_name: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="tagName") __properties: ClassVar[List[str]] = ["key", "tagName"] model_config = ConfigDict( diff --git a/instana_client/models/group_mapping.py b/instana_client/models/group_mapping.py index bd6fe33..8fd3e2e 100644 --- a/instana_client/models/group_mapping.py +++ b/instana_client/models/group_mapping.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from typing import Optional, Set @@ -28,7 +28,7 @@ class GroupMapping(BaseModel): """ GroupMapping """ # noqa: E501 - group_id: StrictStr = Field(alias="groupId") + group_id: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="groupId") id: Optional[Annotated[str, Field(min_length=0, strict=True, max_length=64)]] = None key: Annotated[str, Field(min_length=0, strict=True, max_length=65536)] team_id: Optional[Annotated[str, Field(min_length=5, strict=True, max_length=64)]] = Field(default=None, alias="teamId") diff --git a/instana_client/models/group_mapping_overview.py b/instana_client/models/group_mapping_overview.py index 91a5234..85082bd 100644 --- a/instana_client/models/group_mapping_overview.py +++ b/instana_client/models/group_mapping_overview.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/health_state.py b/instana_client/models/health_state.py index fd8b93f..99d02f4 100644 --- a/instana_client/models/health_state.py +++ b/instana_client/models/health_state.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/historic_baseline.py b/instana_client/models/historic_baseline.py index 87a1101..b475aa0 100644 --- a/instana_client/models/historic_baseline.py +++ b/instana_client/models/historic_baseline.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/host_availability_rule.py b/instana_client/models/host_availability_rule.py index 20479b6..6ce75b4 100644 --- a/instana_client/models/host_availability_rule.py +++ b/instana_client/models/host_availability_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/http_action_configuration.py b/instana_client/models/http_action_configuration.py index ffcbde1..5b0528a 100644 --- a/instana_client/models/http_action_configuration.py +++ b/instana_client/models/http_action_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -31,10 +31,10 @@ class HttpActionConfiguration(SyntheticTypeConfiguration): """ # noqa: E501 allow_insecure: Optional[StrictBool] = Field(default=None, alias="allowInsecure") body: Optional[StrictStr] = None - expect_exists: Optional[List[StrictStr]] = Field(default=None, alias="expectExists") + expect_exists: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = Field(default=None, alias="expectExists") expect_json: Optional[Dict[str, Any]] = Field(default=None, alias="expectJson") expect_match: Optional[StrictStr] = Field(default=None, alias="expectMatch") - expect_not_empty: Optional[List[StrictStr]] = Field(default=None, alias="expectNotEmpty") + expect_not_empty: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = Field(default=None, alias="expectNotEmpty") expect_status: Optional[StrictInt] = Field(default=None, alias="expectStatus") follow_redirect: Optional[StrictBool] = Field(default=None, alias="followRedirect") headers: Optional[Dict[str, StrictStr]] = None diff --git a/instana_client/models/http_action_configuration_update.py b/instana_client/models/http_action_configuration_update.py index d7fb68f..5031889 100644 --- a/instana_client/models/http_action_configuration_update.py +++ b/instana_client/models/http_action_configuration_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/http_endpoint_config.py b/instana_client/models/http_endpoint_config.py index 1a9d9f3..3688238 100644 --- a/instana_client/models/http_endpoint_config.py +++ b/instana_client/models/http_endpoint_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from instana_client.models.http_endpoint_rule import HttpEndpointRule @@ -32,7 +32,7 @@ class HttpEndpointConfig(BaseModel): endpoint_name_by_collected_path_template_rule_enabled: Optional[StrictBool] = Field(default=None, description="The highest default precedence of endpoint rule is creating endpoint is based on path template. For example, ``` /hospital/1948/patient/291148 /hospital/728/patient/924892 /hospital/47/patient/25978 /hospital/108429/patient/1847 ``` can be considered as `/hospital/{hid}/patient/{pid}` if this rule is enabled. For most of the use cases, this rule should be enabled. ", alias="endpointNameByCollectedPathTemplateRuleEnabled") endpoint_name_by_first_path_segment_rule_enabled: Optional[StrictBool] = Field(default=None, description="There are endpoint extraction rules in Instana which take the first path segment from the HTTP request and turn this into an endpoint name. For example, given the following URLs `/users/123/profile` and `/users/123/settings`, the extraction rule will only take the first segment. As a result endpoint name will be `users`. Although this is useful in cases where broad overview of monitoring is required, lot of use cases are more specified. Considering the above example, if this rule is enabled, Instana can't distinguish between `profile` or `settings` as endpoints. For use cases where endpoints has to be monitored at fine granular level, this flag should be set to `false`. ", alias="endpointNameByFirstPathSegmentRuleEnabled") rules: Annotated[List[HttpEndpointRule], Field(min_length=0, max_length=500)] = Field(description="Specify custom rule configuration apart from Instana predefined rules. This rule has the highest precedence. This is only available for HTTP endpoints.") - service_id: StrictStr = Field(description="An Instana generated unique identifier for a Service. If specified, the list of results will be filtered for the specified Service ID. Eg: `3feb3dcd206c166ef2b41c707e0cd38d7cd325aa`. One can see the service id from Instana UI by going to a Service page. In the URL, there will be `serviceId=3feb3dcd206c166ef2b41c707e0cd38d7cd325aa`. Alternatively, one can use `Get services` API endpoint to get the service id in `id` parameter. ", alias="serviceId") + service_id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="An Instana generated unique identifier for a Service. If specified, the list of results will be filtered for the specified Service ID. Eg: `3feb3dcd206c166ef2b41c707e0cd38d7cd325aa`. One can see the service id from Instana UI by going to a Service page. In the URL, there will be `serviceId=3feb3dcd206c166ef2b41c707e0cd38d7cd325aa`. Alternatively, one can use `Get services` API endpoint to get the service id in `id` parameter. ", alias="serviceId") __properties: ClassVar[List[str]] = ["endpointNameByCollectedPathTemplateRuleEnabled", "endpointNameByFirstPathSegmentRuleEnabled", "rules", "serviceId"] model_config = ConfigDict( diff --git a/instana_client/models/http_endpoint_rule.py b/instana_client/models/http_endpoint_rule.py index 5d26173..950eb16 100644 --- a/instana_client/models/http_endpoint_rule.py +++ b/instana_client/models/http_endpoint_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/http_path_segment_matching_rule.py b/instana_client/models/http_path_segment_matching_rule.py index bbee4b7..a111ba7 100644 --- a/instana_client/models/http_path_segment_matching_rule.py +++ b/instana_client/models/http_path_segment_matching_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/http_script_configuration.py b/instana_client/models/http_script_configuration.py index b3bf0fb..7fec557 100644 --- a/instana_client/models/http_script_configuration.py +++ b/instana_client/models/http_script_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/http_script_configuration_update.py b/instana_client/models/http_script_configuration_update.py index ccd5127..0183c1d 100644 --- a/instana_client/models/http_script_configuration_update.py +++ b/instana_client/models/http_script_configuration_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/hyper_param.py b/instana_client/models/hyper_param.py index 8254ea2..796109b 100644 --- a/instana_client/models/hyper_param.py +++ b/instana_client/models/hyper_param.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/identity_provider_patch.py b/instana_client/models/identity_provider_patch.py index 804d7d2..8aa9d71 100644 --- a/instana_client/models/identity_provider_patch.py +++ b/instana_client/models/identity_provider_patch.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/idp_status_update.py b/instana_client/models/idp_status_update.py new file mode 100644 index 0000000..8e30636 --- /dev/null +++ b/instana_client/models/idp_status_update.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class IdpStatusUpdate(BaseModel): + """ + IdpStatusUpdate + """ # noqa: E501 + enabled: Optional[StrictBool] = None + __properties: ClassVar[List[str]] = ["enabled"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of IdpStatusUpdate from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of IdpStatusUpdate from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "enabled": obj.get("enabled") + }) + return _obj + + diff --git a/instana_client/models/impacted_beacon_info.py b/instana_client/models/impacted_beacon_info.py index 8361f0b..5cfbee6 100644 --- a/instana_client/models/impacted_beacon_info.py +++ b/instana_client/models/impacted_beacon_info.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/infra_alert_config.py b/instana_client/models/infra_alert_config.py index 48801f6..8924bf6 100644 --- a/instana_client/models/infra_alert_config.py +++ b/instana_client/models/infra_alert_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -34,23 +34,24 @@ class InfraAlertConfig(BaseModel): """ InfraAlertConfig """ # noqa: E501 - alert_channel_ids: Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=1024)]] = Field(default=None, description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") + alert_channel_ids: Optional[Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)]] = Field(default=None, description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") alert_channels: Optional[Dict[str, List[StrictStr]]] = Field(default=None, description="Set of alert channel IDs associated with the severity.", alias="alertChannels") custom_payload_fields: Annotated[List[CustomPayloadField], Field(min_length=0, max_length=20)] = Field(description="Custom payload fields to send additional information in the alert notifications. Can be left empty.", alias="customPayloadFields") description: Annotated[str, Field(min_length=0, strict=True, max_length=65536)] = Field(description="Description of the Infrastructure Smart Alert. Used as a template for the description of alert/event notifications triggered by this Smart Alert configuration.") evaluation_type: Optional[StrictStr] = Field(default=None, description="Determines whether we evaluate each infra entity independently or group of entities will be evaluated together.", alias="evaluationType") grace_period: Optional[StrictInt] = Field(default=None, description="The duration for which an alert remains open after conditions are no longer violated, with the alert auto-closing once the grace period expires.", alias="gracePeriod") granularity: StrictInt = Field(description="The evaluation granularity used for detection of violations of the defined threshold. Defines the size of the tumbling window used.") - group_by: Annotated[List[StrictStr], Field(min_length=0, max_length=5)] = Field(description="The grouping tags used to group the metric results.", alias="groupBy") + group_by: Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=5)] = Field(description="The grouping tags used to group the metric results.", alias="groupBy") name: Annotated[str, Field(min_length=0, strict=True, max_length=256)] = Field(description="Name of the Infrastructure Smart Alert. Used as a template for the title of alert/event notifications triggered by this Smart Alert configuration.") rule: Optional[InfraAlertRule] = None + rule_logical_operator: Optional[StrictStr] = Field(default=None, description="Set AND / OR", alias="ruleLogicalOperator") rules: Optional[Annotated[List[RuleWithThresholdInfraAlertRule], Field(min_length=1, max_length=5)]] = Field(default=None, description="A list of rules where each rule is associated with multiple thresholds and their corresponding severity levels. This enables more complex alert configurations with validations to ensure consistent and logical threshold-severity combinations.") severity: Optional[StrictInt] = Field(default=None, description="The severity of the alert when triggered, which is either 5 (Warning), or 10 (Critical).") tag_filter_expression: TagFilterExpressionElement = Field(alias="tagFilterExpression") threshold: Optional[Threshold] = None time_threshold: InfraTimeThreshold = Field(alias="timeThreshold") triggering: Optional[StrictBool] = Field(default=None, description="Optional flag to indicate whether an Incident is also triggered or not.") - __properties: ClassVar[List[str]] = ["alertChannelIds", "alertChannels", "customPayloadFields", "description", "evaluationType", "gracePeriod", "granularity", "groupBy", "name", "rule", "rules", "severity", "tagFilterExpression", "threshold", "timeThreshold", "triggering"] + __properties: ClassVar[List[str]] = ["alertChannelIds", "alertChannels", "customPayloadFields", "description", "evaluationType", "gracePeriod", "granularity", "groupBy", "name", "rule", "ruleLogicalOperator", "rules", "severity", "tagFilterExpression", "threshold", "timeThreshold", "triggering"] @field_validator('evaluation_type') def evaluation_type_validate_enum(cls, value): @@ -69,6 +70,16 @@ def granularity_validate_enum(cls, value): raise ValueError("must be one of enum values (60000, 300000, 600000, 900000, 1200000, 1800000)") return value + @field_validator('rule_logical_operator') + def rule_logical_operator_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['AND', 'OR']): + raise ValueError("must be one of enum values ('AND', 'OR')") + return value + model_config = ConfigDict( populate_by_name=True, validate_assignment=True, @@ -156,6 +167,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "groupBy": obj.get("groupBy"), "name": obj.get("name"), "rule": InfraAlertRule.from_dict(obj["rule"]) if obj.get("rule") is not None else None, + "ruleLogicalOperator": obj.get("ruleLogicalOperator"), "rules": [RuleWithThresholdInfraAlertRule.from_dict(_item) for _item in obj["rules"]] if obj.get("rules") is not None else None, "severity": obj.get("severity"), "tagFilterExpression": TagFilterExpressionElement.from_dict(obj["tagFilterExpression"]) if obj.get("tagFilterExpression") is not None else None, diff --git a/instana_client/models/infra_alert_config_with_metadata.py b/instana_client/models/infra_alert_config_with_metadata.py index d7bfa05..ef1835c 100644 --- a/instana_client/models/infra_alert_config_with_metadata.py +++ b/instana_client/models/infra_alert_config_with_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -34,7 +34,7 @@ class InfraAlertConfigWithMetadata(BaseModel): """ InfraAlertConfigWithMetadata """ # noqa: E501 - alert_channel_ids: Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=1024)]] = Field(default=None, description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") + alert_channel_ids: Optional[Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)]] = Field(default=None, description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") alert_channels: Optional[Dict[str, List[StrictStr]]] = Field(default=None, description="Set of alert channel IDs associated with the severity.", alias="alertChannels") created: Optional[Annotated[int, Field(strict=True, ge=1)]] = None custom_payload_fields: Annotated[List[CustomPayloadField], Field(min_length=0, max_length=20)] = Field(description="Custom payload fields to send additional information in the alert notifications. Can be left empty.", alias="customPayloadFields") @@ -43,19 +43,20 @@ class InfraAlertConfigWithMetadata(BaseModel): evaluation_type: Optional[StrictStr] = Field(default=None, description="Determines whether we evaluate each infra entity independently or group of entities will be evaluated together.", alias="evaluationType") grace_period: Optional[StrictInt] = Field(default=None, description="The duration for which an alert remains open after conditions are no longer violated, with the alert auto-closing once the grace period expires.", alias="gracePeriod") granularity: StrictInt = Field(description="The evaluation granularity used for detection of violations of the defined threshold. Defines the size of the tumbling window used.") - group_by: Annotated[List[StrictStr], Field(min_length=0, max_length=5)] = Field(description="The grouping tags used to group the metric results.", alias="groupBy") + group_by: Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=5)] = Field(description="The grouping tags used to group the metric results.", alias="groupBy") id: Annotated[str, Field(min_length=0, strict=True, max_length=64)] initial_created: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, alias="initialCreated") name: Annotated[str, Field(min_length=0, strict=True, max_length=256)] = Field(description="Name of the Infrastructure Smart Alert. Used as a template for the title of alert/event notifications triggered by this Smart Alert configuration.") read_only: Optional[StrictBool] = Field(default=None, alias="readOnly") rule: Optional[InfraAlertRule] = None + rule_logical_operator: Optional[StrictStr] = Field(default=None, description="Set AND / OR", alias="ruleLogicalOperator") rules: Optional[Annotated[List[RuleWithThresholdInfraAlertRule], Field(min_length=1, max_length=5)]] = Field(default=None, description="A list of rules where each rule is associated with multiple thresholds and their corresponding severity levels. This enables more complex alert configurations with validations to ensure consistent and logical threshold-severity combinations.") severity: Optional[StrictInt] = Field(default=None, description="The severity of the alert when triggered, which is either 5 (Warning), or 10 (Critical).") tag_filter_expression: TagFilterExpressionElement = Field(alias="tagFilterExpression") threshold: Optional[Threshold] = None time_threshold: InfraTimeThreshold = Field(alias="timeThreshold") triggering: Optional[StrictBool] = Field(default=None, description="Optional flag to indicate whether an Incident is also triggered or not.") - __properties: ClassVar[List[str]] = ["alertChannelIds", "alertChannels", "created", "customPayloadFields", "description", "enabled", "evaluationType", "gracePeriod", "granularity", "groupBy", "id", "initialCreated", "name", "readOnly", "rule", "rules", "severity", "tagFilterExpression", "threshold", "timeThreshold", "triggering"] + __properties: ClassVar[List[str]] = ["alertChannelIds", "alertChannels", "created", "customPayloadFields", "description", "enabled", "evaluationType", "gracePeriod", "granularity", "groupBy", "id", "initialCreated", "name", "readOnly", "rule", "ruleLogicalOperator", "rules", "severity", "tagFilterExpression", "threshold", "timeThreshold", "triggering"] @field_validator('evaluation_type') def evaluation_type_validate_enum(cls, value): @@ -74,6 +75,16 @@ def granularity_validate_enum(cls, value): raise ValueError("must be one of enum values (60000, 300000, 600000, 900000, 1200000, 1800000)") return value + @field_validator('rule_logical_operator') + def rule_logical_operator_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['AND', 'OR']): + raise ValueError("must be one of enum values ('AND', 'OR')") + return value + model_config = ConfigDict( populate_by_name=True, validate_assignment=True, @@ -166,6 +177,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "readOnly": obj.get("readOnly"), "rule": InfraAlertRule.from_dict(obj["rule"]) if obj.get("rule") is not None else None, + "ruleLogicalOperator": obj.get("ruleLogicalOperator"), "rules": [RuleWithThresholdInfraAlertRule.from_dict(_item) for _item in obj["rules"]] if obj.get("rules") is not None else None, "severity": obj.get("severity"), "tagFilterExpression": TagFilterExpressionElement.from_dict(obj["tagFilterExpression"]) if obj.get("tagFilterExpression") is not None else None, diff --git a/instana_client/models/infra_alert_rule.py b/instana_client/models/infra_alert_rule.py index dd7459d..5623eba 100644 --- a/instana_client/models/infra_alert_rule.py +++ b/instana_client/models/infra_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,6 +21,7 @@ from importlib import import_module from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union +from typing_extensions import Annotated from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self @@ -38,7 +39,7 @@ class InfraAlertRule(BaseModel): cross_series_aggregation: Optional[StrictStr] = Field(default=None, alias="crossSeriesAggregation") entity_type: Optional[StrictStr] = Field(default=None, alias="entityType") metric_group_by: Optional[List[StrictStr]] = Field(default=None, alias="metricGroupBy") - metric_name: StrictStr = Field(alias="metricName") + metric_name: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="metricName") metric_tag_filter_expression: Optional[TagFilterExpressionElement] = Field(default=None, alias="metricTagFilterExpression") regex: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["aggregation", "alertType", "crossSeriesAggregation", "entityType", "metricGroupBy", "metricName", "metricTagFilterExpression", "regex"] diff --git a/instana_client/models/infra_event_result.py b/instana_client/models/infra_event_result.py index e568db0..f0c1f53 100644 --- a/instana_client/models/infra_event_result.py +++ b/instana_client/models/infra_event_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/infra_metric_configuration.py b/instana_client/models/infra_metric_configuration.py index 9e70593..b953ae0 100644 --- a/instana_client/models/infra_metric_configuration.py +++ b/instana_client/models/infra_metric_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/infra_slo_entity.py b/instana_client/models/infra_slo_entity.py index 0f5c395..76720f9 100644 --- a/instana_client/models/infra_slo_entity.py +++ b/instana_client/models/infra_slo_entity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/infra_time_threshold.py b/instana_client/models/infra_time_threshold.py index a65b19b..7c4d677 100644 --- a/instana_client/models/infra_time_threshold.py +++ b/instana_client/models/infra_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/infrastructure_entities_result.py b/instana_client/models/infrastructure_entities_result.py index 4c1e80a..0852383 100644 --- a/instana_client/models/infrastructure_entities_result.py +++ b/instana_client/models/infrastructure_entities_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/infrastructure_group.py b/instana_client/models/infrastructure_group.py index cbcc12f..06b2382 100644 --- a/instana_client/models/infrastructure_group.py +++ b/instana_client/models/infrastructure_group.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/infrastructure_groups_result.py b/instana_client/models/infrastructure_groups_result.py index 0dca05f..ff43ffe 100644 --- a/instana_client/models/infrastructure_groups_result.py +++ b/instana_client/models/infrastructure_groups_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/infrastructure_item.py b/instana_client/models/infrastructure_item.py index 5cc015b..f3ac0f0 100644 --- a/instana_client/models/infrastructure_item.py +++ b/instana_client/models/infrastructure_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/infrastructure_metric_result.py b/instana_client/models/infrastructure_metric_result.py index 3b330b1..6b4ce00 100644 --- a/instana_client/models/infrastructure_metric_result.py +++ b/instana_client/models/infrastructure_metric_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/instana_version_info.py b/instana_client/models/instana_version_info.py index a02c037..2e18608 100644 --- a/instana_client/models/instana_version_info.py +++ b/instana_client/models/instana_version_info.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/integration_overview.py b/instana_client/models/integration_overview.py index 3ea7b98..48179cf 100644 --- a/instana_client/models/integration_overview.py +++ b/instana_client/models/integration_overview.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from instana_client.models.api_tag import ApiTag from typing import Optional, Set from typing_extensions import Self @@ -28,7 +29,7 @@ class IntegrationOverview(BaseModel): """ IntegrationOverview """ # noqa: E501 - id: StrictStr = Field(description="Unique ID of the alert channel") + id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Unique ID of the alert channel") kind: StrictStr = Field(description="The type of the Alerting Channel.") name: StrictStr = Field(description="The name of the Alerting Channel.") properties: Optional[Dict[str, StrictStr]] = Field(default=None, description="Properties of the alert channel in pairs of key/value") diff --git a/instana_client/models/invitation.py b/instana_client/models/invitation.py index f0374ce..d5248a0 100644 --- a/instana_client/models/invitation.py +++ b/instana_client/models/invitation.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -27,8 +28,8 @@ class Invitation(BaseModel): """ Invitation """ # noqa: E501 - email: StrictStr - group_id: StrictStr = Field(alias="groupId") + email: Annotated[str, Field(min_length=1, strict=True)] + group_id: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="groupId") message: Optional[StrictStr] = None path: Optional[StrictStr] = None team_id: Optional[StrictStr] = Field(default=None, alias="teamId") diff --git a/instana_client/models/invitation_response.py b/instana_client/models/invitation_response.py index 9543d41..672810d 100644 --- a/instana_client/models/invitation_response.py +++ b/instana_client/models/invitation_response.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/invitation_result.py b/instana_client/models/invitation_result.py index a6b8dca..141dd32 100644 --- a/instana_client/models/invitation_result.py +++ b/instana_client/models/invitation_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/ip_masking_configuration.py b/instana_client/models/ip_masking_configuration.py index 3cb6978..a4c09c4 100644 --- a/instana_client/models/ip_masking_configuration.py +++ b/instana_client/models/ip_masking_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/js_stack_trace_line.py b/instana_client/models/js_stack_trace_line.py index 76c93f8..0d6b70f 100644 --- a/instana_client/models/js_stack_trace_line.py +++ b/instana_client/models/js_stack_trace_line.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -29,7 +29,7 @@ class JsStackTraceLine(BaseModel): JsStackTraceLine """ # noqa: E501 column: Optional[Annotated[int, Field(strict=True, ge=-1)]] = None - file: StrictStr + file: Annotated[str, Field(min_length=1, strict=True)] line: Optional[Annotated[int, Field(strict=True, ge=-1)]] = None name: Optional[StrictStr] = None translation_explanation: Optional[StrictStr] = Field(default=None, alias="translationExplanation") diff --git a/instana_client/models/kubernetes_physical_context.py b/instana_client/models/kubernetes_physical_context.py index 428fcd7..0d19da4 100644 --- a/instana_client/models/kubernetes_physical_context.py +++ b/instana_client/models/kubernetes_physical_context.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/latency_blueprint_indicator.py b/instana_client/models/latency_blueprint_indicator.py index a120b0e..98f65b2 100644 --- a/instana_client/models/latency_blueprint_indicator.py +++ b/instana_client/models/latency_blueprint_indicator.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/llm_egress_gateway.py b/instana_client/models/llm_egress_gateway.py index 6acfa9a..70e0206 100644 --- a/instana_client/models/llm_egress_gateway.py +++ b/instana_client/models/llm_egress_gateway.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,11 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from uuid import UUID +from instana_client.models.llm_gateway_capability import LLMGatewayCapability +from instana_client.models.llm_gateway_model import LLMGatewayModel +from instana_client.models.llm_gateway_service import LLMGatewayService from typing import Optional, Set from typing_extensions import Self @@ -27,26 +32,21 @@ class LLMEgressGateway(BaseModel): """ Custom handler definition. """ # noqa: E501 - ai_model: Optional[StrictStr] = Field(default=None, alias="aiModel") - configurations: Optional[Dict[str, Any]] = None - created_at: StrictStr = Field(alias="createdAt") + capabilities: List[LLMGatewayCapability] + created_at: Optional[StrictStr] = Field(default=None, alias="createdAt") description: Optional[StrictStr] = None enabled: Optional[StrictBool] = None - endpoint_api_key: Optional[StrictStr] = Field(default=None, alias="endpointApiKey") - endpoint_url: Optional[StrictStr] = Field(default=None, alias="endpointUrl") - id: StrictStr + id: UUID instana_agents: Optional[Dict[str, Any]] = Field(default=None, alias="instanaAgents") metadata: Optional[Dict[str, Any]] = None - modified_at: StrictStr = Field(alias="modifiedAt") - name: StrictStr - prompt: StrictStr - supports: Dict[str, Any] + model: LLMGatewayModel + modified_at: Optional[StrictStr] = Field(default=None, alias="modifiedAt") + name: Annotated[str, Field(min_length=1, strict=True)] + prompt: Optional[StrictStr] = None + service: LLMGatewayService system: Optional[StrictBool] = None - tenant_unit_id: StrictStr = Field(alias="tenantUnitId") - watsonx_key: Optional[StrictStr] = Field(default=None, alias="watsonxKey") - watsonx_project: Optional[StrictStr] = Field(default=None, alias="watsonxProject") - watsonx_url: Optional[StrictStr] = Field(default=None, alias="watsonxUrl") - __properties: ClassVar[List[str]] = ["aiModel", "configurations", "createdAt", "description", "enabled", "endpointApiKey", "endpointUrl", "id", "instanaAgents", "metadata", "modifiedAt", "name", "prompt", "supports", "system", "tenantUnitId", "watsonxKey", "watsonxProject", "watsonxUrl"] + tenant_unit_id: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="tenantUnitId") + __properties: ClassVar[List[str]] = ["capabilities", "createdAt", "description", "enabled", "id", "instanaAgents", "metadata", "model", "modifiedAt", "name", "prompt", "service", "system", "tenantUnitId"] model_config = ConfigDict( populate_by_name=True, @@ -87,6 +87,19 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of each item in capabilities (list) + _items = [] + if self.capabilities: + for _item_capabilities in self.capabilities: + if _item_capabilities: + _items.append(_item_capabilities.to_dict()) + _dict['capabilities'] = _items + # override the default output from pydantic by calling `to_dict()` of model + if self.model: + _dict['model'] = self.model.to_dict() + # override the default output from pydantic by calling `to_dict()` of service + if self.service: + _dict['service'] = self.service.to_dict() return _dict @classmethod @@ -99,25 +112,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "aiModel": obj.get("aiModel"), - "configurations": obj.get("configurations"), + "capabilities": [LLMGatewayCapability.from_dict(_item) for _item in obj["capabilities"]] if obj.get("capabilities") is not None else None, "createdAt": obj.get("createdAt"), "description": obj.get("description"), "enabled": obj.get("enabled"), - "endpointApiKey": obj.get("endpointApiKey"), - "endpointUrl": obj.get("endpointUrl"), "id": obj.get("id"), "instanaAgents": obj.get("instanaAgents"), "metadata": obj.get("metadata"), + "model": LLMGatewayModel.from_dict(obj["model"]) if obj.get("model") is not None else None, "modifiedAt": obj.get("modifiedAt"), "name": obj.get("name"), "prompt": obj.get("prompt"), - "supports": obj.get("supports"), + "service": LLMGatewayService.from_dict(obj["service"]) if obj.get("service") is not None else None, "system": obj.get("system"), - "tenantUnitId": obj.get("tenantUnitId"), - "watsonxKey": obj.get("watsonxKey"), - "watsonxProject": obj.get("watsonxProject"), - "watsonxUrl": obj.get("watsonxUrl") + "tenantUnitId": obj.get("tenantUnitId") }) return _obj diff --git a/instana_client/models/llm_gateway_capability.py b/instana_client/models/llm_gateway_capability.py new file mode 100644 index 0000000..820cd49 --- /dev/null +++ b/instana_client/models/llm_gateway_capability.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class LLMGatewayCapability(BaseModel): + """ + LLMGatewayCapability + """ # noqa: E501 + enabled: Optional[StrictBool] = None + id: Annotated[str, Field(min_length=1, strict=True)] + name: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["enabled", "id", "name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of LLMGatewayCapability from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of LLMGatewayCapability from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "enabled": obj.get("enabled"), + "id": obj.get("id"), + "name": obj.get("name") + }) + return _obj + + diff --git a/instana_client/models/llm_gateway_model.py b/instana_client/models/llm_gateway_model.py new file mode 100644 index 0000000..e93656a --- /dev/null +++ b/instana_client/models/llm_gateway_model.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class LLMGatewayModel(BaseModel): + """ + LLMGatewayModel + """ # noqa: E501 + configuration: Optional[Dict[str, Dict[str, Any]]] = None + name: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["configuration", "name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of LLMGatewayModel from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of LLMGatewayModel from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "configuration": obj.get("configuration"), + "name": obj.get("name") + }) + return _obj + + diff --git a/instana_client/models/llm_gateway_service.py b/instana_client/models/llm_gateway_service.py new file mode 100644 index 0000000..ae65815 --- /dev/null +++ b/instana_client/models/llm_gateway_service.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class LLMGatewayService(BaseModel): + """ + LLMGatewayService + """ # noqa: E501 + connection_parameters: Optional[Dict[str, StrictStr]] = Field(default=None, alias="connectionParameters") + id: Annotated[str, Field(min_length=1, strict=True)] + name: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["connectionParameters", "id", "name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of LLMGatewayService from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of LLMGatewayService from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "connectionParameters": obj.get("connectionParameters"), + "id": obj.get("id"), + "name": obj.get("name") + }) + return _obj + + diff --git a/instana_client/models/llm_model_price.py b/instana_client/models/llm_model_price.py new file mode 100644 index 0000000..b897125 --- /dev/null +++ b/instana_client/models/llm_model_price.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class LlmModelPrice(BaseModel): + """ + LlmModelPrice + """ # noqa: E501 + default_input_cost: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="defaultInputCost") + default_output_cost: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="defaultOutputCost") + has_default_price: Optional[StrictBool] = Field(default=None, alias="hasDefaultPrice") + input_cost: Union[StrictFloat, StrictInt] = Field(alias="inputCost") + is_user_defined: Optional[StrictBool] = Field(default=None, alias="isUserDefined") + model_name: Optional[StrictStr] = Field(default=None, alias="modelName") + output_cost: Union[StrictFloat, StrictInt] = Field(alias="outputCost") + platform: Optional[StrictStr] = None + provider: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["defaultInputCost", "defaultOutputCost", "hasDefaultPrice", "inputCost", "isUserDefined", "modelName", "outputCost", "platform", "provider"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of LlmModelPrice from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of LlmModelPrice from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "defaultInputCost": obj.get("defaultInputCost"), + "defaultOutputCost": obj.get("defaultOutputCost"), + "hasDefaultPrice": obj.get("hasDefaultPrice"), + "inputCost": obj.get("inputCost"), + "isUserDefined": obj.get("isUserDefined"), + "modelName": obj.get("modelName"), + "outputCost": obj.get("outputCost"), + "platform": obj.get("platform"), + "provider": obj.get("provider") + }) + return _obj + + diff --git a/instana_client/models/llm_model_price_metadata.py b/instana_client/models/llm_model_price_metadata.py new file mode 100644 index 0000000..d6e6bfd --- /dev/null +++ b/instana_client/models/llm_model_price_metadata.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class LlmModelPriceMetadata(BaseModel): + """ + LlmModelPriceMetadata + """ # noqa: E501 + currency_code: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="currencyCode") + __properties: ClassVar[List[str]] = ["currencyCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of LlmModelPriceMetadata from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of LlmModelPriceMetadata from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "currencyCode": obj.get("currencyCode") + }) + return _obj + + diff --git a/instana_client/models/location_status.py b/instana_client/models/location_status.py index 310c9a6..01b6bc3 100644 --- a/instana_client/models/location_status.py +++ b/instana_client/models/location_status.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -28,7 +29,7 @@ class LocationStatus(BaseModel): LocationStatus """ # noqa: E501 location_display_label: Optional[StrictStr] = Field(default=None, alias="locationDisplayLabel") - location_id: StrictStr = Field(alias="locationId") + location_id: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="locationId") success_rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="successRate") success_runs: Optional[StrictInt] = Field(default=None, alias="successRuns") total_test_runs: Optional[StrictInt] = Field(default=None, alias="totalTestRuns") diff --git a/instana_client/models/log_alert_config.py b/instana_client/models/log_alert_config.py index 5e7ae44..4d6c634 100644 --- a/instana_client/models/log_alert_config.py +++ b/instana_client/models/log_alert_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -34,7 +34,7 @@ class LogAlertConfig(BaseModel): """ LogAlertConfig """ # noqa: E501 - alert_channel_ids: Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=1024)]] = Field(default=None, description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") + alert_channel_ids: Optional[Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)]] = Field(default=None, description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") alert_channels: Optional[Dict[str, List[StrictStr]]] = Field(default=None, description="Set of alert channel IDs associated with the severity.", alias="alertChannels") custom_payload_fields: Optional[Annotated[List[CustomPayloadField], Field(min_length=0, max_length=20)]] = Field(default=None, description="Custom payload fields to send additional information in the alert notifications. Can be left empty.", alias="customPayloadFields") description: Annotated[str, Field(min_length=0, strict=True, max_length=65536)] = Field(description="Description of the Log Smart Alert. Used as a template for the description of alert/event notifications triggered by this Smart Alert configuration.") diff --git a/instana_client/models/log_alert_config_with_metadata.py b/instana_client/models/log_alert_config_with_metadata.py index 9612a1d..22e7a8e 100644 --- a/instana_client/models/log_alert_config_with_metadata.py +++ b/instana_client/models/log_alert_config_with_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -34,7 +34,7 @@ class LogAlertConfigWithMetadata(BaseModel): """ LogAlertConfigWithMetadata """ # noqa: E501 - alert_channel_ids: Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=1024)]] = Field(default=None, description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") + alert_channel_ids: Optional[Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)]] = Field(default=None, description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") alert_channels: Optional[Dict[str, List[StrictStr]]] = Field(default=None, description="Set of alert channel IDs associated with the severity.", alias="alertChannels") created: Optional[Annotated[int, Field(strict=True, ge=1)]] = None custom_payload_fields: Optional[Annotated[List[CustomPayloadField], Field(min_length=0, max_length=20)]] = Field(default=None, description="Custom payload fields to send additional information in the alert notifications. Can be left empty.", alias="customPayloadFields") diff --git a/instana_client/models/log_alert_rule.py b/instana_client/models/log_alert_rule.py index 7d44202..1cf7221 100644 --- a/instana_client/models/log_alert_rule.py +++ b/instana_client/models/log_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,6 +21,7 @@ from importlib import import_module from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -34,7 +35,7 @@ class LogAlertRule(BaseModel): """ # noqa: E501 aggregation: Optional[StrictStr] = None alert_type: StrictStr = Field(alias="alertType") - metric_name: StrictStr = Field(alias="metricName") + metric_name: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="metricName") __properties: ClassVar[List[str]] = ["aggregation", "alertType", "metricName"] @field_validator('aggregation') diff --git a/instana_client/models/log_count_alert_rule.py b/instana_client/models/log_count_alert_rule.py index 3ec8f35..a3d7393 100644 --- a/instana_client/models/log_count_alert_rule.py +++ b/instana_client/models/log_count_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/log_entry_actor.py b/instana_client/models/log_entry_actor.py index ae52107..211dae1 100644 --- a/instana_client/models/log_entry_actor.py +++ b/instana_client/models/log_entry_actor.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -28,8 +29,8 @@ class LogEntryActor(BaseModel): LogEntryActor """ # noqa: E501 email: Optional[StrictStr] = None - id: StrictStr - name: StrictStr + id: Annotated[str, Field(min_length=1, strict=True)] + name: Annotated[str, Field(min_length=1, strict=True)] type: StrictStr __properties: ClassVar[List[str]] = ["email", "id", "name", "type"] diff --git a/instana_client/models/log_event_result.py b/instana_client/models/log_event_result.py index 94a86ac..dc6ea52 100644 --- a/instana_client/models/log_event_result.py +++ b/instana_client/models/log_event_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/log_time_threshold.py b/instana_client/models/log_time_threshold.py index 42d9f88..c4391a2 100644 --- a/instana_client/models/log_time_threshold.py +++ b/instana_client/models/log_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/log_volume_group.py b/instana_client/models/log_volume_group.py index 19d84d4..db4fc47 100644 --- a/instana_client/models/log_volume_group.py +++ b/instana_client/models/log_volume_group.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/log_volume_usage_item.py b/instana_client/models/log_volume_usage_item.py index bcd929a..1a90105 100644 --- a/instana_client/models/log_volume_usage_item.py +++ b/instana_client/models/log_volume_usage_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/log_volume_usage_result.py b/instana_client/models/log_volume_usage_result.py index 0d8d4b8..a70da7e 100644 --- a/instana_client/models/log_volume_usage_result.py +++ b/instana_client/models/log_volume_usage_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/logs_application_alert_rule.py b/instana_client/models/logs_application_alert_rule.py index 15158eb..07db69b 100644 --- a/instana_client/models/logs_application_alert_rule.py +++ b/instana_client/models/logs_application_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -54,8 +54,8 @@ def loglevel_validate_enum(cls, value): @field_validator('operator') def operator_validate_enum(cls, value): """Validates the enum""" - if value not in set(['EQUALS', 'CONTAINS', 'LESS_THAN', 'LESS_OR_EQUAL_THAN', 'GREATER_THAN', 'GREATER_OR_EQUAL_THAN', 'NOT_EMPTY', 'NOT_EQUAL', 'NOT_CONTAIN', 'IS_EMPTY', 'NOT_BLANK', 'IS_BLANK', 'STARTS_WITH', 'ENDS_WITH', 'NOT_STARTS_WITH', 'NOT_ENDS_WITH', 'REGEX_MATCH']): - raise ValueError("must be one of enum values ('EQUALS', 'CONTAINS', 'LESS_THAN', 'LESS_OR_EQUAL_THAN', 'GREATER_THAN', 'GREATER_OR_EQUAL_THAN', 'NOT_EMPTY', 'NOT_EQUAL', 'NOT_CONTAIN', 'IS_EMPTY', 'NOT_BLANK', 'IS_BLANK', 'STARTS_WITH', 'ENDS_WITH', 'NOT_STARTS_WITH', 'NOT_ENDS_WITH', 'REGEX_MATCH')") + if value not in set(['EQUALS', 'CONTAINS', 'IN', 'NOT_IN', 'LESS_THAN', 'LESS_OR_EQUAL_THAN', 'GREATER_THAN', 'GREATER_OR_EQUAL_THAN', 'NOT_EMPTY', 'NOT_EQUAL', 'NOT_CONTAIN', 'IS_EMPTY', 'NOT_BLANK', 'IS_BLANK', 'STARTS_WITH', 'ENDS_WITH', 'NOT_STARTS_WITH', 'NOT_ENDS_WITH', 'REGEX_MATCH']): + raise ValueError("must be one of enum values ('EQUALS', 'CONTAINS', 'IN', 'NOT_IN', 'LESS_THAN', 'LESS_OR_EQUAL_THAN', 'GREATER_THAN', 'GREATER_OR_EQUAL_THAN', 'NOT_EMPTY', 'NOT_EQUAL', 'NOT_CONTAIN', 'IS_EMPTY', 'NOT_BLANK', 'IS_BLANK', 'STARTS_WITH', 'ENDS_WITH', 'NOT_STARTS_WITH', 'NOT_ENDS_WITH', 'REGEX_MATCH')") return value model_config = ConfigDict( diff --git a/instana_client/models/maintenance_config.py b/instana_client/models/maintenance_config.py index df226e4..bb7c93f 100644 --- a/instana_client/models/maintenance_config.py +++ b/instana_client/models/maintenance_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/maintenance_config_scheduling.py b/instana_client/models/maintenance_config_scheduling.py index 30a3daf..f475202 100644 --- a/instana_client/models/maintenance_config_scheduling.py +++ b/instana_client/models/maintenance_config_scheduling.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/maintenance_config_v2.py b/instana_client/models/maintenance_config_v2.py index 1fb239b..05cbf01 100644 --- a/instana_client/models/maintenance_config_v2.py +++ b/instana_client/models/maintenance_config_v2.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/maintenance_config_v2_with_state_and_occurrence.py b/instana_client/models/maintenance_config_v2_with_state_and_occurrence.py index a857f75..f8f8766 100644 --- a/instana_client/models/maintenance_config_v2_with_state_and_occurrence.py +++ b/instana_client/models/maintenance_config_v2_with_state_and_occurrence.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/maintenance_config_with_last_updated.py b/instana_client/models/maintenance_config_with_last_updated.py index 3c60ad1..dc5ed9f 100644 --- a/instana_client/models/maintenance_config_with_last_updated.py +++ b/instana_client/models/maintenance_config_with_last_updated.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/maintenance_window.py b/instana_client/models/maintenance_window.py index fc42aed..608cfe3 100644 --- a/instana_client/models/maintenance_window.py +++ b/instana_client/models/maintenance_window.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/manual_alerting_channel_configuration.py b/instana_client/models/manual_alerting_channel_configuration.py index bd95046..658af9d 100644 --- a/instana_client/models/manual_alerting_channel_configuration.py +++ b/instana_client/models/manual_alerting_channel_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/manual_close_info.py b/instana_client/models/manual_close_info.py index 704ed2b..e6d800e 100644 --- a/instana_client/models/manual_close_info.py +++ b/instana_client/models/manual_close_info.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -32,7 +32,7 @@ class ManualCloseInfo(BaseModel): disable_event: Optional[StrictBool] = Field(default=None, description="Flag to indicate whether to disable the event.", alias="disableEvent") event_ids: Optional[List[StrictStr]] = Field(default=None, description="The event IDs to manually close, in case of multi close.", alias="eventIds") mute_alerts: Optional[StrictBool] = Field(default=None, description="Flag to indicate whether to mute alerts.", alias="muteAlerts") - reason_for_closing: StrictStr = Field(description="The reason for manual closing.", alias="reasonForClosing") + reason_for_closing: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The reason for manual closing.", alias="reasonForClosing") username: Annotated[str, Field(min_length=0, strict=True, max_length=256)] = Field(description="The user name.") __properties: ClassVar[List[str]] = ["closeTimestamp", "disableEvent", "eventIds", "muteAlerts", "reasonForClosing", "username"] diff --git a/instana_client/models/manual_service_config.py b/instana_client/models/manual_service_config.py index 0bbd40e..c57163c 100644 --- a/instana_client/models/manual_service_config.py +++ b/instana_client/models/manual_service_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/match_all_http_path_segment_matching_rule.py b/instana_client/models/match_all_http_path_segment_matching_rule.py index dfcec46..8ecc112 100644 --- a/instana_client/models/match_all_http_path_segment_matching_rule.py +++ b/instana_client/models/match_all_http_path_segment_matching_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/match_expression_dto.py b/instana_client/models/match_expression_dto.py index 47af1aa..fae2897 100644 --- a/instana_client/models/match_expression_dto.py +++ b/instana_client/models/match_expression_dto.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/meta_data.py b/instana_client/models/meta_data.py index 38d7b51..a46d48e 100644 --- a/instana_client/models/meta_data.py +++ b/instana_client/models/meta_data.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/metric_api_result.py b/instana_client/models/metric_api_result.py index 16502cf..022b7fa 100644 --- a/instana_client/models/metric_api_result.py +++ b/instana_client/models/metric_api_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/metric_config.py b/instana_client/models/metric_config.py index 29223f5..a5ec813 100644 --- a/instana_client/models/metric_config.py +++ b/instana_client/models/metric_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -29,7 +30,7 @@ class MetricConfig(BaseModel): """ # noqa: E501 aggregation: StrictStr = Field(description="Set aggregation that can be applied to a series of values. Eg: `MEAN`.") granularity: Optional[StrictInt] = Field(default=None, description="If the granularity is set you will get data points with the specified granularity in seconds. Default: `1000` milliseconds") - metric: StrictStr = Field(description="Set a particular metric, eg: `latency`.") + metric: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Set a particular metric, eg: `latency`.") __properties: ClassVar[List[str]] = ["aggregation", "granularity", "metric"] @field_validator('aggregation') diff --git a/instana_client/models/metric_configuration.py b/instana_client/models/metric_configuration.py index 3f981c4..226f86e 100644 --- a/instana_client/models/metric_configuration.py +++ b/instana_client/models/metric_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -29,7 +29,7 @@ class MetricConfiguration(BaseModel): Details regarding the metric to be configured, including the metric name, threshold, and aggregation method """ # noqa: E501 metric_aggregation: Optional[StrictStr] = Field(default=None, description="Specifies the types of aggregations that can be applied to a series of values. For example, `P25` refers to the 25th percentile. Note that not all aggregation methods are available for every metric. For instance, the `Call count` metric supports only the `SUM` aggregation, whereas the `Error rate` metric only supports the `MEAN` aggregation. ", alias="metricAggregation") - metric_name: StrictStr = Field(description="Defines the name of the metric to be monitored. Examples include `calls` and `latency`", alias="metricName") + metric_name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Defines the name of the metric to be monitored. Examples include `calls` and `latency`", alias="metricName") threshold: Optional[Union[Annotated[float, Field(strict=True, gt=0.0)], Annotated[int, Field(strict=True, gt=0)]]] = Field(default=None, description="Specifies the threshold value for the metric being monitored") __properties: ClassVar[List[str]] = ["metricAggregation", "metricName", "threshold"] diff --git a/instana_client/models/metric_description.py b/instana_client/models/metric_description.py index 682ec58..d199456 100644 --- a/instana_client/models/metric_description.py +++ b/instana_client/models/metric_description.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -30,9 +31,9 @@ class MetricDescription(BaseModel): aggregations: List[StrictStr] = Field(description="The types of aggregations that can be applied to a series of values. For example, `P25` is 25th percentile. Note that not all aggregations are available for metrics. For example, `Trace count` has only `SUM` as an aggregation whereas `Call Count` has two aggregations, `SUM` and `PER_SECOND`. ") default_aggregation: Optional[StrictStr] = Field(default=None, description="The preselected aggregation for a metric. For example, for `Call latency` the default aggregation is `MEAN`.", alias="defaultAggregation") description: Optional[StrictStr] = Field(default=None, description="A description of the metric. For example, for `Call count` metric, the description would be something like `Number of received calls`") - formatter: StrictStr = Field(description="* `NUMBER`: Generic number * `BYTES`: Number of bytes * `KILO_BYTES`: Number of kilobytes * `MEGA_BYTES`: Number of megabytes * `PERCENTAGE`: Percentage in scale [0,1] * `PERCENTAGE_100`: Percentage in scale [0,100] * `PERCENTAGE_NO_CAPPING`: Percentage in scale [0,1] but value could exceed 1 for example when metric is aggregated * `PERCENTAGE_100_NO_CAPPING`: Percentage in scale [0,100] but value could exceed 100 for example when metric is aggregated * `LATENCY`: Time in milliseconds, with value of 0 should not be considered a a strict 0, but considered as < 1ms * `NANOS`: Time in nanoseconds * `MILLIS`: Time in milliseconds * `MICROS`: Time in microseconds * `SECONDS`: Time in seconds * `RATE`: Number of occurrences per second * `BYTE_RATE`: Number of bytes per second * `UNDEFINED`: Metric value unit is not known ") - label: StrictStr = Field(description="The name of the metric. For example, `Call count`, `Erroneous calls`, `Service count` etc.") - metric_id: StrictStr = Field(description="The unique id of the metric. For example, `calls`, `erroneousCalls`, `latency` etc.", alias="metricId") + formatter: Annotated[str, Field(min_length=1, strict=True)] = Field(description="* `NUMBER`: Generic number * `BYTES`: Number of bytes * `KILO_BYTES`: Number of kilobytes * `MEGA_BYTES`: Number of megabytes * `PERCENTAGE`: Percentage in scale [0,1] * `PERCENTAGE_100`: Percentage in scale [0,100] * `PERCENTAGE_NO_CAPPING`: Percentage in scale [0,1] but value could exceed 1 for example when metric is aggregated * `PERCENTAGE_100_NO_CAPPING`: Percentage in scale [0,100] but value could exceed 100 for example when metric is aggregated * `LATENCY`: Time in milliseconds, with value of 0 should not be considered a a strict 0, but considered as < 1ms * `NANOS`: Time in nanoseconds * `MILLIS`: Time in milliseconds * `MICROS`: Time in microseconds * `SECONDS`: Time in seconds * `RATE`: Number of occurrences per second * `BYTE_RATE`: Number of bytes per second * `UNDEFINED`: Metric value unit is not known ") + label: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The name of the metric. For example, `Call count`, `Erroneous calls`, `Service count` etc.") + metric_id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The unique id of the metric. For example, `calls`, `erroneousCalls`, `latency` etc.", alias="metricId") __properties: ClassVar[List[str]] = ["aggregations", "defaultAggregation", "description", "formatter", "label", "metricId"] @field_validator('aggregations') diff --git a/instana_client/models/metric_instance.py b/instana_client/models/metric_instance.py index 28d30d7..b0951a0 100644 --- a/instana_client/models/metric_instance.py +++ b/instana_client/models/metric_instance.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -28,11 +29,11 @@ class MetricInstance(BaseModel): MetricInstance """ # noqa: E501 custom: Optional[StrictBool] = None - description: StrictStr + description: Annotated[str, Field(min_length=1, strict=True)] formatter: StrictStr = Field(description="| * NUMBER: Generic number * BYTES: Number of bytes * KILO_BYTES: Number of kilobytes * MEGA_BYTES: Number of megabytes * PERCENTAGE: Percentage in scale [0,1] * PERCENTAGE_100: Percentage in scale [0,100] * PERCENTAGE_NO_CAPPING: Percentage in scale [0,1] but value could exceed 1 for example when metric is aggregated * PERCENTAGE_100_NO_CAPPING: Percentage in scale [0,100] but value could exceed 100 for example when metric is aggregated * LATENCY: Time in milliseconds, with value of 0 should not be considered a a strict 0, but considered as < 1ms * NANOS: Time in nanoseconds * MILLIS: Time in milliseconds * MICROS: Time in microseconds * SECONDS: Time in seconds * RATE: Number of occurrences per second * BYTE_RATE: Number of bytes per second * UNDEFINED: Metric value unit is not known ") - label: StrictStr - metric_id: StrictStr = Field(alias="metricId") - plugin_id: StrictStr = Field(alias="pluginId") + label: Annotated[str, Field(min_length=1, strict=True)] + metric_id: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="metricId") + plugin_id: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="pluginId") __properties: ClassVar[List[str]] = ["custom", "description", "formatter", "label", "metricId", "pluginId"] @field_validator('formatter') diff --git a/instana_client/models/metric_item.py b/instana_client/models/metric_item.py index 28b8ea7..a97f87f 100644 --- a/instana_client/models/metric_item.py +++ b/instana_client/models/metric_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/metric_metadata.py b/instana_client/models/metric_metadata.py index 53b88ab..79425bb 100644 --- a/instana_client/models/metric_metadata.py +++ b/instana_client/models/metric_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -62,8 +62,8 @@ def format_validate_enum(cls, value): @field_validator('infra_tag_category') def infra_tag_category_validate_enum(cls, value): """Validates the enum""" - if value not in set(['ACE', 'ALICLOUD', 'AWS', 'AZURE', 'CASSANDRA', 'CLOUD_FOUNDRY', 'CLR', 'COCKROACH', 'CONSUL', 'CONTAINER', 'COUCHBASE', 'DFQ', 'ELASTICSEARCH', 'GCP', 'HADOOP_YARN', 'HAZELCAST', 'IBM_CLOUD', 'IBM_DATAPOWER', 'IBM_I_SERIES', 'IBM_MQ', 'IBM_MQMFT', 'IBM_OPENSTACK', 'KAFKA_CONNECT', 'KUBERNETES', 'MONGO_DB', 'OTHERS', 'REDIS', 'SAP', 'SELF_MONITORING', 'SOLR', 'SPARK', 'TIBCOBW', 'TUXEDO', 'VSHPERE', 'WEBSPHERE', 'CUSTOM_ENTITY']): - raise ValueError("must be one of enum values ('ACE', 'ALICLOUD', 'AWS', 'AZURE', 'CASSANDRA', 'CLOUD_FOUNDRY', 'CLR', 'COCKROACH', 'CONSUL', 'CONTAINER', 'COUCHBASE', 'DFQ', 'ELASTICSEARCH', 'GCP', 'HADOOP_YARN', 'HAZELCAST', 'IBM_CLOUD', 'IBM_DATAPOWER', 'IBM_I_SERIES', 'IBM_MQ', 'IBM_MQMFT', 'IBM_OPENSTACK', 'KAFKA_CONNECT', 'KUBERNETES', 'MONGO_DB', 'OTHERS', 'REDIS', 'SAP', 'SELF_MONITORING', 'SOLR', 'SPARK', 'TIBCOBW', 'TUXEDO', 'VSHPERE', 'WEBSPHERE', 'CUSTOM_ENTITY')") + if value not in set(['ACE', 'ALICLOUD', 'AWS', 'AZURE', 'CASSANDRA', 'CLOUD_FOUNDRY', 'CLR', 'COCKROACH', 'CONSUL', 'CONTAINER', 'COUCHBASE', 'DFQ', 'ELASTICSEARCH', 'GCP', 'HADOOP_YARN', 'HAZELCAST', 'IBM_CLOUD', 'IBM_DATAPOWER', 'IBM_I_SERIES', 'IBM_MQ', 'IBM_MQMFT', 'IBM_OPENSTACK', 'KAFKA_CONNECT', 'KUBERNETES', 'MONGO_DB', 'MSSQL', 'OTHERS', 'POSTGRESQL', 'REDIS', 'SAP', 'SELF_MONITORING', 'SOLR', 'SPARK', 'TIBCOBW', 'TUXEDO', 'VSHPERE', 'WEBSPHERE', 'CUSTOM_ENTITY']): + raise ValueError("must be one of enum values ('ACE', 'ALICLOUD', 'AWS', 'AZURE', 'CASSANDRA', 'CLOUD_FOUNDRY', 'CLR', 'COCKROACH', 'CONSUL', 'CONTAINER', 'COUCHBASE', 'DFQ', 'ELASTICSEARCH', 'GCP', 'HADOOP_YARN', 'HAZELCAST', 'IBM_CLOUD', 'IBM_DATAPOWER', 'IBM_I_SERIES', 'IBM_MQ', 'IBM_MQMFT', 'IBM_OPENSTACK', 'KAFKA_CONNECT', 'KUBERNETES', 'MONGO_DB', 'MSSQL', 'OTHERS', 'POSTGRESQL', 'REDIS', 'SAP', 'SELF_MONITORING', 'SOLR', 'SPARK', 'TIBCOBW', 'TUXEDO', 'VSHPERE', 'WEBSPHERE', 'CUSTOM_ENTITY')") return value model_config = ConfigDict( diff --git a/instana_client/models/metric_pattern.py b/instana_client/models/metric_pattern.py index f01abe8..5b488c9 100644 --- a/instana_client/models/metric_pattern.py +++ b/instana_client/models/metric_pattern.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -30,7 +31,7 @@ class MetricPattern(BaseModel): operator: StrictStr placeholder: Optional[StrictStr] = None postfix: Optional[StrictStr] = None - prefix: StrictStr + prefix: Annotated[str, Field(min_length=1, strict=True)] __properties: ClassVar[List[str]] = ["operator", "placeholder", "postfix", "prefix"] @field_validator('operator') diff --git a/instana_client/models/metric_query.py b/instana_client/models/metric_query.py index 16f9f79..c3a9ce2 100644 --- a/instana_client/models/metric_query.py +++ b/instana_client/models/metric_query.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/metrics_result.py b/instana_client/models/metrics_result.py index 5116843..72fcbeb 100644 --- a/instana_client/models/metrics_result.py +++ b/instana_client/models/metrics_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/metrics_result_item.py b/instana_client/models/metrics_result_item.py index 7de5a7e..be0c29d 100644 --- a/instana_client/models/metrics_result_item.py +++ b/instana_client/models/metrics_result_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/metrics_test_result_item.py b/instana_client/models/metrics_test_result_item.py index e868f6e..ae6133e 100644 --- a/instana_client/models/metrics_test_result_item.py +++ b/instana_client/models/metrics_test_result_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -32,7 +33,7 @@ class MetricsTestResultItem(BaseModel): location_id: Optional[List[StrictStr]] = Field(default=None, description="A list of the locations associated with the Synthetic test.", alias="locationId") mobile_application_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of the mobile applications associated with the Synthetic test.", alias="mobileApplicationIds") service_id: Optional[StrictStr] = Field(default=None, description="A service associated with the Synthetic test.", alias="serviceId") - test_id: StrictStr = Field(description="The testId for the Synthetic test.", alias="testId") + test_id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The testId for the Synthetic test.", alias="testId") test_name: Optional[StrictStr] = Field(default=None, description="The Synthetic test's name.", alias="testName") website_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of the websites associated with the Synthetic test.", alias="websiteIds") __properties: ClassVar[List[str]] = ["applicationId", "applicationIds", "locationId", "mobileApplicationIds", "serviceId", "testId", "testName", "websiteIds"] diff --git a/instana_client/models/mobile_app.py b/instana_client/models/mobile_app.py index db0c5d5..b9d83e8 100644 --- a/instana_client/models/mobile_app.py +++ b/instana_client/models/mobile_app.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/mobile_app_alert_config.py b/instana_client/models/mobile_app_alert_config.py index a1fc27a..f0066d7 100644 --- a/instana_client/models/mobile_app_alert_config.py +++ b/instana_client/models/mobile_app_alert_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -35,13 +35,15 @@ class MobileAppAlertConfig(BaseModel): """ MobileAppAlertConfig """ # noqa: E501 - alert_channel_ids: Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=1024)]] = Field(default=None, description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") + alert_channel_ids: Optional[Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)]] = Field(default=None, description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") alert_channels: Optional[Dict[str, List[StrictStr]]] = Field(default=None, description="Set of alert channel IDs associated with the severity.", alias="alertChannels") complete_tag_filter_expression: Optional[TagFilterExpression] = Field(default=None, alias="completeTagFilterExpression") custom_payload_fields: Annotated[List[CustomPayloadField], Field(min_length=0, max_length=20)] = Field(description="Custom payload fields to send additional information in the alert notifications. Can be left empty.", alias="customPayloadFields") description: Annotated[str, Field(min_length=0, strict=True, max_length=65536)] = Field(description="Description of the mobile app alert configuration. Used as a template for the description of alert/event notifications triggered by this Smart Alert configuration.") + enabled: Optional[StrictBool] = Field(default=None, description="Flag to indicate whether or not the configuration is enabled.") grace_period: Optional[StrictInt] = Field(default=None, description="The duration for which an alert remains open after conditions are no longer violated, with the alert auto-closing once the grace period expires.", alias="gracePeriod") granularity: StrictInt = Field(description="The evaluation granularity used for detection of violations of the defined threshold. Defines the size of the tumbling window used.") + id: Optional[StrictStr] = None mobile_app_id: Annotated[str, Field(min_length=0, strict=True, max_length=64)] = Field(description="ID of the mobile app that this Smart Alert configuration is applied to.", alias="mobileAppId") name: Annotated[str, Field(min_length=0, strict=True, max_length=256)] = Field(description="Name of the mobile app alert configuration. Used as a template for the title of alert/event notifications triggered by this Smart Alert configuration.") rule: Optional[MobileAppAlertRule] = None @@ -51,7 +53,7 @@ class MobileAppAlertConfig(BaseModel): threshold: Optional[Threshold] = None time_threshold: MobileAppTimeThreshold = Field(alias="timeThreshold") triggering: Optional[StrictBool] = Field(default=None, description="Optional flag to indicate whether an Incident is also triggered or not.") - __properties: ClassVar[List[str]] = ["alertChannelIds", "alertChannels", "completeTagFilterExpression", "customPayloadFields", "description", "gracePeriod", "granularity", "mobileAppId", "name", "rule", "rules", "severity", "tagFilterExpression", "threshold", "timeThreshold", "triggering"] + __properties: ClassVar[List[str]] = ["alertChannelIds", "alertChannels", "completeTagFilterExpression", "customPayloadFields", "description", "enabled", "gracePeriod", "granularity", "id", "mobileAppId", "name", "rule", "rules", "severity", "tagFilterExpression", "threshold", "timeThreshold", "triggering"] @field_validator('granularity') def granularity_validate_enum(cls, value): @@ -145,8 +147,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "completeTagFilterExpression": TagFilterExpression.from_dict(obj["completeTagFilterExpression"]) if obj.get("completeTagFilterExpression") is not None else None, "customPayloadFields": [CustomPayloadField.from_dict(_item) for _item in obj["customPayloadFields"]] if obj.get("customPayloadFields") is not None else None, "description": obj.get("description"), + "enabled": obj.get("enabled"), "gracePeriod": obj.get("gracePeriod"), "granularity": obj.get("granularity") if obj.get("granularity") is not None else 600000, + "id": obj.get("id"), "mobileAppId": obj.get("mobileAppId"), "name": obj.get("name"), "rule": MobileAppAlertRule.from_dict(obj["rule"]) if obj.get("rule") is not None else None, diff --git a/instana_client/models/mobile_app_alert_config_with_rbac_tag.py b/instana_client/models/mobile_app_alert_config_with_rbac_tag.py new file mode 100644 index 0000000..0e7a6f4 --- /dev/null +++ b/instana_client/models/mobile_app_alert_config_with_rbac_tag.py @@ -0,0 +1,182 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from instana_client.models.api_tag import ApiTag +from instana_client.models.custom_payload_field import CustomPayloadField +from instana_client.models.mobile_app_alert_rule import MobileAppAlertRule +from instana_client.models.mobile_app_time_threshold import MobileAppTimeThreshold +from instana_client.models.rule_with_threshold_mobile_app_alert_rule import RuleWithThresholdMobileAppAlertRule +from instana_client.models.tag_filter_expression import TagFilterExpression +from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement +from instana_client.models.threshold import Threshold +from typing import Optional, Set +from typing_extensions import Self + +class MobileAppAlertConfigWithRBACTag(BaseModel): + """ + MobileAppAlertConfigWithRBACTag + """ # noqa: E501 + alert_channel_ids: Optional[Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)]] = Field(default=None, description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") + alert_channels: Optional[Dict[str, List[StrictStr]]] = Field(default=None, description="Set of alert channel IDs associated with the severity.", alias="alertChannels") + complete_tag_filter_expression: Optional[TagFilterExpression] = Field(default=None, alias="completeTagFilterExpression") + created: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Unix timestamp representing the creation time of this revision.") + custom_payload_fields: Annotated[List[CustomPayloadField], Field(min_length=0, max_length=20)] = Field(description="Custom payload fields to send additional information in the alert notifications. Can be left empty.", alias="customPayloadFields") + description: Annotated[str, Field(min_length=0, strict=True, max_length=65536)] = Field(description="Description of the mobile app alert configuration. Used as a template for the description of alert/event notifications triggered by this Smart Alert configuration.") + enabled: Optional[StrictBool] = Field(default=None, description="Flag to indicate whether or not the configuration is enabled.") + grace_period: Optional[StrictInt] = Field(default=None, description="The duration for which an alert remains open after conditions are no longer violated, with the alert auto-closing once the grace period expires.", alias="gracePeriod") + granularity: StrictInt = Field(description="The evaluation granularity used for detection of violations of the defined threshold. Defines the size of the tumbling window used.") + id: Annotated[str, Field(min_length=0, strict=True, max_length=64)] = Field(description="ID of this Mobile App Alert Config. ") + initial_created: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Unix timestamp representing the time of the initial revision.", alias="initialCreated") + mobile_app_id: Annotated[str, Field(min_length=0, strict=True, max_length=64)] = Field(description="ID of the mobile app that this Smart Alert configuration is applied to.", alias="mobileAppId") + name: Annotated[str, Field(min_length=0, strict=True, max_length=256)] = Field(description="Name of the mobile app alert configuration. Used as a template for the title of alert/event notifications triggered by this Smart Alert configuration.") + rbac_tags: Optional[List[ApiTag]] = Field(default=None, description="RBAC tags associated with the mobile app", alias="rbacTags") + read_only: Optional[StrictBool] = Field(default=None, description="Flag to indicate whether or not the configuration is read-only. Read-only access restricts modification of the config.", alias="readOnly") + rule: Optional[MobileAppAlertRule] = None + rules: Optional[Annotated[List[RuleWithThresholdMobileAppAlertRule], Field(min_length=1, max_length=1)]] = Field(default=None, description="A list of rules where each rule is associated with multiple thresholds and their corresponding severity levels. This enables more complex alert configurations with validations to ensure consistent and logical threshold-severity combinations.") + severity: Optional[Annotated[int, Field(le=10, strict=True, ge=5)]] = Field(default=None, description="The severity of the alert when triggered, which is either 5 (Warning), or 10 (Critical).") + tag_filter_expression: TagFilterExpressionElement = Field(alias="tagFilterExpression") + threshold: Optional[Threshold] = None + time_threshold: MobileAppTimeThreshold = Field(alias="timeThreshold") + triggering: Optional[StrictBool] = Field(default=None, description="Optional flag to indicate whether an Incident is also triggered or not.") + __properties: ClassVar[List[str]] = ["alertChannelIds", "alertChannels", "completeTagFilterExpression", "created", "customPayloadFields", "description", "enabled", "gracePeriod", "granularity", "id", "initialCreated", "mobileAppId", "name", "rbacTags", "readOnly", "rule", "rules", "severity", "tagFilterExpression", "threshold", "timeThreshold", "triggering"] + + @field_validator('granularity') + def granularity_validate_enum(cls, value): + """Validates the enum""" + if value not in set([60000, 300000, 600000, 900000, 1200000, 1800000]): + raise ValueError("must be one of enum values (60000, 300000, 600000, 900000, 1200000, 1800000)") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of MobileAppAlertConfigWithRBACTag from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of complete_tag_filter_expression + if self.complete_tag_filter_expression: + _dict['completeTagFilterExpression'] = self.complete_tag_filter_expression.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in custom_payload_fields (list) + _items = [] + if self.custom_payload_fields: + for _item_custom_payload_fields in self.custom_payload_fields: + if _item_custom_payload_fields: + _items.append(_item_custom_payload_fields.to_dict()) + _dict['customPayloadFields'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in rbac_tags (list) + _items = [] + if self.rbac_tags: + for _item_rbac_tags in self.rbac_tags: + if _item_rbac_tags: + _items.append(_item_rbac_tags.to_dict()) + _dict['rbacTags'] = _items + # override the default output from pydantic by calling `to_dict()` of rule + if self.rule: + _dict['rule'] = self.rule.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in rules (list) + _items = [] + if self.rules: + for _item_rules in self.rules: + if _item_rules: + _items.append(_item_rules.to_dict()) + _dict['rules'] = _items + # override the default output from pydantic by calling `to_dict()` of tag_filter_expression + if self.tag_filter_expression: + _dict['tagFilterExpression'] = self.tag_filter_expression.to_dict() + # override the default output from pydantic by calling `to_dict()` of threshold + if self.threshold: + _dict['threshold'] = self.threshold.to_dict() + # override the default output from pydantic by calling `to_dict()` of time_threshold + if self.time_threshold: + _dict['timeThreshold'] = self.time_threshold.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of MobileAppAlertConfigWithRBACTag from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "alertChannelIds": obj.get("alertChannelIds"), + "alertChannels": obj.get("alertChannels"), + "completeTagFilterExpression": TagFilterExpression.from_dict(obj["completeTagFilterExpression"]) if obj.get("completeTagFilterExpression") is not None else None, + "created": obj.get("created"), + "customPayloadFields": [CustomPayloadField.from_dict(_item) for _item in obj["customPayloadFields"]] if obj.get("customPayloadFields") is not None else None, + "description": obj.get("description"), + "enabled": obj.get("enabled"), + "gracePeriod": obj.get("gracePeriod"), + "granularity": obj.get("granularity") if obj.get("granularity") is not None else 600000, + "id": obj.get("id"), + "initialCreated": obj.get("initialCreated"), + "mobileAppId": obj.get("mobileAppId"), + "name": obj.get("name"), + "rbacTags": [ApiTag.from_dict(_item) for _item in obj["rbacTags"]] if obj.get("rbacTags") is not None else None, + "readOnly": obj.get("readOnly"), + "rule": MobileAppAlertRule.from_dict(obj["rule"]) if obj.get("rule") is not None else None, + "rules": [RuleWithThresholdMobileAppAlertRule.from_dict(_item) for _item in obj["rules"]] if obj.get("rules") is not None else None, + "severity": obj.get("severity"), + "tagFilterExpression": TagFilterExpressionElement.from_dict(obj["tagFilterExpression"]) if obj.get("tagFilterExpression") is not None else None, + "threshold": Threshold.from_dict(obj["threshold"]) if obj.get("threshold") is not None else None, + "timeThreshold": MobileAppTimeThreshold.from_dict(obj["timeThreshold"]) if obj.get("timeThreshold") is not None else None, + "triggering": obj.get("triggering") + }) + return _obj + + diff --git a/instana_client/models/mobile_app_alert_rule.py b/instana_client/models/mobile_app_alert_rule.py index b6e43ae..b909d19 100644 --- a/instana_client/models/mobile_app_alert_rule.py +++ b/instana_client/models/mobile_app_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,6 +21,7 @@ from importlib import import_module from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -38,7 +39,7 @@ class MobileAppAlertRule(BaseModel): """ # noqa: E501 aggregation: Optional[StrictStr] = None alert_type: StrictStr = Field(alias="alertType") - metric_name: StrictStr = Field(alias="metricName") + metric_name: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="metricName") __properties: ClassVar[List[str]] = ["aggregation", "alertType", "metricName"] @field_validator('aggregation') diff --git a/instana_client/models/mobile_app_beacon_groups_item.py b/instana_client/models/mobile_app_beacon_groups_item.py index ba0e0ee..7ecfdf1 100644 --- a/instana_client/models/mobile_app_beacon_groups_item.py +++ b/instana_client/models/mobile_app_beacon_groups_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated from typing import Optional, Set @@ -31,7 +31,7 @@ class MobileAppBeaconGroupsItem(BaseModel): cursor: Dict[str, Any] = Field(description="Cursor to use between successive queries") earliest_timestamp: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="earliestTimestamp") metrics: Dict[str, List[List[Union[StrictFloat, StrictInt]]]] - name: StrictStr + name: Annotated[str, Field(min_length=1, strict=True)] __properties: ClassVar[List[str]] = ["cursor", "earliestTimestamp", "metrics", "name"] model_config = ConfigDict( diff --git a/instana_client/models/mobile_app_beacon_groups_result.py b/instana_client/models/mobile_app_beacon_groups_result.py index 179bd64..9ab87da 100644 --- a/instana_client/models/mobile_app_beacon_groups_result.py +++ b/instana_client/models/mobile_app_beacon_groups_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/mobile_app_beacon_result.py b/instana_client/models/mobile_app_beacon_result.py index 0ea80b5..a8bd741 100644 --- a/instana_client/models/mobile_app_beacon_result.py +++ b/instana_client/models/mobile_app_beacon_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/mobile_app_beacon_tag_group.py b/instana_client/models/mobile_app_beacon_tag_group.py index 8a7d587..aaf112c 100644 --- a/instana_client/models/mobile_app_beacon_tag_group.py +++ b/instana_client/models/mobile_app_beacon_tag_group.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/mobile_app_beacons_item.py b/instana_client/models/mobile_app_beacons_item.py index 891332e..3defeb7 100644 --- a/instana_client/models/mobile_app_beacons_item.py +++ b/instana_client/models/mobile_app_beacons_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/mobile_app_event_result.py b/instana_client/models/mobile_app_event_result.py index 5e7277d..53315c1 100644 --- a/instana_client/models/mobile_app_event_result.py +++ b/instana_client/models/mobile_app_event_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/mobile_app_metric_result.py b/instana_client/models/mobile_app_metric_result.py index 644cce6..690de33 100644 --- a/instana_client/models/mobile_app_metric_result.py +++ b/instana_client/models/mobile_app_metric_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -28,6 +28,7 @@ class MobileAppMetricResult(BaseModel): MobileAppMetricResult """ # noqa: E501 empty: Optional[StrictBool] = None + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["empty"] model_config = ConfigDict( @@ -60,8 +61,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -69,6 +72,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + return _dict @classmethod @@ -83,6 +91,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "empty": obj.get("empty") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/instana_client/models/mobile_app_monitoring_beacon.py b/instana_client/models/mobile_app_monitoring_beacon.py index ec3efbf..4ac07cf 100644 --- a/instana_client/models/mobile_app_monitoring_beacon.py +++ b/instana_client/models/mobile_app_monitoring_beacon.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/mobile_app_monitoring_metric_description.py b/instana_client/models/mobile_app_monitoring_metric_description.py index ffbc92f..04d11f5 100644 --- a/instana_client/models/mobile_app_monitoring_metric_description.py +++ b/instana_client/models/mobile_app_monitoring_metric_description.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -29,12 +29,12 @@ class MobileAppMonitoringMetricDescription(BaseModel): MobileAppMonitoringMetricDescription """ # noqa: E501 aggregations: List[StrictStr] = Field(description="The types of aggregations that can be applied to a series of values. For example, `P25` is 25th percentile. Note that not all aggregations are available for metrics. For example, `Trace count` has only `SUM` as an aggregation whereas `Call Count` has two aggregations, `SUM` and `PER_SECOND`. ") - beacon_types: List[StrictStr] = Field(alias="beaconTypes") + beacon_types: Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=1)] = Field(alias="beaconTypes") default_aggregation: Optional[StrictStr] = Field(default=None, description="The preselected aggregation for a metric. For example, for `Call latency` the default aggregation is `MEAN`.", alias="defaultAggregation") description: Optional[StrictStr] = Field(default=None, description="A description of the metric. For example, for `Call count` metric, the description would be something like `Number of received calls`") - formatter: StrictStr = Field(description="* `NUMBER`: Generic number * `BYTES`: Number of bytes * `KILO_BYTES`: Number of kilobytes * `MEGA_BYTES`: Number of megabytes * `PERCENTAGE`: Percentage in scale [0,1] * `PERCENTAGE_100`: Percentage in scale [0,100] * `PERCENTAGE_NO_CAPPING`: Percentage in scale [0,1] but value could exceed 1 for example when metric is aggregated * `PERCENTAGE_100_NO_CAPPING`: Percentage in scale [0,100] but value could exceed 100 for example when metric is aggregated * `LATENCY`: Time in milliseconds, with value of 0 should not be considered a a strict 0, but considered as < 1ms * `NANOS`: Time in nanoseconds * `MILLIS`: Time in milliseconds * `MICROS`: Time in microseconds * `SECONDS`: Time in seconds * `RATE`: Number of occurrences per second * `BYTE_RATE`: Number of bytes per second * `UNDEFINED`: Metric value unit is not known ") - label: StrictStr = Field(description="The name of the metric. For example, `Call count`, `Erroneous calls`, `Service count` etc.") - metric_id: StrictStr = Field(description="The unique id of the metric. For example, `calls`, `erroneousCalls`, `latency` etc.", alias="metricId") + formatter: Annotated[str, Field(min_length=1, strict=True)] = Field(description="* `NUMBER`: Generic number * `BYTES`: Number of bytes * `KILO_BYTES`: Number of kilobytes * `MEGA_BYTES`: Number of megabytes * `PERCENTAGE`: Percentage in scale [0,1] * `PERCENTAGE_100`: Percentage in scale [0,100] * `PERCENTAGE_NO_CAPPING`: Percentage in scale [0,1] but value could exceed 1 for example when metric is aggregated * `PERCENTAGE_100_NO_CAPPING`: Percentage in scale [0,100] but value could exceed 100 for example when metric is aggregated * `LATENCY`: Time in milliseconds, with value of 0 should not be considered a a strict 0, but considered as < 1ms * `NANOS`: Time in nanoseconds * `MILLIS`: Time in milliseconds * `MICROS`: Time in microseconds * `SECONDS`: Time in seconds * `RATE`: Number of occurrences per second * `BYTE_RATE`: Number of bytes per second * `UNDEFINED`: Metric value unit is not known ") + label: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The name of the metric. For example, `Call count`, `Erroneous calls`, `Service count` etc.") + metric_id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The unique id of the metric. For example, `calls`, `erroneousCalls`, `latency` etc.", alias="metricId") path_to_value_in_beacon: Optional[Annotated[List[StrictStr], Field(min_length=1, max_length=2147483647)]] = Field(default=None, alias="pathToValueInBeacon") secondary_beacon_types: Optional[List[StrictStr]] = Field(default=None, alias="secondaryBeaconTypes") tag_name: Optional[StrictStr] = Field(default=None, alias="tagName") diff --git a/instana_client/models/mobile_app_monitoring_metrics_configuration.py b/instana_client/models/mobile_app_monitoring_metrics_configuration.py index cb46a8d..aa11fbe 100644 --- a/instana_client/models/mobile_app_monitoring_metrics_configuration.py +++ b/instana_client/models/mobile_app_monitoring_metrics_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement from typing import Optional, Set from typing_extensions import Self @@ -30,7 +31,7 @@ class MobileAppMonitoringMetricsConfiguration(BaseModel): """ # noqa: E501 aggregation: StrictStr = Field(description="Set aggregation that can be applied to a series of values. Eg: `MEAN`.") granularity: Optional[StrictInt] = Field(default=None, description="If the granularity is set you will get data points with the specified granularity in seconds. Default: `1000` milliseconds") - metric: StrictStr = Field(description="Set a particular metric, eg: `latency`.") + metric: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Set a particular metric, eg: `latency`.") numerator_tag_filter_expression: Optional[TagFilterExpressionElement] = Field(default=None, alias="numeratorTagFilterExpression") __properties: ClassVar[List[str]] = ["aggregation", "granularity", "metric", "numeratorTagFilterExpression"] diff --git a/instana_client/models/mobile_app_time_threshold.py b/instana_client/models/mobile_app_time_threshold.py index 1948beb..fb664d8 100644 --- a/instana_client/models/mobile_app_time_threshold.py +++ b/instana_client/models/mobile_app_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/model_field.py b/instana_client/models/model_field.py index 07ada90..ce9f96f 100644 --- a/instana_client/models/model_field.py +++ b/instana_client/models/model_field.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -28,10 +29,10 @@ class ModelField(BaseModel): List of fields that describe an action. """ # noqa: E501 description: Optional[StrictStr] = None - encoding: StrictStr - name: StrictStr + encoding: Annotated[str, Field(min_length=1, strict=True)] + name: Annotated[str, Field(min_length=1, strict=True)] secured: Optional[StrictBool] = None - value: StrictStr + value: Annotated[str, Field(min_length=1, strict=True)] __properties: ClassVar[List[str]] = ["description", "encoding", "name", "secured", "value"] model_config = ConfigDict( diff --git a/instana_client/models/monitored_entities_stats.py b/instana_client/models/monitored_entities_stats.py index 6330464..ca0b9bf 100644 --- a/instana_client/models/monitored_entities_stats.py +++ b/instana_client/models/monitored_entities_stats.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -28,9 +28,10 @@ class MonitoredEntitiesStats(BaseModel): Statistics of monitored entities. """ # noqa: E501 host_count: Optional[StrictInt] = Field(default=None, alias="hostCount") + otel_collector_count: Optional[StrictInt] = Field(default=None, alias="otelCollectorCount") otel_count: Optional[StrictInt] = Field(default=None, alias="otelCount") serverless_count: Optional[StrictInt] = Field(default=None, alias="serverlessCount") - __properties: ClassVar[List[str]] = ["hostCount", "otelCount", "serverlessCount"] + __properties: ClassVar[List[str]] = ["hostCount", "otelCollectorCount", "otelCount", "serverlessCount"] model_config = ConfigDict( populate_by_name=True, @@ -84,6 +85,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "hostCount": obj.get("hostCount"), + "otelCollectorCount": obj.get("otelCollectorCount"), "otelCount": obj.get("otelCount"), "serverlessCount": obj.get("serverlessCount") }) diff --git a/instana_client/models/monitoring_state.py b/instana_client/models/monitoring_state.py index aa3a713..2896fbf 100644 --- a/instana_client/models/monitoring_state.py +++ b/instana_client/models/monitoring_state.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -28,12 +28,13 @@ class MonitoringState(BaseModel): """ MonitoringState """ # noqa: E501 - has_entities: Optional[StrictBool] = Field(default=None, description="Has entities", alias="hasEntities") + has_entities: StrictBool = Field(description="Has entities", alias="hasEntities") host_count: Optional[StrictInt] = Field(default=None, description="Count of hosts", alias="hostCount") - monitored_entities_stats: Optional[MonitoredEntitiesStats] = Field(default=None, alias="monitoredEntitiesStats") + monitored_entities_stats: MonitoredEntitiesStats = Field(alias="monitoredEntitiesStats") + open_telemetry_collector_count: Optional[StrictInt] = Field(default=None, description="Count of open telemetry collectors", alias="openTelemetryCollectorCount") open_telemetry_count: Optional[StrictInt] = Field(default=None, description="Count of open telemetry", alias="openTelemetryCount") serverless_count: Optional[StrictInt] = Field(default=None, description="Count of serverless", alias="serverlessCount") - __properties: ClassVar[List[str]] = ["hasEntities", "hostCount", "monitoredEntitiesStats", "openTelemetryCount", "serverlessCount"] + __properties: ClassVar[List[str]] = ["hasEntities", "hostCount", "monitoredEntitiesStats", "openTelemetryCollectorCount", "openTelemetryCount", "serverlessCount"] model_config = ConfigDict( populate_by_name=True, @@ -92,6 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "hasEntities": obj.get("hasEntities"), "hostCount": obj.get("hostCount"), "monitoredEntitiesStats": MonitoredEntitiesStats.from_dict(obj["monitoredEntitiesStats"]) if obj.get("monitoredEntitiesStats") is not None else None, + "openTelemetryCollectorCount": obj.get("openTelemetryCollectorCount"), "openTelemetryCount": obj.get("openTelemetryCount"), "serverlessCount": obj.get("serverlessCount") }) diff --git a/instana_client/models/multiple_scripts_configuration.py b/instana_client/models/multiple_scripts_configuration.py index 50c9ede..3785af5 100644 --- a/instana_client/models/multiple_scripts_configuration.py +++ b/instana_client/models/multiple_scripts_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/multiplication.py b/instana_client/models/multiplication.py index 9cf1cc9..a7db97e 100644 --- a/instana_client/models/multiplication.py +++ b/instana_client/models/multiplication.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/nested_operation.py b/instana_client/models/nested_operation.py index 28df79d..e3b863b 100644 --- a/instana_client/models/nested_operation.py +++ b/instana_client/models/nested_operation.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/new_application_config.py b/instana_client/models/new_application_config.py index 4d0937f..50d7987 100644 --- a/instana_client/models/new_application_config.py +++ b/instana_client/models/new_application_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/new_business_perspective_config.py b/instana_client/models/new_business_perspective_config.py index 19feef3..44b1809 100644 --- a/instana_client/models/new_business_perspective_config.py +++ b/instana_client/models/new_business_perspective_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/new_manual_service_config.py b/instana_client/models/new_manual_service_config.py index b7e337a..0d73d8b 100644 --- a/instana_client/models/new_manual_service_config.py +++ b/instana_client/models/new_manual_service_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/ns1_integration.py b/instana_client/models/ns1_integration.py new file mode 100644 index 0000000..41953bf --- /dev/null +++ b/instana_client/models/ns1_integration.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from instana_client.models.abstract_integration import AbstractIntegration +from typing import Optional, Set +from typing_extensions import Self + +class NS1Integration(AbstractIntegration): + """ + NS1Integration + """ # noqa: E501 + headers: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = None + webhook_urls: Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=1)] = Field(alias="webhookUrls") + __properties: ClassVar[List[str]] = ["id", "kind", "name", "headers", "webhookUrls"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of NS1Integration from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of NS1Integration from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "kind": obj.get("kind"), + "name": obj.get("name"), + "headers": obj.get("headers"), + "webhookUrls": obj.get("webhookUrls") + }) + return _obj + + diff --git a/instana_client/models/o_auth_config.py b/instana_client/models/o_auth_config.py index 16eefa2..5b70e8a 100644 --- a/instana_client/models/o_auth_config.py +++ b/instana_client/models/o_auth_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -28,11 +29,11 @@ class OAuthConfig(BaseModel): OAuthConfig """ # noqa: E501 additional_parameters: Optional[Dict[str, StrictStr]] = Field(default=None, alias="additionalParameters") - client_id: StrictStr = Field(alias="clientId") - client_secret: StrictStr = Field(alias="clientSecret") + client_id: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="clientId") + client_secret: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="clientSecret") grant_type: Optional[StrictStr] = Field(default=None, alias="grantType") password: Optional[StrictStr] = None - token_url: StrictStr = Field(alias="tokenUrl") + token_url: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="tokenUrl") username: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["additionalParameters", "clientId", "clientSecret", "grantType", "password", "tokenUrl", "username"] diff --git a/instana_client/models/o_auth_integration.py b/instana_client/models/o_auth_integration.py index 096338f..a5feec3 100644 --- a/instana_client/models/o_auth_integration.py +++ b/instana_client/models/o_auth_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/o_auth_token.py b/instana_client/models/o_auth_token.py index 9d1bfb6..e663b4f 100644 --- a/instana_client/models/o_auth_token.py +++ b/instana_client/models/o_auth_token.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/occurrence.py b/instana_client/models/occurrence.py index 6871709..c69f9ba 100644 --- a/instana_client/models/occurrence.py +++ b/instana_client/models/occurrence.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/office365_integration.py b/instana_client/models/office365_integration.py index 05e418e..7da1803 100644 --- a/instana_client/models/office365_integration.py +++ b/instana_client/models/office365_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import ConfigDict, Field, StrictStr +from pydantic import ConfigDict, Field from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self @@ -28,7 +29,7 @@ class Office365Integration(AbstractIntegration): """ Office365Integration """ # noqa: E501 - webhook_url: StrictStr = Field(alias="webhookUrl") + webhook_url: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="webhookUrl") __properties: ClassVar[List[str]] = ["id", "kind", "name", "webhookUrl"] model_config = ConfigDict( diff --git a/instana_client/models/one_time_maintenance_window.py b/instana_client/models/one_time_maintenance_window.py index 9d1cc01..780ae25 100644 --- a/instana_client/models/one_time_maintenance_window.py +++ b/instana_client/models/one_time_maintenance_window.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/opsgenie_integration.py b/instana_client/models/opsgenie_integration.py index 2848aff..9686546 100644 --- a/instana_client/models/opsgenie_integration.py +++ b/instana_client/models/opsgenie_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self @@ -29,7 +30,7 @@ class OpsgenieIntegration(AbstractIntegration): OpsgenieIntegration """ # noqa: E501 alias: Optional[StrictStr] = None - api_key: StrictStr = Field(alias="apiKey") + api_key: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="apiKey") region: StrictStr tags: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id", "kind", "name", "alias", "apiKey", "region", "tags"] diff --git a/instana_client/models/order.py b/instana_client/models/order.py index 997a517..2209b2d 100644 --- a/instana_client/models/order.py +++ b/instana_client/models/order.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -27,7 +28,7 @@ class Order(BaseModel): """ Specifies the ordering of the results. It contains fields that define the sorting criteria, the collation for sorting, and the direction in which the results should be ordered. """ # noqa: E501 - by: StrictStr = Field(description="If the granularity is set to `1` you can use the metric name eg. `latency.p95` to order by that value.") + by: Annotated[str, Field(min_length=1, strict=True)] = Field(description="If the granularity is set to `1` you can use the metric name eg. `latency.p95` to order by that value.") collation: Optional[StrictStr] = Field(default=None, description="Language code used for sorting. Ignored for infrastructure queries.") direction: StrictStr = Field(description="The order in which results will be sorted, either `ASC` for ascending or `DESC` for descending.") __properties: ClassVar[List[str]] = ["by", "collation", "direction"] diff --git a/instana_client/models/pagerduty_integration.py b/instana_client/models/pagerduty_integration.py index cb57d13..f02d534 100644 --- a/instana_client/models/pagerduty_integration.py +++ b/instana_client/models/pagerduty_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import ConfigDict, Field, StrictStr +from pydantic import ConfigDict, Field from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self @@ -28,7 +29,7 @@ class PagerdutyIntegration(AbstractIntegration): """ PagerdutyIntegration """ # noqa: E501 - service_integration_key: StrictStr = Field(alias="serviceIntegrationKey") + service_integration_key: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="serviceIntegrationKey") __properties: ClassVar[List[str]] = ["id", "kind", "name", "serviceIntegrationKey"] model_config = ConfigDict( diff --git a/instana_client/models/paginated_result.py b/instana_client/models/paginated_result.py index 660fd7c..431b017 100644 --- a/instana_client/models/paginated_result.py +++ b/instana_client/models/paginated_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/pagination.py b/instana_client/models/pagination.py index fd4f527..a440a45 100644 --- a/instana_client/models/pagination.py +++ b/instana_client/models/pagination.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/parameter.py b/instana_client/models/parameter.py index de8b5c4..2219a50 100644 --- a/instana_client/models/parameter.py +++ b/instana_client/models/parameter.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -29,11 +30,11 @@ class Parameter(BaseModel): """ # noqa: E501 description: Optional[StrictStr] = Field(default=None, description="Parameter description.") hidden: Optional[StrictBool] = Field(default=None, description="Is parameter hidden or not.") - label: StrictStr = Field(description="Parameter label.") - name: StrictStr = Field(description="Parameter name.") + label: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Parameter label.") + name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Parameter name.") required: Optional[StrictBool] = Field(default=None, description="Is parameter required or not.") secured: Optional[StrictBool] = Field(default=None, description="Is parameter secured or not.") - type: StrictStr = Field(description="Parameter type. Valid values are `static`, `dynamic`, or `vault`. Default value is `static`") + type: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Parameter type. Valid values are `static`, `dynamic`, or `vault`. Default value is `static`") value: Optional[StrictStr] = Field(default=None, description="Parameter value.") __properties: ClassVar[List[str]] = ["description", "hidden", "label", "name", "required", "secured", "type", "value"] diff --git a/instana_client/models/parameter_value.py b/instana_client/models/parameter_value.py index d801f54..f5fcf75 100644 --- a/instana_client/models/parameter_value.py +++ b/instana_client/models/parameter_value.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -27,7 +28,7 @@ class ParameterValue(BaseModel): """ List of action input parameters. """ # noqa: E501 - name: StrictStr = Field(description="Parameter name.") + name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Parameter name.") value: StrictStr = Field(description="Parameter value.") __properties: ClassVar[List[str]] = ["name", "value"] diff --git a/instana_client/models/path_parameter_http_path_segment_matching_rule.py b/instana_client/models/path_parameter_http_path_segment_matching_rule.py index f795adb..0ab18dc 100644 --- a/instana_client/models/path_parameter_http_path_segment_matching_rule.py +++ b/instana_client/models/path_parameter_http_path_segment_matching_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import ConfigDict, Field, StrictStr +from pydantic import ConfigDict, Field from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated from instana_client.models.http_path_segment_matching_rule import HttpPathSegmentMatchingRule from typing import Optional, Set from typing_extensions import Self @@ -28,7 +29,7 @@ class PathParameterHttpPathSegmentMatchingRule(HttpPathSegmentMatchingRule): """ PathParameterHttpPathSegmentMatchingRule """ # noqa: E501 - name: StrictStr = Field(description="Given `/api/{version}/users` URI, `PARAMETER` name is `version`. ") + name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Given `/api/{version}/users` URI, `PARAMETER` name is `version`. ") __properties: ClassVar[List[str]] = ["type", "name"] model_config = ConfigDict( diff --git a/instana_client/models/physical_context.py b/instana_client/models/physical_context.py index 12bf0e9..9983281 100644 --- a/instana_client/models/physical_context.py +++ b/instana_client/models/physical_context.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/plugin_result.py b/instana_client/models/plugin_result.py index 12c53a1..55a5a68 100644 --- a/instana_client/models/plugin_result.py +++ b/instana_client/models/plugin_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/policy.py b/instana_client/models/policy.py index dad1380..f970c1c 100644 --- a/instana_client/models/policy.py +++ b/instana_client/models/policy.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from instana_client.models.trigger import Trigger @@ -33,9 +33,9 @@ class Policy(BaseModel): description: Optional[Annotated[str, Field(min_length=0, strict=True, max_length=512)]] = Field(default=None, description="Policy description.") id: Annotated[str, Field(min_length=1, strict=True, max_length=128)] = Field(description="Policy identifier.") name: Annotated[str, Field(min_length=1, strict=True, max_length=128)] = Field(description="Policy name.") - tags: Optional[List[StrictStr]] = Field(default=None, description="A list of policy tags.") + tags: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = Field(default=None, description="A list of policy tags.") trigger: Trigger - type_configurations: List[TypeConfiguration] = Field(description="List of configurations that contains the list of actions to run and the mode (automatic or manual) in which the policy is run.", alias="typeConfigurations") + type_configurations: Annotated[List[TypeConfiguration], Field(min_length=1)] = Field(description="List of configurations that contains the list of actions to run and the mode (automatic or manual) in which the policy is run.", alias="typeConfigurations") __properties: ClassVar[List[str]] = ["description", "id", "name", "tags", "trigger", "typeConfigurations"] model_config = ConfigDict( diff --git a/instana_client/models/policy_runnable.py b/instana_client/models/policy_runnable.py index 143e748..8073131 100644 --- a/instana_client/models/policy_runnable.py +++ b/instana_client/models/policy_runnable.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated from instana_client.models.run_configuration import RunConfiguration from typing import Optional, Set from typing_extensions import Self @@ -28,7 +29,7 @@ class PolicyRunnable(BaseModel): """ Runnable associated with the policy. It can be a `workflow` or `action`. Currently only supports `action`. """ # noqa: E501 - id: StrictStr = Field(description="Action identifier.") + id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Action identifier.") run_configuration: RunConfiguration = Field(alias="runConfiguration") type: StrictStr = Field(description="Type of runnable. Supported value is `action`.") __properties: ClassVar[List[str]] = ["id", "runConfiguration", "type"] diff --git a/instana_client/models/policy_scheduling.py b/instana_client/models/policy_scheduling.py index a3b8a69..e1edd32 100644 --- a/instana_client/models/policy_scheduling.py +++ b/instana_client/models/policy_scheduling.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -29,7 +29,7 @@ class PolicyScheduling(BaseModel): Scheduling information for a scheduled policy. """ # noqa: E501 recurrent_rule: Optional[StrictStr] = Field(default=None, description="Recurrent Rule defines how the policy recurs, using iCalendar RRULE format (e.g., `FREQ=DAILY;INTERVAL=1`).It supports fields like FREQ, INTERVAL, BYDAY. Refer to RFC 5545: https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.10", alias="recurrentRule") - start_time: datetime = Field(description="The time to run the policy action in milliseconds since epoch (UTC) (e.g., `1706713140000`).", alias="startTime") + start_time: Optional[datetime] = Field(default=None, description="The time to run the policy action in milliseconds since epoch (UTC) (e.g., `1706713140000`).", alias="startTime") __properties: ClassVar[List[str]] = ["recurrentRule", "startTime"] model_config = ConfigDict( diff --git a/instana_client/models/post_mobile_app_source_map_config_request.py b/instana_client/models/post_mobile_app_source_map_config_request.py index cbc0c32..ae6bf28 100644 --- a/instana_client/models/post_mobile_app_source_map_config_request.py +++ b/instana_client/models/post_mobile_app_source_map_config_request.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/post_snapshots_result.py b/instana_client/models/post_snapshots_result.py index c5bb17d..7ad737c 100644 --- a/instana_client/models/post_snapshots_result.py +++ b/instana_client/models/post_snapshots_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/problem.py b/instana_client/models/problem.py index 530badf..7ed2f5a 100644 --- a/instana_client/models/problem.py +++ b/instana_client/models/problem.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/prometheus_webhook_integration.py b/instana_client/models/prometheus_webhook_integration.py index 4304b33..b37482e 100644 --- a/instana_client/models/prometheus_webhook_integration.py +++ b/instana_client/models/prometheus_webhook_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self @@ -29,7 +30,7 @@ class PrometheusWebhookIntegration(AbstractIntegration): PrometheusWebhookIntegration """ # noqa: E501 receiver: Optional[StrictStr] = None - webhook_url: StrictStr = Field(alias="webhookUrl") + webhook_url: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="webhookUrl") __properties: ClassVar[List[str]] = ["id", "kind", "name", "receiver", "webhookUrl"] model_config = ConfigDict( diff --git a/instana_client/models/recurrent_maintenance_window.py b/instana_client/models/recurrent_maintenance_window.py index 84416b8..cbc5e59 100644 --- a/instana_client/models/recurrent_maintenance_window.py +++ b/instana_client/models/recurrent_maintenance_window.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from instana_client.models.duration import Duration from instana_client.models.maintenance_config_scheduling import MaintenanceConfigScheduling from typing import Optional, Set @@ -29,7 +30,7 @@ class RecurrentMaintenanceWindow(MaintenanceConfigScheduling): """ RecurrentMaintenanceWindow """ # noqa: E501 - rrule: StrictStr + rrule: Annotated[str, Field(min_length=1, strict=True)] timezone_id: Optional[StrictStr] = Field(default=None, alias="timezoneId") __properties: ClassVar[List[str]] = ["duration", "start", "type", "rrule", "timezoneId"] diff --git a/instana_client/models/release.py b/instana_client/models/release.py index 5dec4ba..0e109e2 100644 --- a/instana_client/models/release.py +++ b/instana_client/models/release.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/release_scope.py b/instana_client/models/release_scope.py index 7e33793..13dc4d8 100644 --- a/instana_client/models/release_scope.py +++ b/instana_client/models/release_scope.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/release_with_metadata.py b/instana_client/models/release_with_metadata.py index 5a90df5..27f0d69 100644 --- a/instana_client/models/release_with_metadata.py +++ b/instana_client/models/release_with_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/retention_period.py b/instana_client/models/retention_period.py index 7429834..4b06990 100644 --- a/instana_client/models/retention_period.py +++ b/instana_client/models/retention_period.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/rolling_time_window.py b/instana_client/models/rolling_time_window.py index 146fe44..0931e71 100644 --- a/instana_client/models/rolling_time_window.py +++ b/instana_client/models/rolling_time_window.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/rule_input.py b/instana_client/models/rule_input.py index 26c2b98..7ee1846 100644 --- a/instana_client/models/rule_input.py +++ b/instana_client/models/rule_input.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/rule_with_threshold_application_alert_rule.py b/instana_client/models/rule_with_threshold_application_alert_rule.py index ed7a510..7c22d81 100644 --- a/instana_client/models/rule_with_threshold_application_alert_rule.py +++ b/instana_client/models/rule_with_threshold_application_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/rule_with_threshold_infra_alert_rule.py b/instana_client/models/rule_with_threshold_infra_alert_rule.py index e1339ee..b4b64f3 100644 --- a/instana_client/models/rule_with_threshold_infra_alert_rule.py +++ b/instana_client/models/rule_with_threshold_infra_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/rule_with_threshold_log_alert_rule.py b/instana_client/models/rule_with_threshold_log_alert_rule.py index d7f7d6a..a933e42 100644 --- a/instana_client/models/rule_with_threshold_log_alert_rule.py +++ b/instana_client/models/rule_with_threshold_log_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/rule_with_threshold_mobile_app_alert_rule.py b/instana_client/models/rule_with_threshold_mobile_app_alert_rule.py index c66939b..964e116 100644 --- a/instana_client/models/rule_with_threshold_mobile_app_alert_rule.py +++ b/instana_client/models/rule_with_threshold_mobile_app_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/rule_with_threshold_website_alert_rule.py b/instana_client/models/rule_with_threshold_website_alert_rule.py index 09b0e22..a5455ad 100644 --- a/instana_client/models/rule_with_threshold_website_alert_rule.py +++ b/instana_client/models/rule_with_threshold_website_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/run_configuration.py b/instana_client/models/run_configuration.py index 91b2fb1..c392fd2 100644 --- a/instana_client/models/run_configuration.py +++ b/instana_client/models/run_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated from instana_client.models.action_configuration import ActionConfiguration from typing import Optional, Set from typing_extensions import Self @@ -28,7 +29,7 @@ class RunConfiguration(BaseModel): """ Action run configuration. """ # noqa: E501 - actions: List[ActionConfiguration] = Field(description="List of action configurations.") + actions: Annotated[List[ActionConfiguration], Field(min_length=1)] = Field(description="List of action configurations.") __properties: ClassVar[List[str]] = ["actions"] model_config = ConfigDict( diff --git a/instana_client/models/salesforce_integration.py b/instana_client/models/salesforce_integration.py index dbac590..a4c546b 100644 --- a/instana_client/models/salesforce_integration.py +++ b/instana_client/models/salesforce_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self @@ -29,9 +30,9 @@ class SalesforceIntegration(AbstractIntegration): SalesforceIntegration """ # noqa: E501 bearer_token: Optional[StrictStr] = Field(default=None, alias="bearerToken") - client_id: StrictStr = Field(alias="clientId") - client_secret: StrictStr = Field(alias="clientSecret") - salesforce_url: StrictStr = Field(alias="salesforceUrl") + client_id: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="clientId") + client_secret: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="clientSecret") + salesforce_url: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="salesforceUrl") __properties: ClassVar[List[str]] = ["id", "kind", "name", "bearerToken", "clientId", "clientSecret", "salesforceUrl"] model_config = ConfigDict( diff --git a/instana_client/models/saturation_blueprint_indicator.py b/instana_client/models/saturation_blueprint_indicator.py index 2068398..af0fdef 100644 --- a/instana_client/models/saturation_blueprint_indicator.py +++ b/instana_client/models/saturation_blueprint_indicator.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/scope_binding.py b/instana_client/models/scope_binding.py index 098d483..d69f9ea 100644 --- a/instana_client/models/scope_binding.py +++ b/instana_client/models/scope_binding.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/search_field_result.py b/instana_client/models/search_field_result.py index f131bca..d2efd05 100644 --- a/instana_client/models/search_field_result.py +++ b/instana_client/models/search_field_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/service.py b/instana_client/models/service.py index f18a460..b7c45b5 100644 --- a/instana_client/models/service.py +++ b/instana_client/models/service.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -28,10 +29,10 @@ class Service(BaseModel): Service """ # noqa: E501 entity_type: Optional[StrictStr] = Field(default=None, description="Since, this is a Service, it will be of type `SERVICE`.", alias="entityType") - id: StrictStr = Field(description="Unique ID of the Service. Eg: `3feb3dcd206c166ef2b41c707e0cd38d7cd325aa`.") - label: StrictStr = Field(description="Name of the Service. Eg: `payment`.") + id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Unique ID of the Service. Eg: `3feb3dcd206c166ef2b41c707e0cd38d7cd325aa`.") + label: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Name of the Service. Eg: `payment`.") snapshot_ids: List[StrictStr] = Field(description="A unique identifier the metrics are assigned to.", alias="snapshotIds") - technologies: Optional[List[StrictStr]] = Field(default=None, description="List of technologies: `Eg:[\"springbootApplicationContainer\"]`") + technologies: List[StrictStr] = Field(description="List of technologies: `Eg:[\"springbootApplicationContainer\"]`") types: List[StrictStr] = Field(description="Shows types of Endpoints a Service can consist of. It may be one or more. Eg: `HTTP` `OPENTELEMETRY` can be in 1 Service.") __properties: ClassVar[List[str]] = ["entityType", "id", "label", "snapshotIds", "technologies", "types"] @@ -112,3 +113,5 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "types": obj.get("types") }) return _obj + + diff --git a/instana_client/models/service_config.py b/instana_client/models/service_config.py index 25402d5..3bc2c7b 100644 --- a/instana_client/models/service_config.py +++ b/instana_client/models/service_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from instana_client.models.service_matching_rule import ServiceMatchingRule @@ -31,8 +31,8 @@ class ServiceConfig(BaseModel): """ # noqa: E501 comment: Optional[Annotated[str, Field(min_length=0, strict=True, max_length=2048)]] = Field(default=None, description="A small description of the service configuration would be present in this field if it was provided during creation of the custom service rule. If it was not provided, this field will remain empty. It is considered as best practice to add a comment to document the reasoning behind creating the rule. ") enabled: StrictBool = Field(description="If enabled, calls will be mapped to the rule.") - id: StrictStr = Field(description="A unique string for the service configuration. Eg: `G510hmXYSDysLZ5kuj0BaQ`") - label: StrictStr = Field(description="It contains the tags defined in `matchSpecification` concatenated with a dash. Eg: if the `matchSpecification` contains keys `kubernetes.namespace.name` and `docker.label`, `label` would be `kubernetes.namespace.name-docker.label`. ") + id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="A unique string for the service configuration. Eg: `G510hmXYSDysLZ5kuj0BaQ`") + label: Annotated[str, Field(min_length=1, strict=True)] = Field(description="It contains the tags defined in `matchSpecification` concatenated with a dash. Eg: if the `matchSpecification` contains keys `kubernetes.namespace.name` and `docker.label`, `label` would be `kubernetes.namespace.name-docker.label`. ") match_specification: Annotated[List[ServiceMatchingRule], Field(min_length=0, max_length=20)] = Field(description="Calls will be matched with the array of key-value tags present in this field.", alias="matchSpecification") name: Annotated[str, Field(min_length=1, strict=True, max_length=128)] = Field(description="The name of the service configuration. Eg: `Rule ABC`") __properties: ClassVar[List[str]] = ["comment", "enabled", "id", "label", "matchSpecification", "name"] diff --git a/instana_client/models/service_event_result.py b/instana_client/models/service_event_result.py index 19e73e6..8c0e758 100644 --- a/instana_client/models/service_event_result.py +++ b/instana_client/models/service_event_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/service_item.py b/instana_client/models/service_item.py index 1389bf8..c66229f 100644 --- a/instana_client/models/service_item.py +++ b/instana_client/models/service_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/service_level_indicator.py b/instana_client/models/service_level_indicator.py index b98c5b8..f5f0fb5 100644 --- a/instana_client/models/service_level_indicator.py +++ b/instana_client/models/service_level_indicator.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/service_level_objective_alert_rule.py b/instana_client/models/service_level_objective_alert_rule.py index 53c7b35..09c798a 100644 --- a/instana_client/models/service_level_objective_alert_rule.py +++ b/instana_client/models/service_level_objective_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/service_levels_alert_config.py b/instana_client/models/service_levels_alert_config.py index c2b2c97..542c165 100644 --- a/instana_client/models/service_levels_alert_config.py +++ b/instana_client/models/service_levels_alert_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from instana_client.models.custom_payload_field import CustomPayloadField @@ -34,7 +34,7 @@ class ServiceLevelsAlertConfig(BaseModel): """ ServiceLevelsAlertConfig """ # noqa: E501 - alert_channel_ids: Annotated[List[StrictStr], Field(min_length=0, max_length=1024)] = Field(description="This is the list of channel IDs when alert triggered and sent to.", alias="alertChannelIds") + alert_channel_ids: Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)] = Field(description="This is the list of channel IDs when alert triggered and sent to.", alias="alertChannelIds") burn_rate_config: Optional[List[ServiceLevelsBurnRateConfig]] = Field(default=None, description="This is the burn rate alert configuration which defines alerting windows and corresponding thresholds. This configuration must to specified for BURN_RATE_V2 Alerts.", alias="burnRateConfig") burn_rate_time_windows: Optional[ServiceLevelsBurnRateTimeWindows] = Field(default=None, alias="burnRateTimeWindows") custom_payload_fields: Annotated[List[CustomPayloadField], Field(min_length=0, max_length=20)] = Field(description="This is the custom name and value pairs to be sent along with the alert to the alert channels.", alias="customPayloadFields") @@ -42,7 +42,7 @@ class ServiceLevelsAlertConfig(BaseModel): name: Annotated[str, Field(min_length=0, strict=True, max_length=256)] = Field(description="Name of the Service Levels Smart Alerts Configuration.") rule: ServiceLevelsAlertRule severity: StrictInt = Field(description="This is the severity of the alert. The value can be: 5: warning, 10: critical.") - slo_ids: Annotated[List[StrictStr], Field(min_length=0, max_length=1024)] = Field(description="This is the list of SLO configurations related to this alert.", alias="sloIds") + slo_ids: Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)] = Field(description="This is the list of SLO configurations related to this alert.", alias="sloIds") threshold: Optional[StaticThreshold] = None time_threshold: ServiceLevelsTimeThreshold = Field(alias="timeThreshold") triggering: Optional[StrictBool] = Field(default=None, description="Incident flag. If value is true, this alert will become an accident.") diff --git a/instana_client/models/service_levels_alert_rule.py b/instana_client/models/service_levels_alert_rule.py index dcc9918..664efa5 100644 --- a/instana_client/models/service_levels_alert_rule.py +++ b/instana_client/models/service_levels_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/service_levels_burn_rate_config.py b/instana_client/models/service_levels_burn_rate_config.py index 37cb6c7..b6a8894 100644 --- a/instana_client/models/service_levels_burn_rate_config.py +++ b/instana_client/models/service_levels_burn_rate_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/service_levels_burn_rate_time_windows.py b/instana_client/models/service_levels_burn_rate_time_windows.py index 99367fd..72d9aeb 100644 --- a/instana_client/models/service_levels_burn_rate_time_windows.py +++ b/instana_client/models/service_levels_burn_rate_time_windows.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/service_levels_static_threshold_config.py b/instana_client/models/service_levels_static_threshold_config.py index c34d818..349732f 100644 --- a/instana_client/models/service_levels_static_threshold_config.py +++ b/instana_client/models/service_levels_static_threshold_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/service_levels_time_threshold.py b/instana_client/models/service_levels_time_threshold.py index 68185eb..514f084 100644 --- a/instana_client/models/service_levels_time_threshold.py +++ b/instana_client/models/service_levels_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/service_levelse_alert_config_with_metadata.py b/instana_client/models/service_levelse_alert_config_with_metadata.py index 1b9d260..a89dae9 100644 --- a/instana_client/models/service_levelse_alert_config_with_metadata.py +++ b/instana_client/models/service_levelse_alert_config_with_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from instana_client.models.custom_payload_field import CustomPayloadField @@ -34,7 +34,7 @@ class ServiceLevelseAlertConfigWithMetadata(BaseModel): """ ServiceLevelseAlertConfigWithMetadata """ # noqa: E501 - alert_channel_ids: Annotated[List[StrictStr], Field(min_length=0, max_length=1024)] = Field(description="This is the list of channel IDs when alert triggered and sent to.", alias="alertChannelIds") + alert_channel_ids: Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)] = Field(description="This is the list of channel IDs when alert triggered and sent to.", alias="alertChannelIds") burn_rate_config: Optional[List[ServiceLevelsBurnRateConfig]] = Field(default=None, description="This is the burn rate alert configuration which defines alerting windows and corresponding thresholds. This configuration must to specified for BURN_RATE_V2 Alerts.", alias="burnRateConfig") burn_rate_time_windows: Optional[ServiceLevelsBurnRateTimeWindows] = Field(default=None, alias="burnRateTimeWindows") created: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Created Date of the version of Service Levels Smart Alerts Configuration.") @@ -47,7 +47,7 @@ class ServiceLevelseAlertConfigWithMetadata(BaseModel): read_only: Optional[StrictBool] = Field(default=None, description="Boolean Parameter specifying the readonly access to Service Levels Smart Alerts Configuration.", alias="readOnly") rule: ServiceLevelsAlertRule severity: StrictInt = Field(description="This is the severity of the alert. The value can be: 5: warning, 10: critical.") - slo_ids: Annotated[List[StrictStr], Field(min_length=0, max_length=1024)] = Field(description="This is the list of SLO configurations related to this alert.", alias="sloIds") + slo_ids: Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)] = Field(description="This is the list of SLO configurations related to this alert.", alias="sloIds") threshold: Optional[StaticThreshold] = None time_threshold: ServiceLevelsTimeThreshold = Field(alias="timeThreshold") triggering: Optional[StrictBool] = Field(default=None, description="Incident flag. If value is true, this alert will become an accident.") diff --git a/instana_client/models/service_map.py b/instana_client/models/service_map.py index c1d5af2..205c067 100644 --- a/instana_client/models/service_map.py +++ b/instana_client/models/service_map.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/service_map_connection.py b/instana_client/models/service_map_connection.py index d43ef16..b42a444 100644 --- a/instana_client/models/service_map_connection.py +++ b/instana_client/models/service_map_connection.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated from typing import Optional, Set @@ -30,9 +30,9 @@ class ServiceMapConnection(BaseModel): """ # noqa: E501 calls: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="The number of calls between the 2 services. Eg: The number of calls from `24558242fdeb52571cfb9fa42f1b334aa65d7e61` service to `3feb3dcd206c166ef2b41c707e0cd38d7cd325aa` service over the mentioned timeframe is `200`. If no timeframe (`to` and `windowSize` in query paramter) is mentioned, the timeframe is taken as last hour. ") error_rate: Optional[Union[Annotated[float, Field(le=1, strict=True, ge=0)], Annotated[int, Field(le=1, strict=True, ge=0)]]] = Field(default=None, description="The error rate of the calls between the 2 services. Eg: The error rate of calls from `24558242fdeb52571cfb9fa42f1b334aa65d7e61` service to `3feb3dcd206c166ef2b41c707e0cd38d7cd325aa` service over the mentioned timeframe is `0.1`. The value is between 0 and 1. If no timeframe (`to` and `windowSize` in query paramter) is mentioned, the timeframe is taken as last hour. ", alias="errorRate") - var_from: StrictStr = Field(description="The service that initiates a request to another service. It contains a unique service id. Eg: `24558242fdeb52571cfb9fa42f1b334aa65d7e61`. ", alias="from") + var_from: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The service that initiates a request to another service. It contains a unique service id. Eg: `24558242fdeb52571cfb9fa42f1b334aa65d7e61`. ", alias="from") latency: Optional[Union[Annotated[float, Field(strict=True, ge=0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="The mean latency of the calls between the 2 services. Eg: The mean latency of calls from `24558242fdeb52571cfb9fa42f1b334aa65d7e61` service to `3feb3dcd206c166ef2b41c707e0cd38d7cd325aa` service over the mentioned timeframe is `4.46`. The value is in milliseconds. If no timeframe (`to` and `windowSize` in query paramter) is mentioned, the timeframe is taken as last hour. ") - to: StrictStr = Field(description="The service that receives the request sent by the source service. It contains a unique service id. Eg: `3feb3dcd206c166ef2b41c707e0cd38d7cd325aa`. ") + to: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The service that receives the request sent by the source service. It contains a unique service id. Eg: `3feb3dcd206c166ef2b41c707e0cd38d7cd325aa`. ") __properties: ClassVar[List[str]] = ["calls", "errorRate", "from", "latency", "to"] model_config = ConfigDict( diff --git a/instana_client/models/service_matching_rule.py b/instana_client/models/service_matching_rule.py index 3863f95..d6bbb72 100644 --- a/instana_client/models/service_matching_rule.py +++ b/instana_client/models/service_matching_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -27,8 +28,8 @@ class ServiceMatchingRule(BaseModel): """ Calls will be matched with the array of key-value tags present in this field. """ # noqa: E501 - key: StrictStr = Field(description="In Instana UI, this is shown as `Tag`. One can select a variety of pre-defined tags. Eg: `host.fqdn`, `container.label` etc. ") - value: StrictStr = Field(description="In Instana UI, this is known as 'key`. Eg: if one labels Docker containers such as com.acme.service-name:myservice, to map services from this label, the `key` aka `tag` would be `docker.label` and `value` aka `key` would be `com.acme.service-name`. ") + key: Annotated[str, Field(min_length=1, strict=True)] = Field(description="In Instana UI, this is shown as `Tag`. One can select a variety of pre-defined tags. Eg: `host.fqdn`, `container.label` etc. ") + value: Annotated[str, Field(min_length=1, strict=True)] = Field(description="In Instana UI, this is known as 'key`. Eg: if one labels Docker containers such as com.acme.service-name:myservice, to map services from this label, the `key` aka `tag` would be `docker.label` and `value` aka `key` would be `com.acme.service-name`. ") __properties: ClassVar[List[str]] = ["key", "value"] model_config = ConfigDict( diff --git a/instana_client/models/service_metric_result.py b/instana_client/models/service_metric_result.py index 32cf4f1..19f7716 100644 --- a/instana_client/models/service_metric_result.py +++ b/instana_client/models/service_metric_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/service_node.py b/instana_client/models/service_node.py index 846b690..4e37eb5 100644 --- a/instana_client/models/service_node.py +++ b/instana_client/models/service_node.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/service_now_enhanced_integration.py b/instana_client/models/service_now_enhanced_integration.py index 9c8181a..c0a9a22 100644 --- a/instana_client/models/service_now_enhanced_integration.py +++ b/instana_client/models/service_now_enhanced_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self @@ -34,13 +35,13 @@ class ServiceNowEnhancedIntegration(AbstractIntegration): enable_send_service_now_work_notes: Optional[StrictBool] = Field(default=None, alias="enableSendServiceNowWorkNotes") instana_url: Optional[StrictStr] = Field(default=None, alias="instanaUrl") manually_closed_incidents: Optional[StrictBool] = Field(default=None, alias="manuallyClosedIncidents") - password: StrictStr + password: Annotated[str, Field(min_length=1, strict=True)] resolution_of_incident: Optional[StrictBool] = Field(default=None, alias="resolutionOfIncident") - service_now_url: StrictStr = Field(alias="serviceNowUrl") + service_now_url: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="serviceNowUrl") snow_status_on_close_event: Optional[StrictInt] = Field(default=None, alias="snowStatusOnCloseEvent") - tenant: StrictStr - unit: StrictStr - username: StrictStr + tenant: Annotated[str, Field(min_length=1, strict=True)] + unit: Annotated[str, Field(min_length=1, strict=True)] + username: Annotated[str, Field(min_length=1, strict=True)] __properties: ClassVar[List[str]] = ["id", "kind", "name", "autoCloseIncidents", "enableSendInstanaNotes", "enableSendServiceNowActivities", "enableSendServiceNowWorkNotes", "instanaUrl", "manuallyClosedIncidents", "password", "resolutionOfIncident", "serviceNowUrl", "snowStatusOnCloseEvent", "tenant", "unit", "username"] model_config = ConfigDict( diff --git a/instana_client/models/service_now_integration.py b/instana_client/models/service_now_integration.py index 1edd671..a9162d5 100644 --- a/instana_client/models/service_now_integration.py +++ b/instana_client/models/service_now_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import ConfigDict, Field, StrictBool, StrictStr +from pydantic import ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self @@ -29,9 +30,9 @@ class ServiceNowIntegration(AbstractIntegration): ServiceNowIntegration """ # noqa: E501 auto_close_incidents: Optional[StrictBool] = Field(default=None, alias="autoCloseIncidents") - password: StrictStr - service_now_url: StrictStr = Field(alias="serviceNowUrl") - username: StrictStr + password: Annotated[str, Field(min_length=1, strict=True)] + service_now_url: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="serviceNowUrl") + username: Annotated[str, Field(min_length=1, strict=True)] __properties: ClassVar[List[str]] = ["id", "kind", "name", "autoCloseIncidents", "password", "serviceNowUrl", "username"] model_config = ConfigDict( diff --git a/instana_client/models/service_result.py b/instana_client/models/service_result.py index 92bc701..0dad77a 100644 --- a/instana_client/models/service_result.py +++ b/instana_client/models/service_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/service_scope.py b/instana_client/models/service_scope.py index 5881045..0520150 100644 --- a/instana_client/models/service_scope.py +++ b/instana_client/models/service_scope.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/service_scope_with_metadata.py b/instana_client/models/service_scope_with_metadata.py index 7775c9a..aa24a2b 100644 --- a/instana_client/models/service_scope_with_metadata.py +++ b/instana_client/models/service_scope_with_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from instana_client.models.service_scoped_to_with_metadata import ServiceScopedToWithMetadata from typing import Optional, Set from typing_extensions import Self @@ -28,7 +29,7 @@ class ServiceScopeWithMetadata(BaseModel): """ The list of services where the release can be viewed. """ # noqa: E501 - id: StrictStr = Field(description="Unique ID of the Service. Eg: `3feb3dcd206c166ef2b41c707e0cd38d7cd325aa`.") + id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Unique ID of the Service. Eg: `3feb3dcd206c166ef2b41c707e0cd38d7cd325aa`.") name: Optional[StrictStr] = Field(default=None, description="Name of the Service. Eg: `payment`.") scoped_to: Optional[ServiceScopedToWithMetadata] = Field(default=None, alias="scopedTo") __properties: ClassVar[List[str]] = ["id", "name", "scopedTo"] diff --git a/instana_client/models/service_scoped_to.py b/instana_client/models/service_scoped_to.py index d830088..0b1cecd 100644 --- a/instana_client/models/service_scoped_to.py +++ b/instana_client/models/service_scoped_to.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/service_scoped_to_with_metadata.py b/instana_client/models/service_scoped_to_with_metadata.py index f3719b9..d6a67c9 100644 --- a/instana_client/models/service_scoped_to_with_metadata.py +++ b/instana_client/models/service_scoped_to_with_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/service_simple.py b/instana_client/models/service_simple.py index 147535f..42d4f93 100644 --- a/instana_client/models/service_simple.py +++ b/instana_client/models/service_simple.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/session_replay_metadata.py b/instana_client/models/session_replay_metadata.py new file mode 100644 index 0000000..5f063ec --- /dev/null +++ b/instana_client/models/session_replay_metadata.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class SessionReplayMetadata(BaseModel): + """ + List of session replay metadata records + """ # noqa: E501 + bytes_ingested_image: StrictInt = Field(description="Size of the image in bytes", alias="bytesIngestedImage") + id: StrictStr = Field(description="Unique identifier for the metadata record") + image_data: Optional[StrictStr] = Field(default=None, description="Base64-encoded image data loaded from external storage", alias="imageData") + image_format: StrictStr = Field(description="Image format", alias="imageFormat") + session_id: StrictStr = Field(description="Session identifier", alias="sessionId") + timestamp: StrictInt = Field(description="Timestamp when the record was captured (epoch milliseconds)") + type: StrictStr = Field(description="Type of record") + __properties: ClassVar[List[str]] = ["bytesIngestedImage", "id", "imageData", "imageFormat", "sessionId", "timestamp", "type"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SessionReplayMetadata from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if image_data (nullable) is None + # and model_fields_set contains the field + if self.image_data is None and "image_data" in self.model_fields_set: + _dict['imageData'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SessionReplayMetadata from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "bytesIngestedImage": obj.get("bytesIngestedImage"), + "id": obj.get("id"), + "imageData": obj.get("imageData"), + "imageFormat": obj.get("imageFormat"), + "sessionId": obj.get("sessionId"), + "timestamp": obj.get("timestamp"), + "type": obj.get("type") + }) + return _obj + + diff --git a/instana_client/models/session_replay_timestamps.py b/instana_client/models/session_replay_timestamps.py new file mode 100644 index 0000000..1a4efe8 --- /dev/null +++ b/instana_client/models/session_replay_timestamps.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class SessionReplayTimestamps(BaseModel): + """ + SessionReplayTimestamps + """ # noqa: E501 + first_image_timestamp: Optional[StrictInt] = Field(default=None, description="Timestamp of the first image in the session (epoch milliseconds). Null if no images exist.", alias="firstImageTimestamp") + last_image_timestamp: Optional[StrictInt] = Field(default=None, description="Timestamp of the last image in the session (epoch milliseconds). Null if no images exist.", alias="lastImageTimestamp") + __properties: ClassVar[List[str]] = ["firstImageTimestamp", "lastImageTimestamp"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SessionReplayTimestamps from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SessionReplayTimestamps from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "firstImageTimestamp": obj.get("firstImageTimestamp"), + "lastImageTimestamp": obj.get("lastImageTimestamp") + }) + return _obj + + diff --git a/instana_client/models/session_settings.py b/instana_client/models/session_settings.py index 7745e05..453be84 100644 --- a/instana_client/models/session_settings.py +++ b/instana_client/models/session_settings.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/simple_metric_configuration.py b/instana_client/models/simple_metric_configuration.py index cf9f81c..075bff6 100644 --- a/instana_client/models/simple_metric_configuration.py +++ b/instana_client/models/simple_metric_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union +from typing_extensions import Annotated from instana_client.models.arithmetic_operation import ArithmeticOperation from typing import Optional, Set from typing_extensions import Self @@ -31,7 +32,7 @@ class SimpleMetricConfiguration(BaseModel): aggregation: StrictStr cross_series_aggregation: Optional[StrictStr] = Field(default=None, alias="crossSeriesAggregation") granularity: Optional[StrictInt] = Field(default=None, description=" * If granularity is not specified an aggregated value for the selected timeframe is returned. * If granularity is specified data points are returned with the specified granularity * The granularity should not be greater than the `windowSize` (important: `windowSize` is expressed in milliseconds) * The granularity should not be set too small relative to the `windowSize` to avoid creating an excessively large number of data points (max 600) ") - metric: StrictStr + metric: Annotated[str, Field(min_length=1, strict=True)] missing_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="missingValue") regex: Optional[StrictBool] = None required: Optional[StrictBool] = Field(default=None, description="When true, metric must be present with values") diff --git a/instana_client/models/single_value.py b/instana_client/models/single_value.py index c8bbee4..5afd43a 100644 --- a/instana_client/models/single_value.py +++ b/instana_client/models/single_value.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/slack_integration.py b/instana_client/models/slack_integration.py index 4bc4d05..27030bb 100644 --- a/instana_client/models/slack_integration.py +++ b/instana_client/models/slack_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self @@ -31,7 +32,7 @@ class SlackIntegration(AbstractIntegration): channel: Optional[StrictStr] = None emoji_rendering: Optional[StrictBool] = Field(default=None, alias="emojiRendering") icon_url: Optional[StrictStr] = Field(default=None, alias="iconUrl") - webhook_url: StrictStr = Field(alias="webhookUrl") + webhook_url: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="webhookUrl") __properties: ClassVar[List[str]] = ["id", "kind", "name", "channel", "emojiRendering", "iconUrl", "webhookUrl"] model_config = ConfigDict( diff --git a/instana_client/models/sli_configuration.py b/instana_client/models/sli_configuration.py index f43b0e3..3c7587f 100644 --- a/instana_client/models/sli_configuration.py +++ b/instana_client/models/sli_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/sli_configuration_with_last_updated.py b/instana_client/models/sli_configuration_with_last_updated.py index 447a328..5c3cfa5 100644 --- a/instana_client/models/sli_configuration_with_last_updated.py +++ b/instana_client/models/sli_configuration_with_last_updated.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/sli_entity.py b/instana_client/models/sli_entity.py index a6f23bb..3533b88 100644 --- a/instana_client/models/sli_entity.py +++ b/instana_client/models/sli_entity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/sli_report.py b/instana_client/models/sli_report.py index fc30f7a..92f7ca1 100644 --- a/instana_client/models/sli_report.py +++ b/instana_client/models/sli_report.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/slo_config_with_rbac_tag.py b/instana_client/models/slo_config_with_rbac_tag.py index d9c68dd..6d353b7 100644 --- a/instana_client/models/slo_config_with_rbac_tag.py +++ b/instana_client/models/slo_config_with_rbac_tag.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/slo_entity.py b/instana_client/models/slo_entity.py index 564224e..aa42d91 100644 --- a/instana_client/models/slo_entity.py +++ b/instana_client/models/slo_entity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/slo_report.py b/instana_client/models/slo_report.py index c6dfb8b..e584d68 100644 --- a/instana_client/models/slo_report.py +++ b/instana_client/models/slo_report.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/slowness_application_alert_rule.py b/instana_client/models/slowness_application_alert_rule.py index cd52eec..bbe6dc2 100644 --- a/instana_client/models/slowness_application_alert_rule.py +++ b/instana_client/models/slowness_application_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/slowness_mobile_app_alert_rule.py b/instana_client/models/slowness_mobile_app_alert_rule.py index e71859b..00e9678 100644 --- a/instana_client/models/slowness_mobile_app_alert_rule.py +++ b/instana_client/models/slowness_mobile_app_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/slowness_website_alert_rule.py b/instana_client/models/slowness_website_alert_rule.py index 9b11780..cd39d7c 100644 --- a/instana_client/models/slowness_website_alert_rule.py +++ b/instana_client/models/slowness_website_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/snapshot_item.py b/instana_client/models/snapshot_item.py index c707e0f..ba14a59 100644 --- a/instana_client/models/snapshot_item.py +++ b/instana_client/models/snapshot_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/snapshot_preview.py b/instana_client/models/snapshot_preview.py index c6c2745..fd59e7e 100644 --- a/instana_client/models/snapshot_preview.py +++ b/instana_client/models/snapshot_preview.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -29,7 +29,7 @@ class SnapshotPreview(BaseModel): SnapshotPreview """ # noqa: E501 data: Optional[Dict[str, Dict[str, Any]]] = Field(default=None, description="Subset of the data section of the plugin. In most cases this field will be null.") - id: StrictStr = Field(description="This is a snapshot ID. A unique identifier the metrics are assigned to.") + id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="This is a snapshot ID. A unique identifier the metrics are assigned to.") label: Optional[StrictStr] = Field(default=None, description="Name of the entity.") plugin: Optional[StrictStr] = Field(default=None, description="A short plugin ID. For example, `containerd`, `nginx` etc.") time: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Specifies the exact point at which the id, label and plugin are valid.") diff --git a/instana_client/models/snapshot_result.py b/instana_client/models/snapshot_result.py index f05107a..578788e 100644 --- a/instana_client/models/snapshot_result.py +++ b/instana_client/models/snapshot_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/software_user.py b/instana_client/models/software_user.py index fb5a688..2e1895a 100644 --- a/instana_client/models/software_user.py +++ b/instana_client/models/software_user.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/software_version.py b/instana_client/models/software_version.py index 492a8cd..4211103 100644 --- a/instana_client/models/software_version.py +++ b/instana_client/models/software_version.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from instana_client.models.software_user import SoftwareUser from typing import Optional, Set from typing_extensions import Self @@ -30,12 +31,12 @@ class SoftwareVersion(BaseModel): """ # noqa: E501 discovery_type: StrictStr = Field(alias="discoveryType") metadata: Optional[Dict[str, StrictStr]] = None - name: StrictStr - plugin: StrictStr - software_type: StrictStr = Field(alias="softwareType") + name: Annotated[str, Field(min_length=1, strict=True)] + plugin: Annotated[str, Field(min_length=1, strict=True)] + software_type: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="softwareType") used_by: List[SoftwareUser] = Field(alias="usedBy") - vendor: StrictStr - version: StrictStr + vendor: Annotated[str, Field(min_length=1, strict=True)] + version: Annotated[str, Field(min_length=1, strict=True)] __properties: ClassVar[List[str]] = ["discoveryType", "metadata", "name", "plugin", "softwareType", "usedBy", "vendor", "version"] @field_validator('discovery_type') diff --git a/instana_client/models/source_map_file_blob.py b/instana_client/models/source_map_file_blob.py index 37c18f1..508c928 100644 --- a/instana_client/models/source_map_file_blob.py +++ b/instana_client/models/source_map_file_blob.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/source_map_file_meta.py b/instana_client/models/source_map_file_meta.py index d9057f1..e4f1b07 100644 --- a/instana_client/models/source_map_file_meta.py +++ b/instana_client/models/source_map_file_meta.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from instana_client.models.source_map_file_blob import SourceMapFileBlob from typing import Optional, Set from typing_extensions import Self @@ -29,12 +30,12 @@ class SourceMapFileMeta(BaseModel): SourceMapFileMeta """ # noqa: E501 blobs: Optional[List[SourceMapFileBlob]] = None - format: StrictStr + format: Annotated[str, Field(min_length=1, strict=True)] meta: Optional[StrictStr] = None size: Optional[StrictInt] = None size_on_disk: Optional[StrictInt] = Field(default=None, alias="sizeOnDisk") type: StrictStr - url: StrictStr + url: Annotated[str, Field(min_length=1, strict=True)] __properties: ClassVar[List[str]] = ["blobs", "format", "meta", "size", "sizeOnDisk", "type", "url"] @field_validator('type') diff --git a/instana_client/models/source_map_upload_config.py b/instana_client/models/source_map_upload_config.py index 5f7c140..32a2a5b 100644 --- a/instana_client/models/source_map_upload_config.py +++ b/instana_client/models/source_map_upload_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -32,7 +32,7 @@ class SourceMapUploadConfig(BaseModel): """ # noqa: E501 created_at: Optional[datetime] = Field(default=None, alias="createdAt") description: Optional[StrictStr] = None - id: StrictStr + id: Optional[StrictStr] = None metadata: Annotated[List[SourceMapFileMeta], Field(min_length=0, max_length=500)] modified_at: Optional[datetime] = Field(default=None, alias="modifiedAt") __properties: ClassVar[List[str]] = ["createdAt", "description", "id", "metadata", "modifiedAt"] diff --git a/instana_client/models/source_map_upload_configs.py b/instana_client/models/source_map_upload_configs.py index 97e0fd9..1aefdbf 100644 --- a/instana_client/models/source_map_upload_configs.py +++ b/instana_client/models/source_map_upload_configs.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/span_excerpt.py b/instana_client/models/span_excerpt.py index dc792f7..8dbb166 100644 --- a/instana_client/models/span_excerpt.py +++ b/instana_client/models/span_excerpt.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,7 +37,7 @@ class SpanExcerpt(BaseModel): foreign_parent_id: Optional[StrictStr] = Field(default=None, alias="foreignParentId") id: StrictStr = Field(description="The call ID. A unique identifier for an individual call. For example: `1bcad5c82338deaf`.") kind: StrictStr = Field(description="There are 4 types of span kind: 1. `ENTRY`: An entry span represents an incoming request into a traced service. 2. `EXIT`: An exit span represents an outgoing request that a service makes to some other service. 3. `INTERMEDIATE`: An intermediate span represents anything that happens inside a traced service where the flow of control neither enters nor leaves that service, but stays inside it. 4. `UNKNOWN`: Instana can't determine the span kind. ") - name: StrictStr = Field(description="The technical type of the span. For example, `node.http.client` or `jdbc`.") + name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The technical type of the span. For example, `node.http.client` or `jdbc`.") parent_id: Optional[StrictStr] = Field(default=None, description="The parent call id, referring to another call in the same trace which triggered the processing associated with this call.", alias="parentId") stack_trace: List[StackTraceItem] = Field(description="For an erroneous call, if stack trace is available it will show a list of items containing file, method and line number of the code.", alias="stackTrace") start: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="The timestamp when the call or request was initiated. For example, Unix epoch time in milliseconds `1735532879870` is `Monday, 30 December 2024 04:27:59.870 GMT`") diff --git a/instana_client/models/span_relation.py b/instana_client/models/span_relation.py index 5e7cdcf..5e9cda6 100644 --- a/instana_client/models/span_relation.py +++ b/instana_client/models/span_relation.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/specific_js_errors_website_alert_rule.py b/instana_client/models/specific_js_errors_website_alert_rule.py index b42e580..e49d647 100644 --- a/instana_client/models/specific_js_errors_website_alert_rule.py +++ b/instana_client/models/specific_js_errors_website_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -35,8 +35,8 @@ class SpecificJsErrorsWebsiteAlertRule(WebsiteAlertRule): @field_validator('operator') def operator_validate_enum(cls, value): """Validates the enum""" - if value not in set(['EQUALS', 'CONTAINS', 'LESS_THAN', 'LESS_OR_EQUAL_THAN', 'GREATER_THAN', 'GREATER_OR_EQUAL_THAN', 'NOT_EMPTY', 'NOT_EQUAL', 'NOT_CONTAIN', 'IS_EMPTY', 'NOT_BLANK', 'IS_BLANK', 'STARTS_WITH', 'ENDS_WITH', 'NOT_STARTS_WITH', 'NOT_ENDS_WITH', 'REGEX_MATCH']): - raise ValueError("must be one of enum values ('EQUALS', 'CONTAINS', 'LESS_THAN', 'LESS_OR_EQUAL_THAN', 'GREATER_THAN', 'GREATER_OR_EQUAL_THAN', 'NOT_EMPTY', 'NOT_EQUAL', 'NOT_CONTAIN', 'IS_EMPTY', 'NOT_BLANK', 'IS_BLANK', 'STARTS_WITH', 'ENDS_WITH', 'NOT_STARTS_WITH', 'NOT_ENDS_WITH', 'REGEX_MATCH')") + if value not in set(['EQUALS', 'CONTAINS', 'IN', 'NOT_IN', 'LESS_THAN', 'LESS_OR_EQUAL_THAN', 'GREATER_THAN', 'GREATER_OR_EQUAL_THAN', 'NOT_EMPTY', 'NOT_EQUAL', 'NOT_CONTAIN', 'IS_EMPTY', 'NOT_BLANK', 'IS_BLANK', 'STARTS_WITH', 'ENDS_WITH', 'NOT_STARTS_WITH', 'NOT_ENDS_WITH', 'REGEX_MATCH']): + raise ValueError("must be one of enum values ('EQUALS', 'CONTAINS', 'IN', 'NOT_IN', 'LESS_THAN', 'LESS_OR_EQUAL_THAN', 'GREATER_THAN', 'GREATER_OR_EQUAL_THAN', 'NOT_EMPTY', 'NOT_EQUAL', 'NOT_CONTAIN', 'IS_EMPTY', 'NOT_BLANK', 'IS_BLANK', 'STARTS_WITH', 'ENDS_WITH', 'NOT_STARTS_WITH', 'NOT_ENDS_WITH', 'REGEX_MATCH')") return value model_config = ConfigDict( diff --git a/instana_client/models/splunk_integration.py b/instana_client/models/splunk_integration.py index 3aa3756..a3eb20c 100644 --- a/instana_client/models/splunk_integration.py +++ b/instana_client/models/splunk_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import ConfigDict, StrictStr +from pydantic import ConfigDict, Field from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self @@ -28,8 +29,8 @@ class SplunkIntegration(AbstractIntegration): """ SplunkIntegration """ # noqa: E501 - token: StrictStr - url: StrictStr + token: Annotated[str, Field(min_length=1, strict=True)] + url: Annotated[str, Field(min_length=1, strict=True)] __properties: ClassVar[List[str]] = ["id", "kind", "name", "token", "url"] model_config = ConfigDict( diff --git a/instana_client/models/ssl_certificate_configuration.py b/instana_client/models/ssl_certificate_configuration.py index 3c63682..d7613f2 100644 --- a/instana_client/models/ssl_certificate_configuration.py +++ b/instana_client/models/ssl_certificate_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/ssl_certificate_configuration_update.py b/instana_client/models/ssl_certificate_configuration_update.py index 8f022f6..4bdb1f8 100644 --- a/instana_client/models/ssl_certificate_configuration_update.py +++ b/instana_client/models/ssl_certificate_configuration_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/ssl_certificate_validation.py b/instana_client/models/ssl_certificate_validation.py index aeb812f..e093b43 100644 --- a/instana_client/models/ssl_certificate_validation.py +++ b/instana_client/models/ssl_certificate_validation.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/stack_trace_item.py b/instana_client/models/stack_trace_item.py index 54c9ed3..f0d57c6 100644 --- a/instana_client/models/stack_trace_item.py +++ b/instana_client/models/stack_trace_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/stack_trace_line.py b/instana_client/models/stack_trace_line.py index 619414e..c2f59c1 100644 --- a/instana_client/models/stack_trace_line.py +++ b/instana_client/models/stack_trace_line.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -29,7 +29,7 @@ class StackTraceLine(BaseModel): StackTraceLine """ # noqa: E501 column: Optional[Annotated[int, Field(strict=True, ge=-1)]] = None - file: StrictStr + file: Annotated[str, Field(min_length=1, strict=True)] line: Optional[Annotated[int, Field(strict=True, ge=-1)]] = None name: Optional[StrictStr] = None translation_explanation: Optional[StrictStr] = Field(default=None, alias="translationExplanation") diff --git a/instana_client/models/static_baseline_threshold_rule.py b/instana_client/models/static_baseline_threshold_rule.py index 8f6c2f1..2b5dc38 100644 --- a/instana_client/models/static_baseline_threshold_rule.py +++ b/instana_client/models/static_baseline_threshold_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/static_string_field.py b/instana_client/models/static_string_field.py index 4a6b460..d649585 100644 --- a/instana_client/models/static_string_field.py +++ b/instana_client/models/static_string_field.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import ConfigDict, Field, StrictStr +from pydantic import ConfigDict, Field from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated from instana_client.models.custom_payload_field import CustomPayloadField from typing import Optional, Set from typing_extensions import Self @@ -28,7 +29,7 @@ class StaticStringField(CustomPayloadField): """ StaticStringField """ # noqa: E501 - value: StrictStr = Field(description="Custom value for static type custom payload") + value: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Custom value for static type custom payload") __properties: ClassVar[List[str]] = ["key", "type", "value"] model_config = ConfigDict( diff --git a/instana_client/models/static_threshold.py b/instana_client/models/static_threshold.py index 5b7bfdb..65a7be6 100644 --- a/instana_client/models/static_threshold.py +++ b/instana_client/models/static_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/static_threshold_rule.py b/instana_client/models/static_threshold_rule.py index fcc1129..2216c10 100644 --- a/instana_client/models/static_threshold_rule.py +++ b/instana_client/models/static_threshold_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/status_code_application_alert_rule.py b/instana_client/models/status_code_application_alert_rule.py index 6072e91..776b3fe 100644 --- a/instana_client/models/status_code_application_alert_rule.py +++ b/instana_client/models/status_code_application_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/status_code_mobile_app_alert_rule.py b/instana_client/models/status_code_mobile_app_alert_rule.py index dfc9a8c..0e8a259 100644 --- a/instana_client/models/status_code_mobile_app_alert_rule.py +++ b/instana_client/models/status_code_mobile_app_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import ConfigDict, StrictStr, field_validator +from pydantic import ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated from instana_client.models.mobile_app_alert_rule import MobileAppAlertRule from typing import Optional, Set from typing_extensions import Self @@ -29,14 +30,14 @@ class StatusCodeMobileAppAlertRule(MobileAppAlertRule): StatusCodeMobileAppAlertRule """ # noqa: E501 operator: StrictStr - value: StrictStr + value: Annotated[str, Field(min_length=1, strict=True)] __properties: ClassVar[List[str]] = ["aggregation", "alertType", "metricName", "operator", "value"] @field_validator('operator') def operator_validate_enum(cls, value): """Validates the enum""" - if value not in set(['EQUALS', 'CONTAINS', 'LESS_THAN', 'LESS_OR_EQUAL_THAN', 'GREATER_THAN', 'GREATER_OR_EQUAL_THAN', 'NOT_EMPTY', 'NOT_EQUAL', 'NOT_CONTAIN', 'IS_EMPTY', 'NOT_BLANK', 'IS_BLANK', 'STARTS_WITH', 'ENDS_WITH', 'NOT_STARTS_WITH', 'NOT_ENDS_WITH', 'REGEX_MATCH']): - raise ValueError("must be one of enum values ('EQUALS', 'CONTAINS', 'LESS_THAN', 'LESS_OR_EQUAL_THAN', 'GREATER_THAN', 'GREATER_OR_EQUAL_THAN', 'NOT_EMPTY', 'NOT_EQUAL', 'NOT_CONTAIN', 'IS_EMPTY', 'NOT_BLANK', 'IS_BLANK', 'STARTS_WITH', 'ENDS_WITH', 'NOT_STARTS_WITH', 'NOT_ENDS_WITH', 'REGEX_MATCH')") + if value not in set(['EQUALS', 'CONTAINS', 'IN', 'NOT_IN', 'LESS_THAN', 'LESS_OR_EQUAL_THAN', 'GREATER_THAN', 'GREATER_OR_EQUAL_THAN', 'NOT_EMPTY', 'NOT_EQUAL', 'NOT_CONTAIN', 'IS_EMPTY', 'NOT_BLANK', 'IS_BLANK', 'STARTS_WITH', 'ENDS_WITH', 'NOT_STARTS_WITH', 'NOT_ENDS_WITH', 'REGEX_MATCH']): + raise ValueError("must be one of enum values ('EQUALS', 'CONTAINS', 'IN', 'NOT_IN', 'LESS_THAN', 'LESS_OR_EQUAL_THAN', 'GREATER_THAN', 'GREATER_OR_EQUAL_THAN', 'NOT_EMPTY', 'NOT_EQUAL', 'NOT_CONTAIN', 'IS_EMPTY', 'NOT_BLANK', 'IS_BLANK', 'STARTS_WITH', 'ENDS_WITH', 'NOT_STARTS_WITH', 'NOT_ENDS_WITH', 'REGEX_MATCH')") return value model_config = ConfigDict( diff --git a/instana_client/models/status_code_website_alert_rule.py b/instana_client/models/status_code_website_alert_rule.py index 37c97ea..303b033 100644 --- a/instana_client/models/status_code_website_alert_rule.py +++ b/instana_client/models/status_code_website_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import ConfigDict, StrictStr, field_validator +from pydantic import ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated from instana_client.models.website_alert_rule import WebsiteAlertRule from typing import Optional, Set from typing_extensions import Self @@ -29,14 +30,14 @@ class StatusCodeWebsiteAlertRule(WebsiteAlertRule): StatusCodeWebsiteAlertRule """ # noqa: E501 operator: StrictStr - value: StrictStr + value: Annotated[str, Field(min_length=1, strict=True)] __properties: ClassVar[List[str]] = ["aggregation", "alertType", "metricName", "operator", "value"] @field_validator('operator') def operator_validate_enum(cls, value): """Validates the enum""" - if value not in set(['EQUALS', 'CONTAINS', 'LESS_THAN', 'LESS_OR_EQUAL_THAN', 'GREATER_THAN', 'GREATER_OR_EQUAL_THAN', 'NOT_EMPTY', 'NOT_EQUAL', 'NOT_CONTAIN', 'IS_EMPTY', 'NOT_BLANK', 'IS_BLANK', 'STARTS_WITH', 'ENDS_WITH', 'NOT_STARTS_WITH', 'NOT_ENDS_WITH', 'REGEX_MATCH']): - raise ValueError("must be one of enum values ('EQUALS', 'CONTAINS', 'LESS_THAN', 'LESS_OR_EQUAL_THAN', 'GREATER_THAN', 'GREATER_OR_EQUAL_THAN', 'NOT_EMPTY', 'NOT_EQUAL', 'NOT_CONTAIN', 'IS_EMPTY', 'NOT_BLANK', 'IS_BLANK', 'STARTS_WITH', 'ENDS_WITH', 'NOT_STARTS_WITH', 'NOT_ENDS_WITH', 'REGEX_MATCH')") + if value not in set(['EQUALS', 'CONTAINS', 'IN', 'NOT_IN', 'LESS_THAN', 'LESS_OR_EQUAL_THAN', 'GREATER_THAN', 'GREATER_OR_EQUAL_THAN', 'NOT_EMPTY', 'NOT_EQUAL', 'NOT_CONTAIN', 'IS_EMPTY', 'NOT_BLANK', 'IS_BLANK', 'STARTS_WITH', 'ENDS_WITH', 'NOT_STARTS_WITH', 'NOT_ENDS_WITH', 'REGEX_MATCH']): + raise ValueError("must be one of enum values ('EQUALS', 'CONTAINS', 'IN', 'NOT_IN', 'LESS_THAN', 'LESS_OR_EQUAL_THAN', 'GREATER_THAN', 'GREATER_OR_EQUAL_THAN', 'NOT_EMPTY', 'NOT_EQUAL', 'NOT_CONTAIN', 'IS_EMPTY', 'NOT_BLANK', 'IS_BLANK', 'STARTS_WITH', 'ENDS_WITH', 'NOT_STARTS_WITH', 'NOT_ENDS_WITH', 'REGEX_MATCH')") return value model_config = ConfigDict( diff --git a/instana_client/models/subtraction.py b/instana_client/models/subtraction.py index 570e042..40900f5 100644 --- a/instana_client/models/subtraction.py +++ b/instana_client/models/subtraction.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/synthetic_alert_config.py b/instana_client/models/synthetic_alert_config.py index 089b0c7..6357876 100644 --- a/instana_client/models/synthetic_alert_config.py +++ b/instana_client/models/synthetic_alert_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -32,7 +32,7 @@ class SyntheticAlertConfig(BaseModel): """ SyntheticAlertConfig """ # noqa: E501 - alert_channel_ids: Annotated[List[StrictStr], Field(min_length=0, max_length=1024)] = Field(description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") + alert_channel_ids: Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)] = Field(description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") custom_payload_fields: Annotated[List[CustomPayloadField], Field(min_length=0, max_length=20)] = Field(description="Custom payload fields to send additional information in the alert notifications. Can be left empty.", alias="customPayloadFields") description: Annotated[str, Field(min_length=0, strict=True, max_length=65536)] = Field(description="Description of the synthetic alert configuration. Used as a template for the description of alert/event notifications triggered by this Smart Alert configuration.") grace_period: Optional[StrictInt] = Field(default=None, description="The duration for which an alert remains open after conditions are no longer violated, with the alert auto-closing once the grace period expires.", alias="gracePeriod") diff --git a/instana_client/models/synthetic_alert_config_with_metadata.py b/instana_client/models/synthetic_alert_config_with_metadata.py index 6315f16..0c3333b 100644 --- a/instana_client/models/synthetic_alert_config_with_metadata.py +++ b/instana_client/models/synthetic_alert_config_with_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -32,7 +32,7 @@ class SyntheticAlertConfigWithMetadata(BaseModel): """ SyntheticAlertConfigWithMetadata """ # noqa: E501 - alert_channel_ids: Annotated[List[StrictStr], Field(min_length=0, max_length=1024)] = Field(description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") + alert_channel_ids: Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)] = Field(description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") created: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Unix timestamp representing the creation time of this revision.") custom_payload_fields: Annotated[List[CustomPayloadField], Field(min_length=0, max_length=20)] = Field(description="Custom payload fields to send additional information in the alert notifications. Can be left empty.", alias="customPayloadFields") description: Annotated[str, Field(min_length=0, strict=True, max_length=65536)] = Field(description="Description of the synthetic alert configuration. Used as a template for the description of alert/event notifications triggered by this Smart Alert configuration.") diff --git a/instana_client/models/synthetic_alert_config_with_rbac_tag.py b/instana_client/models/synthetic_alert_config_with_rbac_tag.py new file mode 100644 index 0000000..47b1d45 --- /dev/null +++ b/instana_client/models/synthetic_alert_config_with_rbac_tag.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from instana_client.models.api_tag import ApiTag +from instana_client.models.custom_payload_field import CustomPayloadField +from instana_client.models.synthetic_alert_rule import SyntheticAlertRule +from instana_client.models.synthetic_time_threshold import SyntheticTimeThreshold +from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement +from typing import Optional, Set +from typing_extensions import Self + +class SyntheticAlertConfigWithRBACTag(BaseModel): + """ + SyntheticAlertConfigWithRBACTag + """ # noqa: E501 + alert_channel_ids: Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)] = Field(description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") + created: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Unix timestamp representing the creation time of this revision.") + custom_payload_fields: Annotated[List[CustomPayloadField], Field(min_length=0, max_length=20)] = Field(description="Custom payload fields to send additional information in the alert notifications. Can be left empty.", alias="customPayloadFields") + description: Annotated[str, Field(min_length=0, strict=True, max_length=65536)] = Field(description="Description of the synthetic alert configuration. Used as a template for the description of alert/event notifications triggered by this Smart Alert configuration.") + enabled: Optional[StrictBool] = Field(default=None, description="Flag to indicate whether or not the configuration is enabled.") + grace_period: Optional[StrictInt] = Field(default=None, description="The duration for which an alert remains open after conditions are no longer violated, with the alert auto-closing once the grace period expires.", alias="gracePeriod") + id: Annotated[str, Field(min_length=0, strict=True, max_length=64)] = Field(description="ID of this Synthetic Alert Config. ") + initial_created: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Unix timestamp representing the time of the initial revision.", alias="initialCreated") + name: Annotated[str, Field(min_length=0, strict=True, max_length=256)] = Field(description="Name of the synthetic alert configuration. Used as a template for the title of alert/event notifications triggered by this Smart Alert configuration.") + rbac_tags: Optional[List[ApiTag]] = Field(default=None, description="RBAC tags associated with the synthetic test", alias="rbacTags") + read_only: Optional[StrictBool] = Field(default=None, description="Flag to indicate whether or not the configuration is read-only. Read-only access restricts modification of the config.", alias="readOnly") + rule: SyntheticAlertRule + severity: Optional[Annotated[int, Field(le=10, strict=True, ge=5)]] = Field(default=None, description="The severity of the alert when triggered, which is either 5 (Warning), or 10 (Critical).") + synthetic_test_ids: List[StrictStr] = Field(description="IDs of the synthetic tests that this Smart Alert configuration is applied to.", alias="syntheticTestIds") + tag_filter_expression: TagFilterExpressionElement = Field(alias="tagFilterExpression") + time_threshold: SyntheticTimeThreshold = Field(alias="timeThreshold") + __properties: ClassVar[List[str]] = ["alertChannelIds", "created", "customPayloadFields", "description", "enabled", "gracePeriod", "id", "initialCreated", "name", "rbacTags", "readOnly", "rule", "severity", "syntheticTestIds", "tagFilterExpression", "timeThreshold"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SyntheticAlertConfigWithRBACTag from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in custom_payload_fields (list) + _items = [] + if self.custom_payload_fields: + for _item_custom_payload_fields in self.custom_payload_fields: + if _item_custom_payload_fields: + _items.append(_item_custom_payload_fields.to_dict()) + _dict['customPayloadFields'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in rbac_tags (list) + _items = [] + if self.rbac_tags: + for _item_rbac_tags in self.rbac_tags: + if _item_rbac_tags: + _items.append(_item_rbac_tags.to_dict()) + _dict['rbacTags'] = _items + # override the default output from pydantic by calling `to_dict()` of rule + if self.rule: + _dict['rule'] = self.rule.to_dict() + # override the default output from pydantic by calling `to_dict()` of tag_filter_expression + if self.tag_filter_expression: + _dict['tagFilterExpression'] = self.tag_filter_expression.to_dict() + # override the default output from pydantic by calling `to_dict()` of time_threshold + if self.time_threshold: + _dict['timeThreshold'] = self.time_threshold.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SyntheticAlertConfigWithRBACTag from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "alertChannelIds": obj.get("alertChannelIds"), + "created": obj.get("created"), + "customPayloadFields": [CustomPayloadField.from_dict(_item) for _item in obj["customPayloadFields"]] if obj.get("customPayloadFields") is not None else None, + "description": obj.get("description"), + "enabled": obj.get("enabled"), + "gracePeriod": obj.get("gracePeriod"), + "id": obj.get("id"), + "initialCreated": obj.get("initialCreated"), + "name": obj.get("name"), + "rbacTags": [ApiTag.from_dict(_item) for _item in obj["rbacTags"]] if obj.get("rbacTags") is not None else None, + "readOnly": obj.get("readOnly"), + "rule": SyntheticAlertRule.from_dict(obj["rule"]) if obj.get("rule") is not None else None, + "severity": obj.get("severity"), + "syntheticTestIds": obj.get("syntheticTestIds"), + "tagFilterExpression": TagFilterExpressionElement.from_dict(obj["tagFilterExpression"]) if obj.get("tagFilterExpression") is not None else None, + "timeThreshold": SyntheticTimeThreshold.from_dict(obj["timeThreshold"]) if obj.get("timeThreshold") is not None else None + }) + return _obj + + diff --git a/instana_client/models/synthetic_alert_rule.py b/instana_client/models/synthetic_alert_rule.py index 74109df..27e5df2 100644 --- a/instana_client/models/synthetic_alert_rule.py +++ b/instana_client/models/synthetic_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,6 +21,7 @@ from importlib import import_module from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -34,7 +35,7 @@ class SyntheticAlertRule(BaseModel): """ # noqa: E501 aggregation: Optional[StrictStr] = None alert_type: StrictStr = Field(alias="alertType") - metric_name: StrictStr = Field(alias="metricName") + metric_name: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="metricName") __properties: ClassVar[List[str]] = ["aggregation", "alertType", "metricName"] @field_validator('aggregation') diff --git a/instana_client/models/synthetic_bulk_response.py b/instana_client/models/synthetic_bulk_response.py index d1930aa..23788cd 100644 --- a/instana_client/models/synthetic_bulk_response.py +++ b/instana_client/models/synthetic_bulk_response.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/synthetic_call_config.py b/instana_client/models/synthetic_call_config.py index e18f54a..3086d75 100644 --- a/instana_client/models/synthetic_call_config.py +++ b/instana_client/models/synthetic_call_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/synthetic_call_rule.py b/instana_client/models/synthetic_call_rule.py index d8cf611..e38ffba 100644 --- a/instana_client/models/synthetic_call_rule.py +++ b/instana_client/models/synthetic_call_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/synthetic_call_with_defaults_config.py b/instana_client/models/synthetic_call_with_defaults_config.py index 3a94cef..d30bdcb 100644 --- a/instana_client/models/synthetic_call_with_defaults_config.py +++ b/instana_client/models/synthetic_call_with_defaults_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/synthetic_configuration.py b/instana_client/models/synthetic_configuration.py index c70d91c..ea25bd9 100644 --- a/instana_client/models/synthetic_configuration.py +++ b/instana_client/models/synthetic_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/synthetic_configuration_update.py b/instana_client/models/synthetic_configuration_update.py index e4ee5c1..54cabcb 100644 --- a/instana_client/models/synthetic_configuration_update.py +++ b/instana_client/models/synthetic_configuration_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/synthetic_credential.py b/instana_client/models/synthetic_credential.py index af01041..7e757a1 100644 --- a/instana_client/models/synthetic_credential.py +++ b/instana_client/models/synthetic_credential.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/synthetic_datacenter.py b/instana_client/models/synthetic_datacenter.py index 7d26eb3..f137e95 100644 --- a/instana_client/models/synthetic_datacenter.py +++ b/instana_client/models/synthetic_datacenter.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/synthetic_datacenter_configuration.py b/instana_client/models/synthetic_datacenter_configuration.py index 5fe5641..2791a12 100644 --- a/instana_client/models/synthetic_datacenter_configuration.py +++ b/instana_client/models/synthetic_datacenter_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/synthetic_geo_point.py b/instana_client/models/synthetic_geo_point.py index 1acc931..7b56ad6 100644 --- a/instana_client/models/synthetic_geo_point.py +++ b/instana_client/models/synthetic_geo_point.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/synthetic_location.py b/instana_client/models/synthetic_location.py index 83aa8e0..6c8031e 100644 --- a/instana_client/models/synthetic_location.py +++ b/instana_client/models/synthetic_location.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/synthetic_location_configuration.py b/instana_client/models/synthetic_location_configuration.py index fee5e4e..3407410 100644 --- a/instana_client/models/synthetic_location_configuration.py +++ b/instana_client/models/synthetic_location_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/synthetic_metric_configuration.py b/instana_client/models/synthetic_metric_configuration.py index 2c27957..efadd48 100644 --- a/instana_client/models/synthetic_metric_configuration.py +++ b/instana_client/models/synthetic_metric_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -29,7 +30,7 @@ class SyntheticMetricConfiguration(BaseModel): """ # noqa: E501 aggregation: StrictStr = Field(description="Set aggregation that can be applied to a series of values. Eg: `MEAN`.") granularity: Optional[StrictInt] = Field(default=None, description="If the granularity is set you will get data points with the specified granularity in seconds. Default: `1000` milliseconds") - metric: StrictStr = Field(description="Set a particular metric, eg: `latency`.") + metric: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Set a particular metric, eg: `latency`.") __properties: ClassVar[List[str]] = ["aggregation", "granularity", "metric"] @field_validator('aggregation') diff --git a/instana_client/models/synthetic_metric_tag_group.py b/instana_client/models/synthetic_metric_tag_group.py index 690c992..8afab21 100644 --- a/instana_client/models/synthetic_metric_tag_group.py +++ b/instana_client/models/synthetic_metric_tag_group.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/synthetic_playback_capabilities.py b/instana_client/models/synthetic_playback_capabilities.py index 93041f4..8f3e61e 100644 --- a/instana_client/models/synthetic_playback_capabilities.py +++ b/instana_client/models/synthetic_playback_capabilities.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/synthetic_resource_update_list_dns_filter_target_value_list_dns_filter_target_value.py b/instana_client/models/synthetic_resource_update_list_dns_filter_target_value_list_dns_filter_target_value.py index f1f8134..525121b 100644 --- a/instana_client/models/synthetic_resource_update_list_dns_filter_target_value_list_dns_filter_target_value.py +++ b/instana_client/models/synthetic_resource_update_list_dns_filter_target_value_list_dns_filter_target_value.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/synthetic_resource_update_list_ssl_certificate_validation_list_ssl_certificate_validation.py b/instana_client/models/synthetic_resource_update_list_ssl_certificate_validation_list_ssl_certificate_validation.py index 99bef25..42ad122 100644 --- a/instana_client/models/synthetic_resource_update_list_ssl_certificate_validation_list_ssl_certificate_validation.py +++ b/instana_client/models/synthetic_resource_update_list_ssl_certificate_validation_list_ssl_certificate_validation.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/synthetic_resource_update_list_string_list_string.py b/instana_client/models/synthetic_resource_update_list_string_list_string.py index bc4dc93..8b62443 100644 --- a/instana_client/models/synthetic_resource_update_list_string_list_string.py +++ b/instana_client/models/synthetic_resource_update_list_string_list_string.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/synthetic_resource_update_map_string_string_list_string.py b/instana_client/models/synthetic_resource_update_map_string_string_list_string.py index 5b706fe..d5b5e88 100644 --- a/instana_client/models/synthetic_resource_update_map_string_string_list_string.py +++ b/instana_client/models/synthetic_resource_update_map_string_string_list_string.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/synthetic_slo_entity.py b/instana_client/models/synthetic_slo_entity.py index 169e7b7..3eef517 100644 --- a/instana_client/models/synthetic_slo_entity.py +++ b/instana_client/models/synthetic_slo_entity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/synthetic_test.py b/instana_client/models/synthetic_test.py index 691aaeb..24d69aa 100644 --- a/instana_client/models/synthetic_test.py +++ b/instana_client/models/synthetic_test.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/synthetic_test_cicd.py b/instana_client/models/synthetic_test_cicd.py index 00f1416..7208bdb 100644 --- a/instana_client/models/synthetic_test_cicd.py +++ b/instana_client/models/synthetic_test_cicd.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/synthetic_test_cicd_customization.py b/instana_client/models/synthetic_test_cicd_customization.py index 586d799..91f444e 100644 --- a/instana_client/models/synthetic_test_cicd_customization.py +++ b/instana_client/models/synthetic_test_cicd_customization.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/synthetic_test_cicd_item.py b/instana_client/models/synthetic_test_cicd_item.py index 026d056..506df16 100644 --- a/instana_client/models/synthetic_test_cicd_item.py +++ b/instana_client/models/synthetic_test_cicd_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/synthetic_test_cicd_response.py b/instana_client/models/synthetic_test_cicd_response.py index 86f0df9..3a86744 100644 --- a/instana_client/models/synthetic_test_cicd_response.py +++ b/instana_client/models/synthetic_test_cicd_response.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/synthetic_test_deep_update.py b/instana_client/models/synthetic_test_deep_update.py index 185ce75..ad90fcf 100644 --- a/instana_client/models/synthetic_test_deep_update.py +++ b/instana_client/models/synthetic_test_deep_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -32,7 +32,7 @@ class SyntheticTestDeepUpdate(SyntheticTestUpdate): SyntheticTestDeepUpdate """ # noqa: E501 configuration: Optional[SyntheticTypeConfigurationUpdate] = None - __properties: ClassVar[List[str]] = ["active", "applications", "customProperties", "ids", "lastModifiedAt", "locations", "mobileApps", "modifiedBy", "shallowUpdate", "syntheticUpdateType", "testFrequency", "websites", "configuration"] + __properties: ClassVar[List[str]] = ["active", "applications", "customProperties", "ids", "lastModifiedAt", "locations", "mobileApps", "modifiedBy", "rbacTags", "shallowUpdate", "syntheticUpdateType", "testFrequency", "websites", "configuration"] model_config = ConfigDict( populate_by_name=True, @@ -85,6 +85,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of mobile_apps if self.mobile_apps: _dict['mobileApps'] = self.mobile_apps.to_dict() + # override the default output from pydantic by calling `to_dict()` of rbac_tags + if self.rbac_tags: + _dict['rbacTags'] = self.rbac_tags.to_dict() # override the default output from pydantic by calling `to_dict()` of websites if self.websites: _dict['websites'] = self.websites.to_dict() @@ -111,6 +114,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "locations": SyntheticResourceUpdateListStringListString.from_dict(obj["locations"]) if obj.get("locations") is not None else None, "mobileApps": SyntheticResourceUpdateListStringListString.from_dict(obj["mobileApps"]) if obj.get("mobileApps") is not None else None, "modifiedBy": obj.get("modifiedBy"), + "rbacTags": SyntheticResourceUpdateListStringListString.from_dict(obj["rbacTags"]) if obj.get("rbacTags") is not None else None, "shallowUpdate": obj.get("shallowUpdate"), "syntheticUpdateType": obj.get("syntheticUpdateType"), "testFrequency": obj.get("testFrequency"), diff --git a/instana_client/models/synthetic_test_shallow_update.py b/instana_client/models/synthetic_test_shallow_update.py index 8e6c466..98f1df1 100644 --- a/instana_client/models/synthetic_test_shallow_update.py +++ b/instana_client/models/synthetic_test_shallow_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -32,7 +32,7 @@ class SyntheticTestShallowUpdate(SyntheticTestUpdate): SyntheticTestShallowUpdate """ # noqa: E501 configuration: Optional[SyntheticConfigurationUpdate] = None - __properties: ClassVar[List[str]] = ["active", "applications", "customProperties", "ids", "lastModifiedAt", "locations", "mobileApps", "modifiedBy", "shallowUpdate", "syntheticUpdateType", "testFrequency", "websites", "configuration"] + __properties: ClassVar[List[str]] = ["active", "applications", "customProperties", "ids", "lastModifiedAt", "locations", "mobileApps", "modifiedBy", "rbacTags", "shallowUpdate", "syntheticUpdateType", "testFrequency", "websites", "configuration"] model_config = ConfigDict( populate_by_name=True, @@ -85,6 +85,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of mobile_apps if self.mobile_apps: _dict['mobileApps'] = self.mobile_apps.to_dict() + # override the default output from pydantic by calling `to_dict()` of rbac_tags + if self.rbac_tags: + _dict['rbacTags'] = self.rbac_tags.to_dict() # override the default output from pydantic by calling `to_dict()` of websites if self.websites: _dict['websites'] = self.websites.to_dict() @@ -111,6 +114,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "locations": SyntheticResourceUpdateListStringListString.from_dict(obj["locations"]) if obj.get("locations") is not None else None, "mobileApps": SyntheticResourceUpdateListStringListString.from_dict(obj["mobileApps"]) if obj.get("mobileApps") is not None else None, "modifiedBy": obj.get("modifiedBy"), + "rbacTags": SyntheticResourceUpdateListStringListString.from_dict(obj["rbacTags"]) if obj.get("rbacTags") is not None else None, "shallowUpdate": obj.get("shallowUpdate"), "syntheticUpdateType": obj.get("syntheticUpdateType"), "testFrequency": obj.get("testFrequency"), diff --git a/instana_client/models/synthetic_test_update.py b/instana_client/models/synthetic_test_update.py index b65df25..ee9784f 100644 --- a/instana_client/models/synthetic_test_update.py +++ b/instana_client/models/synthetic_test_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -44,11 +44,12 @@ class SyntheticTestUpdate(BaseModel): locations: Optional[SyntheticResourceUpdateListStringListString] = None mobile_apps: Optional[SyntheticResourceUpdateListStringListString] = Field(default=None, alias="mobileApps") modified_by: Optional[StrictStr] = Field(default=None, alias="modifiedBy") + rbac_tags: Optional[SyntheticResourceUpdateListStringListString] = Field(default=None, alias="rbacTags") shallow_update: Optional[StrictBool] = Field(default=None, alias="shallowUpdate") synthetic_update_type: StrictStr = Field(description="Indicates the type of update to apply to a set of tests of same syntheticType (Deep) or a mix of syntheticType values (Shallow). When Shallow is used, only the configuration properties retries, retryInterval and timeout can be updated ", alias="syntheticUpdateType") test_frequency: Optional[Annotated[int, Field(le=1440, strict=True, ge=1)]] = Field(default=None, alias="testFrequency") websites: Optional[SyntheticResourceUpdateListStringListString] = None - __properties: ClassVar[List[str]] = ["active", "applications", "customProperties", "ids", "lastModifiedAt", "locations", "mobileApps", "modifiedBy", "shallowUpdate", "syntheticUpdateType", "testFrequency", "websites"] + __properties: ClassVar[List[str]] = ["active", "applications", "customProperties", "ids", "lastModifiedAt", "locations", "mobileApps", "modifiedBy", "rbacTags", "shallowUpdate", "syntheticUpdateType", "testFrequency", "websites"] @field_validator('synthetic_update_type') def synthetic_update_type_validate_enum(cls, value): @@ -125,6 +126,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of mobile_apps if self.mobile_apps: _dict['mobileApps'] = self.mobile_apps.to_dict() + # override the default output from pydantic by calling `to_dict()` of rbac_tags + if self.rbac_tags: + _dict['rbacTags'] = self.rbac_tags.to_dict() # override the default output from pydantic by calling `to_dict()` of websites if self.websites: _dict['websites'] = self.websites.to_dict() diff --git a/instana_client/models/synthetic_time_threshold.py b/instana_client/models/synthetic_time_threshold.py index 1fa10cc..2440275 100644 --- a/instana_client/models/synthetic_time_threshold.py +++ b/instana_client/models/synthetic_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/synthetic_type_configuration.py b/instana_client/models/synthetic_type_configuration.py index c7fb8fe..e2f5e90 100644 --- a/instana_client/models/synthetic_type_configuration.py +++ b/instana_client/models/synthetic_type_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/synthetic_type_configuration_update.py b/instana_client/models/synthetic_type_configuration_update.py index 7552df6..517317d 100644 --- a/instana_client/models/synthetic_type_configuration_update.py +++ b/instana_client/models/synthetic_type_configuration_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/synthetics_event_result.py b/instana_client/models/synthetics_event_result.py index d31587b..10f3b00 100644 --- a/instana_client/models/synthetics_event_result.py +++ b/instana_client/models/synthetics_event_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/system_rule.py b/instana_client/models/system_rule.py index 762ca67..2978d78 100644 --- a/instana_client/models/system_rule.py +++ b/instana_client/models/system_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/system_rule_label.py b/instana_client/models/system_rule_label.py index e52002d..6e492b9 100644 --- a/instana_client/models/system_rule_label.py +++ b/instana_client/models/system_rule_label.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -27,7 +28,7 @@ class SystemRuleLabel(BaseModel): """ SystemRuleLabel """ # noqa: E501 - id: StrictStr + id: Annotated[str, Field(min_length=1, strict=True)] name: StrictStr __properties: ClassVar[List[str]] = ["id", "name"] diff --git a/instana_client/models/tag.py b/instana_client/models/tag.py index 0f0f5f1..8fd7120 100644 --- a/instana_client/models/tag.py +++ b/instana_client/models/tag.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -35,7 +35,7 @@ class Tag(BaseModel): description: Optional[StrictStr] = Field(default=None, description="The description of the tag if it is provided.") id_tag: Optional[StrictBool] = Field(default=None, description="Whether the Tag is a unique ID or not. Eg: `idTag` for `endpoint.id` is true but for `call.rpc.method` it is false. ", alias="idTag") label: Optional[Annotated[str, Field(min_length=0, strict=True, max_length=256)]] = Field(default=None, description="The name of the tag which is seen in the UI. Eg: `Call name`") - name: StrictStr = Field(description="The name of the tag. Eg: `call.name`") + name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The name of the tag. Eg: `call.name`") type: StrictStr = Field(description="The data type of the tag. Eg: `call.name` accepts `STRING` value.") __properties: ClassVar[List[str]] = ["aliases", "availability", "canApplyToDestination", "canApplyToSource", "description", "idTag", "label", "name", "type"] diff --git a/instana_client/models/tag_catalog.py b/instana_client/models/tag_catalog.py index b7eac3a..1ca7c3d 100644 --- a/instana_client/models/tag_catalog.py +++ b/instana_client/models/tag_catalog.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated from instana_client.models.tag import Tag from instana_client.models.tag_tree_level import TagTreeLevel from typing import Optional, Set @@ -29,8 +30,8 @@ class TagCatalog(BaseModel): """ TagCatalog """ # noqa: E501 - tag_tree: List[TagTreeLevel] = Field(description="The name of the tag dataset (tagTree) which can contain one or more tags as its attributes or children. Eg: `Call`. Consider this as the root of the tree where it has tags as attributes or children. ", alias="tagTree") - tags: List[Tag] = Field(description="List of queryable tags available in a tagTree. Eg: `call.erroneous`. Consider these tags as attributes of a tagTree. Eg: `Call` tagTree has have `Erroneous`, `Call name`, `Latency` etc as attributes. ") + tag_tree: Annotated[List[TagTreeLevel], Field(min_length=1)] = Field(description="The name of the tag dataset (tagTree) which can contain one or more tags as its attributes or children. Eg: `Call`. Consider this as the root of the tree where it has tags as attributes or children. ", alias="tagTree") + tags: Annotated[List[Tag], Field(min_length=1)] = Field(description="List of queryable tags available in a tagTree. Eg: `call.erroneous`. Consider these tags as attributes of a tagTree. Eg: `Call` tagTree has have `Erroneous`, `Call name`, `Latency` etc as attributes. ") __properties: ClassVar[List[str]] = ["tagTree", "tags"] model_config = ConfigDict( diff --git a/instana_client/models/tag_filter.py b/instana_client/models/tag_filter.py index 07a944c..ec14132 100644 --- a/instana_client/models/tag_filter.py +++ b/instana_client/models/tag_filter.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/tag_filter_all_of_value.py b/instana_client/models/tag_filter_all_of_value.py index 09c9bda..5a00b35 100644 --- a/instana_client/models/tag_filter_all_of_value.py +++ b/instana_client/models/tag_filter_all_of_value.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/tag_filter_expression.py b/instana_client/models/tag_filter_expression.py index 5399869..9271a28 100644 --- a/instana_client/models/tag_filter_expression.py +++ b/instana_client/models/tag_filter_expression.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/tag_filter_expression_element.py b/instana_client/models/tag_filter_expression_element.py index 1de8cb7..803f999 100644 --- a/instana_client/models/tag_filter_expression_element.py +++ b/instana_client/models/tag_filter_expression_element.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/tag_matcher_dto.py b/instana_client/models/tag_matcher_dto.py index e942070..ced2cbf 100644 --- a/instana_client/models/tag_matcher_dto.py +++ b/instana_client/models/tag_matcher_dto.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import ConfigDict, StrictStr, field_validator +from pydantic import ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from instana_client.models.match_expression_dto import MatchExpressionDTO from typing import Optional, Set from typing_extensions import Self @@ -29,7 +30,7 @@ class TagMatcherDTO(MatchExpressionDTO): TagMatcherDTO """ # noqa: E501 entity: StrictStr - key: StrictStr + key: Annotated[str, Field(min_length=1, strict=True)] operator: StrictStr value: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["type", "entity", "key", "operator", "value"] diff --git a/instana_client/models/tag_tree_level.py b/instana_client/models/tag_tree_level.py index 59b12cd..b7fd84b 100644 --- a/instana_client/models/tag_tree_level.py +++ b/instana_client/models/tag_tree_level.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -29,7 +29,7 @@ class TagTreeLevel(BaseModel): """ The name of the tag dataset (tagTree) which can contain one or more tags as its attributes or children. Eg: `Call`. Consider this as the root of the tree where it has tags as attributes or children. """ # noqa: E501 - children: List[TagTreeNode] = Field(description="Children tags of tagTree") + children: Annotated[List[TagTreeNode], Field(min_length=1)] = Field(description="Children tags of tagTree") description: Optional[Annotated[str, Field(min_length=0, strict=True, max_length=512)]] = Field(default=None, description="The description provided, if any.") icon: Optional[Annotated[str, Field(min_length=0, strict=True, max_length=128)]] = Field(default=None, description="Each tag has an Icon which can be seen on the drop down list in Unbounded Analytics. If there is an icon, there will be a string associated with it. Eg: For for all `TAG` under `Call` tagTreeNode, the `icon` value is `lib_application_call`. ") label: Annotated[str, Field(min_length=0, strict=True, max_length=128)] = Field(description="The name of the tagTreeNode. Eg: `Commonly Used`, `Application`.") diff --git a/instana_client/models/tag_tree_node.py b/instana_client/models/tag_tree_node.py index e15a9d9..2965a66 100644 --- a/instana_client/models/tag_tree_node.py +++ b/instana_client/models/tag_tree_node.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/tag_tree_tag.py b/instana_client/models/tag_tree_tag.py index 15b282d..189b917 100644 --- a/instana_client/models/tag_tree_tag.py +++ b/instana_client/models/tag_tree_tag.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/test_common_properties.py b/instana_client/models/test_common_properties.py index 8baaf55..5f1b059 100644 --- a/instana_client/models/test_common_properties.py +++ b/instana_client/models/test_common_properties.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from instana_client.models.location_status import LocationStatus from typing import Optional, Set from typing_extensions import Self @@ -36,8 +37,8 @@ class TestCommonProperties(BaseModel): created_at: Optional[StrictInt] = Field(default=None, alias="createdAt") frequency: StrictInt get_website_labels: Optional[List[StrictStr]] = Field(default=None, alias="getWebsiteLabels") - id: StrictStr - label: StrictStr + id: Annotated[str, Field(min_length=1, strict=True)] + label: Annotated[str, Field(min_length=1, strict=True)] location_display_labels: Optional[List[StrictStr]] = Field(default=None, alias="locationDisplayLabels") location_ids: Optional[List[StrictStr]] = Field(default=None, alias="locationIds") location_labels: Optional[List[StrictStr]] = Field(default=None, alias="locationLabels") @@ -46,7 +47,7 @@ class TestCommonProperties(BaseModel): mobile_application_labels: Optional[List[StrictStr]] = Field(default=None, alias="mobileApplicationLabels") modified_at: Optional[StrictInt] = Field(default=None, alias="modifiedAt") service_id: Optional[StrictStr] = Field(default=None, alias="serviceId") - type: StrictStr + type: Annotated[str, Field(min_length=1, strict=True)] website_ids: Optional[List[StrictStr]] = Field(default=None, alias="websiteIds") website_labels: Optional[List[StrictStr]] = Field(default=None, alias="websiteLabels") __properties: ClassVar[List[str]] = ["active", "applicationId", "applicationIds", "applicationLabel", "applicationLabels", "createdAt", "frequency", "getWebsiteLabels", "id", "label", "locationDisplayLabels", "locationIds", "locationLabels", "locationStatusList", "mobileApplicationIds", "mobileApplicationLabels", "modifiedAt", "serviceId", "type", "websiteIds", "websiteLabels"] diff --git a/instana_client/models/test_last_error.py b/instana_client/models/test_last_error.py index 38b617d..3ce34c3 100644 --- a/instana_client/models/test_last_error.py +++ b/instana_client/models/test_last_error.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/test_result.py b/instana_client/models/test_result.py index 2c7d86b..f4021a8 100644 --- a/instana_client/models/test_result.py +++ b/instana_client/models/test_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/test_result_common_properties.py b/instana_client/models/test_result_common_properties.py index 0039940..d987397 100644 --- a/instana_client/models/test_result_common_properties.py +++ b/instana_client/models/test_result_common_properties.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from instana_client.models.test_common_properties import TestCommonProperties from instana_client.models.test_last_error import TestLastError from typing import Optional, Set @@ -29,7 +30,7 @@ class TestResultCommonProperties(BaseModel): """ TestResultCommonProperties """ # noqa: E501 - client_id: StrictStr = Field(alias="clientId") + client_id: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="clientId") custom_tags: Optional[Dict[str, StrictStr]] = Field(default=None, alias="customTags") dns_query_type: Optional[StrictStr] = Field(default=None, alias="dnsQueryType") dns_server_name: Optional[StrictStr] = Field(default=None, alias="dnsServerName") @@ -42,7 +43,7 @@ class TestResultCommonProperties(BaseModel): run_type: Optional[StrictStr] = Field(default=None, alias="runType") ssl_days_remaining: Optional[StrictStr] = Field(default=None, alias="sslDaysRemaining") test_common_properties: Optional[TestCommonProperties] = Field(default=None, alias="testCommonProperties") - test_id: StrictStr = Field(alias="testId") + test_id: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="testId") test_last_error: Optional[TestLastError] = Field(default=None, alias="testLastError") test_name: Optional[StrictStr] = Field(default=None, alias="testName") __properties: ClassVar[List[str]] = ["clientId", "customTags", "dnsQueryType", "dnsServerName", "errors", "id", "ismDetails", "lastErrors", "locationDisplayLabel", "locationId", "runType", "sslDaysRemaining", "testCommonProperties", "testId", "testLastError", "testName"] diff --git a/instana_client/models/test_result_detail_data.py b/instana_client/models/test_result_detail_data.py index a6230bf..044f81c 100644 --- a/instana_client/models/test_result_detail_data.py +++ b/instana_client/models/test_result_detail_data.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -29,14 +29,14 @@ class TestResultDetailData(BaseModel): TestResultDetailData """ # noqa: E501 har: Optional[Dict[str, Dict[str, Any]]] = None - image_files: Optional[Dict[str, List[Union[StrictBytes, StrictStr]]]] = Field(default=None, alias="imageFiles") + image_files: Optional[Dict[str, Union[StrictBytes, StrictStr]]] = Field(default=None, alias="imageFiles") log_files: Optional[Dict[str, StrictStr]] = Field(default=None, alias="logFiles") logs: Optional[StrictStr] = None subtransaction_avg_metrics: Optional[Dict[str, Dict[str, Any]]] = Field(default=None, alias="subtransactionAvgMetrics") subtransactions: Optional[List[TestResultSubtransaction]] = None test_id: Optional[StrictStr] = Field(default=None, alias="testId") test_result_id: Optional[StrictStr] = Field(default=None, alias="testResultId") - videos: Optional[List[Union[StrictBytes, StrictStr]]] = None + videos: Optional[Union[StrictBytes, StrictStr]] = None __properties: ClassVar[List[str]] = ["har", "imageFiles", "logFiles", "logs", "subtransactionAvgMetrics", "subtransactions", "testId", "testResultId", "videos"] model_config = ConfigDict( diff --git a/instana_client/models/test_result_item.py b/instana_client/models/test_result_item.py index d529f32..e5a0a13 100644 --- a/instana_client/models/test_result_item.py +++ b/instana_client/models/test_result_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -34,7 +35,7 @@ class TestResultItem(BaseModel): metrics: Optional[List[Dict[str, Dict[str, Any]]]] = None mobile_application_ids: Optional[List[StrictStr]] = Field(default=None, alias="mobileApplicationIds") service_id: Optional[StrictStr] = Field(default=None, alias="serviceId") - test_id: StrictStr = Field(alias="testId") + test_id: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="testId") test_name: Optional[StrictStr] = Field(default=None, alias="testName") website_ids: Optional[List[StrictStr]] = Field(default=None, alias="websiteIds") __properties: ClassVar[List[str]] = ["applicationId", "applicationIds", "customTags", "locationId", "metrics", "mobileApplicationIds", "serviceId", "testId", "testName", "websiteIds"] diff --git a/instana_client/models/test_result_list_item.py b/instana_client/models/test_result_list_item.py index fb6d6c7..e0be661 100644 --- a/instana_client/models/test_result_list_item.py +++ b/instana_client/models/test_result_list_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/test_result_list_result.py b/instana_client/models/test_result_list_result.py index 45235c7..3d11e17 100644 --- a/instana_client/models/test_result_list_result.py +++ b/instana_client/models/test_result_list_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/test_result_metadata.py b/instana_client/models/test_result_metadata.py index c2ded3b..4ac89fc 100644 --- a/instana_client/models/test_result_metadata.py +++ b/instana_client/models/test_result_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -29,7 +30,7 @@ class TestResultMetadata(BaseModel): """ # noqa: E501 metadata: Optional[Dict[str, Dict[str, Any]]] = None start_time: Optional[StrictInt] = Field(default=None, alias="startTime") - test_id: StrictStr = Field(alias="testId") + test_id: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="testId") test_result_id: Optional[StrictStr] = Field(default=None, alias="testResultId") __properties: ClassVar[List[str]] = ["metadata", "startTime", "testId", "testResultId"] diff --git a/instana_client/models/test_result_subtransaction.py b/instana_client/models/test_result_subtransaction.py index 5a59f5b..a13cb24 100644 --- a/instana_client/models/test_result_subtransaction.py +++ b/instana_client/models/test_result_subtransaction.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/threshold.py b/instana_client/models/threshold.py index f2e208e..aa00062 100644 --- a/instana_client/models/threshold.py +++ b/instana_client/models/threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/threshold_config_rule.py b/instana_client/models/threshold_config_rule.py index 87bf453..8d5f374 100644 --- a/instana_client/models/threshold_config_rule.py +++ b/instana_client/models/threshold_config_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/threshold_rule.py b/instana_client/models/threshold_rule.py index 6bf3f4f..4933c5b 100644 --- a/instana_client/models/threshold_rule.py +++ b/instana_client/models/threshold_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/throughput_application_alert_rule.py b/instana_client/models/throughput_application_alert_rule.py index 7337491..46da06b 100644 --- a/instana_client/models/throughput_application_alert_rule.py +++ b/instana_client/models/throughput_application_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/throughput_mobile_app_alert_rule.py b/instana_client/models/throughput_mobile_app_alert_rule.py index 14cd943..e7c8f17 100644 --- a/instana_client/models/throughput_mobile_app_alert_rule.py +++ b/instana_client/models/throughput_mobile_app_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/throughput_website_alert_rule.py b/instana_client/models/throughput_website_alert_rule.py index 3a73a44..c1f3bf0 100644 --- a/instana_client/models/throughput_website_alert_rule.py +++ b/instana_client/models/throughput_website_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/time_frame.py b/instana_client/models/time_frame.py index bcaea02..2c8d4e7 100644 --- a/instana_client/models/time_frame.py +++ b/instana_client/models/time_frame.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/time_window.py b/instana_client/models/time_window.py index d80be24..30c3a9f 100644 --- a/instana_client/models/time_window.py +++ b/instana_client/models/time_window.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -42,8 +42,8 @@ class TimeWindow(BaseModel): @field_validator('duration_unit') def duration_unit_validate_enum(cls, value): """Validates the enum""" - if value not in set(['millisecond', 'second', 'minute', 'hour', 'day', 'week', 'month']): - raise ValueError("must be one of enum values ('millisecond', 'second', 'minute', 'hour', 'day', 'week', 'month')") + if value not in set(['millisecond', 'second', 'minute', 'hour', 'day', 'week', 'calendar_month']): + raise ValueError("must be one of enum values ('millisecond', 'second', 'minute', 'hour', 'day', 'week', 'calendar_month')") return value model_config = ConfigDict( diff --git a/instana_client/models/topology.py b/instana_client/models/topology.py index 4a0423f..69d38c2 100644 --- a/instana_client/models/topology.py +++ b/instana_client/models/topology.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/trace.py b/instana_client/models/trace.py index 9144ea5..438dd23 100644 --- a/instana_client/models/trace.py +++ b/instana_client/models/trace.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from instana_client.models.endpoint import Endpoint @@ -33,8 +33,8 @@ class Trace(BaseModel): duration: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Total time taken for a trace to finish.") endpoint: Optional[Endpoint] = None erroneous: Optional[StrictBool] = Field(default=None, description="Flag which tells whether the trace is erroneous or not") - id: StrictStr = Field(description="The trace ID. All spans of the same trace must have the same trace ID. For example, `e93282c0d5018320`.") - label: StrictStr = Field(description="Name of the trace.") + id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The trace ID. All spans of the same trace must have the same trace ID. For example, `e93282c0d5018320`.") + label: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Name of the trace.") service: Optional[Service] = None start_time: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="The start time of the trace.", alias="startTime") __properties: ClassVar[List[str]] = ["duration", "endpoint", "erroneous", "id", "label", "service", "startTime"] diff --git a/instana_client/models/trace_activity_tree_node_details.py b/instana_client/models/trace_activity_tree_node_details.py index 4a42936..e9e6a7a 100644 --- a/instana_client/models/trace_activity_tree_node_details.py +++ b/instana_client/models/trace_activity_tree_node_details.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -35,18 +35,19 @@ class TraceActivityTreeNodeDetails(BaseModel): destination: Optional[SpanRelation] = None duration: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="The total time taken for the entire operation of a call, from the moment the request was initiated to when the response was received. The time measured is in milliseconds. This is also known as latency of a call.") error_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Represents whether the call is erroneous or not. 0 is not erroneous and 1 is erroneous.", alias="errorCount") - id: StrictStr = Field(description="The call ID. A unique identifier for an individual call. For example: `1bcad5c82338deaf`.") + id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The call ID. A unique identifier for an individual call. For example: `1bcad5c82338deaf`.") is_synthetic: Optional[StrictBool] = Field(default=None, alias="isSynthetic") label: Annotated[str, Field(min_length=0, strict=True, max_length=128)] = Field(description="Name of the call. For example: `GET /articles/:id`.") logs: List[SpanExcerpt] = Field(description="Information about the logs attached to the call, if available.") min_self_time: Optional[StrictInt] = Field(default=None, description="The smallest self time in the batch. May be null to indicate that `minSelfTime` is unknown when this node has only an exit span and no children. The time measured is in milliseconds.", alias="minSelfTime") network_time: Optional[StrictInt] = Field(default=None, description="The time difference between the Exit Span Time of the caller and the Entry Span Time of the call. This value is measured in milliseconds and may be null if network time is not applicable.", alias="networkTime") raw_span_load_error: Optional[StrictStr] = Field(default=None, description="Whether an error occurred loading raw spans from external storage.", alias="rawSpanLoadError") + sampling_factor: Optional[StrictInt] = Field(default=None, description="Sampling factor represents the inverse of the sampling rate and indicates how many actual calls are represented by a single sampled call. For example, a sampling factor of 10 means that one sampled call represents 10 actual calls.", alias="samplingFactor") source: Optional[SpanRelation] = None spans: Annotated[List[SpanExcerpt], Field(min_length=1, max_length=2)] = Field(description="Information about the spans from which the call is composed.") start: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="The timestamp when the call or request was initiated. For example, Unix epoch time in milliseconds `1735532879870` is `Monday, 30 December 2024 04:27:59.870 GMT`") synthetic: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["batchSelfTime", "batchSize", "destination", "duration", "errorCount", "id", "isSynthetic", "label", "logs", "minSelfTime", "networkTime", "rawSpanLoadError", "source", "spans", "start", "synthetic"] + __properties: ClassVar[List[str]] = ["batchSelfTime", "batchSize", "destination", "duration", "errorCount", "id", "isSynthetic", "label", "logs", "minSelfTime", "networkTime", "rawSpanLoadError", "samplingFactor", "source", "spans", "start", "synthetic"] @field_validator('raw_span_load_error') def raw_span_load_error_validate_enum(cls, value): @@ -141,6 +142,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "minSelfTime": obj.get("minSelfTime"), "networkTime": obj.get("networkTime"), "rawSpanLoadError": obj.get("rawSpanLoadError"), + "samplingFactor": obj.get("samplingFactor"), "source": SpanRelation.from_dict(obj["source"]) if obj.get("source") is not None else None, "spans": [SpanExcerpt.from_dict(_item) for _item in obj["spans"]] if obj.get("spans") is not None else None, "start": obj.get("start"), diff --git a/instana_client/models/trace_download_result.py b/instana_client/models/trace_download_result.py index fda09a7..14de0e4 100644 --- a/instana_client/models/trace_download_result.py +++ b/instana_client/models/trace_download_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/trace_groups_item.py b/instana_client/models/trace_groups_item.py index e129d48..9905ed8 100644 --- a/instana_client/models/trace_groups_item.py +++ b/instana_client/models/trace_groups_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated from typing import Optional, Set @@ -30,7 +30,7 @@ class TraceGroupsItem(BaseModel): """ # noqa: E501 cursor: Dict[str, Any] = Field(description="Cursor to use between successive queries") metrics: Dict[str, List[List[Union[StrictFloat, StrictInt]]]] = Field(description="Grouped metric details like `errors.mean`, `calls.sum`. It is usually a array of key-value pair. Format of key is `metric.aggregation.granularity`, for example: `latency.p75.360`. Format of value is `[earliest timestamp, value of key]`, for example: `[1725602720000, 0.013141001434936938]`. ") - name: StrictStr = Field(description="Name of the group.") + name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Name of the group.") timestamp: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Earliest timestamp of the trace from the group") __properties: ClassVar[List[str]] = ["cursor", "metrics", "name", "timestamp"] diff --git a/instana_client/models/trace_groups_result.py b/instana_client/models/trace_groups_result.py index f7844c4..0053ad1 100644 --- a/instana_client/models/trace_groups_result.py +++ b/instana_client/models/trace_groups_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/trace_impact_application_time_threshold.py b/instana_client/models/trace_impact_application_time_threshold.py index 7b37a21..3316063 100644 --- a/instana_client/models/trace_impact_application_time_threshold.py +++ b/instana_client/models/trace_impact_application_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/trace_item.py b/instana_client/models/trace_item.py index e2b99f4..6ddf692 100644 --- a/instana_client/models/trace_item.py +++ b/instana_client/models/trace_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/trace_result.py b/instana_client/models/trace_result.py index 81a22c7..5a49e94 100644 --- a/instana_client/models/trace_result.py +++ b/instana_client/models/trace_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/traffic_blueprint_indicator.py b/instana_client/models/traffic_blueprint_indicator.py index ee25afc..4442750 100644 --- a/instana_client/models/traffic_blueprint_indicator.py +++ b/instana_client/models/traffic_blueprint_indicator.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/trigger.py b/instana_client/models/trigger.py index c1404f2..698c8b0 100644 --- a/instana_client/models/trigger.py +++ b/instana_client/models/trigger.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/type_configuration.py b/instana_client/models/type_configuration.py index 16ee93e..3da1efa 100644 --- a/instana_client/models/type_configuration.py +++ b/instana_client/models/type_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/unsupported_http_path_segment_matching_rule.py b/instana_client/models/unsupported_http_path_segment_matching_rule.py index df4a92f..86c836e 100644 --- a/instana_client/models/unsupported_http_path_segment_matching_rule.py +++ b/instana_client/models/unsupported_http_path_segment_matching_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/updated_business_perspective_config.py b/instana_client/models/updated_business_perspective_config.py index d0d56f5..96e8f76 100644 --- a/instana_client/models/updated_business_perspective_config.py +++ b/instana_client/models/updated_business_perspective_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/usage_result.py b/instana_client/models/usage_result.py index 446042d..75cdc88 100644 --- a/instana_client/models/usage_result.py +++ b/instana_client/models/usage_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/usage_result_items.py b/instana_client/models/usage_result_items.py index e6c0a6c..a4c8eab 100644 --- a/instana_client/models/usage_result_items.py +++ b/instana_client/models/usage_result_items.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/user_basic_result.py b/instana_client/models/user_basic_result.py index 4489584..4748362 100644 --- a/instana_client/models/user_basic_result.py +++ b/instana_client/models/user_basic_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -27,9 +28,9 @@ class UserBasicResult(BaseModel): """ UserBasicResult """ # noqa: E501 - email: StrictStr - full_name: StrictStr = Field(alias="fullName") - id: StrictStr + email: Annotated[str, Field(min_length=1, strict=True)] + full_name: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="fullName") + id: Annotated[str, Field(min_length=1, strict=True)] __properties: ClassVar[List[str]] = ["email", "fullName", "id"] model_config = ConfigDict( diff --git a/instana_client/models/user_impact_mobile_app_time_threshold.py b/instana_client/models/user_impact_mobile_app_time_threshold.py index 805454a..f90f381 100644 --- a/instana_client/models/user_impact_mobile_app_time_threshold.py +++ b/instana_client/models/user_impact_mobile_app_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/user_impact_website_time_threshold.py b/instana_client/models/user_impact_website_time_threshold.py index e746fb5..0048ea1 100644 --- a/instana_client/models/user_impact_website_time_threshold.py +++ b/instana_client/models/user_impact_website_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/user_result.py b/instana_client/models/user_result.py index 6047421..ed4bbc9 100644 --- a/instana_client/models/user_result.py +++ b/instana_client/models/user_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -27,13 +28,14 @@ class UserResult(BaseModel): """ UserResult """ # noqa: E501 - email: StrictStr - full_name: StrictStr = Field(alias="fullName") + email: Annotated[str, Field(min_length=1, strict=True)] + full_name: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="fullName") group_count: Optional[StrictInt] = Field(default=None, alias="groupCount") - id: StrictStr + id: Annotated[str, Field(min_length=1, strict=True)] last_logged_in: Optional[StrictInt] = Field(default=None, alias="lastLoggedIn") + team_names: Optional[List[StrictStr]] = Field(default=None, alias="teamNames") tfa_enabled: Optional[StrictBool] = Field(default=None, alias="tfaEnabled") - __properties: ClassVar[List[str]] = ["email", "fullName", "groupCount", "id", "lastLoggedIn", "tfaEnabled"] + __properties: ClassVar[List[str]] = ["email", "fullName", "groupCount", "id", "lastLoggedIn", "teamNames", "tfaEnabled"] model_config = ConfigDict( populate_by_name=True, @@ -91,6 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "groupCount": obj.get("groupCount"), "id": obj.get("id"), "lastLoggedIn": obj.get("lastLoggedIn"), + "teamNames": obj.get("teamNames"), "tfaEnabled": obj.get("tfaEnabled") }) return _obj diff --git a/instana_client/models/users_result.py b/instana_client/models/users_result.py index 1f6b95d..f99ae93 100644 --- a/instana_client/models/users_result.py +++ b/instana_client/models/users_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/validated_alerting_channel_input_info.py b/instana_client/models/validated_alerting_channel_input_info.py index 8a88fae..4e9ea0c 100644 --- a/instana_client/models/validated_alerting_channel_input_info.py +++ b/instana_client/models/validated_alerting_channel_input_info.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/validated_alerting_configuration.py b/instana_client/models/validated_alerting_configuration.py index e766f1b..a43d94f 100644 --- a/instana_client/models/validated_alerting_configuration.py +++ b/instana_client/models/validated_alerting_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,8 +21,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated +from instana_client.models.custom_payload_field import CustomPayloadField from instana_client.models.event_filtering_configuration import EventFilteringConfiguration -from instana_client.models.static_string_field import StaticStringField from typing import Optional, Set from typing_extensions import Self @@ -33,11 +33,11 @@ class ValidatedAlertingConfiguration(BaseModel): alert_channel_names: Optional[List[StrictStr]] = Field(default=None, description="Set of Alert Channel names added in the Alert Configuration.", alias="alertChannelNames") alert_name: Annotated[str, Field(min_length=0, strict=True, max_length=256)] = Field(description="Name of the Alert Configuration.", alias="alertName") application_names: Optional[List[StrictStr]] = Field(default=None, description="Set of Application Perspective names added in the Alert Configuration.", alias="applicationNames") - custom_payload_fields: Annotated[List[StaticStringField], Field(min_length=0, max_length=20)] = Field(description="Custom payload fields to send additional information in the alert notifications. Can be left empty.", alias="customPayloadFields") + custom_payload_fields: Annotated[List[CustomPayloadField], Field(min_length=0, max_length=20)] = Field(description="Custom payload fields to send additional information in the alert notifications. Supports both static and dynamic fields. Can be left empty.", alias="customPayloadFields") event_filtering_configuration: EventFilteringConfiguration = Field(alias="eventFilteringConfiguration") id: Annotated[str, Field(min_length=0, strict=True, max_length=64)] = Field(description="ID of the Alert Configuration.") include_entity_name_in_legacy_alerts: Optional[StrictBool] = Field(default=None, description="To include the entity name in a legacy alert based on built-in/custom events.", alias="includeEntityNameInLegacyAlerts") - integration_ids: Annotated[List[StrictStr], Field(min_length=0, max_length=1024)] = Field(description="List of Alert Channel IDs added in this Alert Configuration.", alias="integrationIds") + integration_ids: Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)] = Field(description="List of Alert Channel IDs added in this Alert Configuration.", alias="integrationIds") invalid: Optional[StrictBool] = Field(default=None, description="Flag to show whether the Alert Configuration is valid.") last_updated: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Unix timestamp representing the time the configuration was last updated.", alias="lastUpdated") mute_until: Optional[StrictInt] = Field(default=None, description="Timer dictating how long the Alert Configuration will stay muted. A value of `0` means the Alert Configuration is currently enabled. Otherwise, the Alert Configuration is currently disabled (muted).", alias="muteUntil") @@ -107,7 +107,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "alertChannelNames": obj.get("alertChannelNames"), "alertName": obj.get("alertName"), "applicationNames": obj.get("applicationNames"), - "customPayloadFields": [StaticStringField.from_dict(_item) for _item in obj["customPayloadFields"]] if obj.get("customPayloadFields") is not None else None, + "customPayloadFields": [CustomPayloadField.from_dict(_item) for _item in obj["customPayloadFields"]] if obj.get("customPayloadFields") is not None else None, "eventFilteringConfiguration": EventFilteringConfiguration.from_dict(obj["eventFilteringConfiguration"]) if obj.get("eventFilteringConfiguration") is not None else None, "id": obj.get("id"), "includeEntityNameInLegacyAlerts": obj.get("includeEntityNameInLegacyAlerts"), diff --git a/instana_client/models/validated_maintenance_config_v2_with_state_and_occurrence.py b/instana_client/models/validated_maintenance_config_v2_with_state_and_occurrence.py index 27aa5d9..3e43c54 100644 --- a/instana_client/models/validated_maintenance_config_v2_with_state_and_occurrence.py +++ b/instana_client/models/validated_maintenance_config_v2_with_state_and_occurrence.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/validated_maintenance_config_with_status.py b/instana_client/models/validated_maintenance_config_with_status.py index a07bfe5..cfcd600 100644 --- a/instana_client/models/validated_maintenance_config_with_status.py +++ b/instana_client/models/validated_maintenance_config_with_status.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/victor_ops_integration.py b/instana_client/models/victor_ops_integration.py index d73fcaa..58865d6 100644 --- a/instana_client/models/victor_ops_integration.py +++ b/instana_client/models/victor_ops_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import ConfigDict, Field, StrictStr +from pydantic import ConfigDict, Field from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self @@ -28,8 +29,8 @@ class VictorOpsIntegration(AbstractIntegration): """ VictorOpsIntegration """ # noqa: E501 - api_key: StrictStr = Field(alias="apiKey") - routing_key: StrictStr = Field(alias="routingKey") + api_key: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="apiKey") + routing_key: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="routingKey") __properties: ClassVar[List[str]] = ["id", "kind", "name", "apiKey", "routingKey"] model_config = ConfigDict( diff --git a/instana_client/models/violations_in_period_application_time_threshold.py b/instana_client/models/violations_in_period_application_time_threshold.py index 9f5d5af..7527ae4 100644 --- a/instana_client/models/violations_in_period_application_time_threshold.py +++ b/instana_client/models/violations_in_period_application_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/violations_in_period_mobile_app_time_threshold.py b/instana_client/models/violations_in_period_mobile_app_time_threshold.py index bba54fc..a37eedb 100644 --- a/instana_client/models/violations_in_period_mobile_app_time_threshold.py +++ b/instana_client/models/violations_in_period_mobile_app_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/violations_in_period_website_time_threshold.py b/instana_client/models/violations_in_period_website_time_threshold.py index 0e00325..d070710 100644 --- a/instana_client/models/violations_in_period_website_time_threshold.py +++ b/instana_client/models/violations_in_period_website_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/violations_in_sequence_application_time_threshold.py b/instana_client/models/violations_in_sequence_application_time_threshold.py index b34f933..d36a643 100644 --- a/instana_client/models/violations_in_sequence_application_time_threshold.py +++ b/instana_client/models/violations_in_sequence_application_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/violations_in_sequence_infra_time_threshold.py b/instana_client/models/violations_in_sequence_infra_time_threshold.py index a716890..372beb0 100644 --- a/instana_client/models/violations_in_sequence_infra_time_threshold.py +++ b/instana_client/models/violations_in_sequence_infra_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/violations_in_sequence_log_time_threshold.py b/instana_client/models/violations_in_sequence_log_time_threshold.py index c599eb6..76ccc46 100644 --- a/instana_client/models/violations_in_sequence_log_time_threshold.py +++ b/instana_client/models/violations_in_sequence_log_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/violations_in_sequence_mobile_app_time_threshold.py b/instana_client/models/violations_in_sequence_mobile_app_time_threshold.py index 810dfde..7814ab0 100644 --- a/instana_client/models/violations_in_sequence_mobile_app_time_threshold.py +++ b/instana_client/models/violations_in_sequence_mobile_app_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/violations_in_sequence_synthetic_time_threshold.py b/instana_client/models/violations_in_sequence_synthetic_time_threshold.py index 1b67fb2..10ec3d5 100644 --- a/instana_client/models/violations_in_sequence_synthetic_time_threshold.py +++ b/instana_client/models/violations_in_sequence_synthetic_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/violations_in_sequence_website_time_threshold.py b/instana_client/models/violations_in_sequence_website_time_threshold.py index 732e994..05cb62e 100644 --- a/instana_client/models/violations_in_sequence_website_time_threshold.py +++ b/instana_client/models/violations_in_sequence_website_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/watson_ai_ops_webhook_integration.py b/instana_client/models/watson_ai_ops_webhook_integration.py index 5ed12ee..152bb77 100644 --- a/instana_client/models/watson_ai_ops_webhook_integration.py +++ b/instana_client/models/watson_ai_ops_webhook_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import ConfigDict, Field, StrictStr +from pydantic import ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self @@ -28,8 +29,8 @@ class WatsonAIOpsWebhookIntegration(AbstractIntegration): """ WatsonAIOpsWebhookIntegration """ # noqa: E501 - headers: Optional[List[StrictStr]] = None - webhook_url: StrictStr = Field(alias="webhookUrl") + headers: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = None + webhook_url: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="webhookUrl") __properties: ClassVar[List[str]] = ["id", "kind", "name", "headers", "webhookUrl"] model_config = ConfigDict( diff --git a/instana_client/models/webex_teams_webhook_integration.py b/instana_client/models/webex_teams_webhook_integration.py index 238f6cf..a4c7cf2 100644 --- a/instana_client/models/webex_teams_webhook_integration.py +++ b/instana_client/models/webex_teams_webhook_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import ConfigDict, Field, StrictStr +from pydantic import ConfigDict, Field from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated from instana_client.models.abstract_integration import AbstractIntegration from typing import Optional, Set from typing_extensions import Self @@ -28,7 +29,7 @@ class WebexTeamsWebhookIntegration(AbstractIntegration): """ WebexTeamsWebhookIntegration """ # noqa: E501 - webhook_url: StrictStr = Field(alias="webhookUrl") + webhook_url: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="webhookUrl") __properties: ClassVar[List[str]] = ["id", "kind", "name", "webhookUrl"] model_config = ConfigDict( diff --git a/instana_client/models/webhook_integration.py b/instana_client/models/webhook_integration.py index d9d0282..f124b4a 100644 --- a/instana_client/models/webhook_integration.py +++ b/instana_client/models/webhook_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from instana_client.models.abstract_integration import AbstractIntegration from instana_client.models.o_auth_integration import OAuthIntegration from typing import Optional, Set @@ -29,11 +30,11 @@ class WebhookIntegration(AbstractIntegration): """ WebhookIntegration """ # noqa: E501 - headers: Optional[List[StrictStr]] = None + headers: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = None oauth: Optional[OAuthIntegration] = None oauth_enabled: Optional[StrictBool] = Field(default=None, alias="oauthEnabled") transformation_expression: Optional[StrictStr] = Field(default=None, alias="transformationExpression") - webhook_urls: List[StrictStr] = Field(alias="webhookUrls") + webhook_urls: Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=1)] = Field(alias="webhookUrls") __properties: ClassVar[List[str]] = ["id", "kind", "name", "headers", "oauth", "oauthEnabled", "transformationExpression", "webhookUrls"] model_config = ConfigDict( diff --git a/instana_client/models/webpage_action_configuration.py b/instana_client/models/webpage_action_configuration.py index 72d680a..fced52a 100644 --- a/instana_client/models/webpage_action_configuration.py +++ b/instana_client/models/webpage_action_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/webpage_action_configuration_update.py b/instana_client/models/webpage_action_configuration_update.py index 7326035..e46d2aa 100644 --- a/instana_client/models/webpage_action_configuration_update.py +++ b/instana_client/models/webpage_action_configuration_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/webpage_script_configuration.py b/instana_client/models/webpage_script_configuration.py index a6a2d4c..0121026 100644 --- a/instana_client/models/webpage_script_configuration.py +++ b/instana_client/models/webpage_script_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/webpage_script_configuration_update.py b/instana_client/models/webpage_script_configuration_update.py index 3a9b5a9..a248b16 100644 --- a/instana_client/models/webpage_script_configuration_update.py +++ b/instana_client/models/webpage_script_configuration_update.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/website.py b/instana_client/models/website.py index c5eb94f..0059d60 100644 --- a/instana_client/models/website.py +++ b/instana_client/models/website.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -28,8 +29,8 @@ class Website(BaseModel): Website """ # noqa: E501 app_name: Optional[StrictStr] = Field(default=None, alias="appName") - id: StrictStr - name: StrictStr + id: Annotated[str, Field(min_length=1, strict=True)] + name: Annotated[str, Field(min_length=1, strict=True)] __properties: ClassVar[List[str]] = ["appName", "id", "name"] model_config = ConfigDict( diff --git a/instana_client/models/website_alert_config.py b/instana_client/models/website_alert_config.py index 982b159..84b629c 100644 --- a/instana_client/models/website_alert_config.py +++ b/instana_client/models/website_alert_config.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -35,10 +35,11 @@ class WebsiteAlertConfig(BaseModel): """ WebsiteAlertConfig """ # noqa: E501 - alert_channel_ids: Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=1024)]] = Field(default=None, description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") + alert_channel_ids: Optional[Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)]] = Field(default=None, description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") alert_channels: Optional[Dict[str, List[StrictStr]]] = Field(default=None, description="Set of alert channel IDs associated with the severity.", alias="alertChannels") custom_payload_fields: Annotated[List[CustomPayloadField], Field(min_length=0, max_length=20)] = Field(description="Custom payload fields to send additional information in the alert notifications. Can be left empty.", alias="customPayloadFields") description: Annotated[str, Field(min_length=0, strict=True, max_length=65536)] = Field(description="Description of the website alert configuration. Used as a template for the description of alert/event notifications triggered by this Smart Alert configuration.") + enabled: Optional[StrictBool] = Field(default=None, description="Flag to indicate whether or not the configuration is enabled.") grace_period: Optional[StrictInt] = Field(default=None, description="The duration for which an alert remains open after conditions are no longer violated, with the alert auto-closing once the grace period expires.", alias="gracePeriod") granularity: StrictInt = Field(description="The evaluation granularity used for detection of violations of the defined threshold. Defines the size of the tumbling window used.") name: Annotated[str, Field(min_length=0, strict=True, max_length=256)] = Field(description="Name of the website alert configuration. Used as a template for the title of alert/event notifications triggered by this Smart Alert configuration.") @@ -51,7 +52,7 @@ class WebsiteAlertConfig(BaseModel): time_threshold: WebsiteTimeThreshold = Field(alias="timeThreshold") triggering: Optional[StrictBool] = Field(default=None, description="Optional flag to indicate whether an Incident is also triggered or not.") website_id: Annotated[str, Field(min_length=0, strict=True, max_length=64)] = Field(description="ID of the website that this Smart Alert configuration is applied to.", alias="websiteId") - __properties: ClassVar[List[str]] = ["alertChannelIds", "alertChannels", "customPayloadFields", "description", "gracePeriod", "granularity", "name", "rule", "rules", "severity", "tagFilterExpression", "tagFilters", "threshold", "timeThreshold", "triggering", "websiteId"] + __properties: ClassVar[List[str]] = ["alertChannelIds", "alertChannels", "customPayloadFields", "description", "enabled", "gracePeriod", "granularity", "name", "rule", "rules", "severity", "tagFilterExpression", "tagFilters", "threshold", "timeThreshold", "triggering", "websiteId"] @field_validator('granularity') def granularity_validate_enum(cls, value): @@ -148,6 +149,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "alertChannels": obj.get("alertChannels"), "customPayloadFields": [CustomPayloadField.from_dict(_item) for _item in obj["customPayloadFields"]] if obj.get("customPayloadFields") is not None else None, "description": obj.get("description"), + "enabled": obj.get("enabled"), "gracePeriod": obj.get("gracePeriod"), "granularity": obj.get("granularity") if obj.get("granularity") is not None else 600000, "name": obj.get("name"), diff --git a/instana_client/models/website_alert_config_with_metadata.py b/instana_client/models/website_alert_config_with_metadata.py index 736f108..b392bb8 100644 --- a/instana_client/models/website_alert_config_with_metadata.py +++ b/instana_client/models/website_alert_config_with_metadata.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -35,7 +35,7 @@ class WebsiteAlertConfigWithMetadata(BaseModel): """ WebsiteAlertConfigWithMetadata """ # noqa: E501 - alert_channel_ids: Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=1024)]] = Field(default=None, description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") + alert_channel_ids: Optional[Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)]] = Field(default=None, description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") alert_channels: Optional[Dict[str, List[StrictStr]]] = Field(default=None, description="Set of alert channel IDs associated with the severity.", alias="alertChannels") created: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Unix timestamp representing the creation time of this revision.") custom_payload_fields: Annotated[List[CustomPayloadField], Field(min_length=0, max_length=20)] = Field(description="Custom payload fields to send additional information in the alert notifications. Can be left empty.", alias="customPayloadFields") diff --git a/instana_client/models/website_alert_config_with_rbac_tag.py b/instana_client/models/website_alert_config_with_rbac_tag.py new file mode 100644 index 0000000..90e4b5a --- /dev/null +++ b/instana_client/models/website_alert_config_with_rbac_tag.py @@ -0,0 +1,186 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from instana_client.models.api_tag import ApiTag +from instana_client.models.custom_payload_field import CustomPayloadField +from instana_client.models.rule_with_threshold_website_alert_rule import RuleWithThresholdWebsiteAlertRule +from instana_client.models.tag_filter import TagFilter +from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement +from instana_client.models.threshold import Threshold +from instana_client.models.website_alert_rule import WebsiteAlertRule +from instana_client.models.website_time_threshold import WebsiteTimeThreshold +from typing import Optional, Set +from typing_extensions import Self + +class WebsiteAlertConfigWithRBACTag(BaseModel): + """ + WebsiteAlertConfigWithRBACTag + """ # noqa: E501 + alert_channel_ids: Optional[Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)]] = Field(default=None, description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") + alert_channels: Optional[Dict[str, List[StrictStr]]] = Field(default=None, description="Set of alert channel IDs associated with the severity.", alias="alertChannels") + created: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Unix timestamp representing the creation time of this revision.") + custom_payload_fields: Annotated[List[CustomPayloadField], Field(min_length=0, max_length=20)] = Field(description="Custom payload fields to send additional information in the alert notifications. Can be left empty.", alias="customPayloadFields") + description: Annotated[str, Field(min_length=0, strict=True, max_length=65536)] = Field(description="Description of the website alert configuration. Used as a template for the description of alert/event notifications triggered by this Smart Alert configuration.") + enabled: Optional[StrictBool] = Field(default=None, description="Flag to indicate whether or not the configuration is enabled.") + grace_period: Optional[StrictInt] = Field(default=None, description="The duration for which an alert remains open after conditions are no longer violated, with the alert auto-closing once the grace period expires.", alias="gracePeriod") + granularity: StrictInt = Field(description="The evaluation granularity used for detection of violations of the defined threshold. Defines the size of the tumbling window used.") + id: Annotated[str, Field(min_length=0, strict=True, max_length=64)] = Field(description="ID of this Website Alert Config. ") + initial_created: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Unix timestamp representing the time of the initial revision.", alias="initialCreated") + name: Annotated[str, Field(min_length=0, strict=True, max_length=256)] = Field(description="Name of the website alert configuration. Used as a template for the title of alert/event notifications triggered by this Smart Alert configuration.") + rbac_tags: Optional[List[ApiTag]] = Field(default=None, description="RBAC tags associated with the website", alias="rbacTags") + read_only: Optional[StrictBool] = Field(default=None, description="Flag to indicate whether or not the configuration is read-only. Read-only access restricts modification of the config.", alias="readOnly") + rule: Optional[WebsiteAlertRule] = None + rules: Optional[Annotated[List[RuleWithThresholdWebsiteAlertRule], Field(min_length=1, max_length=1)]] = Field(default=None, description="A list of rules where each rule is associated with multiple thresholds and their corresponding severity levels. This enables more complex alert configurations with validations to ensure consistent and logical threshold-severity combinations.") + severity: Optional[Annotated[int, Field(le=10, strict=True, ge=5)]] = Field(default=None, description="The severity of the alert when triggered, which is either 5 (Warning), or 10 (Critical).") + tag_filter_expression: TagFilterExpressionElement = Field(alias="tagFilterExpression") + tag_filters: Optional[List[TagFilter]] = Field(default=None, alias="tagFilters") + threshold: Optional[Threshold] = None + time_threshold: WebsiteTimeThreshold = Field(alias="timeThreshold") + triggering: Optional[StrictBool] = Field(default=None, description="Optional flag to indicate whether an Incident is also triggered or not.") + website_id: Annotated[str, Field(min_length=0, strict=True, max_length=64)] = Field(description="ID of the website that this Smart Alert configuration is applied to.", alias="websiteId") + __properties: ClassVar[List[str]] = ["alertChannelIds", "alertChannels", "created", "customPayloadFields", "description", "enabled", "gracePeriod", "granularity", "id", "initialCreated", "name", "rbacTags", "readOnly", "rule", "rules", "severity", "tagFilterExpression", "tagFilters", "threshold", "timeThreshold", "triggering", "websiteId"] + + @field_validator('granularity') + def granularity_validate_enum(cls, value): + """Validates the enum""" + if value not in set([60000, 300000, 600000, 900000, 1200000, 1800000]): + raise ValueError("must be one of enum values (60000, 300000, 600000, 900000, 1200000, 1800000)") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of WebsiteAlertConfigWithRBACTag from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in custom_payload_fields (list) + _items = [] + if self.custom_payload_fields: + for _item_custom_payload_fields in self.custom_payload_fields: + if _item_custom_payload_fields: + _items.append(_item_custom_payload_fields.to_dict()) + _dict['customPayloadFields'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in rbac_tags (list) + _items = [] + if self.rbac_tags: + for _item_rbac_tags in self.rbac_tags: + if _item_rbac_tags: + _items.append(_item_rbac_tags.to_dict()) + _dict['rbacTags'] = _items + # override the default output from pydantic by calling `to_dict()` of rule + if self.rule: + _dict['rule'] = self.rule.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in rules (list) + _items = [] + if self.rules: + for _item_rules in self.rules: + if _item_rules: + _items.append(_item_rules.to_dict()) + _dict['rules'] = _items + # override the default output from pydantic by calling `to_dict()` of tag_filter_expression + if self.tag_filter_expression: + _dict['tagFilterExpression'] = self.tag_filter_expression.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in tag_filters (list) + _items = [] + if self.tag_filters: + for _item_tag_filters in self.tag_filters: + if _item_tag_filters: + _items.append(_item_tag_filters.to_dict()) + _dict['tagFilters'] = _items + # override the default output from pydantic by calling `to_dict()` of threshold + if self.threshold: + _dict['threshold'] = self.threshold.to_dict() + # override the default output from pydantic by calling `to_dict()` of time_threshold + if self.time_threshold: + _dict['timeThreshold'] = self.time_threshold.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of WebsiteAlertConfigWithRBACTag from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "alertChannelIds": obj.get("alertChannelIds"), + "alertChannels": obj.get("alertChannels"), + "created": obj.get("created"), + "customPayloadFields": [CustomPayloadField.from_dict(_item) for _item in obj["customPayloadFields"]] if obj.get("customPayloadFields") is not None else None, + "description": obj.get("description"), + "enabled": obj.get("enabled"), + "gracePeriod": obj.get("gracePeriod"), + "granularity": obj.get("granularity") if obj.get("granularity") is not None else 600000, + "id": obj.get("id"), + "initialCreated": obj.get("initialCreated"), + "name": obj.get("name"), + "rbacTags": [ApiTag.from_dict(_item) for _item in obj["rbacTags"]] if obj.get("rbacTags") is not None else None, + "readOnly": obj.get("readOnly"), + "rule": WebsiteAlertRule.from_dict(obj["rule"]) if obj.get("rule") is not None else None, + "rules": [RuleWithThresholdWebsiteAlertRule.from_dict(_item) for _item in obj["rules"]] if obj.get("rules") is not None else None, + "severity": obj.get("severity"), + "tagFilterExpression": TagFilterExpressionElement.from_dict(obj["tagFilterExpression"]) if obj.get("tagFilterExpression") is not None else None, + "tagFilters": [TagFilter.from_dict(_item) for _item in obj["tagFilters"]] if obj.get("tagFilters") is not None else None, + "threshold": Threshold.from_dict(obj["threshold"]) if obj.get("threshold") is not None else None, + "timeThreshold": WebsiteTimeThreshold.from_dict(obj["timeThreshold"]) if obj.get("timeThreshold") is not None else None, + "triggering": obj.get("triggering"), + "websiteId": obj.get("websiteId") + }) + return _obj + + diff --git a/instana_client/models/website_alert_rule.py b/instana_client/models/website_alert_rule.py index 5727dce..d8f33bc 100644 --- a/instana_client/models/website_alert_rule.py +++ b/instana_client/models/website_alert_rule.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,6 +21,7 @@ from importlib import import_module from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -38,7 +39,7 @@ class WebsiteAlertRule(BaseModel): """ # noqa: E501 aggregation: Optional[StrictStr] = None alert_type: StrictStr = Field(alias="alertType") - metric_name: StrictStr = Field(alias="metricName") + metric_name: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="metricName") __properties: ClassVar[List[str]] = ["aggregation", "alertType", "metricName"] @field_validator('aggregation') diff --git a/instana_client/models/website_apdex_entity.py b/instana_client/models/website_apdex_entity.py index 61d7bf8..8ad520f 100644 --- a/instana_client/models/website_apdex_entity.py +++ b/instana_client/models/website_apdex_entity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -31,7 +31,7 @@ class WebsiteApdexEntity(ApdexEntity): WebsiteApdexEntity """ # noqa: E501 beacon_type: StrictStr = Field(description="Website Beacon Type", alias="beaconType") - entity_id: StrictStr = Field(description="Website ID", alias="entityId") + entity_id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Website ID", alias="entityId") threshold: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Value of the Apdex Threshold") __properties: ClassVar[List[str]] = ["apdexType", "entityId", "tagFilterExpression", "threshold", "beaconType"] diff --git a/instana_client/models/website_beacon_groups_item.py b/instana_client/models/website_beacon_groups_item.py index f09526c..5fcfe3e 100644 --- a/instana_client/models/website_beacon_groups_item.py +++ b/instana_client/models/website_beacon_groups_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated from typing import Optional, Set @@ -31,7 +31,7 @@ class WebsiteBeaconGroupsItem(BaseModel): cursor: Dict[str, Any] = Field(description="Cursor to use between successive queries") earliest_timestamp: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="earliestTimestamp") metrics: Dict[str, List[List[Union[StrictFloat, StrictInt]]]] - name: StrictStr + name: Annotated[str, Field(min_length=1, strict=True)] __properties: ClassVar[List[str]] = ["cursor", "earliestTimestamp", "metrics", "name"] model_config = ConfigDict( diff --git a/instana_client/models/website_beacon_groups_result.py b/instana_client/models/website_beacon_groups_result.py index e399691..b71ef73 100644 --- a/instana_client/models/website_beacon_groups_result.py +++ b/instana_client/models/website_beacon_groups_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/website_beacon_result.py b/instana_client/models/website_beacon_result.py index eb3bde8..947d7e4 100644 --- a/instana_client/models/website_beacon_result.py +++ b/instana_client/models/website_beacon_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/website_beacon_tag_group.py b/instana_client/models/website_beacon_tag_group.py index a98293d..0af9117 100644 --- a/instana_client/models/website_beacon_tag_group.py +++ b/instana_client/models/website_beacon_tag_group.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/website_beacons_item.py b/instana_client/models/website_beacons_item.py index b0a2397..32a5d1c 100644 --- a/instana_client/models/website_beacons_item.py +++ b/instana_client/models/website_beacons_item.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/website_event_based_sli_entity.py b/instana_client/models/website_event_based_sli_entity.py index ed38a30..f1e0232 100644 --- a/instana_client/models/website_event_based_sli_entity.py +++ b/instana_client/models/website_event_based_sli_entity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/website_event_result.py b/instana_client/models/website_event_result.py index 26698b4..b0edab3 100644 --- a/instana_client/models/website_event_result.py +++ b/instana_client/models/website_event_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/website_metric_result.py b/instana_client/models/website_metric_result.py index 2f15488..62459d3 100644 --- a/instana_client/models/website_metric_result.py +++ b/instana_client/models/website_metric_result.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -28,6 +28,7 @@ class WebsiteMetricResult(BaseModel): WebsiteMetricResult """ # noqa: E501 empty: Optional[StrictBool] = None + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["empty"] model_config = ConfigDict( @@ -60,8 +61,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -69,6 +72,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + return _dict @classmethod @@ -83,6 +91,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "empty": obj.get("empty") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/instana_client/models/website_monitoring_beacon.py b/instana_client/models/website_monitoring_beacon.py index d4f8c29..f18e50a 100644 --- a/instana_client/models/website_monitoring_beacon.py +++ b/instana_client/models/website_monitoring_beacon.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -35,8 +35,8 @@ class WebsiteMonitoringBeacon(BaseModel): app_cache_time: Optional[Annotated[int, Field(strict=True, ge=-1)]] = Field(default=None, alias="appCacheTime") backend_time: Optional[Annotated[int, Field(strict=True, ge=-1)]] = Field(default=None, alias="backendTime") backend_trace_id: Optional[StrictStr] = Field(default=None, alias="backendTraceId") - batch_size: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, alias="batchSize") - beacon_id: StrictStr = Field(alias="beaconId") + batch_size: Optional[StrictInt] = Field(default=None, alias="batchSize") + beacon_id: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="beaconId") browser_name: Optional[StrictStr] = Field(default=None, alias="browserName") browser_version: Optional[StrictStr] = Field(default=None, alias="browserVersion") bytes_ingested: Optional[StrictInt] = Field(default=None, alias="bytesIngested") @@ -66,9 +66,9 @@ class WebsiteMonitoringBeacon(BaseModel): device_type: Optional[StrictStr] = Field(default=None, alias="deviceType") dns_time: Optional[Annotated[int, Field(strict=True, ge=-1)]] = Field(default=None, alias="dnsTime") dom_time: Optional[Annotated[int, Field(strict=True, ge=-1)]] = Field(default=None, alias="domTime") - duration: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + duration: Optional[StrictInt] = None encoded_body_size: Optional[Annotated[int, Field(strict=True, ge=-1)]] = Field(default=None, alias="encodedBodySize") - error_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="errorCount") + error_count: Optional[StrictInt] = Field(default=None, alias="errorCount") error_id: Optional[StrictStr] = Field(default=None, alias="errorId") error_message: Optional[StrictStr] = Field(default=None, alias="errorMessage") error_type: Optional[StrictStr] = Field(default=None, alias="errorType") @@ -92,16 +92,16 @@ class WebsiteMonitoringBeacon(BaseModel): label: Optional[StrictStr] = None largest_contentful_paint_time: Optional[Annotated[int, Field(strict=True, ge=-1)]] = Field(default=None, alias="largestContentfulPaintTime") latitude: Optional[Union[StrictFloat, StrictInt]] = None - location_origin: StrictStr = Field(alias="locationOrigin") + location_origin: Optional[StrictStr] = Field(default=None, alias="locationOrigin") location_path: Optional[StrictStr] = Field(default=None, alias="locationPath") - location_url: StrictStr = Field(alias="locationUrl") + location_url: Optional[StrictStr] = Field(default=None, alias="locationUrl") longitude: Optional[Union[StrictFloat, StrictInt]] = None meta: Optional[Dict[str, StrictStr]] = None on_load_time: Optional[Annotated[int, Field(strict=True, ge=-1)]] = Field(default=None, alias="onLoadTime") os_name: Optional[StrictStr] = Field(default=None, alias="osName") os_version: Optional[StrictStr] = Field(default=None, alias="osVersion") page: Optional[StrictStr] = None - page_load_id: StrictStr = Field(alias="pageLoadId") + page_load_id: Optional[StrictStr] = Field(default=None, alias="pageLoadId") parent_beacon_id: Optional[StrictStr] = Field(default=None, alias="parentBeaconId") parsed_stack_trace: Optional[Annotated[List[JsStackTraceLine], Field(min_length=0, max_length=64)]] = Field(default=None, alias="parsedStackTrace") phase: Optional[StrictStr] = None @@ -115,13 +115,13 @@ class WebsiteMonitoringBeacon(BaseModel): ssl_time: Optional[Annotated[int, Field(strict=True, ge=-1)]] = Field(default=None, alias="sslTime") stack_trace: Optional[StrictStr] = Field(default=None, alias="stackTrace") stack_trace_parsing_status: Optional[Annotated[int, Field(strict=True, ge=-1)]] = Field(default=None, alias="stackTraceParsingStatus") - stack_trace_readability: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="stackTraceReadability") + stack_trace_readability: Optional[StrictInt] = Field(default=None, alias="stackTraceReadability") subdivision: Optional[StrictStr] = None subdivision_code: Optional[StrictStr] = Field(default=None, alias="subdivisionCode") tcp_time: Optional[Annotated[int, Field(strict=True, ge=-1)]] = Field(default=None, alias="tcpTime") timestamp: Optional[Annotated[int, Field(strict=True, ge=1)]] = None transfer_size: Optional[Annotated[int, Field(strict=True, ge=-1)]] = Field(default=None, alias="transferSize") - type: StrictStr + type: Annotated[str, Field(min_length=1, strict=True)] unload_time: Optional[Annotated[int, Field(strict=True, ge=-1)]] = Field(default=None, alias="unloadTime") use_features: Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=15)]] = Field(default=None, alias="useFeatures") user_email: Optional[StrictStr] = Field(default=None, alias="userEmail") @@ -129,8 +129,8 @@ class WebsiteMonitoringBeacon(BaseModel): user_ip: Optional[StrictStr] = Field(default=None, alias="userIp") user_languages: Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=5)]] = Field(default=None, alias="userLanguages") user_name: Optional[StrictStr] = Field(default=None, alias="userName") - website_id: StrictStr = Field(alias="websiteId") - website_label: StrictStr = Field(alias="websiteLabel") + website_id: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="websiteId") + website_label: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="websiteLabel") window_height: Optional[Annotated[int, Field(strict=True, ge=-1)]] = Field(default=None, alias="windowHeight") window_hidden: Optional[StrictBool] = Field(default=None, alias="windowHidden") window_width: Optional[Annotated[int, Field(strict=True, ge=-1)]] = Field(default=None, alias="windowWidth") diff --git a/instana_client/models/website_monitoring_metric_description.py b/instana_client/models/website_monitoring_metric_description.py index c6e28b6..9b5af6c 100644 --- a/instana_client/models/website_monitoring_metric_description.py +++ b/instana_client/models/website_monitoring_metric_description.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -29,12 +29,12 @@ class WebsiteMonitoringMetricDescription(BaseModel): WebsiteMonitoringMetricDescription """ # noqa: E501 aggregations: List[StrictStr] = Field(description="The types of aggregations that can be applied to a series of values. For example, `P25` is 25th percentile. Note that not all aggregations are available for metrics. For example, `Trace count` has only `SUM` as an aggregation whereas `Call Count` has two aggregations, `SUM` and `PER_SECOND`. ") - beacon_types: List[StrictStr] = Field(alias="beaconTypes") + beacon_types: Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=1)] = Field(alias="beaconTypes") default_aggregation: Optional[StrictStr] = Field(default=None, description="The preselected aggregation for a metric. For example, for `Call latency` the default aggregation is `MEAN`.", alias="defaultAggregation") description: Optional[StrictStr] = Field(default=None, description="A description of the metric. For example, for `Call count` metric, the description would be something like `Number of received calls`") - formatter: StrictStr = Field(description="* `NUMBER`: Generic number * `BYTES`: Number of bytes * `KILO_BYTES`: Number of kilobytes * `MEGA_BYTES`: Number of megabytes * `PERCENTAGE`: Percentage in scale [0,1] * `PERCENTAGE_100`: Percentage in scale [0,100] * `PERCENTAGE_NO_CAPPING`: Percentage in scale [0,1] but value could exceed 1 for example when metric is aggregated * `PERCENTAGE_100_NO_CAPPING`: Percentage in scale [0,100] but value could exceed 100 for example when metric is aggregated * `LATENCY`: Time in milliseconds, with value of 0 should not be considered a a strict 0, but considered as < 1ms * `NANOS`: Time in nanoseconds * `MILLIS`: Time in milliseconds * `MICROS`: Time in microseconds * `SECONDS`: Time in seconds * `RATE`: Number of occurrences per second * `BYTE_RATE`: Number of bytes per second * `UNDEFINED`: Metric value unit is not known ") - label: StrictStr = Field(description="The name of the metric. For example, `Call count`, `Erroneous calls`, `Service count` etc.") - metric_id: StrictStr = Field(description="The unique id of the metric. For example, `calls`, `erroneousCalls`, `latency` etc.", alias="metricId") + formatter: Annotated[str, Field(min_length=1, strict=True)] = Field(description="* `NUMBER`: Generic number * `BYTES`: Number of bytes * `KILO_BYTES`: Number of kilobytes * `MEGA_BYTES`: Number of megabytes * `PERCENTAGE`: Percentage in scale [0,1] * `PERCENTAGE_100`: Percentage in scale [0,100] * `PERCENTAGE_NO_CAPPING`: Percentage in scale [0,1] but value could exceed 1 for example when metric is aggregated * `PERCENTAGE_100_NO_CAPPING`: Percentage in scale [0,100] but value could exceed 100 for example when metric is aggregated * `LATENCY`: Time in milliseconds, with value of 0 should not be considered a a strict 0, but considered as < 1ms * `NANOS`: Time in nanoseconds * `MILLIS`: Time in milliseconds * `MICROS`: Time in microseconds * `SECONDS`: Time in seconds * `RATE`: Number of occurrences per second * `BYTE_RATE`: Number of bytes per second * `UNDEFINED`: Metric value unit is not known ") + label: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The name of the metric. For example, `Call count`, `Erroneous calls`, `Service count` etc.") + metric_id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The unique id of the metric. For example, `calls`, `erroneousCalls`, `latency` etc.", alias="metricId") path_to_value_in_beacon: Optional[Annotated[List[StrictStr], Field(min_length=1, max_length=2147483647)]] = Field(default=None, alias="pathToValueInBeacon") tag_name: Optional[StrictStr] = Field(default=None, alias="tagName") __properties: ClassVar[List[str]] = ["aggregations", "beaconTypes", "defaultAggregation", "description", "formatter", "label", "metricId", "pathToValueInBeacon", "tagName"] diff --git a/instana_client/models/website_monitoring_metrics_configuration.py b/instana_client/models/website_monitoring_metrics_configuration.py index 907f011..22bbb74 100644 --- a/instana_client/models/website_monitoring_metrics_configuration.py +++ b/instana_client/models/website_monitoring_metrics_configuration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -29,7 +30,7 @@ class WebsiteMonitoringMetricsConfiguration(BaseModel): """ # noqa: E501 aggregation: StrictStr = Field(description="Set aggregation that can be applied to a series of values. Eg: `MEAN`.") granularity: Optional[StrictInt] = Field(default=None, description="If the granularity is set you will get data points with the specified granularity in seconds. Default: `1000` milliseconds") - metric: StrictStr = Field(description="Set a particular metric, eg: `latency`.") + metric: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Set a particular metric, eg: `latency`.") __properties: ClassVar[List[str]] = ["aggregation", "granularity", "metric"] @field_validator('aggregation') diff --git a/instana_client/models/website_slo_entity.py b/instana_client/models/website_slo_entity.py index 81eacfa..1e25516 100644 --- a/instana_client/models/website_slo_entity.py +++ b/instana_client/models/website_slo_entity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/website_time_based_sli_entity.py b/instana_client/models/website_time_based_sli_entity.py index 6dd3991..8686baf 100644 --- a/instana_client/models/website_time_based_sli_entity.py +++ b/instana_client/models/website_time_based_sli_entity.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/website_time_threshold.py b/instana_client/models/website_time_threshold.py index be8d6ea..c65fe8c 100644 --- a/instana_client/models/website_time_threshold.py +++ b/instana_client/models/website_time_threshold.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/widget.py b/instana_client/models/widget.py index c9866a0..253fdab 100644 --- a/instana_client/models/widget.py +++ b/instana_client/models/widget.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -32,7 +32,7 @@ class Widget(BaseModel): height: Optional[Annotated[int, Field(strict=True, ge=1)]] = None id: Annotated[str, Field(min_length=0, strict=True, max_length=64)] title: Optional[StrictStr] = None - type: StrictStr + type: Annotated[str, Field(min_length=1, strict=True)] width: Optional[Annotated[int, Field(le=12, strict=True, ge=1)]] = None x: Optional[Annotated[int, Field(le=11, strict=True, ge=0)]] = None y: Optional[Annotated[int, Field(strict=True, ge=0)]] = None diff --git a/instana_client/models/with_meta_data.py b/instana_client/models/with_meta_data.py new file mode 100644 index 0000000..0abd2ff --- /dev/null +++ b/instana_client/models/with_meta_data.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from instana_client.models.custom_payload_field import CustomPayloadField +from instana_client.models.mobile_app_alert_rule import MobileAppAlertRule +from instana_client.models.mobile_app_time_threshold import MobileAppTimeThreshold +from instana_client.models.rule_with_threshold_mobile_app_alert_rule import RuleWithThresholdMobileAppAlertRule +from instana_client.models.tag_filter_expression import TagFilterExpression +from instana_client.models.tag_filter_expression_element import TagFilterExpressionElement +from instana_client.models.threshold import Threshold +from typing import Optional, Set +from typing_extensions import Self + +class WithMetaData(BaseModel): + """ + WithMetaData + """ # noqa: E501 + alert_channel_ids: Optional[Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1024)]] = Field(default=None, description="List of IDs of alert channels defined in Instana. Can be left empty.", alias="alertChannelIds") + alert_channels: Optional[Dict[str, List[StrictStr]]] = Field(default=None, description="Set of alert channel IDs associated with the severity.", alias="alertChannels") + complete_tag_filter_expression: Optional[TagFilterExpression] = Field(default=None, alias="completeTagFilterExpression") + created: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Unix timestamp representing the creation time of this revision.") + custom_payload_fields: Annotated[List[CustomPayloadField], Field(min_length=0, max_length=20)] = Field(description="Custom payload fields to send additional information in the alert notifications. Can be left empty.", alias="customPayloadFields") + description: Annotated[str, Field(min_length=0, strict=True, max_length=65536)] = Field(description="Description of the mobile app alert configuration. Used as a template for the description of alert/event notifications triggered by this Smart Alert configuration.") + enabled: Optional[StrictBool] = Field(default=None, description="Flag to indicate whether or not the configuration is enabled.") + grace_period: Optional[StrictInt] = Field(default=None, description="The duration for which an alert remains open after conditions are no longer violated, with the alert auto-closing once the grace period expires.", alias="gracePeriod") + granularity: StrictInt = Field(description="The evaluation granularity used for detection of violations of the defined threshold. Defines the size of the tumbling window used.") + id: Annotated[str, Field(min_length=0, strict=True, max_length=64)] = Field(description="ID of this Mobile App Alert Config. ") + initial_created: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Unix timestamp representing the time of the initial revision.", alias="initialCreated") + mobile_app_id: Annotated[str, Field(min_length=0, strict=True, max_length=64)] = Field(description="ID of the mobile app that this Smart Alert configuration is applied to.", alias="mobileAppId") + name: Annotated[str, Field(min_length=0, strict=True, max_length=256)] = Field(description="Name of the mobile app alert configuration. Used as a template for the title of alert/event notifications triggered by this Smart Alert configuration.") + read_only: Optional[StrictBool] = Field(default=None, description="Flag to indicate whether or not the configuration is read-only. Read-only access restricts modification of the config.", alias="readOnly") + rule: Optional[MobileAppAlertRule] = None + rules: Optional[Annotated[List[RuleWithThresholdMobileAppAlertRule], Field(min_length=1, max_length=1)]] = Field(default=None, description="A list of rules where each rule is associated with multiple thresholds and their corresponding severity levels. This enables more complex alert configurations with validations to ensure consistent and logical threshold-severity combinations.") + severity: Optional[Annotated[int, Field(le=10, strict=True, ge=5)]] = Field(default=None, description="The severity of the alert when triggered, which is either 5 (Warning), or 10 (Critical).") + tag_filter_expression: TagFilterExpressionElement = Field(alias="tagFilterExpression") + threshold: Optional[Threshold] = None + time_threshold: MobileAppTimeThreshold = Field(alias="timeThreshold") + triggering: Optional[StrictBool] = Field(default=None, description="Optional flag to indicate whether an Incident is also triggered or not.") + __properties: ClassVar[List[str]] = ["alertChannelIds", "alertChannels", "completeTagFilterExpression", "created", "customPayloadFields", "description", "enabled", "gracePeriod", "granularity", "id", "initialCreated", "mobileAppId", "name", "readOnly", "rule", "rules", "severity", "tagFilterExpression", "threshold", "timeThreshold", "triggering"] + + @field_validator('granularity') + def granularity_validate_enum(cls, value): + """Validates the enum""" + if value not in set([60000, 300000, 600000, 900000, 1200000, 1800000]): + raise ValueError("must be one of enum values (60000, 300000, 600000, 900000, 1200000, 1800000)") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of WithMetaData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of complete_tag_filter_expression + if self.complete_tag_filter_expression: + _dict['completeTagFilterExpression'] = self.complete_tag_filter_expression.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in custom_payload_fields (list) + _items = [] + if self.custom_payload_fields: + for _item_custom_payload_fields in self.custom_payload_fields: + if _item_custom_payload_fields: + _items.append(_item_custom_payload_fields.to_dict()) + _dict['customPayloadFields'] = _items + # override the default output from pydantic by calling `to_dict()` of rule + if self.rule: + _dict['rule'] = self.rule.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in rules (list) + _items = [] + if self.rules: + for _item_rules in self.rules: + if _item_rules: + _items.append(_item_rules.to_dict()) + _dict['rules'] = _items + # override the default output from pydantic by calling `to_dict()` of tag_filter_expression + if self.tag_filter_expression: + _dict['tagFilterExpression'] = self.tag_filter_expression.to_dict() + # override the default output from pydantic by calling `to_dict()` of threshold + if self.threshold: + _dict['threshold'] = self.threshold.to_dict() + # override the default output from pydantic by calling `to_dict()` of time_threshold + if self.time_threshold: + _dict['timeThreshold'] = self.time_threshold.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of WithMetaData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "alertChannelIds": obj.get("alertChannelIds"), + "alertChannels": obj.get("alertChannels"), + "completeTagFilterExpression": TagFilterExpression.from_dict(obj["completeTagFilterExpression"]) if obj.get("completeTagFilterExpression") is not None else None, + "created": obj.get("created"), + "customPayloadFields": [CustomPayloadField.from_dict(_item) for _item in obj["customPayloadFields"]] if obj.get("customPayloadFields") is not None else None, + "description": obj.get("description"), + "enabled": obj.get("enabled"), + "gracePeriod": obj.get("gracePeriod"), + "granularity": obj.get("granularity") if obj.get("granularity") is not None else 600000, + "id": obj.get("id"), + "initialCreated": obj.get("initialCreated"), + "mobileAppId": obj.get("mobileAppId"), + "name": obj.get("name"), + "readOnly": obj.get("readOnly"), + "rule": MobileAppAlertRule.from_dict(obj["rule"]) if obj.get("rule") is not None else None, + "rules": [RuleWithThresholdMobileAppAlertRule.from_dict(_item) for _item in obj["rules"]] if obj.get("rules") is not None else None, + "severity": obj.get("severity"), + "tagFilterExpression": TagFilterExpressionElement.from_dict(obj["tagFilterExpression"]) if obj.get("tagFilterExpression") is not None else None, + "threshold": Threshold.from_dict(obj["threshold"]) if obj.get("threshold") is not None else None, + "timeThreshold": MobileAppTimeThreshold.from_dict(obj["timeThreshold"]) if obj.get("timeThreshold") is not None else None, + "triggering": obj.get("triggering") + }) + return _obj + + diff --git a/instana_client/models/with_resolved_name.py b/instana_client/models/with_resolved_name.py index ce6a5da..976dda6 100644 --- a/instana_client/models/with_resolved_name.py +++ b/instana_client/models/with_resolved_name.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/instana_client/models/z_chat_ops_integration.py b/instana_client/models/z_chat_ops_integration.py index 89ef72a..b196fd7 100644 --- a/instana_client/models/z_chat_ops_integration.py +++ b/instana_client/models/z_chat_ops_integration.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import ConfigDict, Field, StrictStr +from pydantic import ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from instana_client.models.abstract_integration import AbstractIntegration @@ -29,9 +29,9 @@ class ZChatOpsIntegration(AbstractIntegration): """ ZChatOpsIntegration """ # noqa: E501 - bearer_auth_token: StrictStr = Field(alias="bearerAuthToken") - channels: Optional[Annotated[List[StrictStr], Field(min_length=0, max_length=1)]] = None - zchat_ops_incidents_url: StrictStr = Field(alias="zchatOpsIncidentsUrl") + bearer_auth_token: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="bearerAuthToken") + channels: Optional[Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=0, max_length=1)]] = None + zchat_ops_incidents_url: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="zchatOpsIncidentsUrl") __properties: ClassVar[List[str]] = ["id", "kind", "name", "bearerAuthToken", "channels", "zchatOpsIncidentsUrl"] model_config = ConfigDict( diff --git a/instana_client/rest.py b/instana_client/rest.py index ac8699d..4974a81 100644 --- a/instana_client/rest.py +++ b/instana_client/rest.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/openapi-generator-config.json b/openapi-generator-config.json index 9498fc0..c077b0d 100644 --- a/openapi-generator-config.json +++ b/openapi-generator-config.json @@ -1,6 +1,6 @@ { "packageName": "instana_client", "projectName": "instana-client", - "packageVersion": "1.0.2", + "packageVersion": "1.0.3", "packageUrl": "https://github.com/instana/client-python" } diff --git a/pyproject.toml b/pyproject.toml index 8e983c6..db7c146 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "instana_client" -version = "1.0.3" +version = "1.0.4" description = "Instana REST API documentation" authors = [ {name = "© Instana",email = "support@instana.com"}, diff --git a/setup.cfg b/setup.cfg index 302bbd6..11433ee 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,19 +1,2 @@ [flake8] max-line-length=99 - -[coverage:run] -omit = - # Exclude custom-fixed files from coverage - instana_client/api/application_resources_api.py - instana_client/models/tag_filter.py - # Exclude test files - */test/* - */tests/* - -[coverage:report] -exclude_lines = - pragma: no cover - def __repr__ - raise AssertionError - raise NotImplementedError - if __name__ == .__main__.: diff --git a/setup.py b/setup.py index 7c84fdf..f73a51a 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ Documentation for INSTANA REST API - The version of the OpenAPI document: 1.309.1268 + The version of the OpenAPI document: 1.315.1425 Contact: support@instana.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "instana-client" -VERSION = "1.0.3" +VERSION = "1.0.4" PYTHON_REQUIRES = ">= 3.9" REQUIRES = [ "urllib3 >= 2.1.0, < 3.0.0", diff --git a/test/test_custom_tag.py b/test/test_custom_tag.py new file mode 100644 index 0000000..02f72cd --- /dev/null +++ b/test/test_custom_tag.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from instana_client.models.custom_tag import CustomTag + +class TestCustomTag(unittest.TestCase): + """CustomTag unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CustomTag: + """Test CustomTag + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CustomTag` + """ + model = CustomTag() + if include_optional: + return CustomTag( + aggregation = 'FIRST', + category = '', + description = '', + label = '', + name = '', + section = 'ACE', + source = '', + type = '' + ) + else: + return CustomTag( + ) + """ + + def testCustomTag(self): + """Test CustomTag""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_default_api.py b/test/test_default_api.py new file mode 100644 index 0000000..fa900a6 --- /dev/null +++ b/test/test_default_api.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from instana_client.api.default_api import DefaultApi + + +class TestDefaultApi(unittest.TestCase): + """DefaultApi unit test stubs""" + + def setUp(self) -> None: + self.api = DefaultApi() + + def tearDown(self) -> None: + pass + + def test_get_internal_custom_dashboards(self) -> None: + """Test case for get_internal_custom_dashboards + + """ + pass + + def test_get_internal_dashboard(self) -> None: + """Test case for get_internal_dashboard + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_session_replay_metadata_result.py b/test/test_get_session_replay_metadata_result.py new file mode 100644 index 0000000..fc10068 --- /dev/null +++ b/test/test_get_session_replay_metadata_result.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from instana_client.models.get_session_replay_metadata_result import GetSessionReplayMetadataResult + +class TestGetSessionReplayMetadataResult(unittest.TestCase): + """GetSessionReplayMetadataResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetSessionReplayMetadataResult: + """Test GetSessionReplayMetadataResult + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetSessionReplayMetadataResult` + """ + model = GetSessionReplayMetadataResult() + if include_optional: + return GetSessionReplayMetadataResult( + has_more = True, + metadata = [ + instana_client.models.session_replay_metadata.SessionReplayMetadata( + bytes_ingested_image = 50000, + id = 'image-123', + image_data = 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==', + image_format = 'png', + session_id = 'session-xyz', + timestamp = 1234567890, + type = 'screenshot', ) + ], + next_cursor = 1234587890 + ) + else: + return GetSessionReplayMetadataResult( + has_more = True, + metadata = [ + instana_client.models.session_replay_metadata.SessionReplayMetadata( + bytes_ingested_image = 50000, + id = 'image-123', + image_data = 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==', + image_format = 'png', + session_id = 'session-xyz', + timestamp = 1234567890, + type = 'screenshot', ) + ], + ) + """ + + def testGetSessionReplayMetadataResult(self): + """Test GetSessionReplayMetadataResult""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_idp_status_update.py b/test/test_idp_status_update.py new file mode 100644 index 0000000..35e530a --- /dev/null +++ b/test/test_idp_status_update.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from instana_client.models.idp_status_update import IdpStatusUpdate + +class TestIdpStatusUpdate(unittest.TestCase): + """IdpStatusUpdate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IdpStatusUpdate: + """Test IdpStatusUpdate + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `IdpStatusUpdate` + """ + model = IdpStatusUpdate() + if include_optional: + return IdpStatusUpdate( + enabled = True + ) + else: + return IdpStatusUpdate( + ) + """ + + def testIdpStatusUpdate(self): + """Test IdpStatusUpdate""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_llm_gateway_capability.py b/test/test_llm_gateway_capability.py new file mode 100644 index 0000000..851f797 --- /dev/null +++ b/test/test_llm_gateway_capability.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from instana_client.models.llm_gateway_capability import LLMGatewayCapability + +class TestLLMGatewayCapability(unittest.TestCase): + """LLMGatewayCapability unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> LLMGatewayCapability: + """Test LLMGatewayCapability + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `LLMGatewayCapability` + """ + model = LLMGatewayCapability() + if include_optional: + return LLMGatewayCapability( + enabled = True, + id = '0', + name = '' + ) + else: + return LLMGatewayCapability( + id = '0', + ) + """ + + def testLLMGatewayCapability(self): + """Test LLMGatewayCapability""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_llm_gateway_model.py b/test/test_llm_gateway_model.py new file mode 100644 index 0000000..e5cbe62 --- /dev/null +++ b/test/test_llm_gateway_model.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from instana_client.models.llm_gateway_model import LLMGatewayModel + +class TestLLMGatewayModel(unittest.TestCase): + """LLMGatewayModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> LLMGatewayModel: + """Test LLMGatewayModel + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `LLMGatewayModel` + """ + model = LLMGatewayModel() + if include_optional: + return LLMGatewayModel( + configuration = { + 'key' : None + }, + name = '' + ) + else: + return LLMGatewayModel( + ) + """ + + def testLLMGatewayModel(self): + """Test LLMGatewayModel""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_llm_gateway_service.py b/test/test_llm_gateway_service.py new file mode 100644 index 0000000..636373a --- /dev/null +++ b/test/test_llm_gateway_service.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from instana_client.models.llm_gateway_service import LLMGatewayService + +class TestLLMGatewayService(unittest.TestCase): + """LLMGatewayService unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> LLMGatewayService: + """Test LLMGatewayService + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `LLMGatewayService` + """ + model = LLMGatewayService() + if include_optional: + return LLMGatewayService( + connection_parameters = { + 'key' : '' + }, + id = '0', + name = '' + ) + else: + return LLMGatewayService( + id = '0', + ) + """ + + def testLLMGatewayService(self): + """Test LLMGatewayService""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_llm_model_price.py b/test/test_llm_model_price.py new file mode 100644 index 0000000..e214de2 --- /dev/null +++ b/test/test_llm_model_price.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from instana_client.models.llm_model_price import LlmModelPrice + +class TestLlmModelPrice(unittest.TestCase): + """LlmModelPrice unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> LlmModelPrice: + """Test LlmModelPrice + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `LlmModelPrice` + """ + model = LlmModelPrice() + if include_optional: + return LlmModelPrice( + default_input_cost = 1.337, + default_output_cost = 1.337, + has_default_price = True, + input_cost = 1.337, + is_user_defined = True, + model_name = '', + output_cost = 1.337, + platform = '', + provider = '' + ) + else: + return LlmModelPrice( + input_cost = 1.337, + output_cost = 1.337, + ) + """ + + def testLlmModelPrice(self): + """Test LlmModelPrice""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_llm_model_price_metadata.py b/test/test_llm_model_price_metadata.py new file mode 100644 index 0000000..e350c5e --- /dev/null +++ b/test/test_llm_model_price_metadata.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from instana_client.models.llm_model_price_metadata import LlmModelPriceMetadata + +class TestLlmModelPriceMetadata(unittest.TestCase): + """LlmModelPriceMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> LlmModelPriceMetadata: + """Test LlmModelPriceMetadata + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `LlmModelPriceMetadata` + """ + model = LlmModelPriceMetadata() + if include_optional: + return LlmModelPriceMetadata( + currency_code = '0' + ) + else: + return LlmModelPriceMetadata( + currency_code = '0', + ) + """ + + def testLlmModelPriceMetadata(self): + """Test LlmModelPriceMetadata""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_llm_price_configuration_api.py b/test/test_llm_price_configuration_api.py new file mode 100644 index 0000000..b2f7af4 --- /dev/null +++ b/test/test_llm_price_configuration_api.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from instana_client.api.llm_price_configuration_api import LLMPriceConfigurationApi + + +class TestLLMPriceConfigurationApi(unittest.TestCase): + """LLMPriceConfigurationApi unit test stubs""" + + def setUp(self) -> None: + self.api = LLMPriceConfigurationApi() + + def tearDown(self) -> None: + pass + + def test_delete_llm_model_price(self) -> None: + """Test case for delete_llm_model_price + + Delete LLM model price + """ + pass + + def test_delete_llm_model_price_without_provider(self) -> None: + """Test case for delete_llm_model_price_without_provider + + Delete LLM model price without provider + """ + pass + + def test_get_all_llm_model_prices(self) -> None: + """Test case for get_all_llm_model_prices + + Get all LLM model prices + """ + pass + + def test_get_llm_model_currency(self) -> None: + """Test case for get_llm_model_currency + + Get currency for LLM model prices + """ + pass + + def test_get_llm_model_price(self) -> None: + """Test case for get_llm_model_price + + Get LLM model price + """ + pass + + def test_get_llm_model_price_without_provider(self) -> None: + """Test case for get_llm_model_price_without_provider + + Get LLM model price without provider + """ + pass + + def test_set_llm_model_currency(self) -> None: + """Test case for set_llm_model_currency + + Set currency for LLM model prices + """ + pass + + def test_upsert_llm_model_price(self) -> None: + """Test case for upsert_llm_model_price + + Upsert LLM model price + """ + pass + + def test_upsert_llm_model_price_without_provider(self) -> None: + """Test case for upsert_llm_model_price_without_provider + + Upsert LLM model price without provider + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mobile_app_alert_config_with_rbac_tag.py b/test/test_mobile_app_alert_config_with_rbac_tag.py new file mode 100644 index 0000000..63f2848 --- /dev/null +++ b/test/test_mobile_app_alert_config_with_rbac_tag.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from instana_client.models.mobile_app_alert_config_with_rbac_tag import MobileAppAlertConfigWithRBACTag + +class TestMobileAppAlertConfigWithRBACTag(unittest.TestCase): + """MobileAppAlertConfigWithRBACTag unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> MobileAppAlertConfigWithRBACTag: + """Test MobileAppAlertConfigWithRBACTag + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `MobileAppAlertConfigWithRBACTag` + """ + model = MobileAppAlertConfigWithRBACTag() + if include_optional: + return MobileAppAlertConfigWithRBACTag( + alert_channel_ids = [ + '0' + ], + alert_channels = { + 'key' : [ + '' + ] + }, + complete_tag_filter_expression = instana_client.models.tag_filter_expression.TagFilterExpression(), + created = 1, + custom_payload_fields = [ + instana_client.models.custom_payload_field.CustomPayloadField( + key = '0', + type = '', ) + ], + description = '', + enabled = True, + grace_period = 56, + granularity = 60000, + id = '', + initial_created = 1, + mobile_app_id = '', + name = '', + rbac_tags = [ + instana_client.models.api_tag.ApiTag( + display_name = '', + id = '', ) + ], + read_only = True, + rule = instana_client.models.mobile_app_alert_rule.MobileAppAlertRule( + aggregation = 'SUM', + alert_type = '', + metric_name = '0', ), + rules = [ + instana_client.models.rule_with_threshold_mobile_app_alert_rule.RuleWithThresholdMobileAppAlertRule( + rule = instana_client.models.mobile_app_alert_rule.MobileAppAlertRule( + aggregation = 'SUM', + alert_type = '', + metric_name = '0', ), + threshold_operator = '>', + thresholds = { + 'key' : instana_client.models.threshold_config_rule.ThresholdConfigRule( + type = '', ) + }, ) + ], + severity = 5, + tag_filter_expression = instana_client.models.tag_filter_expression_element.TagFilterExpressionElement( + type = '', ), + threshold = instana_client.models.threshold.Threshold( + operator = '>', + type = '', ), + time_threshold = instana_client.models.mobile_app_time_threshold.MobileAppTimeThreshold( + time_window = 56, + type = '', ), + triggering = True + ) + else: + return MobileAppAlertConfigWithRBACTag( + custom_payload_fields = [ + instana_client.models.custom_payload_field.CustomPayloadField( + key = '0', + type = '', ) + ], + description = '', + granularity = 60000, + id = '', + mobile_app_id = '', + name = '', + tag_filter_expression = instana_client.models.tag_filter_expression_element.TagFilterExpressionElement( + type = '', ), + time_threshold = instana_client.models.mobile_app_time_threshold.MobileAppTimeThreshold( + time_window = 56, + type = '', ), + ) + """ + + def testMobileAppAlertConfigWithRBACTag(self): + """Test MobileAppAlertConfigWithRBACTag""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ns1_integration.py b/test/test_ns1_integration.py new file mode 100644 index 0000000..170a197 --- /dev/null +++ b/test/test_ns1_integration.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from instana_client.models.ns1_integration import NS1Integration + +class TestNS1Integration(unittest.TestCase): + """NS1Integration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> NS1Integration: + """Test NS1Integration + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `NS1Integration` + """ + model = NS1Integration() + if include_optional: + return NS1Integration( + headers = [ + '0' + ], + webhook_urls = [ + '0' + ] + ) + else: + return NS1Integration( + webhook_urls = [ + '0' + ], + ) + """ + + def testNS1Integration(self): + """Test NS1Integration""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_session_replay_metadata.py b/test/test_session_replay_metadata.py new file mode 100644 index 0000000..c99d5ed --- /dev/null +++ b/test/test_session_replay_metadata.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from instana_client.models.session_replay_metadata import SessionReplayMetadata + +class TestSessionReplayMetadata(unittest.TestCase): + """SessionReplayMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SessionReplayMetadata: + """Test SessionReplayMetadata + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SessionReplayMetadata` + """ + model = SessionReplayMetadata() + if include_optional: + return SessionReplayMetadata( + bytes_ingested_image = 50000, + id = 'image-123', + image_data = 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==', + image_format = 'png', + session_id = 'session-xyz', + timestamp = 1234567890, + type = 'screenshot' + ) + else: + return SessionReplayMetadata( + bytes_ingested_image = 50000, + id = 'image-123', + image_format = 'png', + session_id = 'session-xyz', + timestamp = 1234567890, + type = 'screenshot', + ) + """ + + def testSessionReplayMetadata(self): + """Test SessionReplayMetadata""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_session_replay_timestamps.py b/test/test_session_replay_timestamps.py new file mode 100644 index 0000000..dcfd030 --- /dev/null +++ b/test/test_session_replay_timestamps.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from instana_client.models.session_replay_timestamps import SessionReplayTimestamps + +class TestSessionReplayTimestamps(unittest.TestCase): + """SessionReplayTimestamps unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SessionReplayTimestamps: + """Test SessionReplayTimestamps + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SessionReplayTimestamps` + """ + model = SessionReplayTimestamps() + if include_optional: + return SessionReplayTimestamps( + first_image_timestamp = 1234567890, + last_image_timestamp = 1234567990 + ) + else: + return SessionReplayTimestamps( + ) + """ + + def testSessionReplayTimestamps(self): + """Test SessionReplayTimestamps""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_slo_configurations_api.py b/test/test_slo_configurations_api.py new file mode 100644 index 0000000..ed7b49f --- /dev/null +++ b/test/test_slo_configurations_api.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from instana_client.api.slo_configurations_api import SLOConfigurationsApi + + +class TestSLOConfigurationsApi(unittest.TestCase): + """SLOConfigurationsApi unit test stubs""" + + def setUp(self) -> None: + self.api = SLOConfigurationsApi() + + def tearDown(self) -> None: + pass + + def test_create_slo_config(self) -> None: + """Test case for create_slo_config + + Create a new SLO Config + """ + pass + + def test_delete_slo_config(self) -> None: + """Test case for delete_slo_config + + Delete an existing SLO Config + """ + pass + + def test_get_all_slo_config_tags(self) -> None: + """Test case for get_all_slo_config_tags + + Get All SLO Config tags + """ + pass + + def test_get_all_slo_configs(self) -> None: + """Test case for get_all_slo_configs + + Get All SLO Configs + """ + pass + + def test_get_slo_config_by_id(self) -> None: + """Test case for get_slo_config_by_id + + Get an existing SLO Config + """ + pass + + def test_update_slo_config(self) -> None: + """Test case for update_slo_config + + Update an existing SLO Config + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_synthetic_alert_config_with_rbac_tag.py b/test/test_synthetic_alert_config_with_rbac_tag.py new file mode 100644 index 0000000..5caa7d8 --- /dev/null +++ b/test/test_synthetic_alert_config_with_rbac_tag.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from instana_client.models.synthetic_alert_config_with_rbac_tag import SyntheticAlertConfigWithRBACTag + +class TestSyntheticAlertConfigWithRBACTag(unittest.TestCase): + """SyntheticAlertConfigWithRBACTag unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SyntheticAlertConfigWithRBACTag: + """Test SyntheticAlertConfigWithRBACTag + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SyntheticAlertConfigWithRBACTag` + """ + model = SyntheticAlertConfigWithRBACTag() + if include_optional: + return SyntheticAlertConfigWithRBACTag( + alert_channel_ids = [ + '0' + ], + created = 1, + custom_payload_fields = [ + instana_client.models.custom_payload_field.CustomPayloadField( + key = '0', + type = '', ) + ], + description = '', + enabled = True, + grace_period = 56, + id = '', + initial_created = 1, + name = '', + rbac_tags = [ + instana_client.models.api_tag.ApiTag( + display_name = '', + id = '', ) + ], + read_only = True, + rule = instana_client.models.synthetic_alert_rule.SyntheticAlertRule( + aggregation = 'SUM', + alert_type = '', + metric_name = '0', ), + severity = 5, + synthetic_test_ids = [ + '' + ], + tag_filter_expression = instana_client.models.tag_filter_expression_element.TagFilterExpressionElement( + type = '', ), + time_threshold = instana_client.models.synthetic_time_threshold.SyntheticTimeThreshold( + type = '', + violations_count = 1, ) + ) + else: + return SyntheticAlertConfigWithRBACTag( + alert_channel_ids = [ + '0' + ], + custom_payload_fields = [ + instana_client.models.custom_payload_field.CustomPayloadField( + key = '0', + type = '', ) + ], + description = '', + id = '', + name = '', + rule = instana_client.models.synthetic_alert_rule.SyntheticAlertRule( + aggregation = 'SUM', + alert_type = '', + metric_name = '0', ), + synthetic_test_ids = [ + '' + ], + tag_filter_expression = instana_client.models.tag_filter_expression_element.TagFilterExpressionElement( + type = '', ), + time_threshold = instana_client.models.synthetic_time_threshold.SyntheticTimeThreshold( + type = '', + violations_count = 1, ), + ) + """ + + def testSyntheticAlertConfigWithRBACTag(self): + """Test SyntheticAlertConfigWithRBACTag""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_website_alert_config_with_rbac_tag.py b/test/test_website_alert_config_with_rbac_tag.py new file mode 100644 index 0000000..79ab2c6 --- /dev/null +++ b/test/test_website_alert_config_with_rbac_tag.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from instana_client.models.website_alert_config_with_rbac_tag import WebsiteAlertConfigWithRBACTag + +class TestWebsiteAlertConfigWithRBACTag(unittest.TestCase): + """WebsiteAlertConfigWithRBACTag unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> WebsiteAlertConfigWithRBACTag: + """Test WebsiteAlertConfigWithRBACTag + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `WebsiteAlertConfigWithRBACTag` + """ + model = WebsiteAlertConfigWithRBACTag() + if include_optional: + return WebsiteAlertConfigWithRBACTag( + alert_channel_ids = [ + '0' + ], + alert_channels = { + 'key' : [ + '' + ] + }, + created = 1, + custom_payload_fields = [ + instana_client.models.custom_payload_field.CustomPayloadField( + key = '0', + type = '', ) + ], + description = '', + enabled = True, + grace_period = 56, + granularity = 60000, + id = '', + initial_created = 1, + name = '', + rbac_tags = [ + instana_client.models.api_tag.ApiTag( + display_name = '', + id = '', ) + ], + read_only = True, + rule = instana_client.models.website_alert_rule.WebsiteAlertRule( + aggregation = 'SUM', + alert_type = '', + metric_name = '0', ), + rules = [ + instana_client.models.rule_with_threshold_website_alert_rule.RuleWithThresholdWebsiteAlertRule( + rule = instana_client.models.website_alert_rule.WebsiteAlertRule( + aggregation = 'SUM', + alert_type = '', + metric_name = '0', ), + threshold_operator = '>', + thresholds = { + 'key' : instana_client.models.threshold_config_rule.ThresholdConfigRule( + type = '', ) + }, ) + ], + severity = 5, + tag_filter_expression = instana_client.models.tag_filter_expression_element.TagFilterExpressionElement( + type = '', ), + tag_filters = [ + instana_client.models.tag_filter.TagFilter() + ], + threshold = instana_client.models.threshold.Threshold( + operator = '>', + type = '', ), + time_threshold = instana_client.models.website_time_threshold.WebsiteTimeThreshold( + time_window = 56, + type = '', ), + triggering = True, + website_id = '' + ) + else: + return WebsiteAlertConfigWithRBACTag( + custom_payload_fields = [ + instana_client.models.custom_payload_field.CustomPayloadField( + key = '0', + type = '', ) + ], + description = '', + granularity = 60000, + id = '', + name = '', + tag_filter_expression = instana_client.models.tag_filter_expression_element.TagFilterExpressionElement( + type = '', ), + time_threshold = instana_client.models.website_time_threshold.WebsiteTimeThreshold( + time_window = 56, + type = '', ), + website_id = '', + ) + """ + + def testWebsiteAlertConfigWithRBACTag(self): + """Test WebsiteAlertConfigWithRBACTag""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_with_meta_data.py b/test/test_with_meta_data.py new file mode 100644 index 0000000..2595997 --- /dev/null +++ b/test/test_with_meta_data.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Instana REST API documentation + + Documentation for INSTANA REST API + + The version of the OpenAPI document: 1.315.1425 + Contact: support@instana.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from instana_client.models.with_meta_data import WithMetaData + +class TestWithMetaData(unittest.TestCase): + """WithMetaData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> WithMetaData: + """Test WithMetaData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `WithMetaData` + """ + model = WithMetaData() + if include_optional: + return WithMetaData( + alert_channel_ids = [ + '0' + ], + alert_channels = { + 'key' : [ + '' + ] + }, + complete_tag_filter_expression = instana_client.models.tag_filter_expression.TagFilterExpression(), + created = 1, + custom_payload_fields = [ + instana_client.models.custom_payload_field.CustomPayloadField( + key = '0', + type = '', ) + ], + description = '', + enabled = True, + grace_period = 56, + granularity = 60000, + id = '', + initial_created = 1, + mobile_app_id = '', + name = '', + read_only = True, + rule = instana_client.models.mobile_app_alert_rule.MobileAppAlertRule( + aggregation = 'SUM', + alert_type = '', + metric_name = '0', ), + rules = [ + instana_client.models.rule_with_threshold_mobile_app_alert_rule.RuleWithThresholdMobileAppAlertRule( + rule = instana_client.models.mobile_app_alert_rule.MobileAppAlertRule( + aggregation = 'SUM', + alert_type = '', + metric_name = '0', ), + threshold_operator = '>', + thresholds = { + 'key' : instana_client.models.threshold_config_rule.ThresholdConfigRule( + type = '', ) + }, ) + ], + severity = 5, + tag_filter_expression = instana_client.models.tag_filter_expression_element.TagFilterExpressionElement( + type = '', ), + threshold = instana_client.models.threshold.Threshold( + operator = '>', + type = '', ), + time_threshold = instana_client.models.mobile_app_time_threshold.MobileAppTimeThreshold( + time_window = 56, + type = '', ), + triggering = True + ) + else: + return WithMetaData( + custom_payload_fields = [ + instana_client.models.custom_payload_field.CustomPayloadField( + key = '0', + type = '', ) + ], + description = '', + granularity = 60000, + id = '', + mobile_app_id = '', + name = '', + tag_filter_expression = instana_client.models.tag_filter_expression_element.TagFilterExpressionElement( + type = '', ), + time_threshold = instana_client.models.mobile_app_time_threshold.MobileAppTimeThreshold( + time_window = 56, + type = '', ), + ) + """ + + def testWithMetaData(self): + """Test WithMetaData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main()