Class: AWS.Synthetics
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.Synthetics
- Identifier:
- synthetics
- API Version:
- 2017-10-11
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
You can use Amazon CloudWatch Synthetics to continually monitor your services. You can create and manage canaries, which are modular, lightweight scripts that monitor your endpoints and APIs from the outside-in. You can set up your canaries to run 24 hours a day, once per minute. The canaries help you check the availability and latency of your web services and troubleshoot anomalies by investigating load time data, screenshots of the UI, logs, and metrics. The canaries seamlessly integrate with CloudWatch ServiceLens to help you trace the causes of impacted nodes in your applications. For more information, see Using ServiceLens to Monitor the Health of Your Applications in the Amazon CloudWatch User Guide.
Before you create and manage canaries, be aware of the security considerations. For more information, see Security Considerations for Synthetics Canaries.
Sending a Request Using Synthetics
var synthetics = new AWS.Synthetics();
synthetics.associateResource(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the Synthetics object uses this specific API, you can
construct the object by passing the apiVersion option to the constructor:
var synthetics = new AWS.Synthetics({apiVersion: '2017-10-11'});
You can also set the API version globally in AWS.config.apiVersions using
the synthetics service identifier:
AWS.config.apiVersions = {
synthetics: '2017-10-11',
// other service API versions
};
var synthetics = new AWS.Synthetics();
Constructor Summary collapse
-
new AWS.Synthetics(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
associateResource(params = {}, callback) ⇒ AWS.Request
Associates a canary with a group.
-
createCanary(params = {}, callback) ⇒ AWS.Request
Creates a canary.
-
createGroup(params = {}, callback) ⇒ AWS.Request
Creates a group which you can use to associate canaries with each other, including cross-Region canaries.
-
deleteCanary(params = {}, callback) ⇒ AWS.Request
Permanently deletes the specified canary.
If you specify
DeleteLambdatotrue, CloudWatch Synthetics also deletes the Lambda functions and layers that are used by the canary.Other resources used and created by the canary are not automatically deleted.
-
deleteGroup(params = {}, callback) ⇒ AWS.Request
Deletes a group.
-
describeCanaries(params = {}, callback) ⇒ AWS.Request
This operation returns a list of the canaries in your account, along with full details about each canary.
This operation supports resource-level authorization using an IAM policy and the
Namesparameter. -
describeCanariesLastRun(params = {}, callback) ⇒ AWS.Request
Use this operation to see information from the most recent run of each canary that you have created.
This operation supports resource-level authorization using an IAM policy and the
Namesparameter. -
describeRuntimeVersions(params = {}, callback) ⇒ AWS.Request
Returns a list of Synthetics canary runtime versions.
-
disassociateResource(params = {}, callback) ⇒ AWS.Request
Removes a canary from a group.
-
getCanary(params = {}, callback) ⇒ AWS.Request
Retrieves complete information about one canary.
-
getCanaryRuns(params = {}, callback) ⇒ AWS.Request
Retrieves a list of runs for a specified canary.
.
-
getGroup(params = {}, callback) ⇒ AWS.Request
Returns information about one group.
-
listAssociatedGroups(params = {}, callback) ⇒ AWS.Request
Returns a list of the groups that the specified canary is associated with.
-
listGroupResources(params = {}, callback) ⇒ AWS.Request
This operation returns a list of the ARNs of the canaries that are associated with the specified group.
.
-
listGroups(params = {}, callback) ⇒ AWS.Request
Returns a list of all groups in the account, displaying their names, unique IDs, and ARNs.
-
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Displays the tags associated with a canary or group.
.
-
startCanary(params = {}, callback) ⇒ AWS.Request
Use this operation to run a canary that has already been created.
-
stopCanary(params = {}, callback) ⇒ AWS.Request
Stops the canary to prevent all future runs.
-
tagResource(params = {}, callback) ⇒ AWS.Request
Assigns one or more tags (key-value pairs) to the specified canary or group.
-
untagResource(params = {}, callback) ⇒ AWS.Request
Removes one or more tags from the specified resource.
.
-
updateCanary(params = {}, callback) ⇒ AWS.Request
Updates the configuration of a canary that has already been created.
You can't use this operation to update the tags of an existing canary.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.Synthetics(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.