azure-migrate-discovery-extension-events

module
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2023 License: MIT

README

To Consume the Go module

  1. Use go get to fetch the module with latest verison go get github.com/Azure/azure-migrate-discovery-extension-events.
  2. For module with specific commit/version use go get go get github.com/Azure/azure-migrate-discovery-extension-events@<commit-id>.

*Usage Import in your respective file discoveryextensionevents "github.com/Azure/azure-migrate-discovery-extension-events/go"

In your reconciler azureLogger := discoveryextensionevents.AzureLogger(ctx, cr.GetAnnotations())

For error event logging tt := discoveryextensionevents.NullReferenceErrorEvent("adavv") azureLogger.LogErrorEvent(tt)

For telemetry event logging ee := discoveryextensionevents.EntityDiscoveredTelemetryEvent("mybersion", "applicationname", "adad", "adad", "ad") azureLogger.LogTelemetryEvent(ee)

For metric event logging

To add new Events

  1. Add new events in the Telemetry.xml, Error.xml or Metrics.xml in AzureMigrate-ClusterExtensionCommon repo (https://msazure.visualstudio.com/One/_git/AzureMigrate-ClusterExtensionCommon?path=/src/DiscoveryClusterExtension/EventXml).

  2. Kick off official build after PR merge.

  3. Get the artifiact of name Gomodule from drop_build_main\codegen and download it in your local machine.

  4. Raise the PR in this Git Repo.

  5. Consume the Go module in respective discovery cluster extension.

North Star Goal

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL