Client library for Logz.io API, see below for supported endpoints.
The primary purpose of this library is to act as the API interface for the logz.io Terraform provider. To use it, you'll need to create an API token and provide it to the client library along with your logz.io regional API server address.
The library currently supports the following API endpoints:
- Alerts V2.
- Users.
- Sub-accounts.
- Endpoints.
- Log shipping tokens.
- Drop filters.
- Archive logs.
- Restore logs.
- Authentication groups.
- Kibana Objects.
- S3 Fetcher.
- Grafana dashboards.
- Grafana folders.
- Grafana Alert Rules API.
- Grafana datasource.
- Grafana Notification Policy.
- Grafana Contact Point.
- Metrics Accounts
- Clone this repo locally.
- As this package uses Go modules, make sure you are outside of
$GOPATH
or you have theGO111MODULE=on
environment variable set. Then rungo get
to pull down the dependencies. - Use
logzio_client.CallLogzioApi
when you need to make a Logz.io API call. - Use structs to represent the requests/responses body, rather than maps.
- Sample responses for tests should be under
testdata/fixtures
.
go test -v -race ./...
Terraform is a trademark of HashiCorp, Inc.