aws-sdk-applicationinsights 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d18f2879a6975ece31e48f31c2a9c703f7f8b88c
4
- data.tar.gz: 64ff7f5ba1a6609ca2f035ef7039777f9a7de84b
3
+ metadata.gz: 8767f486e64ff8bac94d82f9cded91a870f9c2c1
4
+ data.tar.gz: 6d243f22cf5f2bdb8e611529c3c8fac79c5b375d
5
5
  SHA512:
6
- metadata.gz: 973f4127369b76203417c6a0acaa57af1b96fe2bdc3dc71370eb97af3086ead541c7111f477ca1cd1684902c9d57d4b12a1aea288ac99aa5329b26f79c55b11d
7
- data.tar.gz: 38e8d4e5f195590aa513b0d7d17e642c5dee027314025ea9ad5e5d00eb667fce4214cdf5c24adf796eb8a150f43a65365f20267de75da92504cf5cc88b2804ea
6
+ metadata.gz: 0ffc2aa73893ae42316a80a9faa778eda15f3aecfebbf917d261777c33012aae43d96357759f5292b1b9fd2c753cea9f8fd1b116b142c2268fd36475a16ab72a
7
+ data.tar.gz: 7c24dcc77f178d5b5e761f9a97aa62980fec69220c5a6eab4d0d354a4e63d3bf1fc62c7b1890f0cb4b95fb64ee0ce9af929542820f4a9ac2b934f1dbaa5d7833
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-applicationinsights/customizations'
42
42
  # @service
43
43
  module Aws::ApplicationInsights
44
44
 
45
- GEM_VERSION = '1.5.0'
45
+ GEM_VERSION = '1.6.0'
46
46
 
47
47
  end
@@ -870,6 +870,84 @@ module Aws::ApplicationInsights
870
870
  req.send_request(options)
871
871
  end
872
872
 
873
+ # Lists the INFO, WARN, and ERROR events for periodic configuration
874
+ # updates performed by Application Insights. Examples of events
875
+ # represented are:
876
+ #
877
+ # * INFO: creating a new alarm or updating an alarm threshold.
878
+ #
879
+ # * WARN: alarm not created due to insufficient data points used to
880
+ # predict thresholds.
881
+ #
882
+ # * ERROR: alarm not created due to permission errors or exceeding
883
+ # quotas.
884
+ #
885
+ # @option params [String] :resource_group_name
886
+ # Resource group to which the application belongs.
887
+ #
888
+ # @option params [Time,DateTime,Date,Integer,String] :start_time
889
+ # The start time of the event.
890
+ #
891
+ # @option params [Time,DateTime,Date,Integer,String] :end_time
892
+ # The end time of the event.
893
+ #
894
+ # @option params [String] :event_status
895
+ # The status of the configuration update event. Possible values include
896
+ # INFO, WARN, and ERROR.
897
+ #
898
+ # @option params [Integer] :max_results
899
+ # The maximum number of results returned by `ListConfigurationHistory`
900
+ # in paginated output. When this parameter is used,
901
+ # `ListConfigurationHistory` returns only `MaxResults` in a single page
902
+ # along with a `NextToken` response element. The remaining results of
903
+ # the initial request can be seen by sending another
904
+ # `ListConfigurationHistory` request with the returned `NextToken`
905
+ # value. If this parameter is not used, then `ListConfigurationHistory`
906
+ # returns all results.
907
+ #
908
+ # @option params [String] :next_token
909
+ # The `NextToken` value returned from a previous paginated
910
+ # `ListConfigurationHistory` request where `MaxResults` was used and the
911
+ # results exceeded the value of that parameter. Pagination continues
912
+ # from the end of the previous results that returned the `NextToken`
913
+ # value. This value is `null` when there are no more results to return.
914
+ #
915
+ # @return [Types::ListConfigurationHistoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
916
+ #
917
+ # * {Types::ListConfigurationHistoryResponse#event_list #event_list} => Array<Types::ConfigurationEvent>
918
+ # * {Types::ListConfigurationHistoryResponse#next_token #next_token} => String
919
+ #
920
+ # @example Request syntax with placeholder values
921
+ #
922
+ # resp = client.list_configuration_history({
923
+ # resource_group_name: "ResourceGroupName",
924
+ # start_time: Time.now,
925
+ # end_time: Time.now,
926
+ # event_status: "INFO", # accepts INFO, WARN, ERROR
927
+ # max_results: 1,
928
+ # next_token: "PaginationToken",
929
+ # })
930
+ #
931
+ # @example Response structure
932
+ #
933
+ # resp.event_list #=> Array
934
+ # resp.event_list[0].monitored_resource_arn #=> String
935
+ # resp.event_list[0].event_status #=> String, one of "INFO", "WARN", "ERROR"
936
+ # resp.event_list[0].event_resource_type #=> String, one of "CLOUDWATCH_ALARM", "CLOUDFORMATION", "SSM_ASSOCIATION"
937
+ # resp.event_list[0].event_time #=> Time
938
+ # resp.event_list[0].event_detail #=> String
939
+ # resp.event_list[0].event_resource_name #=> String
940
+ # resp.next_token #=> String
941
+ #
942
+ # @see http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListConfigurationHistory AWS API Documentation
943
+ #
944
+ # @overload list_configuration_history(params = {})
945
+ # @param [Hash] params ({})
946
+ def list_configuration_history(params = {}, options = {})
947
+ req = build_request(:list_configuration_history, params)
948
+ req.send_request(options)
949
+ end
950
+
873
951
  # Lists the log pattern sets in the specific application.
