Annotation Type SendsAnalytics


  • @Retention(RUNTIME)
    @Target(TYPE)
    public @interface SendsAnalytics
    An annotation indicating that this REST resource would is enabled to send analytics ( Sends RestEndpointAnalyticsEvent for every whitelisted (see below) method in this REST resource). Just having this analytics does not mean that the REST resource would send the analytics. In addition to this annotation, the REST paths also need to be whitelisted in "confluence_whitelist.json". Ex : Rest Resource can be reached using following paths ( The Http methods do not matter).

    
                 "/admin/user"
                 "/admin/user/{username}",
                 "/admin/user/{username}/disable"
     
    Ex: add these entries to the "path" section in confluence-whitelist.json
    
             "path": [
                 .......
                 "/admin/user"
                 "/admin/user/{username}",
                 "/admin/user/{username}/disable",
               ]