github.com/newrelic/newrelic-client-go@v1.1.0/pkg/installevents/types.go (about)

     1  // Code generated by tutone: DO NOT EDIT
     2  package installevents
     3  
     4  import (
     5  	"github.com/newrelic/newrelic-client-go/pkg/common"
     6  	"github.com/newrelic/newrelic-client-go/pkg/nrtime"
     7  )
     8  
     9  // InstallationInstallStateType - An enum that represent the installation state.
    10  type InstallationInstallStateType string
    11  
    12  var InstallationInstallStateTypeTypes = struct {
    13  	// Defines a completed installation.
    14  	COMPLETED InstallationInstallStateType
    15  	// Defines an installation that has been started.
    16  	STARTED InstallationInstallStateType
    17  }{
    18  	// Defines a completed installation.
    19  	COMPLETED: "COMPLETED",
    20  	// Defines an installation that has been started.
    21  	STARTED: "STARTED",
    22  }
    23  
    24  // InstallationRecipeStatusType - An enum that represents the various recipe statuses.
    25  type InstallationRecipeStatusType string
    26  
    27  var InstallationRecipeStatusTypeTypes = struct {
    28  	// Defines an available recipe when attempting to install.
    29  	AVAILABLE InstallationRecipeStatusType
    30  	// Defines a canceled recipe when attempting to install.
    31  	CANCELED InstallationRecipeStatusType
    32  	// Defines when New Relic instrumentation compatibility is detected.
    33  	DETECTED InstallationRecipeStatusType
    34  	// Defines a recipe that has failed during installation.
    35  	FAILED InstallationRecipeStatusType
    36  	// Defines a recipe that has been installed.
    37  	INSTALLED InstallationRecipeStatusType
    38  	// Defines a recipe currently being installed.
    39  	INSTALLING InstallationRecipeStatusType
    40  	// Defines a recipe that has been recommended during installation.
    41  	RECOMMENDED InstallationRecipeStatusType
    42  	// Defines a recipe that has been skipped during installation.
    43  	SKIPPED InstallationRecipeStatusType
    44  	// Defines a recipe that is unsupported.
    45  	UNSUPPORTED InstallationRecipeStatusType
    46  }{
    47  	// Defines an available recipe when attempting to install.
    48  	AVAILABLE: "AVAILABLE",
    49  	// Defines a canceled recipe when attempting to install.
    50  	CANCELED: "CANCELED",
    51  	// Defines when New Relic instrumentation compatibility is detected.
    52  	DETECTED: "DETECTED",
    53  	// Defines a recipe that has failed during installation.
    54  	FAILED: "FAILED",
    55  	// Defines a recipe that has been installed.
    56  	INSTALLED: "INSTALLED",
    57  	// Defines a recipe currently being installed.
    58  	INSTALLING: "INSTALLING",
    59  	// Defines a recipe that has been recommended during installation.
    60  	RECOMMENDED: "RECOMMENDED",
    61  	// Defines a recipe that has been skipped during installation.
    62  	SKIPPED: "SKIPPED",
    63  	// Defines a recipe that is unsupported.
    64  	UNSUPPORTED: "UNSUPPORTED",
    65  }
    66  
    67  // InstallationInstallStatus - An object that contains the overall installation status that is created from within the newrelic-cli.
    68  type InstallationInstallStatus struct {
    69  	// The version of the newrelic-cli that was used for a given installation attempt.
    70  	CliVersion string `json:"cliVersion"`
    71  	// Whether or not the installation is using a proxy.
    72  	EnabledProxy bool `json:"enabledProxy"`
    73  	// The error returned for a given installation attempt.
    74  	Error InstallationStatusError `json:"error"`
    75  	// The host name of the customer's machine.
    76  	HostName string `json:"hostName"`
    77  	// The unique ID that corresponds to an install status.
    78  	InstallId string `json:"installId"`
    79  	// The version of the open-install-library that is being used.
    80  	InstallLibraryVersion string `json:"installLibraryVersion"`
    81  	// Whether or not the installation is supported on the host machine.
    82  	IsUnsupported bool `json:"isUnsupported"`
    83  	// The kernel architecture of the customer's machine.
    84  	KernelArch string `json:"kernelArch"`
    85  	// The kernel version of the customer's machine.
    86  	KernelVersion string `json:"kernelVersion"`
    87  	// The path to the log file on the customer's host.
    88  	LogFilePath string `json:"logFilePath"`
    89  	// The OS of the customer's machine.
    90  	Os string `json:"os"`
    91  	// The platform name provided by the open-install-library.
    92  	Platform string `json:"platform"`
    93  	// The platform family name provided by the open-install-library.
    94  	PlatformFamily string `json:"platformFamily"`
    95  	// The platform version provided by the open-install-library.
    96  	PlatformVersion string `json:"platformVersion"`
    97  	// A URL generated by the newrelic-cli that redirects to the appropriate entity once an installation is complete.
    98  	RedirectURL string `json:"redirectUrl"`
    99  	// The state of the installation.
   100  	State InstallationInstallStateType `json:"state"`
   101  	// Whether or not the installation is a targeted install.
   102  	TargetedInstall bool `json:"targetedInstall"`
   103  }
   104  
   105  // InstallationInstallStatusInput - An object that contains the overall installation status to be created.
   106  type InstallationInstallStatusInput struct {
   107  	// The version of the newrelic-cli that was used for a given installation attempt.
   108  	CliVersion string `json:"cliVersion"`
   109  	// Whether or not the installation is using a proxy.
   110  	EnabledProxy bool `json:"enabledProxy"`
   111  	// The error for a given installation attempt.
   112  	Error InstallationStatusErrorInput `json:"error,omitempty"`
   113  	// The host name of the customer's machine.
   114  	HostName string `json:"hostName"`
   115  	// The unique ID that corresponds to an install status.
   116  	InstallId string `json:"installId"`
   117  	// The version of the open-install-library that is being used.
   118  	InstallLibraryVersion string `json:"installLibraryVersion"`
   119  	// Whether or not the installation is supported on the host machine.
   120  	IsUnsupported bool `json:"isUnsupported"`
   121  	// The kernel architecture of the customer's machine.
   122  	KernelArch string `json:"kernelArch"`
   123  	// The kernel version of the customer's machine.
   124  	KernelVersion string `json:"kernelVersion"`
   125  	// The path to the log file on the customer's host.
   126  	LogFilePath string `json:"logFilePath"`
   127  	// The OS of the customer's machine.
   128  	Os string `json:"os"`
   129  	// The platform name provided by the open-install-library.
   130  	Platform string `json:"platform"`
   131  	// The platform family name provided by the open-install-library.
   132  	PlatformFamily string `json:"platformFamily"`
   133  	// The platform version provided by the open-install-library.
   134  	PlatformVersion string `json:"platformVersion"`
   135  	// A URL generated by the newrelic-cli that redirects to the appropriate entity once an installation is complete.
   136  	RedirectURL string `json:"redirectUrl"`
   137  	// The state of the installation.
   138  	State InstallationInstallStateType `json:"state"`
   139  	// Whether or not the installation is a targeted install.
   140  	TargetedInstall bool `json:"targetedInstall"`
   141  }
   142  
   143  // InstallationRecipeEvent - An object that contains an installation event created from within the newrelic-cli.
   144  type InstallationRecipeEvent struct {
   145  	// The version of the newrelic-cli that was used for a given recipe.
   146  	CliVersion string `json:"cliVersion"`
   147  	// Whether or not the recipe has been installed and all steps have been completed.
   148  	Complete bool `json:"complete"`
   149  	// The display name for a given recipe.
   150  	DisplayName string `json:"displayName"`
   151  	// The entity Guid for a given recipe.
   152  	EntityGUID common.EntityGUID `json:"entityGuid"`
   153  	// The error returned for a given recipe.
   154  	Error InstallationStatusError `json:"error"`
   155  	// The host name of the customer's machine.
   156  	HostName string `json:"hostName"`
   157  	// The unique ID that corresponds to an install event.
   158  	InstallId string `json:"installId,omitempty"`
   159  	// The version of the open-install-library that is being used.
   160  	InstallLibraryVersion string `json:"installLibraryVersion,omitempty"`
   161  	// The kernel architecture of the customer's machine.
   162  	KernelArch string `json:"kernelArch"`
   163  	// The kernel version of the customer's machine.
   164  	KernelVersion string `json:"kernelVersion"`
   165  	// The path to the log file on the customer's host.
   166  	LogFilePath string `json:"logFilePath"`
   167  	// Additional key:value data related to the environment where the installation occurred.
   168  	Metadata map[string]interface{} `json:"metadata,omitempty"`
   169  	// The unique name for a given recipe.
   170  	Name string `json:"name"`
   171  	// The OS of the customer's machine.
   172  	Os string `json:"os"`
   173  	// The platform name provided by the open-install-library.
   174  	Platform string `json:"platform"`
   175  	// The platform family name provided by the open-install-library.
   176  	PlatformFamily string `json:"platformFamily"`
   177  	// The platform version provided by the open-install-library.
   178  	PlatformVersion string `json:"platformVersion"`
   179  	// The redirect URL created by the CLI used for redirecting to a particular entity.
   180  	RedirectURL string `json:"redirectUrl,omitempty"`
   181  	// The status for a given recipe.
   182  	Status InstallationRecipeStatusType `json:"status"`
   183  	// Whether or not the recipe being installed is a targeted install.
   184  	TargetedInstall bool `json:"targetedInstall"`
   185  	// The path to the installation task as defined in the open-install-library.
   186  	TaskPath string `json:"taskPath,omitempty"`
   187  	// The timestamp for when the recipe event occurred.
   188  	Timestamp nrtime.EpochSeconds `json:"timestamp"`
   189  	// The number of milliseconds it took to validate the recipe.
   190  	ValidationDurationMilliseconds int64 `json:"validationDurationMilliseconds"`
   191  }
   192  
   193  // InstallationRecipeStatus - An object that represents a recipe status.
   194  type InstallationRecipeStatus struct {
   195  	// The version of the newrelic-cli that was used for a given recipe.
   196  	CliVersion string `json:"cliVersion"`
   197  	// Whether or not the recipe has been installed and all steps have been completed.
   198  	Complete bool `json:"complete"`
   199  	// The display name for a given recipe.
   200  	DisplayName string `json:"displayName"`
   201  	// The entity Guid for a given recipe.
   202  	EntityGUID common.EntityGUID `json:"entityGuid"`
   203  	// The error returned for a given recipe.
   204  	Error InstallationStatusErrorInput `json:"error,omitempty"`
   205  	// The host name of the customer's machine.
   206  	HostName string `json:"hostName"`
   207  	// The unique ID that corresponds to an install event.
   208  	InstallId string `json:"installId,omitempty"`
   209  	// The version of the open-install-library that is being used.
   210  	InstallLibraryVersion string `json:"installLibraryVersion,omitempty"`
   211  	// The kernel architecture of the customer's machine.
   212  	KernelArch string `json:"kernelArch"`
   213  	// The kernel version of the customer's machine.
   214  	KernelVersion string `json:"kernelVersion"`
   215  	// The path to the log file on the customer's host.
   216  	LogFilePath string `json:"logFilePath"`
   217  	// Additional key:value data related to an error or related to the environment where the installation occurred.
   218  	Metadata map[string]interface{} `json:"metadata,omitempty"`
   219  	// The unique name for a given recipe.
   220  	Name string `json:"name"`
   221  	// The OS of the customer's machine.
   222  	Os string `json:"os"`
   223  	// The platform name provided by the open-install-library.
   224  	Platform string `json:"platform"`
   225  	// The platform family name provided by the open-install-library.
   226  	PlatformFamily string `json:"platformFamily"`
   227  	// The platform version provided by the open-install-library.
   228  	PlatformVersion string `json:"platformVersion"`
   229  	// The redirect URL created by the CLI used for redirecting to a particular entity.
   230  	RedirectURL string `json:"redirectUrl,omitempty"`
   231  	// The status for a given recipe.
   232  	Status InstallationRecipeStatusType `json:"status"`
   233  	// Whether or not the recipe being installed is a targeted install.
   234  	TargetedInstall bool `json:"targetedInstall"`
   235  	// The path to the installation task as defined in the open-install-library.
   236  	TaskPath string `json:"taskPath,omitempty"`
   237  	// The number of milliseconds it took to validate the recipe.
   238  	ValidationDurationMilliseconds int64 `json:"validationDurationMilliseconds"`
   239  }
   240  
   241  // InstallationStatusError - An object that represents a status error whenever an recipe has failed to install.
   242  type InstallationStatusError struct {
   243  	// Error details, if any.
   244  	Details string `json:"details,omitempty"`
   245  	// The actual error message.
   246  	Message string `json:"message,omitempty"`
   247  }
   248  
   249  // InstallationStatusErrorInput - An object that represents a status error whenever an recipe has failed to install.
   250  type InstallationStatusErrorInput struct {
   251  	// Error details, if any.
   252  	Details string `json:"details,omitempty"`
   253  	// The actual error message.
   254  	Message string `json:"message,omitempty"`
   255  }