# README

Metrics Accounts

Compatible with Logz.io's account management API.

To create a new metrics account, on a main account.

client, _ := metrics_accounts.New(apiToken, apiServerAddress)
planUts := new(int32)
*planUts = 1000
account := metrics_accounts.CreateOrUpdateMetricsAccount{
                Email:                  "[email protected]",
                AccountName:            "tf_client_test",
                PlanUts:                planUts,
                AuthorizedAccountsIds: []int32{},
            }
functionfunc name
create metrics accountfunc (c *MetricsAccountClient) CreateMetricsAccount(createMetricsAccount CreateOrUpdateMetricsAccount) (*MetricsAccountCreateResponse, error)
update metrics accountfunc (c *MetricsAccountClient) UpdateMetricsAccount(metricsAccountId int64, updateMetricsAccount CreateOrUpdateMetricsAccount) error
delete metrics accountfunc (c *MetricsAccountClient) DeleteMetricsAccount(metricsAccountId int64) error
get metrics accountfunc (c *MetricsAccountClient) GetMetricsAccount(metricsAccountId int64) (*MetricsAccount, error)
list metrics accountsfunc (c *MetricsAccountClient) ListMetricsAccounts() ([]MetricsAccount, error)

# Functions

Creates a new entry point into the metrics-account functions, accepts the user's logz.io API token and account Id.

# Structs

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