aws-sdk-applicationinsights 1.5.0 → 1.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d18f2879a6975ece31e48f31c2a9c703f7f8b88c
4
- data.tar.gz: 64ff7f5ba1a6609ca2f035ef7039777f9a7de84b
2
+ SHA256:
3
+ metadata.gz: dc64fd1ec8545b47f55e28eaee0f9ae79cd6add1783dc8b71c74958a1b2870f3
4
+ data.tar.gz: 3d157d01a31a668c184697d21b2acc54b5540548879ea6a45fd976d8db9245db
5
5
  SHA512:
6
- metadata.gz: 973f4127369b76203417c6a0acaa57af1b96fe2bdc3dc71370eb97af3086ead541c7111f477ca1cd1684902c9d57d4b12a1aea288ac99aa5329b26f79c55b11d
7
- data.tar.gz: 38e8d4e5f195590aa513b0d7d17e642c5dee027314025ea9ad5e5d00eb667fce4214cdf5c24adf796eb8a150f43a65365f20267de75da92504cf5cc88b2804ea
6
+ metadata.gz: e592a649751d18f5796850131486e4d2a59cb42cd0bc5680c85bfe3c99a3bffd8b4c0fa157c57162586fae41bb3796ab3eb123273fe35ead138fb55edf206b4a
7
+ data.tar.gz: 6d524faf2713bec02094a1d5aa64ed560536b3161652e6c528a280a4e0beb68a1035dd9751bdc39e704e44a2feb756b77d492251438a0f70d8ec592e9020ab27
@@ -24,17 +24,20 @@ require_relative 'aws-sdk-applicationinsights/customizations'
24
24
  # methods each accept a hash of request parameters and return a response
25
25
  # structure.
26
26
  #
27
+ # application_insights = Aws::ApplicationInsights::Client.new
28
+ # resp = application_insights.create_application(params)
29
+ #
27
30
  # See {Client} for more information.
28
31
  #
29
32
  # # Errors
30
33
  #
31
- # Errors returned from Amazon CloudWatch Application Insights all
32
- # extend {Errors::ServiceError}.
34
+ # Errors returned from Amazon CloudWatch Application Insights are defined in the
35
+ # {Errors} module and all extend {Errors::ServiceError}.
33
36
  #
34
37
  # begin
35
38
  # # do stuff
36
39
  # rescue Aws::ApplicationInsights::Errors::ServiceError
37
- # # rescues all service API errors
40
+ # # rescues all Amazon CloudWatch Application Insights API errors
38
41
  # end
39
42
  #
40
43
  # See {Errors} for more information.
@@ -42,6 +45,6 @@ require_relative 'aws-sdk-applicationinsights/customizations'
42
45
  # @service
43
46
  module Aws::ApplicationInsights
44
47
 
45
- GEM_VERSION = '1.5.0'
48
+ GEM_VERSION = '1.10.0'
46
49
 
47
50
  end
@@ -30,6 +30,18 @@ require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
30
30
  Aws::Plugins::GlobalConfiguration.add_identifier(:applicationinsights)
31
31
 
32
32
  module Aws::ApplicationInsights
33
+ # An API client for ApplicationInsights. To construct a client, you need to configure a `:region` and `:credentials`.
34
+ #
35
+ # client = Aws::ApplicationInsights::Client.new(
36
+ # region: region_name,
37
+ # credentials: credentials,
38
+ # # ...
39
+ # )
40
+ #
41
+ # For details on configuring region and credentials see
42
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
43
+ #
44
+ # See {#initialize} for a full list of supported configuration options.
33
45
  class Client < Seahorse::Client::Base
34
46
 
35
47
  include Aws::ClientStubs
@@ -93,7 +105,7 @@ module Aws::ApplicationInsights
93
105
  # @option options [required, String] :region
94
106
  # The AWS region to connect to. The configured `:region` is
95
107
  # used to determine the service `:endpoint`. When not passed,
96
- # a default `:region` is search for in the following locations:
108
+ # a default `:region` is searched for in the following locations:
97
109
  #
98
110
  # * `Aws.config[:region]`
99
111
  # * `ENV['AWS_REGION']`
@@ -108,6 +120,12 @@ module Aws::ApplicationInsights
108
120
  # When set to `true`, a thread polling for endpoints will be running in
109
121
  # the background every 60 secs (default). Defaults to `false`.
110
122
  #
123
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
124
+ # Used only in `adaptive` retry mode. When true, the request will sleep
125
+ # until there is sufficent client side capacity to retry the request.
126
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
127
+ # not retry instead of sleeping.
128
+ #
111
129
  # @option options [Boolean] :client_side_monitoring (false)
112
130
  # When `true`, client-side metrics will be collected for all API requests from
113
131
  # this client.
@@ -132,6 +150,10 @@ module Aws::ApplicationInsights
132
150
  # When `true`, an attempt is made to coerce request parameters into
133
151
  # the required types.
134
152
  #
153
+ # @option options [Boolean] :correct_clock_skew (true)
154
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
155
+ # a clock skew correction and retry requests with skewed client clocks.
156
+ #
135
157
  # @option options [Boolean] :disable_host_prefix_injection (false)
136
158
  # Set to true to disable SDK automatically adding host prefix
137
159
  # to default service endpoint when available.
@@ -139,7 +161,7 @@ module Aws::ApplicationInsights
139
161
  # @option options [String] :endpoint
140
162
  # The client endpoint is normally constructed from the `:region`
141
163
  # option. You should only configure an `:endpoint` when connecting
142
- # to test endpoints. This should be avalid HTTP(S) URI.
164
+ # to test endpoints. This should be a valid HTTP(S) URI.
143
165
  #
144
166
  # @option options [Integer] :endpoint_cache_max_entries (1000)
145
167
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -154,7 +176,7 @@ module Aws::ApplicationInsights
154
176
  # requests fetching endpoints information. Defaults to 60 sec.
155
177
  #
156
178
  # @option options [Boolean] :endpoint_discovery (false)
157
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
179
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
158
180
  #
159
181
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
160
182
  # The log formatter.
@@ -166,15 +188,29 @@ module Aws::ApplicationInsights
166
188
  # The Logger instance to send log messages to. If this option
167
189
  # is not set, logging will be disabled.
168
190
  #
191
+ # @option options [Integer] :max_attempts (3)
192
+ # An integer representing the maximum number attempts that will be made for
193
+ # a single request, including the initial attempt. For example,
194
+ # setting this value to 5 will result in a request being retried up to
195
+ # 4 times. Used in `standard` and `adaptive` retry modes.
196
+ #
169
197
  # @option options [String] :profile ("default")
170
198
  # Used when loading credentials from the shared credentials file
171
199
  # at HOME/.aws/credentials. When not specified, 'default' is used.
172
200
  #
201
+ # @option options [Proc] :retry_backoff
202
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
203
+ # This option is only used in the `legacy` retry mode.
204
+ #
173
205
  # @option options [Float] :retry_base_delay (0.3)
174
- # The base delay in seconds used by the default backoff function.
206
+ # The base delay in seconds used by the default backoff function. This option
207
+ # is only used in the `legacy` retry mode.
175
208
  #
176
209
  # @option options [Symbol] :retry_jitter (:none)
177
- # A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number.
210
+ # A delay randomiser function used by the default backoff function.
211
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
212
+ # otherwise a Proc that takes and returns a number. This option is only used
213
+ # in the `legacy` retry mode.
178
214
  #
179
215
  # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
180
216
  #
@@ -182,11 +218,30 @@ module Aws::ApplicationInsights
182
218
  # The maximum number of times to retry failed requests. Only
