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, LocalDateTime from, LocalDateTime to, String intent)abstract Map<String, List<DialogFlowAggregateData>>countMessagesByDate(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, LocalDateTime from, LocalDateTime to)abstract Map<String, List<DialogFlowAggregateData>>countUsersByDate(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, LocalDateTime from, LocalDateTime 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, LocalDateTime from, LocalDateTime 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, LocalDateTime from, LocalDateTime 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, LocalDateTime from, LocalDateTime 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, LocalDateTime from, LocalDateTime 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, LocalDateTime from, LocalDateTime 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, LocalDateTime from, LocalDateTime 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, LocalDateTime from, LocalDateTime 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, LocalDateTime from, LocalDateTime 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, LocalDateTime from, LocalDateTime 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, LocalDateTime from, LocalDateTime 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, LocalDateTime from, LocalDateTime 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, LocalDateTime from, LocalDateTime 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, LocalDateTime from, LocalDateTime to, String intent)
-
countMessagesByDate
abstract Map<String, List<DialogFlowAggregateData>> countMessagesByDate(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, LocalDateTime from, LocalDateTime to)
-
countUsersByDate
abstract Map<String, List<DialogFlowAggregateData>> countUsersByDate(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, LocalDateTime from, LocalDateTime 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.
- Returns:
a Map of user counts indexed by days
-
countMessagesByDateAndConnectorType
abstract Map<String, List<DialogFlowAggregateData>> countMessagesByDateAndConnectorType(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, LocalDateTime from, LocalDateTime 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.).
- Returns:
a Map of message counts per connector type, indexed by days
-
countMessagesByDateAndConfiguration
abstract Map<String, List<DialogFlowAggregateData>> countMessagesByDateAndConfiguration(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, LocalDateTime from, LocalDateTime 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.
- Returns:
a Map of message counts per configuration, indexed by days
-
countMessagesByDayOfWeek
abstract Map<DayOfWeek, Integer> countMessagesByDayOfWeek(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, LocalDateTime from, LocalDateTime to)
Counts the total number of messages sent on each day-of-week.
- Returns:
a Map of message counts, indexed by day-of-week
-
countMessagesByHour
abstract Map<Integer, Integer> countMessagesByHour(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, LocalDateTime from, LocalDateTime to)
Counts the total number of messages sent on each hour of the day over a given period of time.
- Returns:
a Map of message counts, indexed by hour (from 0 to 23)
-
countMessagesByDateAndIntent
abstract Map<String, List<DialogFlowAggregateData>> countMessagesByDateAndIntent(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, LocalDateTime from, LocalDateTime 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.
- Returns:
a Map of message counts per intent, indexed by day
-
countMessagesByIntent
abstract Map<String, Integer> countMessagesByIntent(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, LocalDateTime from, LocalDateTime to)
Counts the total number of messages sent for each intent over a given period of time.
- Returns:
a Map of message counts, indexed by intent name
-
countMessagesByStory
abstract Map<String, Integer> countMessagesByStory(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, LocalDateTime from, LocalDateTime to)
Counts the total number of messages sent for each story over a given period of time.
- Returns:
a Map of message counts, indexed by story name
-
countMessagesByDateAndStory
abstract Map<String, List<DialogFlowAggregateData>> countMessagesByDateAndStory(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, LocalDateTime from, LocalDateTime 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.
- Returns:
a Map of message counts per intent, indexed by day
-
countMessagesByStoryCategory
abstract Map<String, Integer> countMessagesByStoryCategory(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, LocalDateTime from, LocalDateTime to)
Counts the total number of messages sent for each story category over a given period of time.
- Returns:
a Map of message counts, indexed by story category
-
countMessagesByStoryType
abstract Map<String, Integer> countMessagesByStoryType(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, LocalDateTime from, LocalDateTime to)
Counts the total number of messages sent for each story category over a given period of time.
- Returns:
a Map of message counts, indexed by story type
-
countMessagesByStoryLocale
abstract Map<String, Integer> countMessagesByStoryLocale(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, LocalDateTime from, LocalDateTime to)
Counts the total number of messages sent for each story locale over a given period of time.
- Returns:
a Map of message counts, indexed by story locale
-
countMessagesByActionType
abstract Map<String, Integer> countMessagesByActionType(String namespace, String botId, Set<Id<BotApplicationConfiguration>> applicationIds, LocalDateTime from, LocalDateTime to)
Counts the total number of messages sent for each action type over a given period of time.
- Returns:
a Map of message counts, indexed by action type
-
-
-
-