874
952
  #
875
953
  # @option params [required, String] :resource_group_name
@@ -1337,7 +1415,7 @@ module Aws::ApplicationInsights
1337
1415
  params: params,
1338
1416
  config: config)
1339
1417
  context[:gem_name] = 'aws-sdk-applicationinsights'
1340
- context[:gem_version] = '1.5.0'
1418
+ context[:gem_version] = '1.6.0'
1341
1419
  Seahorse::Client::Request.new(handlers, context)
1342
1420
  end
1343
1421
 
@@ -20,6 +20,14 @@ module Aws::ApplicationInsights
20
20
  BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
21
21
  ComponentConfiguration = Shapes::StringShape.new(name: 'ComponentConfiguration')
22
22
  ComponentName = Shapes::StringShape.new(name: 'ComponentName')
23
+ ConfigurationEvent = Shapes::StructureShape.new(name: 'ConfigurationEvent')
24
+ ConfigurationEventDetail = Shapes::StringShape.new(name: 'ConfigurationEventDetail')
25
+ ConfigurationEventList = Shapes::ListShape.new(name: 'ConfigurationEventList')
26
+ ConfigurationEventMonitoredResourceARN = Shapes::StringShape.new(name: 'ConfigurationEventMonitoredResourceARN')
27
+ ConfigurationEventResourceName = Shapes::StringShape.new(name: 'ConfigurationEventResourceName')
28
+ ConfigurationEventResourceType = Shapes::StringShape.new(name: 'ConfigurationEventResourceType')
29
+ ConfigurationEventStatus = Shapes::StringShape.new(name: 'ConfigurationEventStatus')
30
+ ConfigurationEventTime = Shapes::TimestampShape.new(name: 'ConfigurationEventTime')
23
31
  CreateApplicationRequest = Shapes::StructureShape.new(name: 'CreateApplicationRequest')
24
32
  CreateApplicationResponse = Shapes::StructureShape.new(name: 'CreateApplicationResponse')
25
33
  CreateComponentRequest = Shapes::StructureShape.new(name: 'CreateComponentRequest')
@@ -62,6 +70,8 @@ module Aws::ApplicationInsights
62
70
  ListApplicationsResponse = Shapes::StructureShape.new(name: 'ListApplicationsResponse')
63
71
  ListComponentsRequest = Shapes::StructureShape.new(name: 'ListComponentsRequest')
64
72
  ListComponentsResponse = Shapes::StructureShape.new(name: 'ListComponentsResponse')
73
+ ListConfigurationHistoryRequest = Shapes::StructureShape.new(name: 'ListConfigurationHistoryRequest')
74
+ ListConfigurationHistoryResponse = Shapes::StructureShape.new(name: 'ListConfigurationHistoryResponse')
65
75
  ListLogPatternSetsRequest = Shapes::StructureShape.new(name: 'ListLogPatternSetsRequest')
66
76
  ListLogPatternSetsResponse = Shapes::StructureShape.new(name: 'ListLogPatternSetsResponse')
67
77
  ListLogPatternsRequest = Shapes::StructureShape.new(name: 'ListLogPatternsRequest')
@@ -153,6 +163,16 @@ module Aws::ApplicationInsights
153
163
  BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMsg, location_name: "Message"))
154
164
  BadRequestException.struct_class = Types::BadRequestException
155
165
 
