For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content
Squadcast is now SolarWinds Incident Response

Status

Supported Types

status := components.CreateStatusStr(string{/* values here */})

status := components.CreateStatusInteger(int64{/* values here */})

Union Discrimination

Use the Type field to determine which variant is active, then access the corresponding field:

switch status.Type {
	case components.StatusTypeStr:
		// status.Str is populated
	case components.StatusTypeInteger:
		// status.Integer is populated
}

Last updated