Interface MonitoringApi


  • public interface MonitoringApi
    Provides access to EC2 Monitoring Services via their REST API.

    • Method Detail

      • monitorInstancesInRegion

        @Named("MonitorInstances")
        @POST
        @Path("/")
        Map<String,​MonitoringState> monitorInstancesInRegion​(@Nullable
                                                                   String region,
                                                                   @FormParam("InstanceId.0")
                                                                   String instanceId,
                                                                   String... instanceIds)
        Enables monitoring for a running instance. For more information, refer to the Amazon CloudWatch Developer Guide.
        Parameters:
        region - Instances are tied to Availability Zones. However, the instance ID is tied to the Region.
        See Also:
        InstanceApi#runInstances, #unmonitorInstances,
      • unmonitorInstancesInRegion

        @Named("UnmonitorInstances")
        @POST
        @Path("/")
        Map<String,​MonitoringState> unmonitorInstancesInRegion​(@Nullable
                                                                     String region,
                                                                     @FormParam("InstanceId.0")
                                                                     String instanceId,
                                                                     String... instanceIds)
        Disables monitoring for a running instance. For more information, refer to the Amazon CloudWatch Developer Guide.
        Parameters:
        region - Instances are tied to Availability Zones. However, the instance ID is tied to the Region.
        See Also:
        InstanceApi#runInstances, #monitorInstances,