183
219
  # ~ 500 level server errors and certain ~ 400 level client errors
184
220
  # are retried. Generally, these are throttling errors, data
185
- # checksum errors, networking errors, timeout errors and auth
186
- # errors from expired credentials.
221
+ # checksum errors, networking errors, timeout errors, auth errors,
222
+ # endpoint discovery, and errors from expired credentials.
223
+ # This option is only used in the `legacy` retry mode.
187
224
  #
188
225
  # @option options [Integer] :retry_max_delay (0)
189
- # The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
226
+ # The maximum number of seconds to delay between retries (0 for no limit)
227
+ # used by the default backoff function. This option is only used in the
228
+ # `legacy` retry mode.
229
+ #
230
+ # @option options [String] :retry_mode ("legacy")
231
+ # Specifies which retry algorithm to use. Values are:
232
+ #
233
+ # * `legacy` - The pre-existing retry behavior. This is default value if
234
+ # no retry mode is provided.
235
+ #
236
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
237
+ # This includes support for retry quotas, which limit the number of
238
+ # unsuccessful retries a client can make.
239
+ #
240
+ # * `adaptive` - An experimental retry mode that includes all the
241
+ # functionality of `standard` mode along with automatic client side
242
+ # throttling. This is a provisional mode that may change behavior
243
+ # in the future.
244
+ #
190
245
  #
191
246
  # @option options [String] :secret_access_key
192
247
  #
@@ -219,16 +274,15 @@ module Aws::ApplicationInsights
219
274
  # requests through. Formatted like 'http://proxy.com:123'.
220
275
  #
221
276
  # @option options [Float] :http_open_timeout (15) The number of
222
- # seconds to wait when opening a HTTP session before rasing a
277
+ # seconds to wait when opening a HTTP session before raising a
223
278
  # `Timeout::Error`.
224
279
  #
225
280
  # @option options [Integer] :http_read_timeout (60) The default
226
281
  # number of seconds to wait for response data. This value can
227
- # safely be set
228
- # per-request on the session yeidled by {#session_for}.
282
+ # safely be set per-request on the session.
229
283
  #
230
284
  # @option options [Float] :http_idle_timeout (5) The number of
231
- # seconds a connection is allowed to sit idble before it is
285
+ # seconds a connection is allowed to sit idle before it is
232
286
  # considered stale. Stale connections are closed and removed
233
287
  # from the pool before making a request.
234
288
  #
@@ -237,7 +291,7 @@ module Aws::ApplicationInsights
237
291
  # request body. This option has no effect unless the request has
238
292
  # "Expect" header set to "100-continue". Defaults to `nil` which
239
293
  # disables this behaviour. This value can safely be set per
240
- # request on the session yeidled by {#session_for}.
294
+ # request on the session.
241
295
  #
242
296
  # @option options [Boolean] :http_wire_trace (false) When `true`,
243
297
  # HTTP debug output will be sent to the `:logger`.
@@ -273,6 +327,11 @@ module Aws::ApplicationInsights
273
327
  # When set to `true`, creates opsItems for any problems detected on an
274
328
  # application.
275
329
  #
330
+ # @option params [Boolean] :cwe_monitor_enabled
331
+ # Indicates whether Application Insights can listen to CloudWatch events
332
+ # for the application resources, such as `instance terminated`, `failed
333
+ # deployment`, and others.
334
+ #
276
335
  # @option params [String] :ops_item_sns_topic_arn
277
336
  # The SNS topic provided to Application Insights that is associated to
278
337
  # the created opsItem. Allows you to receive notifications for updates
@@ -292,6 +351,7 @@ module Aws::ApplicationInsights
292
351
  # resp = client.create_application({
293
352
  # resource_group_name: "ResourceGroupName", # required
294
353
  # ops_center_enabled: false,
354
+ # cwe_monitor_enabled: false,
295
355
  # ops_item_sns_topic_arn: "OpsItemSNSTopicArn",
296
356
  # tags: [
297
357
  # {
@@ -307,6 +367,7 @@ module Aws::ApplicationInsights
307
367
  # resp.application_info.life_cycle #=> String
308
368
  # resp.application_info.ops_item_sns_topic_arn #=> String
309
369
  # resp.application_info.ops_center_enabled #=> Boolean
370
+ # resp.application_info.cwe_monitor_enabled #=> Boolean
310
371
  # resp.application_info.remarks #=> String
311
372
  #
312
373
  # @see http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateApplication AWS API Documentation
@@ -500,6 +561,7 @@ module Aws::ApplicationInsights
500
561
  # resp.application_info.life_cycle #=> String
501
562
  # resp.application_info.ops_item_sns_topic_arn #=> String
502
563
  # resp.application_info.ops_center_enabled #=> Boolean
564
+ # resp.application_info.cwe_monitor_enabled #=> Boolean
503
565
  # resp.application_info.remarks #=> String
504
566
  #
505
567
  # @see http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeApplication AWS API Documentation
@@ -695,6 +757,27 @@ module Aws::ApplicationInsights
695
757
  # resp.observation.metric_name #=> String
696
758
  # resp.observation.unit #=> String
697
759
  # resp.observation.value #=> Float
760
+ # resp.observation.cloud_watch_event_id #=> String
761
+ # resp.observation.cloud_watch_event_source #=> String, one of "EC2", "CODE_DEPLOY", "HEALTH"
762
+ # resp.observation.cloud_watch_event_detail_type #=> String
763
+ # resp.observation.health_event_arn #=> String
764
+ # resp.observation.health_service #=> String
765
+ # resp.observation.health_event_type_code #=> String
766
+ # resp.observation.health_event_type_category #=> String
767
+ # resp.observation.health_event_description #=> String
768
+ # resp.observation.code_deploy_deployment_id #=> String
769
+ # resp.observation.code_deploy_deployment_group #=> String
770
+ # resp.observation.code_deploy_state #=> String
771
+ # resp.observation.code_deploy_application #=> String
772
+ # resp.observation.code_deploy_instance_group_id #=> String
773
+ # resp.observation.ec2_state #=> String
774
+ # resp.observation.x_ray_fault_percent #=> Integer
775
+ # resp.observation.x_ray_throttle_percent #=> Integer
776
+ # resp.observation.x_ray_error_percent #=> Integer
777
+ # resp.observation.x_ray_request_count #=> Integer
778
+ # resp.observation.x_ray_request_average_latency #=> Integer
779
+ # resp.observation.x_ray_node_name #=> String
780
+ # resp.observation.x_ray_node_type #=> String
698
781
  #
699
782
  # @see http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeObservation AWS API Documentation
700
783
  #
@@ -774,6 +857,27 @@ module Aws::ApplicationInsights
774
857
  # resp.related_observations.observation_list[0].metric_name #=> String
775
858
  # resp.related_observations.observation_list[0].unit #=> String
776
859
  # resp.related_observations.observation_list[0].value #=> Float
