Documentation ¶
Overview ¶
Code generated by tutone: DO NOT EDIT
Index ¶
- Constants
- Variables
- type NRQL
- type OpenInstallationAttributes
- type OpenInstallationLogMatch
- type OpenInstallationOperatingSystem
- type OpenInstallationPlatform
- type OpenInstallationPlatformFamily
- type OpenInstallationPreInstallConfiguration
- type OpenInstallationRecipe
- type OpenInstallationRecipeInputVariable
- type OpenInstallationRecipeInstallTarget
- type OpenInstallationTargetType
Constants ¶
const (
TestIdentifierKey contextKey = iota
)
Variables ¶
var Command = &cobra.Command{ Use: "install", Short: "Install New Relic.", Hidden: true, Run: func(cmd *cobra.Command, args []string) { ic := installContext{ recipePaths: recipePaths, recipeNames: recipeNames, skipDiscovery: skipDiscovery, skipInfraInstall: skipInfraInstall, skipIntegrations: skipIntegrations, skipLoggingInstall: skipLoggingInstall, } client.WithClientAndProfile(func(nrClient *newrelic.NewRelic, profile *credentials.Profile) { err := assertProfileIsValid(profile) if err != nil { log.Fatal(err) } rf := newServiceRecipeFetcher(&nrClient.NerdGraph) pf := newRegexProcessFilterer(rf) ff := newRecipeFileFetcher() er := newNerdStorageExecutionStatusReporter(&nrClient.NerdStorage) i := newRecipeInstaller(ic, newPSUtilDiscoverer(pf), newGlobFileFilterer(), rf, newGoTaskRecipeExecutor(), newPollingRecipeValidator(&nrClient.Nrdb), ff, er, ) i.install() }) }, }
Command represents the install command.
var OpenInstallationOperatingSystemTypes = struct { // MacOS operating system DARWIN OpenInstallationOperatingSystem // Linux-based operating system LINUX OpenInstallationOperatingSystem // Windows operating system WINDOWS OpenInstallationOperatingSystem }{ DARWIN: "DARWIN", LINUX: "LINUX", WINDOWS: "WINDOWS", }
var OpenInstallationPlatformFamilyTypes = struct { // Debian distribution family DEBIAN OpenInstallationPlatformFamily // RHEL distribution family RHEL OpenInstallationPlatformFamily // openSUSE distribution family SUSE OpenInstallationPlatformFamily }{ DEBIAN: "DEBIAN", RHEL: "RHEL", SUSE: "SUSE", }
var OpenInstallationPlatformTypes = struct { // Amazon Linux operating system AMAZON OpenInstallationPlatform // CentOS operating system CENTOS OpenInstallationPlatform // Debian operating system DEBIAN OpenInstallationPlatform // RedHat Enterprise Linux operating system REDHAT OpenInstallationPlatform // SUSE operating system SUSE OpenInstallationPlatform // Ubuntu operating system UBUNTU OpenInstallationPlatform }{ AMAZON: "AMAZON", CENTOS: "CENTOS", DEBIAN: "DEBIAN", REDHAT: "REDHAT", SUSE: "SUSE", UBUNTU: "UBUNTU", }
var OpenInstallationTargetTypeTypes = struct { // APM agent installation APPLICATION OpenInstallationTargetType // Cloud provider installation CLOUD OpenInstallationTargetType // Docker container installation DOCKER OpenInstallationTargetType // Bare metal, virtual machine, or host-based installation HOST OpenInstallationTargetType // Kubernetes installation KUBERNETES OpenInstallationTargetType // Serverless installation SERVERLESS OpenInstallationTargetType }{ APPLICATION: "APPLICATION", CLOUD: "CLOUD", DOCKER: "DOCKER", HOST: "HOST", KUBERNETES: "KUBERNETES", SERVERLESS: "SERVERLESS", }
Functions ¶
This section is empty.
Types ¶
type NRQL ¶ added in v0.18.4
type NRQL string
NRQL - This scalar represents a NRQL query string.
See the [NRQL Docs](https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/nrql-resources/nrql-syntax-components-functions) for more information about NRQL syntax.
type OpenInstallationAttributes ¶ added in v0.18.4
type OpenInstallationAttributes struct { // Built-in parsing rulesets Logtype string `json:"logtype"` }
OpenInstallationAttributes - Custom event data attributes
type OpenInstallationLogMatch ¶ added in v0.18.4
type OpenInstallationLogMatch struct { // List of custom attributes, as key-value pairs, that can be used to send additional data with the logs which you can then query. Attributes OpenInstallationAttributes `json:"attributes"` // Path to the log file or files. File string `json:"file"` // Name of the log or logs. Name string `json:"name"` // Regular expression for filtering records. Pattern string `json:"pattern"` // Service name (Linux Only). Systemd string `json:"systemd"` }
OpenInstallationLogMatch - Matches partial list of the Log forwarding parameters
type OpenInstallationOperatingSystem ¶ added in v0.18.4
type OpenInstallationOperatingSystem string
OpenInstallationOperatingSystem - Operating System of target environment
type OpenInstallationPlatform ¶ added in v0.18.4
type OpenInstallationPlatform string
OpenInstallationPlatform - Operating System distribution
type OpenInstallationPlatformFamily ¶ added in v0.18.4
type OpenInstallationPlatformFamily string
OpenInstallationPlatformFamily - Operating System distribution family
type OpenInstallationPreInstallConfiguration ¶ added in v0.18.4
type OpenInstallationPreInstallConfiguration struct { // Message/Docs notice displayed to user prior to running recipe Prompt string `json:"prompt"` }
OpenInstallationPreInstallConfiguration - Optional pre-install configuration items
type OpenInstallationRecipe ¶ added in v0.18.4
type OpenInstallationRecipe struct { // Description of the recipe Description string `json:"description"` // The full contents of the recipe file (yaml) File string `json:"file"` // The ID ID string `json:"id"` // List of variables to prompt for input from the user InputVars []OpenInstallationRecipeInputVariable `json:"inputVars"` // Object representing the intended install target InstallTargets []OpenInstallationRecipeInstallTarget `json:"installTargets"` // Tags Keywords []string `json:"keywords"` // # Partial list of possible Log forwarding parameters LogMatch []OpenInstallationLogMatch `json:"logMatch"` // Friendly name of the recipe Name string `json:"name"` // Object representing optional pre-install configuration items PreInstall OpenInstallationPreInstallConfiguration `json:"preInstall"` // List of process definitions used to match CLI process detection ProcessMatch []string `json:"processMatch"` // Github repository url Repository string `json:"repository"` // NRQL the newrelic-cli uses to validate this recipe // is successfully sending data to New Relic ValidationNRQL NRQL `json:"validationNrql"` }
OpenInstallationRecipe - Installation instructions and definition of an instrumentation integration
type OpenInstallationRecipeInputVariable ¶ added in v0.18.4
type OpenInstallationRecipeInputVariable struct { // Default value of variable Default string `json:"default"` // Name of the variable Name string `json:"name"` // Message to present to the user Prompt string `json:"prompt"` // Indicates a password field Secret bool `json:"secret"` }
OpenInstallationRecipeInputVariable - Recipe input variable prompts displayed to the user prior to execution
type OpenInstallationRecipeInstallTarget ¶ added in v0.18.4
type OpenInstallationRecipeInstallTarget struct { // OS kernel architecture KernelArch string `json:"kernelArch"` // OS kernel version KernelVersion string `json:"kernelVersion"` // Operating system Os OpenInstallationOperatingSystem `json:"os"` // Operating System distribution Platform OpenInstallationPlatform `json:"platform"` // Operating System distribution family PlatformFamily OpenInstallationPlatformFamily `json:"platformFamily"` // OS distribution version PlatformVersion string `json:"platformVersion"` // Target type Type OpenInstallationTargetType `json:"type"` }
OpenInstallationRecipeInstallTarget - Matrix of supported installation criteria for this recipe
type OpenInstallationTargetType ¶ added in v0.18.4
type OpenInstallationTargetType string
OpenInstallationTargetType - Installation target type
Source Files ¶
- command.go
- discoverer.go
- execution_status.go
- execution_status_reporter.go
- file_filterer.go
- glob_file_filterer.go
- go_task_recipe_executor.go
- install_context.go
- mock_discoverer.go
- mock_execution_status_reporter.go
- mock_file_filterer.go
- mock_nerdgraph_client.go
- mock_nerdstorage_client.go
- mock_nrdb_client.go
- mock_process.go
- mock_recipe_executor.go
- mock_recipe_fetcher.go
- mock_recipe_file_fetcher.go
- mock_recipe_validator.go
- nerdgraph_client.go
- nerdstorage_client.go
- nerdstorage_execution_status_reporter.go
- nrdb_client.go
- polling_recipe_validator.go
- process_filterer.go
- psutil_discoverer.go
- psutil_process.go
- recipe.go
- recipe_executor.go
- recipe_fetcher.go
- recipe_file.go
- recipe_file_fetcher.go
- recipe_installer.go
- recipe_validator.go
- regex_process_filterer.go
- service_recipe_fetcher.go
- types.go