166
+ ConfigurationEvent.add_member(:monitored_resource_arn, Shapes::ShapeRef.new(shape: ConfigurationEventMonitoredResourceARN, location_name: "MonitoredResourceARN"))
167
+ ConfigurationEvent.add_member(:event_status, Shapes::ShapeRef.new(shape: ConfigurationEventStatus, location_name: "EventStatus"))
168
+ ConfigurationEvent.add_member(:event_resource_type, Shapes::ShapeRef.new(shape: ConfigurationEventResourceType, location_name: "EventResourceType"))
169
+ ConfigurationEvent.add_member(:event_time, Shapes::ShapeRef.new(shape: ConfigurationEventTime, location_name: "EventTime"))
170
+ ConfigurationEvent.add_member(:event_detail, Shapes::ShapeRef.new(shape: ConfigurationEventDetail, location_name: "EventDetail"))
171
+ ConfigurationEvent.add_member(:event_resource_name, Shapes::ShapeRef.new(shape: ConfigurationEventResourceName, location_name: "EventResourceName"))
172
+ ConfigurationEvent.struct_class = Types::ConfigurationEvent
173
+
174
+ ConfigurationEventList.member = Shapes::ShapeRef.new(shape: ConfigurationEvent)
175
+
156
176
  CreateApplicationRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
157
177
  CreateApplicationRequest.add_member(:ops_center_enabled, Shapes::ShapeRef.new(shape: OpsCenterEnabled, location_name: "OpsCenterEnabled"))
158
178
  CreateApplicationRequest.add_member(:ops_item_sns_topic_arn, Shapes::ShapeRef.new(shape: OpsItemSNSTopicArn, location_name: "OpsItemSNSTopicArn"))
@@ -279,6 +299,18 @@ module Aws::ApplicationInsights
279
299
  ListComponentsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
280
300
  ListComponentsResponse.struct_class = Types::ListComponentsResponse
281
301
 
302
+ ListConfigurationHistoryRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, location_name: "ResourceGroupName"))
303
+ ListConfigurationHistoryRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: StartTime, location_name: "StartTime"))
304
+ ListConfigurationHistoryRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: EndTime, location_name: "EndTime"))
305
+ ListConfigurationHistoryRequest.add_member(:event_status, Shapes::ShapeRef.new(shape: ConfigurationEventStatus, location_name: "EventStatus"))
306
+ ListConfigurationHistoryRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxEntities, location_name: "MaxResults"))
307
+ ListConfigurationHistoryRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
308
+ ListConfigurationHistoryRequest.struct_class = Types::ListConfigurationHistoryRequest
309
+
310
+ ListConfigurationHistoryResponse.add_member(:event_list, Shapes::ShapeRef.new(shape: ConfigurationEventList, location_name: "EventList"))
311
+ ListConfigurationHistoryResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
312
+ ListConfigurationHistoryResponse.struct_class = Types::ListConfigurationHistoryResponse
313
+
282
314
  ListLogPatternSetsRequest.add_member(:resource_group_name, Shapes::ShapeRef.new(shape: ResourceGroupName, required: true, location_name: "ResourceGroupName"))
283
315
  ListLogPatternSetsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxEntities, location_name: "MaxResults"))
284
316
  ListLogPatternSetsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
@@ -649,6 +681,23 @@ module Aws::ApplicationInsights
649
681
  )
650
682
  end)
651
683
 
