You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a Lacework Engineer,
I would like to track the usage of the Go API abstraction
As well as the usage coming from the Lacework CLI,
So that I can understand how users interact with our tool via the Lacework API.
Proposal Solution
We need to add a default User-Agent header to the Go-API and make it configurable
so that other components from this repository, as well as external components, can
customize this field (e.i. our terraform provider). This will allow us to track the usage
of different components and make sense of how users interact with our tools and APIs.
JIRA: ALLY-135
The text was updated successfully, but these errors were encountered:
afiune
added
feat
New feature or request
api
Something related to the Go API client
cli
Something related to the Lacework CLI
labels
Jun 10, 2020
afiune
changed the title
[api][cli] Add User-Agent headers to projects
Add User-Agent headers to projects
Jun 10, 2020
This change also includes the ability to override the User-Agent header
as well as adding any other global header to the Go api client, to
create a new client with a global header use the Option `WithHeader()`
like the following example:
```go
c, err := api.NewClient("test",
api.WithHeader("User-Agent", "test-agent"),
api.WithHeader("Custom-ABC", "value-abc"),
api.WithHeader("Custom-XYZ", "value-xyz"),
)
```
Issue: #146
Signed-off-by: Salim Afiune Maya <afiune@lacework.net>
This change also includes the ability to override the User-Agent header
as well as adding any other global header to the Go api client, to
create a new client with a global header use the Option `WithHeader()`
like the following example:
```go
c, err := api.NewClient("test",
api.WithHeader("User-Agent", "test-agent"),
api.WithHeader("Custom-ABC", "value-abc"),
api.WithHeader("Custom-XYZ", "value-xyz"),
)
```
Issue: #146
Signed-off-by: Salim Afiune Maya <afiune@lacework.net>
As a Lacework Engineer,
I would like to track the usage of the Go API abstraction
As well as the usage coming from the Lacework CLI,
So that I can understand how users interact with our tool via the Lacework API.
Proposal Solution
We need to add a default
User-Agent
header to the Go-API and make it configurableso that other components from this repository, as well as external components, can
customize this field (e.i. our terraform provider). This will allow us to track the usage
of different components and make sense of how users interact with our tools and APIs.
JIRA: ALLY-135
The text was updated successfully, but these errors were encountered: