-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding CLI examples for App signals #9176
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @khyathisri
Thank you for your command example submission! There were some formatting issues that need to be resolved before I can send for maintainer review.
Please fix all requested formatting issues, and be sure to fix your links in every file, and push your updates for a second review.
Thanks!
"Errors": [] | ||
} | ||
|
||
For more information, see `<https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Application-Monitoring-Sections.html>`__ in the *Amazon CloudWatch User Guide*. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For more information, see `<https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Application-Monitoring-Sections.html>`__ in the *Amazon CloudWatch User Guide*. | |
For more information, see `Application Signals <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Application-Monitoring-Sections.html>`__ in the *Amazon CloudWatch User Guide*. |
All your for more information links are missing the title portion of the formatting and are therefore display broken. Please fix the URLs in all your submitted files to the following format:
`This is the topic title <https://link.to.the/topic/page>`__
https://aws.github.io/aws-cli/docs_styleguide.html#for-more-information-link
--description "Description of your SLO" \ | ||
--sli-config file://sli-config.json | ||
|
||
The file ``sli-config`` is a JSON documnet in the current folder. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file ``sli-config`` is a JSON documnet in the current folder. | |
Contents of ``sli-config.json``:: |
The following ``delete-service-level-objective`` example deletes the specified service level objective. :: | ||
|
||
aws application-signals delete-service-level-objective \ | ||
--id "arn:aws:application-signals:us-east-1:123456789101:slo/SLOName" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--id "arn:aws:application-signals:us-east-1:123456789101:slo/SLOName" | |
--id "arn:aws:application-signals:us-east-1:123456789101:slo/SLOName" |
aws application-signals delete-service-level-objective \ | ||
--id "arn:aws:application-signals:us-east-1:123456789101:slo/SLOName" | ||
|
||
Output:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Output:: |
|
||
Output:: | ||
|
||
This command produces no output. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This command produces no output. | |
This command produces no output. |
|
||
Output:: | ||
|
||
This command produces no output. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This command produces no output. | |
This command produces no output. |
-—resource-arn "arn:aws:application-signals:us-east-1:123456789101:slo/SLOName" \ | ||
-—tags '{"Key":"test","Value":"value"}' | ||
|
||
Output:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Output:: |
|
||
Output:: | ||
|
||
This command produces no output. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This command produces no output. | |
This command produces no output. |
-—resource-arn "arn:aws:application-signals:us-east-1:123456789101:slo/SLOName" \ | ||
-—tag-keys "test" | ||
|
||
Output:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Output:: |
|
||
Output:: | ||
|
||
This command produces no output. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This command produces no output. | |
This command produces no output. |
6ec07c0
to
83a57ec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @elysahall,
I have made the suggested changes, kindly take a look and let me know if any other modifications are required.
Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a few more comments from the second pass.
@@ -0,0 +1,11 @@ | |||
**To enable this Amazon Web Services account to be able to use CloudWatch Application Signals** | |||
|
|||
The following ``start-discovery`` example enables this Amazon Web Services account to be able to use CloudWatch Application Signals by creating the AWSServiceRoleForCloudWatchApplicationSignals service-linked role. :: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you italicize the role name like it is on https://docs.aws.amazon.com/applicationsignals/latest/APIReference/API_StartDiscovery.html?
"Arn": "arn:aws:application-signals:us-east-1:123456789101:slo/test", | ||
"Name": "test", | ||
"CreatedTime": "2024-12-24T22:01:21.116000+05:30" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you fix the indentation here for the innermost Arn
/Name
/CreatedTime
?
|
||
The following ``list-tags-for-resource`` example displays the tags associated with a CloudWatch resource. :: | ||
|
||
aws application-signals list-services \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This command doesn't match the filename or line 3.
aws application-signals update-service-level-objective \ | ||
—-id "arn:aws:application-signals:us-east-1:123456789101:slo/SLOName" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checking my understanding - this isn't actually updating anything, just retaining current values, right?
If so, can we adjust to demonstrate updating one or more properties?
|
||
{ | ||
"Slo": { | ||
"Arn": "arn:aws:application-signals:us-east-1:123456789101:slo/SLOName", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix indentation throughout.
Issue #, if available:
Description of changes:
Adding CLI examples for Application signals
https://docs.aws.amazon.com/cli/latest/reference/application-signals/#cli-aws-application-signals
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.