package
1.7.0
Repository: https://github.com/ennobelprakoso/pkg.git
Documentation: pkg.go.dev

# README

New Relic Client

A custom package to aggregate newrelic API.

import "github.com/ennobelprakoso/pkg/go/nrclient"

nr := nrclient.New(nrclient.Option{
    NRLoginCookies: `login cookies`,
    APIKey:         "api key",
})

users, err := nr.FindUserAccount(context.Background(), "[email protected]")
if err != nil {
    log.Error(err)
    return
}

for _, u := range users {
    log.Info(u.AccountID)
    log.Info(u.AccountName)
    log.Info(u.LastAccessTime)
}

# Packages

No description provided by the author

# Functions

New instantiate nr client.

# Constants

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
No description provided by the author

# Variables

No description provided by the author

# Structs

BulkCreateUserSummary struct.
NRAccount struct.
NRClient client.
NRUser new relic user.
NRUserRoles struct.
Option nr client option.
ParamCreateUser struct.

# Type aliases

No description provided by the author
No description provided by the author