aws-sdk-prometheusservice 1.25.0 → 1.26.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-prometheusservice/client.rb +249 -1
- data/lib/aws-sdk-prometheusservice/client_api.rb +216 -0
- data/lib/aws-sdk-prometheusservice/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-prometheusservice/endpoints.rb +70 -0
- data/lib/aws-sdk-prometheusservice/plugins/endpoints.rb +10 -0
- data/lib/aws-sdk-prometheusservice/types.rb +474 -0
- data/lib/aws-sdk-prometheusservice/waiters.rb +91 -0
- data/lib/aws-sdk-prometheusservice.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bc2efcc19a92035ecfc3376c75e359d273d8cac47f25a27e3a496c43c8f7ae8
|
4
|
+
data.tar.gz: 95597a1fc50c8ffffccb886f913674fd79a222ad69a6ab905e03b6ca014f7c21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d8f7c17fa9588216eb911871139eabc5fb62022a9c524a50a0761b054e5e6be2c9185c4a42a8d5d866bb139a8fd8e2d235c62dd014410764f5d3b833c6e2ca2
|
7
|
+
data.tar.gz: a882932d078823c45580eb915304dc160e9199ab29ecb9d061aec4cbffb9a51609b1ca1de163cc99907a793af37db387c6f150ff75d4e3a6e98e44aa27c01966
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.26.0 (2023-11-27)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds support for the Amazon Managed Service for Prometheus collector, a fully managed, agentless Prometheus metrics scraping capability.
|
8
|
+
|
4
9
|
1.25.0 (2023-11-22)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.26.0
|
@@ -530,6 +530,81 @@ module Aws::PrometheusService
|
|
530
530
|
req.send_request(options)
|
531
531
|
end
|
532
532
|
|
533
|
+
# Create a scraper.
|
534
|
+
#
|
535
|
+
# @option params [String] :alias
|
536
|
+
# An optional user-assigned alias for this scraper. This alias is for
|
537
|
+
# user reference and does not need to be unique.
|
538
|
+
#
|
539
|
+
# @option params [required, Types::ScrapeConfiguration] :scrape_configuration
|
540
|
+
# The configuration used to create the scraper.
|
541
|
+
#
|
542
|
+
# @option params [required, Types::Source] :source
|
543
|
+
# The source that the scraper will be discovering and collecting metrics
|
544
|
+
# from.
|
545
|
+
#
|
546
|
+
# @option params [required, Types::Destination] :destination
|
547
|
+
# The destination that the scraper will be producing metrics to.
|
548
|
+
#
|
549
|
+
# @option params [String] :client_token
|
550
|
+
# Optional, unique, case-sensitive, user-provided identifier to ensure
|
551
|
+
# the idempotency of the request.
|
552
|
+
#
|
553
|
+
# **A suitable default value is auto-generated.** You should normally
|
554
|
+
# not need to pass this option.**
|
555
|
+
#
|
556
|
+
# @option params [Hash<String,String>] :tags
|
557
|
+
# Optional, user-provided tags for this scraper.
|
558
|
+
#
|
559
|
+
# @return [Types::CreateScraperResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
560
|
+
#
|
561
|
+
# * {Types::CreateScraperResponse#scraper_id #scraper_id} => String
|
562
|
+
# * {Types::CreateScraperResponse#arn #arn} => String
|
563
|
+
# * {Types::CreateScraperResponse#status #status} => Types::ScraperStatus
|
564
|
+
# * {Types::CreateScraperResponse#tags #tags} => Hash<String,String>
|
565
|
+
#
|
566
|
+
# @example Request syntax with placeholder values
|
567
|
+
#
|
568
|
+
# resp = client.create_scraper({
|
569
|
+
# alias: "ScraperAlias",
|
570
|
+
# scrape_configuration: { # required
|
571
|
+
# configuration_blob: "data",
|
572
|
+
# },
|
573
|
+
# source: { # required
|
574
|
+
# eks_configuration: {
|
575
|
+
# cluster_arn: "ClusterArn", # required
|
576
|
+
# security_group_ids: ["SecurityGroupId"],
|
577
|
+
# subnet_ids: ["SubnetId"], # required
|
578
|
+
# },
|
579
|
+
# },
|
580
|
+
# destination: { # required
|
581
|
+
# amp_configuration: {
|
582
|
+
# workspace_arn: "WorkspaceArn", # required
|
583
|
+
# },
|
584
|
+
# },
|
585
|
+
# client_token: "IdempotencyToken",
|
586
|
+
# tags: {
|
587
|
+
# "TagKey" => "TagValue",
|
588
|
+
# },
|
589
|
+
# })
|
590
|
+
#
|
591
|
+
# @example Response structure
|
592
|
+
#
|
593
|
+
# resp.scraper_id #=> String
|
594
|
+
# resp.arn #=> String
|
595
|
+
# resp.status.status_code #=> String, one of "CREATING", "ACTIVE", "DELETING", "CREATION_FAILED", "DELETION_FAILED"
|
596
|
+
# resp.tags #=> Hash
|
597
|
+
# resp.tags["TagKey"] #=> String
|
598
|
+
#
|
599
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/CreateScraper AWS API Documentation
|
600
|
+
#
|
601
|
+
# @overload create_scraper(params = {})
|
602
|
+
# @param [Hash] params ({})
|
603
|
+
def create_scraper(params = {}, options = {})
|
604
|
+
req = build_request(:create_scraper, params)
|
605
|
+
req.send_request(options)
|
606
|
+
end
|
607
|
+
|
533
608
|
# Creates a new AMP workspace.
|
534
609
|
#
|
535
610
|
# @option params [String] :alias
|
@@ -675,6 +750,44 @@ module Aws::PrometheusService
|
|
675
750
|
req.send_request(options)
|
676
751
|
end
|
677
752
|
|
753
|
+
# Deletes a scraper.
|
754
|
+
#
|
755
|
+
# @option params [required, String] :scraper_id
|
756
|
+
# The ID of the scraper to delete.
|
757
|
+
#
|
758
|
+
# @option params [String] :client_token
|
759
|
+
# Optional, unique, case-sensitive, user-provided identifier to ensure
|
760
|
+
# the idempotency of the request.
|
761
|
+
#
|
762
|
+
# **A suitable default value is auto-generated.** You should normally
|
763
|
+
# not need to pass this option.**
|
764
|
+
#
|
765
|
+
# @return [Types::DeleteScraperResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
766
|
+
#
|
767
|
+
# * {Types::DeleteScraperResponse#scraper_id #scraper_id} => String
|
768
|
+
# * {Types::DeleteScraperResponse#status #status} => Types::ScraperStatus
|
769
|
+
#
|
770
|
+
# @example Request syntax with placeholder values
|
771
|
+
#
|
772
|
+
# resp = client.delete_scraper({
|
773
|
+
# scraper_id: "ScraperId", # required
|
774
|
+
# client_token: "IdempotencyToken",
|
775
|
+
# })
|
776
|
+
#
|
777
|
+
# @example Response structure
|
778
|
+
#
|
779
|
+
# resp.scraper_id #=> String
|
780
|
+
# resp.status.status_code #=> String, one of "CREATING", "ACTIVE", "DELETING", "CREATION_FAILED", "DELETION_FAILED"
|
781
|
+
#
|
782
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DeleteScraper AWS API Documentation
|
783
|
+
#
|
784
|
+
# @overload delete_scraper(params = {})
|
785
|
+
# @param [Hash] params ({})
|
786
|
+
def delete_scraper(params = {}, options = {})
|
787
|
+
req = build_request(:delete_scraper, params)
|
788
|
+
req.send_request(options)
|
789
|
+
end
|
790
|
+
|
678
791
|
# Deletes an AMP workspace.
|
679
792
|
#
|
680
793
|
# @option params [required, String] :workspace_id
|
@@ -810,6 +923,56 @@ module Aws::PrometheusService
|
|
810
923
|
req.send_request(options)
|
811
924
|
end
|
812
925
|
|
926
|
+
# Describe an existing scraper.
|
927
|
+
#
|
928
|
+
# @option params [required, String] :scraper_id
|
929
|
+
# The IDs of the scraper to describe.
|
930
|
+
#
|
931
|
+
# @return [Types::DescribeScraperResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
932
|
+
#
|
933
|
+
# * {Types::DescribeScraperResponse#scraper #scraper} => Types::ScraperDescription
|
934
|
+
#
|
935
|
+
# @example Request syntax with placeholder values
|
936
|
+
#
|
937
|
+
# resp = client.describe_scraper({
|
938
|
+
# scraper_id: "ScraperId", # required
|
939
|
+
# })
|
940
|
+
#
|
941
|
+
# @example Response structure
|
942
|
+
#
|
943
|
+
# resp.scraper.alias #=> String
|
944
|
+
# resp.scraper.scraper_id #=> String
|
945
|
+
# resp.scraper.arn #=> String
|
946
|
+
# resp.scraper.role_arn #=> String
|
947
|
+
# resp.scraper.status.status_code #=> String, one of "CREATING", "ACTIVE", "DELETING", "CREATION_FAILED", "DELETION_FAILED"
|
948
|
+
# resp.scraper.created_at #=> Time
|
949
|
+
# resp.scraper.last_modified_at #=> Time
|
950
|
+
# resp.scraper.tags #=> Hash
|
951
|
+
# resp.scraper.tags["TagKey"] #=> String
|
952
|
+
# resp.scraper.status_reason #=> String
|
953
|
+
# resp.scraper.scrape_configuration.configuration_blob #=> String
|
954
|
+
# resp.scraper.source.eks_configuration.cluster_arn #=> String
|
955
|
+
# resp.scraper.source.eks_configuration.security_group_ids #=> Array
|
956
|
+
# resp.scraper.source.eks_configuration.security_group_ids[0] #=> String
|
957
|
+
# resp.scraper.source.eks_configuration.subnet_ids #=> Array
|
958
|
+
# resp.scraper.source.eks_configuration.subnet_ids[0] #=> String
|
959
|
+
# resp.scraper.destination.amp_configuration.workspace_arn #=> String
|
960
|
+
#
|
961
|
+
#
|
962
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
963
|
+
#
|
964
|
+
# * scraper_active
|
965
|
+
# * scraper_deleted
|
966
|
+
#
|
967
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeScraper AWS API Documentation
|
968
|
+
#
|
969
|
+
# @overload describe_scraper(params = {})
|
970
|
+
# @param [Hash] params ({})
|
971
|
+
def describe_scraper(params = {}, options = {})
|
972
|
+
req = build_request(:describe_scraper, params)
|
973
|
+
req.send_request(options)
|
974
|
+
end
|
975
|
+
|
813
976
|
# Describes an existing AMP workspace.
|
814
977
|
#
|
815
978
|
# @option params [required, String] :workspace_id
|
@@ -851,6 +1014,25 @@ module Aws::PrometheusService
|
|
851
1014
|
req.send_request(options)
|
852
1015
|
end
|
853
1016
|
|
1017
|
+
# Gets a default configuration.
|
1018
|
+
#
|
1019
|
+
# @return [Types::GetDefaultScraperConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1020
|
+
#
|
1021
|
+
# * {Types::GetDefaultScraperConfigurationResponse#configuration #configuration} => String
|
1022
|
+
#
|
1023
|
+
# @example Response structure
|
1024
|
+
#
|
1025
|
+
# resp.configuration #=> String
|
1026
|
+
#
|
1027
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/GetDefaultScraperConfiguration AWS API Documentation
|
1028
|
+
#
|
1029
|
+
# @overload get_default_scraper_configuration(params = {})
|
1030
|
+
# @param [Hash] params ({})
|
1031
|
+
def get_default_scraper_configuration(params = {}, options = {})
|
1032
|
+
req = build_request(:get_default_scraper_configuration, params)
|
1033
|
+
req.send_request(options)
|
1034
|
+
end
|
1035
|
+
|
854
1036
|
# Lists rule groups namespaces.
|
855
1037
|
#
|
856
1038
|
# @option params [required, String] :workspace_id
|
@@ -906,6 +1088,68 @@ module Aws::PrometheusService
|
|
906
1088
|
req.send_request(options)
|
907
1089
|
end
|
908
1090
|
|
1091
|
+
# Lists all scrapers in a customer account, including scrapers being
|
1092
|
+
# created or deleted. You may provide filters to return a more specific
|
1093
|
+
# list of results.
|
1094
|
+
#
|
1095
|
+
# @option params [Hash<String,Array>] :filters
|
1096
|
+
# A list of scraper filters.
|
1097
|
+
#
|
1098
|
+
# @option params [String] :next_token
|
1099
|
+
# Pagination token to request the next page in a paginated list. This
|
1100
|
+
# token is obtained from the output of the previous ListScrapers
|
1101
|
+
# request.
|
1102
|
+
#
|
1103
|
+
# @option params [Integer] :max_results
|
1104
|
+
# Maximum results to return in response (default=100, maximum=1000).
|
1105
|
+
#
|
1106
|
+
# @return [Types::ListScrapersResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1107
|
+
#
|
1108
|
+
# * {Types::ListScrapersResponse#scrapers #scrapers} => Array<Types::ScraperSummary>
|
1109
|
+
# * {Types::ListScrapersResponse#next_token #next_token} => String
|
1110
|
+
#
|
1111
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1112
|
+
#
|
1113
|
+
# @example Request syntax with placeholder values
|
1114
|
+
#
|
1115
|
+
# resp = client.list_scrapers({
|
1116
|
+
# filters: {
|
1117
|
+
# "FilterKey" => ["FilterValue"],
|
1118
|
+
# },
|
1119
|
+
# next_token: "PaginationToken",
|
1120
|
+
# max_results: 1,
|
1121
|
+
# })
|
1122
|
+
#
|
1123
|
+
# @example Response structure
|
1124
|
+
#
|
1125
|
+
# resp.scrapers #=> Array
|
1126
|
+
# resp.scrapers[0].alias #=> String
|
1127
|
+
# resp.scrapers[0].scraper_id #=> String
|
1128
|
+
# resp.scrapers[0].arn #=> String
|
1129
|
+
# resp.scrapers[0].role_arn #=> String
|
1130
|
+
# resp.scrapers[0].status.status_code #=> String, one of "CREATING", "ACTIVE", "DELETING", "CREATION_FAILED", "DELETION_FAILED"
|
1131
|
+
# resp.scrapers[0].created_at #=> Time
|
1132
|
+
# resp.scrapers[0].last_modified_at #=> Time
|
1133
|
+
# resp.scrapers[0].tags #=> Hash
|
1134
|
+
# resp.scrapers[0].tags["TagKey"] #=> String
|
1135
|
+
# resp.scrapers[0].status_reason #=> String
|
1136
|
+
# resp.scrapers[0].source.eks_configuration.cluster_arn #=> String
|
1137
|
+
# resp.scrapers[0].source.eks_configuration.security_group_ids #=> Array
|
1138
|
+
# resp.scrapers[0].source.eks_configuration.security_group_ids[0] #=> String
|
1139
|
+
# resp.scrapers[0].source.eks_configuration.subnet_ids #=> Array
|
1140
|
+
# resp.scrapers[0].source.eks_configuration.subnet_ids[0] #=> String
|
1141
|
+
# resp.scrapers[0].destination.amp_configuration.workspace_arn #=> String
|
1142
|
+
# resp.next_token #=> String
|
1143
|
+
#
|
1144
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ListScrapers AWS API Documentation
|
1145
|
+
#
|
1146
|
+
# @overload list_scrapers(params = {})
|
1147
|
+
# @param [Hash] params ({})
|
1148
|
+
def list_scrapers(params = {}, options = {})
|
1149
|
+
req = build_request(:list_scrapers, params)
|
1150
|
+
req.send_request(options)
|
1151
|
+
end
|
1152
|
+
|
909
1153
|
# Lists the tags you have assigned to the resource.
|
910
1154
|
#
|
911
1155
|
# @option params [required, String] :resource_arn
|
@@ -1223,7 +1467,7 @@ module Aws::PrometheusService
|
|
1223
1467
|
params: params,
|
1224
1468
|
config: config)
|
1225
1469
|
context[:gem_name] = 'aws-sdk-prometheusservice'
|
1226
|
-
context[:gem_version] = '1.
|
1470
|
+
context[:gem_version] = '1.26.0'
|
1227
1471
|
Seahorse::Client::Request.new(handlers, context)
|
1228
1472
|
end
|
1229
1473
|
|
@@ -1291,6 +1535,8 @@ module Aws::PrometheusService
|
|
1291
1535
|
#
|
1292
1536
|
# | waiter_name | params | :delay | :max_attempts |
|
1293
1537
|
# | ----------------- | --------------------------- | -------- | ------------- |
|
1538
|
+
# | scraper_active | {Client#describe_scraper} | 2 | 60 |
|
1539
|
+
# | scraper_deleted | {Client#describe_scraper} | 2 | 60 |
|
1294
1540
|
# | workspace_active | {Client#describe_workspace} | 2 | 60 |
|
1295
1541
|
# | workspace_deleted | {Client#describe_workspace} | 2 | 60 |
|
1296
1542
|
#
|
@@ -1343,6 +1589,8 @@ module Aws::PrometheusService
|
|
1343
1589
|
|
1344
1590
|
def waiters
|
1345
1591
|
{
|
1592
|
+
scraper_active: Waiters::ScraperActive,
|
1593
|
+
scraper_deleted: Waiters::ScraperDeleted,
|
1346
1594
|
workspace_active: Waiters::WorkspaceActive,
|
1347
1595
|
workspace_deleted: Waiters::WorkspaceDeleted
|
1348
1596
|
}
|