This repository contains ASP.NET library which allows you to log activities to Serverless360 Business Activity Monitoring Solution.
Serverless360 is one platform to manage and monitor Azure Serverless components related to enterprise integration.
Serverless360 BAM can be used for functional end to end business activity tracking and monitoring product for Azure integration scenarios involving Azure Functions, API's and Azure Logic Apps. With Serverless360 BAM get full visibility of your end to end business process flow across all your components from a single portal.
Currently with services like Logic Apps we provide a custom connector which you can deploy in your subscription if you want to track activities. For other services you can use our Azure Functions to track activities. But since it is hard for every customer to implement their own logic for communicating our APIs we think this library can reduce that effort vastly.
root\
Kovai.Serverless360.Bam.sln - Main Solution
Kovai.Serverless360.Bam\
Kovai.Serverless360.Bam.csproj - Library Project
Kovai.Serverless360.Bam.Tests\
Kovai.Serverless360.Bam.Tests.csproj - Test Project
Kovai.Serverless360.Sample\
Kovai.Serverless360.Sample.csproj - Sample Application
In your .NET application install this package
Install-Package Kovai.Serverless360.Bam -Version 1.0.1
Get your Auth Key from Serverless360 portal
Once you have package and the key.
Use the following code to start an activity
var receiveResponse = _service.StartActivity(new StartActivityRequest
{
BusinessProcess = _businessProcess,
BusinessTransaction = businessTransaction,
CurrentStage = "Receive",
PreviousStage = ".",
IsArchiveEnabled = true,
MessageBody = "{\"some\":1}",
MessageHeader = "{\"some\":1}",
})
To update an activity
_service.UpdateActivity(new UpdateActivityRequest()
{
BusinessProcess = _businessProcess,
BusinessTransaction = businessTransaction,
CurrentStage = "Receive",
MainActivityId = receiveResponse.MainActivityId,
StageActivityId = receiveResponse.StageActivityId,
Status = StageStatus.Success,
MessageBody = "{\"some\":1}",
MessageHeader = "{\"some\":1}",
});