%% WARNING: DO NOT EDIT, AUTO-GENERATED CODE! %% See https://github.com/aws-beam/aws-codegen for more details. %% @doc Amazon CloudWatch Application Insights %% %% Amazon CloudWatch Application Insights is a service that helps you detect %% common problems with your applications. %% %% It enables you to pinpoint the source of issues in your applications %% (built with technologies such as Microsoft IIS, .NET, and Microsoft SQL %% Server), by providing key insights into detected problems. %% %% After you onboard your application, CloudWatch Application Insights %% identifies, recommends, and sets up metrics and logs. It continuously %% analyzes and correlates your metrics and logs for unusual behavior to %% surface actionable problems with your application. For example, if your %% application is slow and unresponsive and leading to HTTP 500 errors in %% your Application Load Balancer (ALB), Application Insights informs you %% that a memory pressure problem with your SQL Server database is occurring. %% It bases this analysis on impactful metrics and log errors. -module(aws_application_insights). -export([add_workload/2, add_workload/3, create_application/2, create_application/3, create_component/2, create_component/3, create_log_pattern/2, create_log_pattern/3, delete_application/2, delete_application/3, delete_component/2, delete_component/3, delete_log_pattern/2, delete_log_pattern/3, describe_application/2, describe_application/3, describe_component/2, describe_component/3, describe_component_configuration/2, describe_component_configuration/3, describe_component_configuration_recommendation/2, describe_component_configuration_recommendation/3, describe_log_pattern/2, describe_log_pattern/3, describe_observation/2, describe_observation/3, describe_problem/2, describe_problem/3, describe_problem_observations/2, describe_problem_observations/3, describe_workload/2, describe_workload/3, list_applications/2, list_applications/3, list_components/2, list_components/3, list_configuration_history/2, list_configuration_history/3, list_log_pattern_sets/2, list_log_pattern_sets/3, list_log_patterns/2, list_log_patterns/3, list_problems/2, list_problems/3, list_tags_for_resource/2, list_tags_for_resource/3, list_workloads/2, list_workloads/3, remove_workload/2, remove_workload/3, tag_resource/2, tag_resource/3, untag_resource/2, untag_resource/3, update_application/2, update_application/3, update_component/2, update_component/3, update_component_configuration/2, update_component_configuration/3, update_log_pattern/2, update_log_pattern/3, update_problem/2, update_problem/3, update_workload/2, update_workload/3]). -include_lib("hackney/include/hackney_lib.hrl"). %%==================================================================== %% API %%==================================================================== %% @doc Adds a workload to a component. %% %% Each component can have at most five workloads. add_workload(Client, Input) when is_map(Client), is_map(Input) -> add_workload(Client, Input, []). add_workload(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"AddWorkload">>, Input, Options). %% @doc Adds an application that is created from a resource group. create_application(Client, Input) when is_map(Client), is_map(Input) -> create_application(Client, Input, []). create_application(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"CreateApplication">>, Input, Options). %% @doc Creates a custom component by grouping similar standalone instances %% to monitor. create_component(Client, Input) when is_map(Client), is_map(Input) -> create_component(Client, Input, []). create_component(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"CreateComponent">>, Input, Options). %% @doc Adds an log pattern to a `LogPatternSet'. create_log_pattern(Client, Input) when is_map(Client), is_map(Input) -> create_log_pattern(Client, Input, []). create_log_pattern(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"CreateLogPattern">>, Input, Options). %% @doc Removes the specified application from monitoring. %% %% Does not delete the application. delete_application(Client, Input) when is_map(Client), is_map(Input) -> delete_application(Client, Input, []). delete_application(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"DeleteApplication">>, Input, Options). %% @doc Ungroups a custom component. %% %% When you ungroup custom components, all applicable monitors that are set %% up for the component are removed and the instances revert to their %% standalone status. delete_component(Client, Input) when is_map(Client), is_map(Input) -> delete_component(Client, Input, []). delete_component(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"DeleteComponent">>, Input, Options). %% @doc Removes the specified log pattern from a `LogPatternSet'. delete_log_pattern(Client, Input) when is_map(Client), is_map(Input) -> delete_log_pattern(Client, Input, []). delete_log_pattern(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"DeleteLogPattern">>, Input, Options). %% @doc Describes the application. describe_application(Client, Input) when is_map(Client), is_map(Input) -> describe_application(Client, Input, []). describe_application(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"DescribeApplication">>, Input, Options). %% @doc Describes a component and lists the resources that are grouped %% together in a component. describe_component(Client, Input) when is_map(Client), is_map(Input) -> describe_component(Client, Input, []). describe_component(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"DescribeComponent">>, Input, Options). %% @doc Describes the monitoring configuration of the component. describe_component_configuration(Client, Input) when is_map(Client), is_map(Input) -> describe_component_configuration(Client, Input, []). describe_component_configuration(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"DescribeComponentConfiguration">>, Input, Options). %% @doc Describes the recommended monitoring configuration of the component. describe_component_configuration_recommendation(Client, Input) when is_map(Client), is_map(Input) -> describe_component_configuration_recommendation(Client, Input, []). describe_component_configuration_recommendation(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"DescribeComponentConfigurationRecommendation">>, Input, Options). %% @doc Describe a specific log pattern from a `LogPatternSet'. describe_log_pattern(Client, Input) when is_map(Client), is_map(Input) -> describe_log_pattern(Client, Input, []). describe_log_pattern(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"DescribeLogPattern">>, Input, Options). %% @doc Describes an anomaly or error with the application. describe_observation(Client, Input) when is_map(Client), is_map(Input) -> describe_observation(Client, Input, []). describe_observation(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"DescribeObservation">>, Input, Options). %% @doc Describes an application problem. describe_problem(Client, Input) when is_map(Client), is_map(Input) -> describe_problem(Client, Input, []). describe_problem(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"DescribeProblem">>, Input, Options). %% @doc Describes the anomalies or errors associated with the problem. describe_problem_observations(Client, Input) when is_map(Client), is_map(Input) -> describe_problem_observations(Client, Input, []). describe_problem_observations(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"DescribeProblemObservations">>, Input, Options). %% @doc Describes a workload and its configuration. describe_workload(Client, Input) when is_map(Client), is_map(Input) -> describe_workload(Client, Input, []). describe_workload(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"DescribeWorkload">>, Input, Options). %% @doc Lists the IDs of the applications that you are monitoring. list_applications(Client, Input) when is_map(Client), is_map(Input) -> list_applications(Client, Input, []). list_applications(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"ListApplications">>, Input, Options). %% @doc Lists the auto-grouped, standalone, and custom components of the %% application. list_components(Client, Input) when is_map(Client), is_map(Input) -> list_components(Client, Input, []). list_components(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"ListComponents">>, Input, Options). %% @doc Lists the INFO, WARN, and ERROR events for periodic configuration %% updates performed by Application Insights. %% %% Examples of events represented are: %% %%