Package ai.tock.bot.admin.service
Object IndicatorService
-
- All Implemented Interfaces:
public class IndicatorService
-
-
Field Summary
Fields Modifier and Type Field Description public final static IndicatorServiceINSTANCE
-
Method Summary
Modifier and Type Method Description final Unitsave(String botId, Valid<SaveIndicatorRequest> request)Save an indicator final Unitupdate(String botId, String indicatorName, Valid<UpdateIndicatorRequest> request)Update an indicator final IndicatorResponsefindByNameAndBotId(String indicatorName, String botId)Retrieve an indicator with a given name and application name final List<IndicatorResponse>findAllByBotId(String botId)Retrieve all indicators with a given application name final List<IndicatorResponse>findAll()Retrieve all indicators final BooleandeleteByNameAndApplicationName(String name, String applicationName)Delete an indicator -
-
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 torequest- 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 toindicatorName- the name of indicator to updaterequest- 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 namebotId- 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
-
findAll
final List<IndicatorResponse> findAll()
Retrieve all indicators
-
deleteByNameAndApplicationName
final Boolean deleteByNameAndApplicationName(String name, String applicationName)
Delete an indicator
- Parameters:
name- the indicator name to deleteapplicationName- the application name associated to the indicator
-
-
-
-