Versions in this module Expand all Collapse all v0 v0.1.0 Aug 6, 2020 Changes in this version + func QueryToJSON(query interface{}) (result string, err error) + type Client struct + BaseURL string + Cert string + Key string + func NewClient(host string, port int, verbose bool) *Client + func NewClientSSL(host string, port int, key string, cert string, ca string, verbose bool) *Client + func NewClientSSLInsecure(host string, port int, verbose bool) *Client + func NewClientTimeout(host string, port int, verbose bool, timeout int) *Client + func NewClientTimeoutSSL(host string, port int, key string, cert string, ca string, verbose bool, ...) *Client + func NewClientURL(url *url.URL, verbose bool) *Client + func (c *Client) EventCounts(query string, summarizeBy string, extraParams map[string]string) ([]EventCountJSON, error) + func (c *Client) Events(query string, extraParams map[string]string) ([]EventJSON, error) + func (c *Client) FactNames() ([]string, error) + func (c *Client) FactPerNode(fact string) ([]FactJSON, error) + func (c *Client) Get(v interface{}, path string, params map[string]string) error + func (c *Client) GetFacts(path string) ([]FactJSON, error) + func (c *Client) Metric(v interface{}, metric string) error + func (c *Client) MetricNumNodes() (result float64, err error) + func (c *Client) MetricNumResources() (result float64, err error) + func (c *Client) MetricResourcesPerNode() (result float64, err error) + func (c *Client) NodeFacts(node string) ([]FactJSON, error) + func (c *Client) Nodes() ([]NodeJSON, error) + func (c *Client) PQLRawQuery(query string) (io.ReadCloser, error) + func (c *Client) PuppetdbVersion() (Version, error) + func (c *Client) ReportByHash(hash string) ([]ReportJSON, error) + func (c *Client) Reports(query string, extraParams map[string]string) ([]ReportJSON, error) + func (c *Client) Resources(query string, extraParams map[string]string) ([]Resource, error) + type ClientMaster struct + BaseURL string + Cert string + Key string + func NewClientSSLInsecureMaster(host string, port int, verbose bool) *ClientMaster + func NewClientSSLMaster(host string, port int, key string, cert string, ca string, verbose bool) *ClientMaster + func (c *ClientMaster) Delete(path string) (error, int) + func (c *ClientMaster) Get(v interface{}, path string) error + func (c *ClientMaster) Jruby() (JrubyMetrics, error) + func (c *ClientMaster) Master() (MasterMetrics, error) + func (c *ClientMaster) Profiler() (Profiler, error) + func (c *ClientMaster) PuppetCertificate(certname string) (PuppetCertificate, error) + func (c *ClientMaster) PuppetCertificateDelete(certname string) (error, int) + func (c *ClientMaster) PuppetCertificateUpdateState(certname string, state string) (PuppetCertificateState, error, int) + func (c *ClientMaster) PuppetCertificates() ([]PuppetCertificate, error) + func (c *ClientMaster) Put(v interface{}, path string, values interface{}) (error, int) + func (c *ClientMaster) Service() (ServiceMetrics, error) + type EventCountJSON struct + Failure int64 + Noops int64 + Skips int64 + Subject map[string]string + SubjectType string + Successes int64 + type EventJSON struct + CertName string + ContainmentClass string + ContainmentPath string + File string + Message string + NewValue string + OldValue string + Property string + Report string + ReportReceiveTime string + ResourceTitle string + ResourceType string + RunEndTime string + RunStartTime string + Status string + Timestamp string + type FactJSON struct + CertName string + Environment string + Name string + Value *gabs.Container + type JrubyBorrowedInstance struct + DurationMilis int + Reason *JrubyBorrowedInstanceReason + Time int + type JrubyBorrowedInstanceReason struct + Request *JrubyBorrowedInstanceReasonRequest + type JrubyBorrowedInstanceReasonRequest struct + Method string + RouteId string + Uri string + type JrubyExperimental struct + JrubyPoolLockStatus *JrubyPoolLockStatus + Metrics *JrubyExperimentalMetrics + type JrubyExperimentalMetrics struct + AverageBorrowTime int + AverageFreeJrubies float64 + AverageLockHeldTime int + AverageLockWaitTime int + AverageRequestedJrubies float64 + AverageWaitTime int + BorrowCount int + BorrowRetryCount int + BorrowTimeoutCount int + BorrowedInstances *[]JrubyBorrowedInstance + NumFreeJrubies int + NumJrubies int + NumPoolLocks int + QueueLimitHitCount int + QueueLimitHitRate float64 + RequestedCount int + ReturnCount int + type JrubyMetrics struct + DetailLevel string + State string + StateVersion int + Status *JrubyStatus + Version string + type JrubyPoolLockStatus struct + ChangeTime string + State string + type JrubyStatus struct + Experimental *JrubyExperimental + type MasterExperimental struct + HttpClientMetrics *[]MasterHttpClientMetric + HttpMetrics *[]MasterHttpMetric + type MasterHttpClientMetric struct + Aggregate int + Count int + Mean int + MetricId *[]string + MetricName string + type MasterHttpMetric struct + Aggregate int + Count int + Mean int + RouteId string + type MasterMetrics struct + DetailLevel string + State string + StateVersion int + Status *MasterStatus + Version string + type MasterStatus struct + Experimental *MasterExperimental + type NodeJSON struct + CachedCatalogStatus string + CatalogEnvironment string + CatalogTimestamp string + Certname string + Deactivated string + Expired string + FactsEnvironment string + FactsTimestamp string + LatestReportCorrectiveChange string + LatestReportHash string + LatestReportJobID string + LatestReportNoop bool + LatestReportNoopPending bool + LatestReportStatus string + ReportEnvironment string + ReportTimestamp string + type Profiler struct + DetailLevel string + State string + StateVersion int + Status *ProfilerStatus + Version string + type ProfilerCatalogMetric struct + Aggregate int + Count int + Mean int + Metric string + type ProfilerExperimental struct + CatalogMetrics *[]ProfilerCatalogMetric + FunctionMetrics *[]ProfilerFunctionMetric + PuppetdbMetrics *[]ProfilerCatalogMetric + ResourceMetrics *[]ProfilerResourceMetric + type ProfilerFunctionMetric struct + Aggregate int + Count int + Function string + Mean int + type ProfilerResourceMetric struct + Aggregate int + Count int + Mean int + Resource string + type ProfilerStatus struct + Experimental *ProfilerExperimental + type PuppetCertificate struct + DNSAltNames []string + Fingerprint string + Fingerprints PuppetCertificateFingerPrint + Name string + State string + SubjectAltNames []string + type PuppetCertificateFingerPrint struct + Default string + SHA1 string + SHA256 string + SHA512 string + type PuppetCertificateState struct + DesiredState string + type PuppetReportLog struct + Data []PuppetReportMetricsLogEntry + Href string + type PuppetReportMetrics struct + Data []PuppetReportMetricsDataEntry + Href string + type PuppetReportMetricsDataEntry struct + Category string + Name string + Value float64 + type PuppetReportMetricsLogEntry struct + File string + Level string + Line string + Message string + NewValue string + Property string + Source string + Tags []string + Time string + type PuppetReportResource struct + Href string + type ReportJSON struct + CachedCatalogStatus string + CatalogUUID string + CertName string + CodeID string + ConfigurationVersion string + CorrectiveChange string + EndTime string + Environment string + Hash string + Logs PuppetReportLog + Metrics PuppetReportMetrics + Noop bool + NoopPending bool + Producer string + ProducerTimestamp string + PuppetVersion string + ReceiveTime string + ReportFormat int64 + ResourceEvents PuppetReportResource + StartTime string + Status string + TransactionUUID string + Value string + type Resource struct + Certname string + Exported bool + Line int + Paramaters map[string]interface{} + Resource string + Tags []string + Title string + Type string + type ServiceExperimental struct + JVMMetrics *ServiceJVMMetric + type ServiceJVMMetric struct + CpuUsage float64 + FileDescriptors *ServiceJVMMetricFile + GCCpuUsage float64 + GCStats *ServiceJVMMetricGCStats + HeapMemory *ServiceJVMMetricHeapMemory + NonHeapMemory *ServiceJVMMetricHeapMemory + StartTimeMs int + Threading *ServiceJVMMetricThreading + UptimeMs int + type ServiceJVMMetricFile struct + Max int + Used int + type ServiceJVMMetricGCStats struct + PSScavenge *ServiceJVMMetricPS + PSSweep *ServiceJVMMetricPS + type ServiceJVMMetricHeapMemory struct + Committed int + Init int + Max int + Used int + type ServiceJVMMetricLastInfo struct + DurationMs int + type ServiceJVMMetricPS struct + Count int + LastGCInfo *ServiceJVMMetricLastInfo + TotalTimeMs int + type ServiceJVMMetricThreading struct + PeakThreadCount int + ThreadCount int + type ServiceMetrics struct + DetailLevel string + State string + StateVersion int + Status *ServiceStatus + Version string + type ServiceStatus struct + Experimental *ServiceExperimental + type ValueMetricJSON struct + Value float64 + type Version struct + Version string