Skip to content

Commit

Permalink
fix(BrowserApplicationEntity): addition of browserProperties fields (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
pranav-new-relic authored Oct 12, 2023
1 parent a8b0fd1 commit a215dd3
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .tutone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,9 @@ packages:
field_type_override: users.UserReference
skip_type_create: true

- name: AgentApplicationSettingsRawJsConfiguration
create_as: map[string]interface{}


- name: eventstometrics
path: pkg/eventstometrics
Expand Down
7 changes: 7 additions & 0 deletions pkg/entities/entities_api.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions pkg/entities/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2975,6 +2975,16 @@ type AgentApplicationSettingsBrowserPrivacy struct {
CookiesEnabled bool `json:"cookiesEnabled"`
}

// AgentApplicationSettingsBrowserProperties - General Properties related to browser applications.
type AgentApplicationSettingsBrowserProperties struct {
// The configuration required to run the npm version of the JS agent. This is the "pure" JSON configuration block without surrounding HTML <script> tags.
JsConfig AgentApplicationSettingsRawJsConfiguration `json:"jsConfig,omitempty"`
// The configuration block required to run the npm version of the JS agent. This includes the HTML <script> tags.
JsConfigScript string `json:"jsConfigScript,omitempty"`
// The snippet of JavaScript used to copy/paste into your JavaScript app if you aren't using an auto-instrumentating agent on the backend.
JsLoaderScript string `json:"jsLoaderScript,omitempty"`
}

// AgentApplicationSettingsDataManagement - Settings related to the management of Transaction data sent to NRDB.
type AgentApplicationSettingsDataManagement struct {
// Should transaction events be sent to the internal stream.
Expand Down Expand Up @@ -6407,6 +6417,8 @@ type BrowserApplicationEntity struct {
AlertViolations []EntityAlertViolation `json:"alertViolations,omitempty"`
// The ID of the Browser App.
ApplicationID int `json:"applicationId,omitempty"`
// Access general properties for the application.
BrowserProperties AgentApplicationSettingsBrowserProperties `json:"browserProperties,omitempty"`
// Settings that are common across browser applications.
BrowserSettings AgentApplicationSettingsBrowserBase `json:"browserSettings,omitempty"`
// Summary statistics about the Browser App.
Expand Down Expand Up @@ -6525,6 +6537,11 @@ func (x BrowserApplicationEntity) GetApplicationID() int {
return x.ApplicationID
}

// GetBrowserProperties returns a pointer to the value of BrowserProperties from BrowserApplicationEntity
func (x BrowserApplicationEntity) GetBrowserProperties() AgentApplicationSettingsBrowserProperties {
return x.BrowserProperties
}

// GetBrowserSettings returns a pointer to the value of BrowserSettings from BrowserApplicationEntity
func (x BrowserApplicationEntity) GetBrowserSettings() AgentApplicationSettingsBrowserBase {
return x.BrowserSettings
Expand Down Expand Up @@ -16023,6 +16040,11 @@ type entitySearchResponse struct {
// AgentApplicationSettingsErrorCollectorHttpStatus - A list of HTTP status codes and/or status code ranges, such as "404" or "500-599"
type AgentApplicationSettingsErrorCollectorHttpStatus string

// AgentApplicationSettingsRawJsConfiguration - The "raw" configuration values for configuring the javascript client.
// NOTE: Datatype "string" generated by Tutone manually changed to "map[string]interface{}" as this is a JSON, but fetched
// as a string as the equivalent attribute on NerdGraph `jsConfig` is a string and has no nested attributes. Kindly DO NOT modify.
type AgentApplicationSettingsRawJsConfiguration map[string]interface{}

// AgentTracesExplainPlanRow - This scalar represents a explain plan row (list of values)
type AgentTracesExplainPlanRow string

Expand Down

0 comments on commit a215dd3

Please sign in to comment.