684
+ api.add_operation(:list_configuration_history, Seahorse::Model::Operation.new.tap do |o|
685
+ o.name = "ListConfigurationHistory"
686
+ o.http_method = "POST"
687
+ o.http_request_uri = "/"
688
+ o.input = Shapes::ShapeRef.new(shape: ListConfigurationHistoryRequest)
689
+ o.output = Shapes::ShapeRef.new(shape: ListConfigurationHistoryResponse)
690
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
691
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
692
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
693
+ o[:pager] = Aws::Pager.new(
694
+ limit_key: "max_results",
695
+ tokens: {
696
+ "next_token" => "next_token"
697
+ }
698
+ )
699
+ end)
700
+
652
701
  api.add_operation(:list_log_pattern_sets, Seahorse::Model::Operation.new.tap do |o|
653
702
  o.name = "ListLogPatternSets"
654
703
  o.http_method = "POST"
@@ -61,7 +61,11 @@ module Aws::ApplicationInsights
61
61
  #
62
62
  # @!attribute [rw] remarks
63
63
  # The issues on the user side that block Application Insights from
64
- # successfully monitoring an application.
64
+ # successfully monitoring an application. Example remarks include:
65
+ #
66
+ # * “Configuring application, detected 1 Errors, 3 Warnings”
67
+ #
68
+ # * “Configuring application, detected 1 Unconfigured Components”
65
69
  # @return [String]
66
70
  #
67
71
  # @see http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ApplicationInfo AWS API Documentation
@@ -87,6 +91,47 @@ module Aws::ApplicationInsights
87
91
  include Aws::Structure
88
92
  end
89
93
 
94
+ # The event information.
95
+ #
96
+ # @!attribute [rw] monitored_resource_arn
97
+ # The resource monitored by Application Insights.
98
+ # @return [String]
99
+ #
100
+ # @!attribute [rw] event_status
101
+ # The status of the configuration update event. Possible values
102
+ # include INFO, WARN, and ERROR.
103
+ # @return [String]
104
+ #
105
+ # @!attribute [rw] event_resource_type
106
+ # The resource type that Application Insights attempted to configure,
107
+ # for example, CLOUDWATCH\_ALARM.
108
+ # @return [String]
109
+ #
110
+ # @!attribute [rw] event_time
111
+ # The timestamp of the event.
112
+ # @return [Time]
113
+ #
114
+ # @!attribute [rw] event_detail
115
+ # The details of the event in plain text.
116
+ # @return [String]
117
+ #
118
+ # @!attribute [rw] event_resource_name
119
+ # The name of the resource Application Insights attempted to
120
+ # configure.
121
+ # @return [String]
122
+ #
123
+ # @see http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ConfigurationEvent AWS API Documentation
124
+ #
125
+ class ConfigurationEvent < Struct.new(
126
+ :monitored_resource_arn,
127
+ :event_status,
128
+ :event_resource_type,
129
+ :event_time,
130
+ :event_detail,
131
+ :event_resource_name)
132
+ include Aws::Structure
133
+ end
134
+
90
135
  # @note When making an API call, you may pass CreateApplicationRequest
91
136
  # data as a hash:
92
137
  #
@@ -719,6 +764,87 @@ module Aws::ApplicationInsights
719
764
  include Aws::Structure
720
765
  end
721
766
 
767
+ # @note When making an API call, you may pass ListConfigurationHistoryRequest
768
+ # data as a hash:
769
+ #
770
+ # {
771
+ # resource_group_name: "ResourceGroupName",
772
+ # start_time: Time.now,
773
+ # end_time: Time.now,
774
+ # event_status: "INFO", # accepts INFO, WARN, ERROR
775
+ # max_results: 1,
776
+ # next_token: "PaginationToken",
777
+ # }
778
+ #
779
+ # @!attribute [rw] resource_group_name
780
+ # Resource group to which the application belongs.
781
+ # @return [String]
782
+ #
783
+ # @!attribute [rw] start_time
784
+ # The start time of the event.
785
+ # @return [Time]
786
+ #
787
+ # @!attribute [rw] end_time
788
+ # The end time of the event.
789
+ # @return [Time]
790
+ #
791
+ # @!attribute [rw] event_status
792
+ # The status of the configuration update event. Possible values
793
+ # include INFO, WARN, and ERROR.
794
+ # @return [String]
795
+ #
796
+ # @!attribute [rw] max_results
797
+ # The maximum number of results returned by `ListConfigurationHistory`
798
+ # in paginated output. When this parameter is used,
799
+ # `ListConfigurationHistory` returns only `MaxResults` in a single
800
+ # page along with a `NextToken` response element. The remaining
801
+ # results of the initial request can be seen by sending another
802
+ # `ListConfigurationHistory` request with the returned `NextToken`
803
+ # value. If this parameter is not used, then
804
+ # `ListConfigurationHistory` returns all results.
805
+ # @return [Integer]
806
+ #
807
+ # @!attribute [rw] next_token
808
+ # The `NextToken` value returned from a previous paginated
809
+ # `ListConfigurationHistory` request where `MaxResults` was used and
810
+ # the results exceeded the value of that parameter. Pagination
811
+ # continues from the end of the previous results that returned the
812
+ # `NextToken` value. This value is `null` when there are no more
813
+ # results to return.
814
+ # @return [String]
815
+ #
816
+ # @see http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListConfigurationHistoryRequest AWS API Documentation
817
+ #
818
+ class ListConfigurationHistoryRequest < Struct.new(
819
+ :resource_group_name,
820
+ :start_time,
821
+ :end_time,
822
+ :event_status,
823
+ :max_results,
824
+ :next_token)
825
+ include Aws::Structure
826
+ end
827
+
828
+ # @!attribute [rw] event_list
829
+ # The list of configuration events and their corresponding details.
830
+ # @return [Array<Types::ConfigurationEvent>]
831
+ #
832
+ # @!attribute [rw] next_token
833
+ # The `NextToken` value to include in a future
834
+ # `ListConfigurationHistory` request. When the results of a
835
+ # `ListConfigurationHistory` request exceed `MaxResults`, this value
836
+ # can be used to retrieve the next page of results. This value is
837
+ # `null` when there are no more results to return.
838
+ # @return [String]
839
+ #
840
+ # @see http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListConfigurationHistoryResponse AWS API Documentation
841
+ #
842
+ class ListConfigurationHistoryResponse < Struct.new(
843
+ :event_list,
844
+ :next_token)
845
+ include Aws::Structure
846
+ end
847
+
722
848
  # @note When making an API call, you may pass ListLogPatternSetsRequest
723
849
  # data as a hash:
724
850
  #
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.6.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-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core