Interface DialogFlowDAO
-
- All Implemented Interfaces:
public interface DialogFlowDAO
-
-
Method Summary
Modifier and Type Method Description abstract UnitinitFlowStatCrawl()Init stat craw - used only in admin by default. abstract UnitsaveFlow(BotDefinition bot, DialogFlowDefinition flow)abstract ApplicationDialogFlowDataloadApplicationData(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to, String intent)abstract Map<String, List<DialogFlowAggregateData>>countMessagesByDate(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to)abstract Map<String, List<DialogFlowAggregateData>>countUsersByDate(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to)Counts the number of users per day over a given period of time. abstract Map<String, List<DialogFlowAggregateData>>countMessagesByDateAndConnectorType(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to)Counts the number of messages per day and connector type over a given period of time. abstract Map<String, List<DialogFlowAggregateData>>countMessagesByDateAndConfiguration(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to)Counts the number of messages per day and bot configuration over a given period of time. abstract Map<DayOfWeek, Integer>countMessagesByDayOfWeek(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to)Counts the total number of messages sent on each day-of-week. abstract Map<Integer, Integer>countMessagesByHour(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to)Counts the total number of messages sent on each hour of the day over a given period of time. abstract Map<String, List<DialogFlowAggregateData>>countMessagesByDateAndIntent(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to)Counts the number of messages per day and intent over a given period of time. abstract Map<String, Integer>countMessagesByIntent(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to)Counts the total number of messages sent for each intent over a given period of time. abstract Map<String, Integer>countMessagesByStory(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to)Counts the total number of messages sent for each story over a given period of time. abstract Map<String, List<DialogFlowAggregateData>>countMessagesByDateAndStory(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to)Counts the number of messages per day and story over a given period of time. abstract Map<String, Integer>countMessagesByStoryCategory(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to)Counts the total number of messages sent for each story category over a given period of time. abstract Map<String, Integer>countMessagesByStoryType(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to)Counts the total number of messages sent for each story category over a given period of time. abstract Map<String, Integer>countMessagesByStoryLocale(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to)Counts the total number of messages sent for each story locale over a given period of time. abstract Map<String, Integer>countMessagesByActionType(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to)Counts the total number of messages sent for each action type over a given period of time. -
-
Method Detail
-
initFlowStatCrawl
abstract Unit initFlowStatCrawl()
Init stat craw - used only in admin by default.
-
saveFlow
abstract Unit saveFlow(BotDefinition bot, DialogFlowDefinition flow)
-
loadApplicationData
abstract ApplicationDialogFlowData loadApplicationData(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to, String intent)
-
countMessagesByDate
abstract Map<String, List<DialogFlowAggregateData>> countMessagesByDate(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to)
-
countUsersByDate
abstract Map<String, List<DialogFlowAggregateData>> countUsersByDate(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to)
Counts the number of users per day over a given period of time.
In the returned map, the keys represent dates using the "YYYY-MM-DD" format. Values are singleton lists containing the data point for that day.
-
countMessagesByDateAndConnectorType
abstract Map<String, List<DialogFlowAggregateData>> countMessagesByDateAndConnectorType(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to)
Counts the number of messages per day and connector type over a given period of time.
In the returned map, the keys represent dates using the "YYYY-MM-DD" format. Values are lists containing one data point for each represented connector type (web, messenger, etc.).
-
countMessagesByDateAndConfiguration
abstract Map<String, List<DialogFlowAggregateData>> countMessagesByDateAndConfiguration(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to)
Counts the number of messages per day and bot configuration over a given period of time.
In the returned map, the keys represent dates using the "YYYY-MM-DD" format. Values are lists containing one data point for each represented bot configuration.
-
countMessagesByDayOfWeek
abstract Map<DayOfWeek, Integer> countMessagesByDayOfWeek(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to)
Counts the total number of messages sent on each day-of-week.
-
countMessagesByHour
abstract Map<Integer, Integer> countMessagesByHour(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to)
Counts the total number of messages sent on each hour of the day over a given period of time.
-
countMessagesByDateAndIntent
abstract Map<String, List<DialogFlowAggregateData>> countMessagesByDateAndIntent(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to)
Counts the number of messages per day and intent over a given period of time.
In the returned map, the keys represent dates using the "YYYY-MM-DD" format. Values are lists containing one data point for each represented intent.
-
countMessagesByIntent
abstract Map<String, Integer> countMessagesByIntent(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to)
Counts the total number of messages sent for each intent over a given period of time.
-
countMessagesByStory
abstract Map<String, Integer> countMessagesByStory(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to)
Counts the total number of messages sent for each story over a given period of time.
-
countMessagesByDateAndStory
abstract Map<String, List<DialogFlowAggregateData>> countMessagesByDateAndStory(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to)
Counts the number of messages per day and story over a given period of time.
In the returned map, the keys represent dates using the "YYYY-MM-DD" format. Values are lists containing one data point for each represented intent.
-
countMessagesByStoryCategory
abstract Map<String, Integer> countMessagesByStoryCategory(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to)
Counts the total number of messages sent for each story category over a given period of time.
-
countMessagesByStoryType
abstract Map<String, Integer> countMessagesByStoryType(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to)
Counts the total number of messages sent for each story category over a given period of time.
-
countMessagesByStoryLocale
abstract Map<String, Integer> countMessagesByStoryLocale(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to)
Counts the total number of messages sent for each story locale over a given period of time.
-
countMessagesByActionType
abstract Map<String, Integer> countMessagesByActionType(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, ZonedDateTime from, ZonedDateTime to)
Counts the total number of messages sent for each action type over a given period of time.
-
-
-
-