Skip to content

Commit

Permalink
added comment to operator metrics function
Browse files Browse the repository at this point in the history
  • Loading branch information
davemay99 committed Oct 6, 2020
1 parent ec09c59 commit ff1578f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ func (op *Operator) LicenseGet(q *QueryOptions) (*LicenseReply, *QueryMeta, erro
return &reply, qm, nil
}

// Metrics returns a slice of bytes containing metrics, optionally formatted as either json or prometheus
func (op *Operator) Metrics(q *QueryOptions) ([]byte, error) {
if q == nil {
q = &QueryOptions{}
Expand Down
1 change: 1 addition & 0 deletions vendor/github.com/hashicorp/nomad/api/operator.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ff1578f

Please sign in to comment.