Documentation ¶
Overview ¶
Code generated by tutone: DO NOT EDIT
Code generated by tutone: DO NOT EDIT
Index ¶
Constants ¶
View Source
const ChangeTrackingCreateDeploymentMutation = `` /* 244-byte string literal not displayed */
Variables ¶
View Source
var ChangeTrackingDeploymentTypeTypes = struct { // A vanilla deployment BASIC ChangeTrackingDeploymentType // Blue-green deployment BLUE_GREEN ChangeTrackingDeploymentType // Canary deployment CANARY ChangeTrackingDeploymentType // Other types of deployment. OTHER ChangeTrackingDeploymentType // Rolling deployment. ROLLING ChangeTrackingDeploymentType // Shadow deployment SHADOW ChangeTrackingDeploymentType }{ BASIC: "BASIC", BLUE_GREEN: "BLUE_GREEN", CANARY: "CANARY", OTHER: "OTHER", ROLLING: "ROLLING", SHADOW: "SHADOW", }
Functions ¶
This section is empty.
Types ¶
type ChangeTrackingCreateDeploymentQueryResponse ¶
type ChangeTrackingCreateDeploymentQueryResponse struct {
ChangeTrackingDeployment ChangeTrackingDeployment `json:"ChangeTrackingCreateDeployment"`
}
type ChangeTrackingDeployment ¶
type ChangeTrackingDeployment struct { // A URL for the changelog or list of changes if not linkable. Changelog string `json:"changelog,omitempty"` // The commit identifier, for example, a Git commit SHA. Commit string `json:"commit,omitempty"` // A link back to the system generating the deployment. DeepLink string `json:"deepLink,omitempty"` // Optional: deployment identifier. DeploymentId string `json:"deploymentId,omitempty"` // The type of deployment, for example, ‘Blue green’ or ‘Rolling’. DeploymentType ChangeTrackingDeploymentType `json:"deploymentType,omitempty"` // A description of the deployment. Description string `json:"description,omitempty"` // The NR1 entity that was deployed. EntityGUID common.EntityGUID `json:"entityGuid"` // String that can be used to correlate two or more events. GroupId string `json:"groupId,omitempty"` // The start time of the deployment, the number of milliseconds since the Unix epoch. Timestamp nrtime.EpochMilliseconds `json:"timestamp"` // Username of the deployer or bot. User string `json:"user,omitempty"` // The version of the deployed software, for example, something like v1.1 Version string `json:"version"` }
ChangeTrackingDeployment - A deployment.
type ChangeTrackingDeploymentInput ¶
type ChangeTrackingDeploymentInput struct { // A URL for the changelog or list of changes if not linkable. Changelog string `json:"changelog,omitempty"` // The commit identifier, for example, a Git commit SHA. Commit string `json:"commit,omitempty"` // A link back to the system generating the deployment. DeepLink string `json:"deepLink,omitempty"` // The type of deployment, for example, ‘Blue green’ or ‘Rolling’. DeploymentType ChangeTrackingDeploymentType `json:"deploymentType,omitempty"` // A description of the deployment. Description string `json:"description,omitempty"` // The NR1 entity that was deployed. EntityGUID common.EntityGUID `json:"entityGuid"` // String that can be used to correlate two or more events. GroupId string `json:"groupId,omitempty"` // The start time of the deployment, the number of milliseconds since the Unix epoch. Defaults to now Timestamp nrtime.EpochMilliseconds `json:"timestamp,omitempty"` // Username of the deployer or bot. User string `json:"user,omitempty"` // The version of the deployed software, for example, something like v1.1 Version string `json:"version"` }
ChangeTrackingDeploymentInput - A deployment.
type ChangeTrackingDeploymentType ¶
type ChangeTrackingDeploymentType string
ChangeTrackingDeploymentType - Type of deployment.
type Changetracking ¶
type Changetracking struct {
// contains filtered or unexported fields
}
func New ¶
func New(config config.Config) Changetracking
func (*Changetracking) ChangeTrackingCreateDeployment ¶
func (a *Changetracking) ChangeTrackingCreateDeployment( deployment ChangeTrackingDeploymentInput, ) (*ChangeTrackingDeployment, error)
Creates a new deployment record in NRDB and associated deployment marker.
func (*Changetracking) ChangeTrackingCreateDeploymentWithContext ¶
func (a *Changetracking) ChangeTrackingCreateDeploymentWithContext( ctx context.Context, deployment ChangeTrackingDeploymentInput, ) (*ChangeTrackingDeployment, error)
Creates a new deployment record in NRDB and associated deployment marker.
Click to show internal directories.
Click to hide internal directories.