localstack/localstack

View on GitHub
localstack/aws/api/logs/__init__.py

Summary

Maintainability
F
1 wk
Test Coverage

File __init__.py has 1612 lines of code (exceeds 250 allowed). Consider refactoring.
Open

from typing import Dict, Iterator, List, Optional, TypedDict

from localstack.aws.api import RequestContext, ServiceException, ServiceRequest, handler

AccessPolicy = str
Severity: Major
Found in localstack/aws/api/logs/__init__.py - About 4 days to fix

    LogsApi has 74 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class LogsApi:
        service = "logs"
        version = "2014-03-28"
    
        @handler("AssociateKmsKey")
    Severity: Major
    Found in localstack/aws/api/logs/__init__.py - About 1 day to fix

      Function filter_log_events has 13 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def filter_log_events(
      Severity: Major
      Found in localstack/aws/api/logs/__init__.py - About 1 hr to fix

        Function get_log_events has 11 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def get_log_events(
        Severity: Major
        Found in localstack/aws/api/logs/__init__.py - About 1 hr to fix

          Function start_query has 9 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def start_query(
          Severity: Major
          Found in localstack/aws/api/logs/__init__.py - About 1 hr to fix

            Function create_log_anomaly_detector has 9 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def create_log_anomaly_detector(
            Severity: Major
            Found in localstack/aws/api/logs/__init__.py - About 1 hr to fix

              Function describe_log_groups has 9 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def describe_log_groups(
              Severity: Major
              Found in localstack/aws/api/logs/__init__.py - About 1 hr to fix

                Function describe_log_streams has 9 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    def describe_log_streams(
                Severity: Major
                Found in localstack/aws/api/logs/__init__.py - About 1 hr to fix

                  Function put_subscription_filter has 8 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      def put_subscription_filter(
                  Severity: Major
                  Found in localstack/aws/api/logs/__init__.py - About 1 hr to fix

                    Function describe_metric_filters has 8 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        def describe_metric_filters(
                    Severity: Major
                    Found in localstack/aws/api/logs/__init__.py - About 1 hr to fix

                      Function put_account_policy has 7 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          def put_account_policy(
                      Severity: Major
                      Found in localstack/aws/api/logs/__init__.py - About 50 mins to fix

                        Function update_anomaly has 7 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            def update_anomaly(
                        Severity: Major
                        Found in localstack/aws/api/logs/__init__.py - About 50 mins to fix

                          Function update_log_anomaly_detector has 7 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              def update_log_anomaly_detector(
                          Severity: Major
                          Found in localstack/aws/api/logs/__init__.py - About 50 mins to fix

                            Function put_query_definition has 7 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                def put_query_definition(
                            Severity: Major
                            Found in localstack/aws/api/logs/__init__.py - About 50 mins to fix

                              Function create_log_group has 6 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  def create_log_group(
                              Severity: Minor
                              Found in localstack/aws/api/logs/__init__.py - About 45 mins to fix

                                Function put_destination has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    def put_destination(
                                Severity: Minor
                                Found in localstack/aws/api/logs/__init__.py - About 45 mins to fix

                                  Function describe_export_tasks has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      def describe_export_tasks(
                                  Severity: Minor
                                  Found in localstack/aws/api/logs/__init__.py - About 45 mins to fix

                                    Function put_metric_filter has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        def put_metric_filter(
                                    Severity: Minor
                                    Found in localstack/aws/api/logs/__init__.py - About 45 mins to fix

                                      Function list_anomalies has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          def list_anomalies(
                                      Severity: Minor
                                      Found in localstack/aws/api/logs/__init__.py - About 45 mins to fix

                                        Function put_delivery_destination has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                            def put_delivery_destination(
                                        Severity: Minor
                                        Found in localstack/aws/api/logs/__init__.py - About 45 mins to fix

                                          Function put_log_events has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                          Open

                                              def put_log_events(
                                          Severity: Minor
                                          Found in localstack/aws/api/logs/__init__.py - About 45 mins to fix

                                            Function describe_subscription_filters has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                            Open

                                                def describe_subscription_filters(
                                            Severity: Minor
                                            Found in localstack/aws/api/logs/__init__.py - About 45 mins to fix

                                              Function put_delivery_source has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                              Open

                                                  def put_delivery_source(
                                              Severity: Minor
                                              Found in localstack/aws/api/logs/__init__.py - About 45 mins to fix

                                                Function start_live_tail has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                Open

                                                    def start_live_tail(
                                                Severity: Minor
                                                Found in localstack/aws/api/logs/__init__.py - About 45 mins to fix

                                                  Function describe_queries has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                  Open

                                                      def describe_queries(
                                                  Severity: Minor
                                                  Found in localstack/aws/api/logs/__init__.py - About 45 mins to fix

                                                    Function put_destination_policy has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                    Open

                                                        def put_destination_policy(
                                                    Severity: Minor
                                                    Found in localstack/aws/api/logs/__init__.py - About 35 mins to fix

                                                      Function get_log_group_fields has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                      Open

                                                          def get_log_group_fields(
                                                      Severity: Minor
                                                      Found in localstack/aws/api/logs/__init__.py - About 35 mins to fix

                                                        Function describe_query_definitions has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                        Open

                                                            def describe_query_definitions(
                                                        Severity: Minor
                                                        Found in localstack/aws/api/logs/__init__.py - About 35 mins to fix

                                                          Function describe_destinations has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                          Open

                                                              def describe_destinations(
                                                          Severity: Minor
                                                          Found in localstack/aws/api/logs/__init__.py - About 35 mins to fix

                                                            Function list_log_anomaly_detectors has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                            Open

                                                                def list_log_anomaly_detectors(
                                                            Severity: Minor
                                                            Found in localstack/aws/api/logs/__init__.py - About 35 mins to fix

                                                              Function describe_account_policies has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                              Open

                                                                  def describe_account_policies(
                                                              Severity: Minor
                                                              Found in localstack/aws/api/logs/__init__.py - About 35 mins to fix

                                                                Function create_delivery has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                Open

                                                                    def create_delivery(
                                                                Severity: Minor
                                                                Found in localstack/aws/api/logs/__init__.py - About 35 mins to fix

                                                                  Function associate_kms_key has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                  Open

                                                                      def associate_kms_key(
                                                                  Severity: Minor
                                                                  Found in localstack/aws/api/logs/__init__.py - About 35 mins to fix

                                                                    There are no issues that match your filters.

                                                                    Category
                                                                    Status