package
1.11.1
Repository: https://github.com/neohe/client_golang.git
Documentation: pkg.go.dev

# Functions

NewAPI returns a new API for the client.

# Constants

Possible values for AlertState.
No description provided by the author
No description provided by the author
Possible values for ErrorType.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Possible values for HealthStatus.
No description provided by the author
Possible values for MetricType.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Possible values for RuleHealth.
No description provided by the author
No description provided by the author
Possible values for RuleType.

# Structs

ActiveTarget models an active Prometheus scrape target.
Alert models an active alert.
AlertingRule models a alerting rule.
AlertManager models a configured Alert Manager.
AlertManagersResult contains the result from querying the alertmanagers endpoint.
AlertsResult contains the result from querying the alerts endpoint.
BuildinfoResult contains the results from querying the buildinfo endpoint.
ConfigResult contains the result from querying the config endpoint.
DroppedTarget models a dropped Prometheus scrape target.
Error is an error returned by the API.
Exemplar is additional information associated with a time series.
No description provided by the author
Metadata models the metadata of a metric.
MetricMetadata models the metadata of a metric with its scrape target and name.
Range represents a sliced time range.
RecordingRule models a recording rule.
RuleGroup models a rule group that contains a set of recording and alerting rules.
RulesResult contains the result from querying the rules endpoint.
RuntimeinfoResult contains the result from querying the runtimeinfo endpoint.
SnapshotResult contains the result from querying the snapshot endpoint.
Stat models information about statistic value.
TargetsResult contains the result from querying the targets endpoint.
TSDBResult contains the result from querying the tsdb endpoint.

# Interfaces

API provides bindings for Prometheus's v1 API.

# Type aliases

AlertState models the state of an alert.
ErrorType models the different API error types.
FlagsResult contains the result from querying the flag endpoint.
HealthStatus models the health status of a scrape target.
MetricType models the type of a metric.
RuleHealth models the health status of a rule.
Recording and alerting rules are stored in the same slice to preserve the order that rules are returned in by the API.
RuleType models the type of a rule.
Warnings is an array of non critical errors.