860
+ # resp.related_observations.observation_list[0].cloud_watch_event_id #=> String
861
+ # resp.related_observations.observation_list[0].cloud_watch_event_source #=> String, one of "EC2", "CODE_DEPLOY", "HEALTH"
862
+ # resp.related_observations.observation_list[0].cloud_watch_event_detail_type #=> String
863
+ # resp.related_observations.observation_list[0].health_event_arn #=> String
864
+ # resp.related_observations.observation_list[0].health_service #=> String
865
+ # resp.related_observations.observation_list[0].health_event_type_code #=> String
866
+ # resp.related_observations.observation_list[0].health_event_type_category #=> String
867
+ # resp.related_observations.observation_list[0].health_event_description #=> String
868
+ # resp.related_observations.observation_list[0].code_deploy_deployment_id #=> String
869
+ # resp.related_observations.observation_list[0].code_deploy_deployment_group #=> String
870
+ # resp.related_observations.observation_list[0].code_deploy_state #=> String
871
+ # resp.related_observations.observation_list[0].code_deploy_application #=> String
872
+ # resp.related_observations.observation_list[0].code_deploy_instance_group_id #=> String
873
+ # resp.related_observations.observation_list[0].ec2_state #=> String
874
+ # resp.related_observations.observation_list[0].x_ray_fault_percent #=> Integer
875
+ # resp.related_observations.observation_list[0].x_ray_throttle_percent #=> Integer
876
+ # resp.related_observations.observation_list[0].x_ray_error_percent #=> Integer
877
+ # resp.related_observations.observation_list[0].x_ray_request_count #=> Integer
878
+ # resp.related_observations.observation_list[0].x_ray_request_average_latency #=> Integer
879
+ # resp.related_observations.observation_list[0].x_ray_node_name #=> String
880
+ # resp.related_observations.observation_list[0].x_ray_node_type #=> String
777
881
  #
778
882
  # @see http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeProblemObservations AWS API Documentation
779
883
  #
@@ -799,6 +903,8 @@ module Aws::ApplicationInsights
799
903
  # * {Types::ListApplicationsResponse#application_info_list #application_info_list} => Array&lt;Types::ApplicationInfo&gt;
800
904
  # * {Types::ListApplicationsResponse#next_token #next_token} => String
801
905
  #
906
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
907
+ #
802
908
  # @example Request syntax with placeholder values
803
909
  #
804
910
  # resp = client.list_applications({
@@ -813,6 +919,7 @@ module Aws::ApplicationInsights
813
919
  # resp.application_info_list[0].life_cycle #=> String
814
920
  # resp.application_info_list[0].ops_item_sns_topic_arn #=> String
815
921
  # resp.application_info_list[0].ops_center_enabled #=> Boolean
922
+ # resp.application_info_list[0].cwe_monitor_enabled #=> Boolean
816
923
  # resp.application_info_list[0].remarks #=> String
817
924
  # resp.next_token #=> String
818
925
  #
@@ -844,6 +951,8 @@ module Aws::ApplicationInsights
844
951
  # * {Types::ListComponentsResponse#application_component_list #application_component_list} => Array&lt;Types::ApplicationComponent&gt;
845
952
  # * {Types::ListComponentsResponse#next_token #next_token} => String
846
953
  #
954
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
955
+ #
847
956
  # @example Request syntax with placeholder values
848
957
  #
849
958
  # resp = client.list_components({
@@ -870,6 +979,86 @@ module Aws::ApplicationInsights
870
979
  req.send_request(options)
871
980
  end
872
981
 
982
+ # Lists the INFO, WARN, and ERROR events for periodic configuration
983
+ # updates performed by Application Insights. Examples of events
984
+ # represented are:
985
+ #
986
+ # * INFO: creating a new alarm or updating an alarm threshold.
987
+ #
988
+ # * WARN: alarm not created due to insufficient data points used to
989
+ # predict thresholds.
990
+ #
991
+ # * ERROR: alarm not created due to permission errors or exceeding
992
+ # quotas.
993
+ #
994
+ # @option params [String] :resource_group_name
995
+ # Resource group to which the application belongs.
996
+ #
997
+ # @option params [Time,DateTime,Date,Integer,String] :start_time
998
+ # The start time of the event.
999
+ #
1000
+ # @option params [Time,DateTime,Date,Integer,String] :end_time
1001
+ # The end time of the event.
1002
+ #
1003
+ # @option params [String] :event_status
1004
+ # The status of the configuration update event. Possible values include
1005
+ # INFO, WARN, and ERROR.
1006
+ #
1007
+ # @option params [Integer] :max_results
1008
+ # The maximum number of results returned by `ListConfigurationHistory`
1009
+ # in paginated output. When this parameter is used,
1010
+ # `ListConfigurationHistory` returns only `MaxResults` in a single page
1011
+ # along with a `NextToken` response element. The remaining results of
1012
+ # the initial request can be seen by sending another
1013
+ # `ListConfigurationHistory` request with the returned `NextToken`
1014
+ # value. If this parameter is not used, then `ListConfigurationHistory`
1015
+ # returns all results.
1016
+ #
1017
+ # @option params [String] :next_token
1018
+ # The `NextToken` value returned from a previous paginated
1019
+ # `ListConfigurationHistory` request where `MaxResults` was used and the
1020
+ # results exceeded the value of that parameter. Pagination continues
1021
+ # from the end of the previous results that returned the `NextToken`
1022
+ # value. This value is `null` when there are no more results to return.
1023
+ #
1024
+ # @return [Types::ListConfigurationHistoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1025
+ #
1026
+ # * {Types::ListConfigurationHistoryResponse#event_list #event_list} => Array&lt;Types::ConfigurationEvent&gt;
1027
+ # * {Types::ListConfigurationHistoryResponse#next_token #next_token} => String
1028
+ #
1029
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1030
+ #
1031
+ # @example Request syntax with placeholder values
1032
+ #
1033
+ # resp = client.list_configuration_history({
1034
+ # resource_group_name: "ResourceGroupName",
1035
+ # start_time: Time.now,
1036
+ # end_time: Time.now,
1037
+ # event_status: "INFO", # accepts INFO, WARN, ERROR
1038
+ # max_results: 1,
1039
+ # next_token: "PaginationToken",
1040
+ # })
1041
+ #
1042
+ # @example Response structure
1043
+ #
1044
+ # resp.event_list #=> Array
1045
+ # resp.event_list[0].monitored_resource_arn #=> String
1046
+ # resp.event_list[0].event_status #=> String, one of "INFO", "WARN", "ERROR"
1047
+ # resp.event_list[0].event_resource_type #=> String, one of "CLOUDWATCH_ALARM", "CLOUDFORMATION", "SSM_ASSOCIATION"
1048
+ # resp.event_list[0].event_time #=> Time
1049
+ # resp.event_list[0].event_detail #=> String
1050
+ # resp.event_list[0].event_resource_name #=> String
1051
+ # resp.next_token #=> String
1052
+ #
1053
+ # @see http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListConfigurationHistory AWS API Documentation
1054
+ #
1055
+ # @overload list_configuration_history(params = {})
1056
+ # @param [Hash] params ({})
1057
+ def list_configuration_history(params = {}, options = {})
1058
+ req = build_request(:list_configuration_history, params)
1059
+ req.send_request(options)
1060
+ end
1061
+
873
1062
  # Lists the log pattern sets in the specific application.
874
1063
  #
875
1064
  # @option params [required, String] :resource_group_name
@@ -889,6 +1078,8 @@ module Aws::ApplicationInsights
889
1078
  # * {Types::ListLogPatternSetsResponse#log_pattern_sets #log_pattern_sets} => Array&lt;String&gt;
890
1079
  # * {Types::ListLogPatternSetsResponse#next_token #next_token} => String
891
1080
  #
1081
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1082
+ #
892
1083
  # @example Request syntax with placeholder values
893
1084
  #
894
1085
  # resp = client.list_log_pattern_sets({
@@ -935,6 +1126,8 @@ module Aws::ApplicationInsights
935
1126
  # * {Types::ListLogPatternsResponse#log_patterns #log_patterns} => Array&lt;Types::LogPattern&gt;
936
1127
  # * {Types::ListLogPatternsResponse#next_token #next_token} => String
937
1128
  #
1129
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1130
+ #
938
1131
  # @example Request syntax with placeholder values
