Skip to content

Commit 4173f91

Browse files
author
AWS
committed
Amazon Prometheus Service Update: Add Vended Logs APIs for Amazon Prometheus Managed Collector
1 parent 4e2c2dc commit 4173f91

File tree

2 files changed

+240
-7
lines changed

2 files changed

+240
-7
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Prometheus Service",
4+
"contributor": "",
5+
"description": "Add Vended Logs APIs for Amazon Prometheus Managed Collector"
6+
}

services/amp/src/main/resources/codegen-resources/service-2.json

Lines changed: 234 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,24 @@
245245
"documentation":"<p>The <code>DeleteScraper</code> operation deletes one scraper, and stops any metrics collection that the scraper performs.</p>",
246246
"idempotent":true
247247
},
248+
"DeleteScraperLoggingConfiguration":{
249+
"name":"DeleteScraperLoggingConfiguration",
250+
"http":{
251+
"method":"DELETE",
252+
"requestUri":"/scrapers/{scraperId}/logging-configuration",
253+
"responseCode":202
254+
},
255+
"input":{"shape":"DeleteScraperLoggingConfigurationRequest"},
256+
"errors":[
257+
{"shape":"ConflictException"},
258+
{"shape":"ValidationException"},
259+
{"shape":"ResourceNotFoundException"},
260+
{"shape":"AccessDeniedException"},
261+
{"shape":"InternalServerException"}
262+
],
263+
"documentation":"<p>Deletes the logging configuration for a Amazon Managed Service for Prometheus scraper.</p>",
264+
"idempotent":true
265+
},
248266
"DeleteWorkspace":{
249267
"name":"DeleteWorkspace",
250268
"http":{
@@ -370,6 +388,23 @@
370388
],
371389
"documentation":"<p>The <code>DescribeScraper</code> operation displays information about an existing scraper.</p>"
372390
},
391+
"DescribeScraperLoggingConfiguration":{
392+
"name":"DescribeScraperLoggingConfiguration",
393+
"http":{
394+
"method":"GET",
395+
"requestUri":"/scrapers/{scraperId}/logging-configuration",
396+
"responseCode":200
397+
},
398+
"input":{"shape":"DescribeScraperLoggingConfigurationRequest"},
399+
"output":{"shape":"DescribeScraperLoggingConfigurationResponse"},
400+
"errors":[
401+
{"shape":"ValidationException"},
402+
{"shape":"ResourceNotFoundException"},
403+
{"shape":"AccessDeniedException"},
404+
{"shape":"InternalServerException"}
405+
],
406+
"documentation":"<p>Describes the logging configuration for a Amazon Managed Service for Prometheus scraper.</p>"
407+
},
373408
"DescribeWorkspace":{
374409
"name":"DescribeWorkspace",
375410
"http":{
@@ -650,6 +685,25 @@
650685
"documentation":"<p>Updates an existing scraper.</p> <p>You can't use this function to update the source from which the scraper is collecting metrics. To change the source, delete the scraper and create a new one.</p>",
651686
"idempotent":true
652687
},
688+
"UpdateScraperLoggingConfiguration":{
689+
"name":"UpdateScraperLoggingConfiguration",
690+
"http":{
691+
"method":"PUT",
692+
"requestUri":"/scrapers/{scraperId}/logging-configuration",
693+
"responseCode":202
694+
},
695+
"input":{"shape":"UpdateScraperLoggingConfigurationRequest"},
696+
"output":{"shape":"UpdateScraperLoggingConfigurationResponse"},
697+
"errors":[
698+
{"shape":"ConflictException"},
699+
{"shape":"ValidationException"},
700+
{"shape":"ResourceNotFoundException"},
701+
{"shape":"AccessDeniedException"},
702+
{"shape":"InternalServerException"}
703+
],
704+
"documentation":"<p>Updates the logging configuration for a Amazon Managed Service for Prometheus scraper.</p>",
705+
"idempotent":true
706+
},
653707
"UpdateWorkspaceAlias":{
654708
"name":"UpdateWorkspaceAlias",
655709
"http":{
@@ -796,6 +850,16 @@
796850
"documentation":"<p>The ARN of an EKS cluster.</p>",
797851
"pattern":"arn:aws[-a-z]*:eks:[-a-z0-9]+:[0-9]{12}:cluster/.+"
798852
},
853+
"ComponentConfig":{
854+
"type":"structure",
855+
"members":{
856+
"options":{
857+
"shape":"StringMap",
858+
"documentation":"<p>Configuration options for the scraper component.</p>"
859+
}
860+
},
861+
"documentation":"<p>Configuration settings for a scraper component.</p>"
862+
},
799863
"ConflictException":{
800864
"type":"structure",
801865
"required":[
@@ -1225,6 +1289,25 @@
12251289
},
12261290
"documentation":"<p>Represents the input of a <code>DeleteRuleGroupsNamespace</code> operation.</p>"
12271291
},
1292+
"DeleteScraperLoggingConfigurationRequest":{
1293+
"type":"structure",
1294+
"required":["scraperId"],
1295+
"members":{
1296+
"scraperId":{
1297+
"shape":"ScraperId",
1298+
"documentation":"<p>The ID of the scraper whose logging configuration will be deleted.</p>",
1299+
"location":"uri",
1300+
"locationName":"scraperId"
1301+
},
1302+
"clientToken":{
1303+
"shape":"IdempotencyToken",
1304+
"documentation":"<p>A unique, case-sensitive identifier that you provide to ensure the request is processed exactly once.</p>",
1305+
"idempotencyToken":true,
1306+
"location":"querystring",
1307+
"locationName":"clientToken"
1308+
}
1309+
}
1310+
},
12281311
"DeleteScraperRequest":{
12291312
"type":"structure",
12301313
"required":["scraperId"],
@@ -1420,6 +1503,50 @@
14201503
},
14211504
"documentation":"<p>Represents the output of a <code>DescribeRuleGroupsNamespace</code> operation.</p>"
14221505
},
1506+
"DescribeScraperLoggingConfigurationRequest":{
1507+
"type":"structure",
1508+
"required":["scraperId"],
1509+
"members":{
1510+
"scraperId":{
1511+
"shape":"ScraperId",
1512+
"documentation":"<p>The ID of the scraper whose logging configuration will be described.</p>",
1513+
"location":"uri",
1514+
"locationName":"scraperId"
1515+
}
1516+
}
1517+
},
1518+
"DescribeScraperLoggingConfigurationResponse":{
1519+
"type":"structure",
1520+
"required":[
1521+
"status",
1522+
"scraperId",
1523+
"loggingDestination",
1524+
"scraperComponents",
1525+
"modifiedAt"
1526+
],
1527+
"members":{
1528+
"status":{
1529+
"shape":"ScraperLoggingConfigurationStatus",
1530+
"documentation":"<p>The status of the scraper logging configuration.</p>"
1531+
},
1532+
"scraperId":{
1533+
"shape":"ScraperId",
1534+
"documentation":"<p>The ID of the scraper.</p>"
1535+
},
1536+
"loggingDestination":{
1537+
"shape":"ScraperLoggingDestination",
1538+
"documentation":"<p>The destination where scraper logs are sent.</p>"
1539+
},
1540+
"scraperComponents":{
1541+
"shape":"ScraperComponents",
1542+
"documentation":"<p>The list of scraper components configured for logging.</p>"
1543+
},
1544+
"modifiedAt":{
1545+
"shape":"Timestamp",
1546+
"documentation":"<p>The date and time when the logging configuration was last modified.</p>"
1547+
}
1548+
}
1549+
},
14231550
"DescribeScraperRequest":{
14241551
"type":"structure",
14251552
"required":["scraperId"],
@@ -1544,8 +1671,7 @@
15441671
},
15451672
"GetDefaultScraperConfigurationRequest":{
15461673
"type":"structure",
1547-
"members":{
1548-
},
1674+
"members":{},
15491675
"documentation":"<p>Represents the input of a <code>GetDefaultScraperConfiguration</code> operation.</p>"
15501676
},
15511677
"GetDefaultScraperConfigurationResponse":{
@@ -2221,7 +2347,7 @@
22212347
"RuleGroupsNamespaceName":{
22222348
"type":"string",
22232349
"documentation":"<p>The name of the namespace that the rule group belong to.</p>",
2224-
"max":64,
2350+
"max":128,
22252351
"min":1,
22262352
"pattern":".*[0-9A-Za-z][-.0-9A-Z_a-z]*.*"
22272353
},
@@ -2316,6 +2442,34 @@
23162442
"type":"string",
23172443
"documentation":"<p>An ARN identifying a scrape configuration.</p>"
23182444
},
2445+
"ScraperComponent":{
2446+
"type":"structure",
2447+
"required":["type"],
2448+
"members":{
2449+
"type":{
2450+
"shape":"ScraperComponentType",
2451+
"documentation":"<p>The type of the scraper component.</p>"
2452+
},
2453+
"config":{
2454+
"shape":"ComponentConfig",
2455+
"documentation":"<p>The configuration settings for the scraper component.</p>"
2456+
}
2457+
},
2458+
"documentation":"<p>A component of a Amazon Managed Service for Prometheus scraper that can be configured for logging.</p>"
2459+
},
2460+
"ScraperComponentType":{
2461+
"type":"string",
2462+
"enum":[
2463+
"SERVICE_DISCOVERY",
2464+
"COLLECTOR",
2465+
"EXPORTER"
2466+
]
2467+
},
2468+
"ScraperComponents":{
2469+
"type":"list",
2470+
"member":{"shape":"ScraperComponent"},
2471+
"min":1
2472+
},
23192473
"ScraperDescription":{
23202474
"type":"structure",
23212475
"required":[
@@ -2406,6 +2560,43 @@
24062560
"min":1,
24072561
"pattern":"[0-9A-Za-z][-.0-9A-Z_a-z]*"
24082562
},
2563+
"ScraperLoggingConfigurationStatus":{
2564+
"type":"structure",
2565+
"required":["statusCode"],
2566+
"members":{
2567+
"statusCode":{
2568+
"shape":"ScraperLoggingConfigurationStatusCode",
2569+
"documentation":"<p>The status code of the scraper logging configuration.</p>"
2570+
},
2571+
"statusReason":{
2572+
"shape":"String",
2573+
"documentation":"<p>The reason for the current status of the scraper logging configuration.</p>"
2574+
}
2575+
},
2576+
"documentation":"<p>The status of a scraper logging configuration.</p>"
2577+
},
2578+
"ScraperLoggingConfigurationStatusCode":{
2579+
"type":"string",
2580+
"enum":[
2581+
"CREATING",
2582+
"ACTIVE",
2583+
"UPDATING",
2584+
"DELETING",
2585+
"CREATION_FAILED",
2586+
"UPDATE_FAILED"
2587+
]
2588+
},
2589+
"ScraperLoggingDestination":{
2590+
"type":"structure",
2591+
"members":{
2592+
"cloudWatchLogs":{
2593+
"shape":"CloudWatchLogDestination",
2594+
"documentation":"<p>The CloudWatch Logs configuration for the scraper logging destination.</p>"
2595+
}
2596+
},
2597+
"documentation":"<p>The destination where scraper logs are sent.</p>",
2598+
"union":true
2599+
},
24092600
"ScraperStatus":{
24102601
"type":"structure",
24112602
"required":["statusCode"],
@@ -2569,6 +2760,11 @@
25692760
"min":1
25702761
},
25712762
"String":{"type":"string"},
2763+
"StringMap":{
2764+
"type":"map",
2765+
"key":{"shape":"String"},
2766+
"value":{"shape":"String"}
2767+
},
25722768
"SubnetId":{
25732769
"type":"string",
25742770
"documentation":"<p>ID of a VPC subnet.</p>",
@@ -2628,8 +2824,7 @@
26282824
},
26292825
"TagResourceResponse":{
26302826
"type":"structure",
2631-
"members":{
2632-
}
2827+
"members":{}
26332828
},
26342829
"TagValue":{
26352830
"type":"string",
@@ -2692,8 +2887,7 @@
26922887
},
26932888
"UntagResourceResponse":{
26942889
"type":"structure",
2695-
"members":{
2696-
}
2890+
"members":{}
26972891
},
26982892
"UpdateLoggingConfigurationRequest":{
26992893
"type":"structure",
@@ -2765,6 +2959,39 @@
27652959
}
27662960
}
27672961
},
2962+
"UpdateScraperLoggingConfigurationRequest":{
2963+
"type":"structure",
2964+
"required":[
2965+
"scraperId",
2966+
"loggingDestination"
2967+
],
2968+
"members":{
2969+
"scraperId":{
2970+
"shape":"ScraperId",
2971+
"documentation":"<p>The ID of the scraper whose logging configuration will be updated.</p>",
2972+
"location":"uri",
2973+
"locationName":"scraperId"
2974+
},
2975+
"loggingDestination":{
2976+
"shape":"ScraperLoggingDestination",
2977+
"documentation":"<p>The destination where scraper logs will be sent.</p>"
2978+
},
2979+
"scraperComponents":{
2980+
"shape":"ScraperComponents",
2981+
"documentation":"<p>The list of scraper components to configure for logging.</p>"
2982+
}
2983+
}
2984+
},
2985+
"UpdateScraperLoggingConfigurationResponse":{
2986+
"type":"structure",
2987+
"required":["status"],
2988+
"members":{
2989+
"status":{
2990+
"shape":"ScraperLoggingConfigurationStatus",
2991+
"documentation":"<p>The status of the updated scraper logging configuration.</p>"
2992+
}
2993+
}
2994+
},
27682995
"UpdateScraperRequest":{
27692996
"type":"structure",
27702997
"required":["scraperId"],

0 commit comments

Comments
 (0)