Struct mackerel_client::client::Client [] [src]

pub struct Client { /* fields omitted */ }

Represents an API client for Mackerel.

Methods

impl Client
[src]

Creates a new API client from API key.

Creates a new API client from API key and API base.

Sends a request to the API.

The entire response body is deserialized as R, converted by converter and returns S.

impl Client
[src]

Fetches all the open alerts.

See https://mackerel.io/api-docs/entry/alerts#get.

Closes the specified alert.

See https://mackerel.io/api-docs/entry/alerts#close.

impl Client
[src]

Fetches all the open monitors.

See https://mackerel.io/api-docs/entry/monitors#get.

impl Client
[src]

Retrieve the information on the organization.

See https://mackerel.io/api-docs/entry/organizations#get.

impl Client
[src]

Fetches the roles in the specified service.

See https://mackerel.io/api-docs/entry/services#rolelist.

impl Client
[src]

Fetches all the services.

See https://mackerel.io/api-docs/entry/services#list.

Fetches the names of the service metrics.

See https://mackerel.io/api-docs/entry/services#metric-names.

impl Client
[src]

Fetches all the services.

See https://mackerel.io/api-docs/entry/users#list.

Delete the user from the organization.

See https://mackerel.io/api-docs/entry/users#delete.

Trait Implementations

impl Debug for Client
[src]

Formats the value using the given formatter.

impl Default for Client
[src]

Returns the "default value" for a type. Read more