idutils

package
v0.0.0-...-e20b040 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateExternalID

func GenerateExternalID(schema, id string) string

GenerateExternalID generates the externalID for settings 2.0 objects based on the schema, and ID. The result of the function is pure. Max length for the external ID is 500

func GenerateUuidFromConfigId

func GenerateUuidFromConfigId(projectUniqueId string, configId string) string

GenerateUuidFromConfigId takes the unique project identifier within an environment, a config id and generates a valid UUID based on provided information

func GenerateUuidFromName

func GenerateUuidFromName(name string) string

GenerateUuidFromName generates a fixed UUID from a given configuration name. This is used when dealing with select Dynatrace APIs that do not/or no longer support unique name properties. As a convention between monaco and such APIs, both monaco and Dynatrace will generate the same name-based UUID using UUID v3 (MD5 hash based) with a "dynatrace.com" URL namespace UUID.

func IsMeId

func IsMeId(id string) bool

IsMeId checks whether the string provided is a valid ME-ID. Checks only uppercase

func IsUuid

func IsUuid(configId string) bool

IsUuid tests whether a potential configId is already a UUID

Types

This section is empty.

Jump to

Keyboard shortcuts

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