939
1132
  #
940
1133
  # resp = client.list_log_patterns({
@@ -990,6 +1183,8 @@ module Aws::ApplicationInsights
990
1183
  # * {Types::ListProblemsResponse#problem_list #problem_list} => Array&lt;Types::Problem&gt;
991
1184
  # * {Types::ListProblemsResponse#next_token #next_token} => String
992
1185
  #
1186
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1187
+ #
993
1188
  # @example Request syntax with placeholder values
994
1189
  #
995
1190
  # resp = client.list_problems({
@@ -1148,6 +1343,11 @@ module Aws::ApplicationInsights
1148
1343
  # When set to `true`, creates opsItems for any problems detected on an
1149
1344
  # application.
1150
1345
  #
1346
+ # @option params [Boolean] :cwe_monitor_enabled
1347
+ # Indicates whether Application Insights can listen to CloudWatch events
1348
+ # for the application resources, such as `instance terminated`, `failed
1349
+ # deployment`, and others.
1350
+ #
1151
1351
  # @option params [String] :ops_item_sns_topic_arn
1152
1352
  # The SNS topic provided to Application Insights that is associated to
1153
1353
  # the created opsItem. Allows you to receive notifications for updates
@@ -1166,6 +1366,7 @@ module Aws::ApplicationInsights
1166
1366
  # resp = client.update_application({
1167
1367
  # resource_group_name: "ResourceGroupName", # required
1168
1368
  # ops_center_enabled: false,
1369
+ # cwe_monitor_enabled: false,
1169
1370
  # ops_item_sns_topic_arn: "OpsItemSNSTopicArn",
1170
1371
  # remove_sns_topic: false,
1171
1372
  # })
@@ -1176,6 +1377,7 @@ module Aws::ApplicationInsights
1176
1377
  # resp.application_info.life_cycle #=> String
1177
1378
  # resp.application_info.ops_item_sns_topic_arn #=> String
1178
1379
  # resp.application_info.ops_center_enabled #=> Boolean
1380
+ # resp.application_info.cwe_monitor_enabled #=> Boolean
1179
1381
  # resp.application_info.remarks #=> String
1180
1382
  #
1181
1383
  # @see http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateApplication AWS API Documentation
@@ -1337,7 +1539,7 @@ module Aws::ApplicationInsights
1337
1539
  params: params,
1338
1540
  config: config)
1339
1541
  context[:gem_name] = 'aws-sdk-applicationinsights'
1340
- context[:gem_version] = '1.5.0'
1542
+ context[:gem_version] = '1.10.0'
1341
1543
  Seahorse::Client::Request.new(handlers, context)
1342
1544
  end
1343
1545
 
@@ -18,8 +18,25 @@ module Aws::ApplicationInsights
18
18
  ApplicationInfo = Shapes::StructureShape.new(name: 'ApplicationInfo')
19
19
  ApplicationInfoList = Shapes::ListShape.new(name: 'ApplicationInfoList')
20
20
  BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
21
+ CWEMonitorEnabled = Shapes::BooleanShape.new(name: 'CWEMonitorEnabled')
22
+ CloudWatchEventDetailType = Shapes::StringShape.new(name: 'CloudWatchEventDetailType')
23
+ CloudWatchEventId = Shapes::StringShape.new(name: 'CloudWatchEventId')
24
+ CloudWatchEventSource = Shapes::StringShape.new(name: 'CloudWatchEventSource')
25
+ CodeDeployApplication = Shapes::StringShape.new(name: 'CodeDeployApplication')
26
+ CodeDeployDeploymentGroup = Shapes::StringShape.new(name: 'CodeDeployDeploymentGroup')
27
+ CodeDeployDeploymentId = Shapes::StringShape.new(name: 'CodeDeployDeploymentId')
28
+ CodeDeployInstanceGroupId = Shapes::StringShape.new(name: 'CodeDeployInstanceGroupId')
29
+ CodeDeployState = Shapes::StringShape.new(name: 'CodeDeployState')
21
30
  ComponentConfiguration = Shapes::StringShape.new(name: 'ComponentConfiguration')
22
31
  ComponentName = Shapes::StringShape.new(name: 'ComponentName')
32
+ ConfigurationEvent = Shapes::StructureShape.new(name: 'ConfigurationEvent')
33
+ ConfigurationEventDetail = Shapes::StringShape.new(name: 'ConfigurationEventDetail')
34
+ ConfigurationEventList = Shapes::ListShape.new(name: 'ConfigurationEventList')
35
+ ConfigurationEventMonitoredResourceARN = Shapes::StringShape.new(name: 'ConfigurationEventMonitoredResourceARN')
36
+ ConfigurationEventResourceName = Shapes::StringShape.new(name: 'ConfigurationEventResourceName')
37
+ ConfigurationEventResourceType = Shapes::StringShape.new(name: 'ConfigurationEventResourceType')
38
+ ConfigurationEventStatus = Shapes::StringShape.new(name: 'ConfigurationEventStatus')
39
+ ConfigurationEventTime = Shapes::TimestampShape.new(name: 'ConfigurationEventTime')
23
40
  CreateApplicationRequest = Shapes::StructureShape.new(name: 'CreateApplicationRequest')
24
41
  CreateApplicationResponse = Shapes::StructureShape.new(name: 'CreateApplicationResponse')
25
42
  CreateComponentRequest = Shapes::StructureShape.new(name: 'CreateComponentRequest')
@@ -48,12 +65,18 @@ module Aws::ApplicationInsights
48
65
  DescribeProblemObservationsResponse = Shapes::StructureShape.new(name: 'DescribeProblemObservationsResponse')
49
66
  DescribeProblemRequest = Shapes::StructureShape.new(name: 'DescribeProblemRequest')
50
67
  DescribeProblemResponse = Shapes::StructureShape.new(name: 'DescribeProblemResponse')
68
+ Ec2State = Shapes::StringShape.new(name: 'Ec2State')
51
69
  EndTime = Shapes::TimestampShape.new(name: 'EndTime')
52
70
  ErrorMsg = Shapes::StringShape.new(name: 'ErrorMsg')
53
71
  ExceptionMessage = Shapes::StringShape.new(name: 'ExceptionMessage')
54
72
  Feedback = Shapes::MapShape.new(name: 'Feedback')
55
73
  FeedbackKey = Shapes::StringShape.new(name: 'FeedbackKey')
56
74
  FeedbackValue = Shapes::StringShape.new(name: 'FeedbackValue')
75
+ HealthEventArn = Shapes::StringShape.new(name: 'HealthEventArn')
76
+ HealthEventDescription = Shapes::StringShape.new(name: 'HealthEventDescription')
77
+ HealthEventTypeCategory = Shapes::StringShape.new(name: 'HealthEventTypeCategory')
78
+ HealthEventTypeCode = Shapes::StringShape.new(name: 'HealthEventTypeCode')
79
+ HealthService = Shapes::StringShape.new(name: 'HealthService')
57
80
  Insights = Shapes::StringShape.new(name: 'Insights')
58
81
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
59
82
  LifeCycle = Shapes::StringShape.new(name: 'LifeCycle')
@@ -62,6 +85,8 @@ module Aws::ApplicationInsights
62
85
  ListApplicationsResponse = Shapes::StructureShape.new(name: 'ListApplicationsResponse')
63
86
  ListComponentsRequest = Shapes::StructureShape.new(name: 'ListComponentsRequest')
64
87
  ListComponentsResponse = Shapes::StructureShape.new(name: 'ListComponentsResponse')
88
+ ListConfigurationHistoryRequest = Shapes::StructureShape.new(name: 'ListConfigurationHistoryRequest')
89
+ ListConfigurationHistoryResponse = Shapes::StructureShape.new(name: 'ListConfigurationHistoryResponse')
65
90
  ListLogPatternSetsRequest = Shapes::StructureShape.new(name: 'ListLogPatternSetsRequest')
66
91
  ListLogPatternSetsResponse = Shapes::StructureShape.new(name: 'ListLogPatternSetsResponse')
67
92
  ListLogPatternsRequest = Shapes::StructureShape.new(name: 'ListLogPatternsRequest')
@@ -132,6 +157,13 @@ module Aws::ApplicationInsights
132
157
  UpdateLogPatternResponse = Shapes::StructureShape.new(name: 'UpdateLogPatternResponse')
133
158
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
134
159
  Value = Shapes::FloatShape.new(name: 'Value')
160
+ XRayErrorPercent = Shapes::IntegerShape.new(name: 'XRayErrorPercent')
161
+ XRayFaultPercent = Shapes::IntegerShape.new(name: 'XRayFaultPercent')
162
+ XRayNodeName = Shapes::StringShape.new(name: 'XRayNodeName')
163
+ XRayNodeType = Shapes::StringShape.new(name: 'XRayNodeType')
164
+ XRayRequestAverageLatency = Shapes::IntegerShape.new(name: 'XRayRequestAverageLatency')
165
+ XRayRequestCount = Shapes::IntegerShape.new(name: 'XRayRequestCount')
166
+ XRayThrottlePercent = Shapes::IntegerShape.new(name: 'XRayThrottlePercent')
135
167
 
136
168
  ApplicationComponent.add_member(:component_name, Shapes::ShapeRef.new(shape: ComponentName, location_name: "ComponentName"))
137
169
  ApplicationComponent.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "ResourceType"))
@@ -145,6 +177,7 @@ module Aws::ApplicationInsights
145
177
  ApplicationInfo.add_member(:life_cycle, Shapes::ShapeRef.new(shape: LifeCycle, location_name: "LifeCycle"))
146
178
  ApplicationInfo.add_member(:ops_item_sns_topic_arn, Shapes::ShapeRef.new(shape: OpsItemSNSTopicArn, location_name: "OpsItemSNSTopicArn"))
147
179
  ApplicationInfo.add_member(:ops_center_enabled, Shapes::ShapeRef.new(shape: OpsCenterEnabled, location_name: "OpsCenterEnabled"))
180
+ ApplicationInfo.add_member(:cwe_monitor_enabled, Shapes::ShapeRef.new(shape: CWEMonitorEnabled, location_name: "CWEMonitorEnabled"))
148
181
  ApplicationInfo.add_member(:remarks, Shapes::ShapeRef.new(shape: Remarks, location_name: "Remarks"))
149
182
  ApplicationInfo.struct_class = Types::ApplicationInfo
150
183
 
@@ -153,8 +186,19 @@ module Aws::ApplicationInsights
153
186
  BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMsg, location_name: "Message"))
154
187
  BadRequestException.struct_class = Types::BadRequestException
155
188
 
189
+ ConfigurationEvent.add_member(:monitored_resource_arn, Shapes::ShapeRef.new(shape: ConfigurationEventMonitoredResourceARN, location_name: "MonitoredResourceARN"))
190
+ ConfigurationEvent.add_member(:event_status, Shapes::ShapeRef.new(shape: ConfigurationEventStatus, location_name: "EventStatus"))
191
+ ConfigurationEvent.add_member(:event_resource_type, Shapes::ShapeRef.new(shape: ConfigurationEventResourceType, location_name: "EventResourceType"))
192
+ ConfigurationEvent.add_member(:event_time, Shapes::ShapeRef.new(shape: ConfigurationEventTime, location_name: "EventTime"))
193
+ ConfigurationEvent.add_member(:event_detail, Shapes::ShapeRef.new(shape: ConfigurationEventDetail, location_name: "EventDetail"))
194
+ ConfigurationEvent.add_member(:event_resource_name, Shapes::ShapeRef.new(shape: ConfigurationEventResourceName, location_name: "EventResourceName"))
195
+ ConfigurationEvent.struct_class = Types::ConfigurationEvent
196
+
197
+ ConfigurationEventList.member = Shapes::ShapeRef.new(shape: ConfigurationEvent)
198
+
156
199
  CreateApplicationRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
157
200
  CreateApplicationRequest.add_member(:ops_center_enabled, Shapes::ShapeRef.new(shape: OpsCenterEnabled, location_name: "OpsCenterEnabled"))
201
+ CreateApplicationRequest.add_member(:cwe_monitor_enabled, Shapes::ShapeRef.new(shape: CWEMonitorEnabled, location_name: "CWEMonitorEnabled"))
158
202
  CreateApplicationRequest.add_member(:ops_item_sns_topic_arn, Shapes::ShapeRef.new(shape: OpsItemSNSTopicArn, location_name: "OpsItemSNSTopicArn"))
159
203
  CreateApplicationRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
160
204
  CreateApplicationRequest.struct_class = Types::CreateApplicationRequest
@@ -279,6 +323,18 @@ module Aws::ApplicationInsights
279
323
  ListComponentsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
280
324
  ListComponentsResponse.struct_class = Types::ListComponentsResponse
281
325
 
326
+ ListConfigurationHistoryRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, location_name: "ResourceGroupName"))
327
+ ListConfigurationHistoryRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: StartTime, location_name: "StartTime"))
328
+ ListConfigurationHistoryRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: EndTime, location_name: "EndTime"))
329
+ ListConfigurationHistoryRequest.add_member(:event_status, Shapes::ShapeRef.new(shape: ConfigurationEventStatus, location_name: "EventStatus"))
330
+ ListConfigurationHistoryRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxEntities, location_name: "MaxResults"))
331
+ ListConfigurationHistoryRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
332
+ ListConfigurationHistoryRequest.struct_class = Types::ListConfigurationHistoryRequest
333
+
334
+ ListConfigurationHistoryResponse.add_member(:event_list, Shapes::ShapeRef.new(shape: ConfigurationEventList, location_name: "EventList"))
335
+ ListConfigurationHistoryResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
336
+ ListConfigurationHistoryResponse.struct_class = Types::ListConfigurationHistoryResponse
337
+
282
338
  ListLogPatternSetsRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
283
339
  ListLogPatternSetsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxEntities, location_name: "MaxResults"))
284
340
  ListLogPatternSetsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
@@ -340,6 +396,27 @@ module Aws::ApplicationInsights
340
396
  Observation.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, location_name: "MetricName"))
341
397
  Observation.add_member(:unit, Shapes::ShapeRef.new(shape: Unit, location_name: "Unit"))
342
398
  Observation.add_member(:value, Shapes::ShapeRef.new(shape: Value, location_name: "Value"))
