organization.go
organization.go - Overview
-
Overview Defines the
Organization
andApdexSettings
structs, including their database schema usingbun
. -
Detailed Documentation
Organization struct
- Purpose: Represents an organization in the database.
- Fields:
bun.BaseModel
: Embedded struct for base model functionality from bun.TimeAuditable
: Embedded struct presumably containing timestamp fields.ID
string: Unique identifier for the organization (primary key).Name
string: Name of the organization.IsAnonymous
bool: Indicates if the organization is anonymous.HasOptedUpdates
bool: Indicates if the organization has opted for updates.
ApdexSettings struct
- Purpose: Represents Apdex settings for a specific service within an organization.
- Fields:
bun.BaseModel
: Embedded struct for base model functionality from bun.Identifiable
: Embedded struct presumably containing an ID field.OrgID
string: ID of the organization to which these settings apply.ServiceName
string: Name of the service.Threshold
float64: Apdex threshold value.ExcludeStatusCodes
string: Status codes to exclude from Apdex calculations.
Include in Getting Started: NO