Skip to content

arunprabhu-kovai/serverless360-bam-lib

 
 

Repository files navigation

Serverless360 BAM for ASP.NET applications

This repository contains ASP.NET library which allows you to log activities to Serverless360 Business Activity Monitoring Solution.

Introduction

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.

Repository Structure

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

Prerequisites

In your .NET application install this package

Install-Package Kovai.Serverless360.Bam -Version 1.0.1

Get your Auth Key from Serverless360 portal

alt text

How to use

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}",
			});

About

Library to help log activities to Serverless360 BAM solution

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%