Skip to content

Commit a298a3f

Browse files
committed
rolled in review comments
1 parent ddb2111 commit a298a3f

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.doc_gen/metadata/cloudwatch-logs_metadata.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@ cloudwatch-logs_AssociateKmsKey:
1111
- CloudWatchLogs.dotnetv3.AssociateKmsKeyExample
1212
services:
1313
cloudwatch-logs: {AssociateKmsKey}
14+
cloudwatch-logs_GetLogEvents:
15+
languages:
16+
.Java:
17+
versions:
18+
- sdk_version: 2
19+
github: javav2/example_code/cloudwatch
20+
excerpts:
21+
- description:
22+
snippet_tags:
23+
- cloudwatch.java2.get_logs.main
24+
services:
25+
cloudwatch-logs: {GetLogEvents}
1426
cloudwatch-logs_CancelExportTask:
1527
languages:
1628
.NET:

javav2/example_code/cloudwatch/src/main/java/com/example/cloudwatch/CloudWatchLogQuery.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static void main(final String[] args) {
3030
final String usage = """
3131
3232
Usage:
33-
<logGroupName> <startTime> <endTime>
33+
<logGroupName>
3434
3535
Where:
3636
logGroupName - The name of the log group (for example, /aws/lambda/ChatAIHandler).
@@ -51,7 +51,7 @@ public static void main(final String[] args) {
5151
}
5252

5353
/**
54-
* Retrieves and prints the log events from the specified log group and the most recent log stream within that group.
54+
* Retrieves and prints log events from the most recent log stream in the specified log group
5555
*
5656
* @param logsClient the CloudWatchLogsClient used to interact with AWS CloudWatch Logs
5757
* @param logGroupName the name of the log group from which to retrieve the log events

0 commit comments

Comments
 (0)