Cloudwatch Synthetics supports creating canaries based on Java runtimes.
One can run the complete Java code as a single unit as part of a canary by providing the entry point.
Synthetics also provides library function to modularize the workflow running as part of the canary and run them as steps, with each step having their own metrics and a report specific to the step.
The interfaces in this package are intened to help build the Java projects by providing the required types to use the library functions.
An example usage of the library function looks like the following:
The handler that will be used while creating the canary being org.example.monitoring.MonitoringApp::executeAllSteps
Cloudwatch Synthetics Java SDK
Cloudwatch Synthetics supports creating canaries based on Java runtimes.
One can run the complete Java code as a single unit as part of a canary by providing the entry point.
Synthetics also provides library function to modularize the workflow running as part of the canary and run them as steps, with each step having their own metrics and a report specific to the step.
The interfaces in this package are intened to help build the Java projects by providing the required types to use the library functions.
An example usage of the library function looks like the following: The handler that will be used while creating the canary being
org.example.monitoring.MonitoringApp::executeAllStepsBuilding
Once you check out the code from GitHub, you can build it using Gradle.
Using the interfaces in your codebase
Once built,
aws-cloudwatch-synthetics-sdk-java.jaris created in thebuild/libsfolder.The same can be used in a Gradle project by specifying it in the
dependenciessection by adding.Security
See CONTRIBUTING for more information.
License
This project is licensed under the Apache-2.0 License.