399
+ Observation.add_member(:cloud_watch_event_id, Shapes::ShapeRef.new(shape: CloudWatchEventId, location_name: "CloudWatchEventId"))
400
+ Observation.add_member(:cloud_watch_event_source, Shapes::ShapeRef.new(shape: CloudWatchEventSource, location_name: "CloudWatchEventSource"))
401
+ Observation.add_member(:cloud_watch_event_detail_type, Shapes::ShapeRef.new(shape: CloudWatchEventDetailType, location_name: "CloudWatchEventDetailType"))
402
+ Observation.add_member(:health_event_arn, Shapes::ShapeRef.new(shape: HealthEventArn, location_name: "HealthEventArn"))
403
+ Observation.add_member(:health_service, Shapes::ShapeRef.new(shape: HealthService, location_name: "HealthService"))
404
+ Observation.add_member(:health_event_type_code, Shapes::ShapeRef.new(shape: HealthEventTypeCode, location_name: "HealthEventTypeCode"))
405
+ Observation.add_member(:health_event_type_category, Shapes::ShapeRef.new(shape: HealthEventTypeCategory, location_name: "HealthEventTypeCategory"))
406
+ Observation.add_member(:health_event_description, Shapes::ShapeRef.new(shape: HealthEventDescription, location_name: "HealthEventDescription"))
407
+ Observation.add_member(:code_deploy_deployment_id, Shapes::ShapeRef.new(shape: CodeDeployDeploymentId, location_name: "CodeDeployDeploymentId"))
408
+ Observation.add_member(:code_deploy_deployment_group, Shapes::ShapeRef.new(shape: CodeDeployDeploymentGroup, location_name: "CodeDeployDeploymentGroup"))
409
+ Observation.add_member(:code_deploy_state, Shapes::ShapeRef.new(shape: CodeDeployState, location_name: "CodeDeployState"))
410
+ Observation.add_member(:code_deploy_application, Shapes::ShapeRef.new(shape: CodeDeployApplication, location_name: "CodeDeployApplication"))
411
+ Observation.add_member(:code_deploy_instance_group_id, Shapes::ShapeRef.new(shape: CodeDeployInstanceGroupId, location_name: "CodeDeployInstanceGroupId"))
412
+ Observation.add_member(:ec2_state, Shapes::ShapeRef.new(shape: Ec2State, location_name: "Ec2State"))
413
+ Observation.add_member(:x_ray_fault_percent, Shapes::ShapeRef.new(shape: XRayFaultPercent, location_name: "XRayFaultPercent"))
414
+ Observation.add_member(:x_ray_throttle_percent, Shapes::ShapeRef.new(shape: XRayThrottlePercent, location_name: "XRayThrottlePercent"))
415
+ Observation.add_member(:x_ray_error_percent, Shapes::ShapeRef.new(shape: XRayErrorPercent, location_name: "XRayErrorPercent"))
416
+ Observation.add_member(:x_ray_request_count, Shapes::ShapeRef.new(shape: XRayRequestCount, location_name: "XRayRequestCount"))
417
+ Observation.add_member(:x_ray_request_average_latency, Shapes::ShapeRef.new(shape: XRayRequestAverageLatency, location_name: "XRayRequestAverageLatency"))
418
+ Observation.add_member(:x_ray_node_name, Shapes::ShapeRef.new(shape: XRayNodeName, location_name: "XRayNodeName"))
419
+ Observation.add_member(:x_ray_node_type, Shapes::ShapeRef.new(shape: XRayNodeType, location_name: "XRayNodeType"))
343
420
  Observation.struct_class = Types::Observation
344
421
 
345
422
  ObservationList.member = Shapes::ShapeRef.new(shape: Observation)
@@ -398,6 +475,7 @@ module Aws::ApplicationInsights
398
475
 
399
476
  UpdateApplicationRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
400
477
  UpdateApplicationRequest.add_member(:ops_center_enabled, Shapes::ShapeRef.new(shape: OpsCenterEnabled, location_name: "OpsCenterEnabled"))
478
+ UpdateApplicationRequest.add_member(:cwe_monitor_enabled, Shapes::ShapeRef.new(shape: CWEMonitorEnabled, location_name: "CWEMonitorEnabled"))
401
479
  UpdateApplicationRequest.add_member(:ops_item_sns_topic_arn, Shapes::ShapeRef.new(shape: OpsItemSNSTopicArn, location_name: "OpsItemSNSTopicArn"))
402
480
  UpdateApplicationRequest.add_member(:remove_sns_topic, Shapes::ShapeRef.new(shape: RemoveSNSTopic, location_name: "RemoveSNSTopic"))
403
481
  UpdateApplicationRequest.struct_class = Types::UpdateApplicationRequest
@@ -649,6 +727,23 @@ module Aws::ApplicationInsights
649
727
  )
650
728
  end)
651
729
 
730
+ api.add_operation(:list_configuration_history, Seahorse::Model::Operation.new.tap do |o|
731
+ o.name = "ListConfigurationHistory"
732
+ o.http_method = "POST"
733
+ o.http_request_uri = "/"
734
+ o.input = Shapes::ShapeRef.new(shape: ListConfigurationHistoryRequest)
735
+ o.output = Shapes::ShapeRef.new(shape: ListConfigurationHistoryResponse)
736
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
737
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
738
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
739
+ o[:pager] = Aws::Pager.new(
740
+ limit_key: "max_results",
741
+ tokens: {
742
+ "next_token" => "next_token"
743
+ }
744
+ )
745
+ end)
746
+
652
747
  api.add_operation(:list_log_pattern_sets, Seahorse::Model::Operation.new.tap do |o|
653
748
  o.name = "ListLogPatternSets"
654
749
  o.http_method = "POST"
@@ -6,6 +6,35 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::ApplicationInsights
9
+
10
+ # When ApplicationInsights returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::ApplicationInsights::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all ApplicationInsights errors using ServiceError:
14
+ #
15
+ # begin
16
+ # # do stuff
17
+ # rescue Aws::ApplicationInsights::Errors::ServiceError
18
+ # # rescues all ApplicationInsights API errors
19
+ # end
20
+ #
21
+ #
22
+ # ## Request Context
23
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
24
+ # information about the request that generated the error.
25
+ # See {Seahorse::Client::RequestContext} for more information.
26
+ #
27
+ # ## Error Classes
28
+ # * {BadRequestException}
29
+ # * {InternalServerException}
30
+ # * {ResourceInUseException}
31
+ # * {ResourceNotFoundException}
32
+ # * {TagsAlreadyExistException}
33
+ # * {TooManyTagsException}
34
+ # * {ValidationException}
35
+ #
36
+ # Additionally, error classes are dynamically generated for service errors based on the error code
37
+ # if they are not defined above.
9
38
  module Errors
10
39
 
11
40
  extend Aws::Errors::DynamicErrors
@@ -23,7 +52,6 @@ module Aws::ApplicationInsights
23
52
  def message
24
53
  @message || @data[:message]
25
54
  end
26
-
27
55
  end
28
56
 
29
57
  class InternalServerException < ServiceError
@@ -39,7 +67,6 @@ module Aws::ApplicationInsights
39
67
  def message
40
68
  @message || @data[:message]
41
69
  end
42
-
43
70
  end
44
71
 
45
72
  class ResourceInUseException < ServiceError
@@ -55,7 +82,6 @@ module Aws::ApplicationInsights
55
82
  def message
56
83
  @message || @data[:message]
57
84
  end
58
-
59
85
  end
60
86
 
61
87
  class ResourceNotFoundException < ServiceError
@@ -71,7 +97,6 @@ module Aws::ApplicationInsights
71
97
  def message
72
98
  @message || @data[:message]
73
99
  end
74
-
75
100
  end
76
101
 
77
102
  class TagsAlreadyExistException < ServiceError
@@ -87,7 +112,6 @@ module Aws::ApplicationInsights
87
112
  def message
88
113
  @message || @data[:message]
89
114
  end
90
-
91
115
  end
92
116
 
93
117
  class TooManyTagsException < ServiceError
@@ -108,7 +132,6 @@ module Aws::ApplicationInsights
108
132
  def resource_name
109
133
  @data[:resource_name]
110
134
  end
111
-
112
135
  end
113
136
 
114
137
  class ValidationException < ServiceError
@@ -124,7 +147,6 @@ module Aws::ApplicationInsights
124
147
  def message
125
148
  @message || @data[:message]
126
149
  end
127
-
128
150
  end
129
151
 
130
152
  end
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::ApplicationInsights
9
+
9
10
  class Resource
10
11
 
11
12
  # @param options ({})
@@ -59,9 +59,19 @@ module Aws::ApplicationInsights
59
59
  # problem detected by Application Insights for an application.
60
60
  # @return [Boolean]
61
61
  #
62
+ # @!attribute [rw] cwe_monitor_enabled
63
+ # Indicates whether Application Insights can listen to CloudWatch
64
+ # events for the application resources, such as `instance terminated`,
65
+ # `failed deployment`, and others.
66
+ # @return [Boolean]
67
+ #
62
68
  # @!attribute [rw] remarks
63
69
  # The issues on the user side that block Application Insights from
64
- # successfully monitoring an application.
70
+ # successfully monitoring an application. Example remarks include:
71
+ #
72
+ # * “Configuring application, detected 1 Errors, 3 Warnings”
73
+ #
74
+ # * “Configuring application, detected 1 Unconfigured Components”
65
75
  # @return [String]
66
76
  #
67
77
  # @see http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ApplicationInfo AWS API Documentation
@@ -71,6 +81,7 @@ module Aws::ApplicationInsights
71
81
  :life_cycle,
72
82
  :ops_item_sns_topic_arn,
73
83
  :ops_center_enabled,
84
+ :cwe_monitor_enabled,
74
85
  :remarks)
