nifi

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregateSnapshot

type AggregateSnapshot struct {
	VersionInfo VersionInfo `json:"versionInfo`
}

AggregateSnapshot is part of the response from the NiFi diagnostics endpoint response and contains the version information for NiFi. The JSON response object corresponding to this object contains other elements apart from VersionInfo

type SystemDiagnostics

type SystemDiagnostics struct {
	AggregateSnapshot AggregateSnapshot `json:"aggregateSnapshot"`
}

SystemDiagnostics is part of the response from the NiFi diagnostics endpoint response and is a child element of SystemDiagnosticsResp

type SystemDiagnosticsResp

type SystemDiagnosticsResp struct {
	SystemDiagnostics SystemDiagnostics `json:"systemDiagnostics"`
}

SystemDiagnosticsResp is the root JSON object from the NiFi diagnostics endpoint response

func GetSystemDiagnostics

func GetSystemDiagnostics() (SystemDiagnosticsResp, error)

GetSystemDiagnostics returns system diagnostics information from NiFi. It's expected that the environment value whose name is in the nifiSystemDiagnosticsURLEnvVar variable

type VersionInfo

type VersionInfo struct {
	NiFiVersion    string `json:"niFiVersion"`
	JavaVendor     string `json:"javaVendor"`
	JavaVersion    string `json:"javaVersion"`
	OSName         string `json:"osName"`
	OSVersion      string `json:"osVersion"`
	OSArchitecture string `json:"osArchitecture"`
	BuildTag       string `json:"buildTag"`
	BuildRevision  string `json:"buildRevision"`
	BuildBranch    string `json:"buildBranch"`
	BuildTimestamp string `json:"buildTimestamp"`
}

VersionInfo is part of the response from the NiFi diagnostics endpoint response and contains version informantion for the NiFi instance

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL