Response is a JSON-encoded array of hashes, one hash per Custom Metrics tag.
In the example above: three tags are returned by the Index command; “Win2008r2”, “netclr” and “aspnet”.
Note that each tag hash contains a single TAG_ID (“id”), and an array of objects, one or more for each object with the tag of reference.
Show
Show in-depth information about a single custom metric tag.
Required Parameters:
TAG_ID as part of the path.
CURL Command, and variations:
CURL Response:
Response is JSON with an array of hashes containing details of all custom objects associated with the specified tag.
Continuing with the Index example, here we pass the tag “Win2008r2”:
Create / Update
Add a new tag to one or more defined custom objects.
Required params:
a tag Tags may contain a-z, A-Z, 0-9, - and _
one or more custom object idv to which the tag will be applied. idv for an object is the identifier for a mertic object (can be found from UI).
if specifying more than one idv, use a comma-separated list
In the following example, a tag named “ElasticBeanstalk” will be applied to one existing custom object, with idv of AMAZONA-TS5KSQ6.
Note: the format of the Custom Object Create Tag API call is somewhat different than the Create Tag calls for System and Probe.
The tag is specified ‘tag=TAG_ID’, and the custom object ids are specified at ‘ids=CUSTOMOBJECT_ID1,CUSTOMOBJECT_ID2’
CURL Command, and variations:
Response is Status 200, empty JSON:
Delete
Delete a tag from one custom object.
Required params:
TAG_ID as part of the path
CUSTOMOBJECT_ID
the Id of the custom object from which the tag will be removed
Note: the format of the Custom Object Remove Tag API call is somewhat different than the Remove Tag calls for System and Probe.
The TAG_ID is specified as part of the path; the custom object ids are specified as ‘ids=[CUSTOMOBJECT_ID1,CUSTOMOBJECT_ID2]’
CURL Command, and variations:
CURL Response:
Response is Status 200, empty JSON:
In the following example, the tag ‘ElasticBeanstalk’ will be removed from the custom object AMAZONA-TS5KSQ6, (see the Show example).