75
86
  include Aws::Structure
76
87
  end
@@ -87,12 +98,54 @@ module Aws::ApplicationInsights
87
98
  include Aws::Structure
88
99
  end
89
100
 
101
+ # The event information.
102
+ #
103
+ # @!attribute [rw] monitored_resource_arn
104
+ # The resource monitored by Application Insights.
105
+ # @return [String]
106
+ #
107
+ # @!attribute [rw] event_status
108
+ # The status of the configuration update event. Possible values
109
+ # include INFO, WARN, and ERROR.
110
+ # @return [String]
111
+ #
112
+ # @!attribute [rw] event_resource_type
113
+ # The resource type that Application Insights attempted to configure,
114
+ # for example, CLOUDWATCH\_ALARM.
115
+ # @return [String]
116
+ #
117
+ # @!attribute [rw] event_time
118
+ # The timestamp of the event.
119
+ # @return [Time]
120
+ #
121
+ # @!attribute [rw] event_detail
122
+ # The details of the event in plain text.
123
+ # @return [String]
124
+ #
125
+ # @!attribute [rw] event_resource_name
126
+ # The name of the resource Application Insights attempted to
127
+ # configure.
128
+ # @return [String]
129
+ #
130
+ # @see http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ConfigurationEvent AWS API Documentation
131
+ #
132
+ class ConfigurationEvent < Struct.new(
133
+ :monitored_resource_arn,
134
+ :event_status,
135
+ :event_resource_type,
136
+ :event_time,
137
+ :event_detail,
138
+ :event_resource_name)
139
+ include Aws::Structure
140
+ end
141
+
90
142
  # @note When making an API call, you may pass CreateApplicationRequest
91
143
  # data as a hash:
92
144
  #
93
145
  # {
94
146
  # resource_group_name: "ResourceGroupName", # required
95
147
  # ops_center_enabled: false,
148
+ # cwe_monitor_enabled: false,
96
149
  # ops_item_sns_topic_arn: "OpsItemSNSTopicArn",
97
150
  # tags: [
98
151
  # {
@@ -111,6 +164,12 @@ module Aws::ApplicationInsights
111
164
  # application.
112
165
  # @return [Boolean]
113
166
  #
167
+ # @!attribute [rw] cwe_monitor_enabled
168
+ # Indicates whether Application Insights can listen to CloudWatch
169
+ # events for the application resources, such as `instance terminated`,
170
+ # `failed deployment`, and others.
171
+ # @return [Boolean]
172
+ #
114
173
  # @!attribute [rw] ops_item_sns_topic_arn
115
174
  # The SNS topic provided to Application Insights that is associated to
116
175
  # the created opsItem. Allows you to receive notifications for updates
@@ -128,6 +187,7 @@ module Aws::ApplicationInsights
128
187
  class CreateApplicationRequest < Struct.new(
129
188
  :resource_group_name,
130
189
  :ops_center_enabled,
190
+ :cwe_monitor_enabled,
131
191
  :ops_item_sns_topic_arn,
132
192
  :tags)
133
193
  include Aws::Structure
@@ -719,6 +779,87 @@ module Aws::ApplicationInsights
719
779
  include Aws::Structure
720
780
  end
721
781
 
782
+ # @note When making an API call, you may pass ListConfigurationHistoryRequest
783
+ # data as a hash:
784
+ #
785
+ # {
786
+ # resource_group_name: "ResourceGroupName",
787
+ # start_time: Time.now,
788
+ # end_time: Time.now,
789
+ # event_status: "INFO", # accepts INFO, WARN, ERROR
790
+ # max_results: 1,
791
+ # next_token: "PaginationToken",
792
+ # }
793
+ #
794
+ # @!attribute [rw] resource_group_name
795
+ # Resource group to which the application belongs.
796
+ # @return [String]
797
+ #
798
+ # @!attribute [rw] start_time
799
+ # The start time of the event.
800
+ # @return [Time]
801
+ #
802
+ # @!attribute [rw] end_time
803
+ # The end time of the event.
804
+ # @return [Time]
805
+ #
806
+ # @!attribute [rw] event_status
807
+ # The status of the configuration update event. Possible values
808
+ # include INFO, WARN, and ERROR.
809
+ # @return [String]
810
+ #
811
+ # @!attribute [rw] max_results
812
+ # The maximum number of results returned by `ListConfigurationHistory`
813
+ # in paginated output. When this parameter is used,
814
+ # `ListConfigurationHistory` returns only `MaxResults` in a single
815
+ # page along with a `NextToken` response element. The remaining
816
+ # results of the initial request can be seen by sending another
817
+ # `ListConfigurationHistory` request with the returned `NextToken`
818
+ # value. If this parameter is not used, then
819
+ # `ListConfigurationHistory` returns all results.
820
+ # @return [Integer]
821
+ #
822
+ # @!attribute [rw] next_token
823
+ # The `NextToken` value returned from a previous paginated
824
+ # `ListConfigurationHistory` request where `MaxResults` was used and
825
+ # the results exceeded the value of that parameter. Pagination
826
+ # continues from the end of the previous results that returned the
827
+ # `NextToken` value. This value is `null` when there are no more
828
+ # results to return.
829
+ # @return [String]
830
+ #
831
+ # @see http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListConfigurationHistoryRequest AWS API Documentation
832
+ #
833
+ class ListConfigurationHistoryRequest < Struct.new(
834
+ :resource_group_name,
835
+ :start_time,
836
+ :end_time,
837
+ :event_status,
838
+ :max_results,
839
+ :next_token)
840
+ include Aws::Structure
841
+ end
842
+
843
+ # @!attribute [rw] event_list
844
+ # The list of configuration events and their corresponding details.
845
+ # @return [Array<Types::ConfigurationEvent>]
846
+ #
847
+ # @!attribute [rw] next_token
848
+ # The `NextToken` value to include in a future
849
+ # `ListConfigurationHistory` request. When the results of a
850
+ # `ListConfigurationHistory` request exceed `MaxResults`, this value
851
+ # can be used to retrieve the next page of results. This value is
852
+ # `null` when there are no more results to return.
853
+ # @return [String]
854
+ #
855
+ # @see http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListConfigurationHistoryResponse AWS API Documentation
856
+ #
857
+ class ListConfigurationHistoryResponse < Struct.new(
858
+ :event_list,
859
+ :next_token)
860
+ include Aws::Structure
861
+ end
862
+
722
863
  # @note When making an API call, you may pass ListLogPatternSetsRequest
