BlobsTranscriptStore Class

  • java.lang.Object
    • com.microsoft.bot.azure.blobs.BlobsTranscriptStore

Implements

public class BlobsTranscriptStore
implements TranscriptStore

The blobs transcript store stores transcripts in an Azure Blob container. Each activity is stored as json blob in structure of container/{channelId]/{conversationId}/{Timestamp.ticks}-{activity.id}.json.

Constructor Summary

Constructor Description
BlobsTranscriptStore(String dataConnectionString, String containerName)

Initializes a new instance of the BlobsTranscriptStore class.

Method Summary

Modifier and Type Method and Description
java.util.concurrent.CompletableFuture<java.lang.Void> deleteTranscript(String channelId, String conversationId)

Delete a specific conversation and all of it's activities.

java.util.concurrent.CompletableFuture<PagedResult<Activity>> getTranscriptActivities(String channelId, String conversationId, String continuationToken, OffsetDateTime startDate)

Get activities for a conversation (Aka the transcript).

java.util.concurrent.CompletableFuture<PagedResult<TranscriptInfo>> listTranscripts(String channelId, String continuationToken)

List conversations in the channelId.

java.util.concurrent.CompletableFuture<java.lang.Void> logActivity(Activity activity)

Log an activity to the transcript.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

BlobsTranscriptStore

public BlobsTranscriptStore(String dataConnectionString, String containerName)

Initializes a new instance of the BlobsTranscriptStore class.

Parameters:

dataConnectionString - Azure Storage connection string.
containerName - Name of the Blob container where entities will be stored.

Method Details

deleteTranscript

public CompletableFuture deleteTranscript(String channelId, String conversationId)

Delete a specific conversation and all of it's activities.

Parameters:

channelId - The ID of the channel the conversation is in.
conversationId - The ID of the conversation to delete.

Returns:

A CompletableFuture that represents the work queued to execute.

getTranscriptActivities

public CompletableFuture> getTranscriptActivities(String channelId, String conversationId, String continuationToken, OffsetDateTime startDate)

Get activities for a conversation (Aka the transcript).

Parameters:

channelId - The ID of the channel the conversation is in.
conversationId - The ID of the conversation.
continuationToken - The continuation token (if available).
startDate - A cutoff date. Activities older than this date are not included.

Returns:

PagedResult of activities.

listTranscripts

public CompletableFuture> listTranscripts(String channelId, String continuationToken)

List conversations in the channelId.

Parameters:

channelId - The ID of the channel.
continuationToken - The continuation token (if available).

Returns:

A CompletableFuture that represents the work queued to execute.

logActivity

public CompletableFuture logActivity(Activity activity)

Log an activity to the transcript.

Parameters:

activity - Activity being logged.

Returns:

A CompletableFuture that represents the work queued to execute.

Applies to