# 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{},
}
function | func name |
---|---|
create metrics account | func (c *MetricsAccountClient) CreateMetricsAccount(createMetricsAccount CreateOrUpdateMetricsAccount) (*MetricsAccountCreateResponse, error) |
update metrics account | func (c *MetricsAccountClient) UpdateMetricsAccount(metricsAccountId int64, updateMetricsAccount CreateOrUpdateMetricsAccount) error |
delete metrics account | func (c *MetricsAccountClient) DeleteMetricsAccount(metricsAccountId int64) error |
get metrics account | func (c *MetricsAccountClient) GetMetricsAccount(metricsAccountId int64) (*MetricsAccount, error) |
list metrics accounts | func (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