Class PagerDutyAction

  • All Implemented Interfaces:
    com.floragunn.signals.watch.action.handlers.AutoResolveActionHandler, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

    public class PagerDutyAction
    extends com.floragunn.signals.watch.action.handlers.ActionHandler
    implements com.floragunn.signals.watch.action.handlers.AutoResolveActionHandler
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  PagerDutyAction.Factory  
      • Nested classes/interfaces inherited from class com.floragunn.signals.watch.action.handlers.ActionHandler

        com.floragunn.signals.watch.action.handlers.ActionHandler.FactoryRegistry
      • Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent

        org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String TYPE  
      • Fields inherited from class com.floragunn.signals.watch.action.handlers.ActionHandler

        factoryRegistry
      • Fields inherited from interface org.elasticsearch.xcontent.ToXContent

        EMPTY_PARAMS
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.floragunn.signals.watch.action.handlers.ActionExecutionResult execute​(com.floragunn.signals.execution.WatchExecutionContext ctx)  
      com.floragunn.signals.watch.action.handlers.ActionHandler getResolveActionHandler()  
      String getType()  
      boolean isAutoResolveEnabled()  
      org.elasticsearch.xcontent.XContentBuilder toXContent​(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)  
      • Methods inherited from class com.floragunn.signals.watch.action.handlers.ActionHandler

        create, create, parseJson, toJson
      • Methods inherited from class com.floragunn.signals.watch.common.WatchElement

        getChildByNameAndType, getChildByNameAndType, getChildren, getName, render, render
      • Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject

        isFragment
    • Method Detail

      • toXContent

        public org.elasticsearch.xcontent.XContentBuilder toXContent​(org.elasticsearch.xcontent.XContentBuilder builder,
                                                                     org.elasticsearch.xcontent.ToXContent.Params params)
                                                              throws IOException
        Specified by:
        toXContent in interface org.elasticsearch.xcontent.ToXContent
        Throws:
        IOException
      • execute

        public com.floragunn.signals.watch.action.handlers.ActionExecutionResult execute​(com.floragunn.signals.execution.WatchExecutionContext ctx)
                                                                                  throws com.floragunn.signals.execution.ActionExecutionException
        Specified by:
        execute in class com.floragunn.signals.watch.action.handlers.ActionHandler
        Throws:
        com.floragunn.signals.execution.ActionExecutionException
      • getType

        public String getType()
        Specified by:
        getType in class com.floragunn.signals.watch.action.handlers.ActionHandler
      • isAutoResolveEnabled

        public boolean isAutoResolveEnabled()
        Specified by:
        isAutoResolveEnabled in interface com.floragunn.signals.watch.action.handlers.AutoResolveActionHandler
      • getResolveActionHandler

        public com.floragunn.signals.watch.action.handlers.ActionHandler getResolveActionHandler()
        Specified by:
        getResolveActionHandler in interface com.floragunn.signals.watch.action.handlers.AutoResolveActionHandler