723
864
  # data as a hash:
724
865
  #
@@ -1020,6 +1161,97 @@ module Aws::ApplicationInsights
1020
1161
  # The value of the source observation metric.
1021
1162
  # @return [Float]
1022
1163
  #
1164
+ # @!attribute [rw] cloud_watch_event_id
1165
+ # The ID of the CloudWatch Event-based observation related to the
1166
+ # detected problem.
1167
+ # @return [String]
1168
+ #
1169
+ # @!attribute [rw] cloud_watch_event_source
1170
+ # The source of the CloudWatch Event.
1171
+ # @return [String]
1172
+ #
1173
+ # @!attribute [rw] cloud_watch_event_detail_type
1174
+ # The detail type of the CloudWatch Event-based observation, for
1175
+ # example, `EC2 Instance State-change Notification`.
1176
+ # @return [String]
1177
+ #
1178
+ # @!attribute [rw] health_event_arn
1179
+ # The Amazon Resource Name (ARN) of the AWS Health Event-based
1180
+ # observation.
1181
+ # @return [String]
1182
+ #
1183
+ # @!attribute [rw] health_service
1184
+ # The service to which the AWS Health Event belongs, such as EC2.
1185
+ # @return [String]
1186
+ #
1187
+ # @!attribute [rw] health_event_type_code
1188
+ # The type of the AWS Health event, for example,
1189
+ # `AWS_EC2_POWER_CONNECTIVITY_ISSUE`.
1190
+ # @return [String]
1191
+ #
1192
+ # @!attribute [rw] health_event_type_category
1193
+ # The category of the AWS Health event, such as `issue`.
1194
+ # @return [String]
1195
+ #
1196
+ # @!attribute [rw] health_event_description
1197
+ # The description of the AWS Health event provided by the service,
1198
+ # such as Amazon EC2.
1199
+ # @return [String]
1200
+ #
1201
+ # @!attribute [rw] code_deploy_deployment_id
1202
+ # The deployment ID of the CodeDeploy-based observation related to the
1203
+ # detected problem.
1204
+ # @return [String]
1205
+ #
1206
+ # @!attribute [rw] code_deploy_deployment_group
1207
+ # The deployment group to which the CodeDeploy deployment belongs.
1208
+ # @return [String]
1209
+ #
1210
+ # @!attribute [rw] code_deploy_state
1211
+ # The status of the CodeDeploy deployment, for example `SUCCESS` or `
1212
+ # FAILURE`.
1213
+ # @return [String]
1214
+ #
1215
+ # @!attribute [rw] code_deploy_application
1216
+ # The CodeDeploy application to which the deployment belongs.
1217
+ # @return [String]
1218
+ #
1219
+ # @!attribute [rw] code_deploy_instance_group_id
1220
+ # The instance group to which the CodeDeploy instance belongs.
1221
+ # @return [String]
1222
+ #
1223
+ # @!attribute [rw] ec2_state
1224
+ # The state of the instance, such as `STOPPING` or `TERMINATING`.
1225
+ # @return [String]
1226
+ #
1227
+ # @!attribute [rw] x_ray_fault_percent
1228
+ # The X-Ray request fault percentage for this node.
1229
+ # @return [Integer]
1230
+ #
1231
+ # @!attribute [rw] x_ray_throttle_percent
1232
+ # The X-Ray request throttle percentage for this node.
1233
+ # @return [Integer]
1234
+ #
1235
+ # @!attribute [rw] x_ray_error_percent
1236
+ # The X-Ray request error percentage for this node.
1237
+ # @return [Integer]
1238
+ #
1239
+ # @!attribute [rw] x_ray_request_count
1240
+ # The X-Ray request count for this node.
1241
+ # @return [Integer]
1242
+ #
1243
+ # @!attribute [rw] x_ray_request_average_latency
1244
+ # The X-Ray node request average latency for this node.
1245
+ # @return [Integer]
1246
+ #
1247
+ # @!attribute [rw] x_ray_node_name
1248
+ # The name of the X-Ray node.
1249
+ # @return [String]
1250
+ #
1251
+ # @!attribute [rw] x_ray_node_type
1252
+ # The type of the X-Ray node.
1253
+ # @return [String]
1254
+ #
1023
1255
  # @see http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/Observation AWS API Documentation
1024
1256
  #
1025
1257
  class Observation < Struct.new(
@@ -1035,7 +1267,28 @@ module Aws::ApplicationInsights
1035
1267
  :metric_namespace,
1036
1268
  :metric_name,
1037
1269
  :unit,
1038
- :value)
1270
+ :value,
1271
+ :cloud_watch_event_id,
1272
+ :cloud_watch_event_source,
1273
+ :cloud_watch_event_detail_type,
1274
+ :health_event_arn,
1275
+ :health_service,
1276
+ :health_event_type_code,
1277
+ :health_event_type_category,
1278
+ :health_event_description,
1279
+ :code_deploy_deployment_id,
1280
+ :code_deploy_deployment_group,
1281
+ :code_deploy_state,
1282
+ :code_deploy_application,
1283
+ :code_deploy_instance_group_id,
1284
+ :ec2_state,
1285
+ :x_ray_fault_percent,
1286
+ :x_ray_throttle_percent,
1287
+ :x_ray_error_percent,
1288
+ :x_ray_request_count,
1289
+ :x_ray_request_average_latency,
1290
+ :x_ray_node_name,
1291
+ :x_ray_node_type)
1039
1292
  include Aws::Structure
1040
1293
  end
1041
1294
 
@@ -1295,6 +1548,7 @@ module Aws::ApplicationInsights
1295
1548
  # {
1296
1549
  # resource_group_name: "ResourceGroupName", # required
1297
1550
  # ops_center_enabled: false,
1551
+ # cwe_monitor_enabled: false,
1298
1552
  # ops_item_sns_topic_arn: "OpsItemSNSTopicArn",
1299
1553
  # remove_sns_topic: false,
1300
1554
  # }
@@ -1308,6 +1562,12 @@ module Aws::ApplicationInsights
1308
1562
  # application.
1309
1563
  # @return [Boolean]
1310
1564
  #
1565
+ # @!attribute [rw] cwe_monitor_enabled
1566
+ # Indicates whether Application Insights can listen to CloudWatch
1567
+ # events for the application resources, such as `instance terminated`,
1568
+ # `failed deployment`, and others.
1569
+ # @return [Boolean]
1570
+ #
1311
1571
  # @!attribute [rw] ops_item_sns_topic_arn
1312
1572
  # The SNS topic provided to Application Insights that is associated to
1313
1573
  # the created opsItem. Allows you to receive notifications for updates
@@ -1324,6 +1584,7 @@ module Aws::ApplicationInsights
1324
1584
  class UpdateApplicationRequest < Struct.new(
1325
1585
  :resource_group_name,
1326
1586
  :ops_center_enabled,
1587
+ :cwe_monitor_enabled,
1327
1588
  :ops_item_sns_topic_arn,
1328
1589
  :remove_sns_topic)
1329
1590
  include Aws::Structure
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-applicationinsights
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-25 00:00:00.000000000 Z
11
+ date: 2020-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  version: '0'
82
82
  requirements: []
83
83
  rubyforge_project:
84
- rubygems_version: 2.5.2.3
84
+ rubygems_version: 2.7.6.2
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: AWS SDK for Ruby - Application Insights