Object IndicatorService

    • Constructor Detail

    • Method Detail

      • save

         final Unit save(String botId, Valid<SaveIndicatorRequest> request)

        Save an indicator

        Parameters:
        botId - the name of the application which the indicator is linked to
        request - the save request
      • update

         final Unit update(String botId, String indicatorName, Valid<UpdateIndicatorRequest> request)

        Update an indicator

        Parameters:
        botId - the name of the application which the indicator is linked to
        indicatorName - the name of indicator to update
        request - the update request
      • findByNameAndBotId

         final IndicatorResponse findByNameAndBotId(String indicatorName, String botId)

        Retrieve an indicator with a given name and application name

        Parameters:
        indicatorName - the expected indicator name
        botId - the name of the application which the indicator is linked to
      • findAllByBotId

         final List<IndicatorResponse> findAllByBotId(String botId)

        Retrieve all indicators with a given application name

        Parameters:
        botId - the name of the application which the indicator is linked to
      • deleteByNameAndApplicationName

         final Boolean deleteByNameAndApplicationName(String name, String applicationName)

        Delete an indicator

        Parameters:
        name - the indicator name to delete
        applicationName - the application name associated to the indicator