From 3a2fb91e40bde59339ad4695ac9d218f470c1092 Mon Sep 17 00:00:00 2001 From: vgodhala Date: Fri, 8 Aug 2025 14:21:51 +0530 Subject: [PATCH 1/2] feat(pipelinecloudule): adds new pkg for ngep entities --- .tutone.yml | 54 + newrelic/newrelic.go | 3 + pkg/entitymanagement/entityManagement.go | 23 + pkg/entitymanagement/entitymanagement_api.go | 4802 +++++++ pkg/entitymanagement/types.go | 10978 +++++++++++++++++ 5 files changed, 15860 insertions(+) create mode 100644 pkg/entitymanagement/entityManagement.go create mode 100644 pkg/entitymanagement/entitymanagement_api.go create mode 100644 pkg/entitymanagement/types.go diff --git a/.tutone.yml b/.tutone.yml index 60ef80b10..3e6a2f652 100644 --- a/.tutone.yml +++ b/.tutone.yml @@ -1704,4 +1704,58 @@ packages: types: - name: EntityGuid field_type_override: common.EntityGUID + skip_type_create: true + + - name: entitymanagement + path: pkg/entitymanagement + import_path: github.com/newrelic/newrelic-client-go/v2/pkg/entitymanagement + generators: + - typegen + - nerdgraphclient + imports: + - github.com/newrelic/newrelic-client-go/v2/pkg/accounts + - github.com/newrelic/newrelic-client-go/v2/pkg/common + - github.com/newrelic/newrelic-client-go/v2/pkg/nrtime + - github.com/newrelic/newrelic-client-go/v2/pkg/users + queries: + - path: [ "actor", "entityManagement" ] + endpoints: + - name: entity + max_query_field_depth: 4 + exclude_fields: + - agents + - tools + - name: entitySearch + max_query_field_depth: 4 + exclude_fields: + - agents + - tools + mutations: + - name: entityManagementCreatePipelineCloudRule + max_query_field_depth: 3 + - name: entityManagementDelete + max_query_field_depth: 3 + types: + - name: ID + field_type_override: string + skip_type_create: true + - name: Nrql + field_type_override: nrdb.NRQL + skip_type_create: true + + # nrtime imports + - name: DateTime + field_type_override: nrtime.DateTime + skip_type_create: true + - name: EpochSeconds + field_type_override: nrtime.EpochSeconds + skip_type_create: true + - name: EpochMilliseconds + field_type_override: "*nrtime.EpochMilliseconds" + skip_type_create: true + - name: Minutes + field_type_override: nrtime.Minutes + skip_type_create: true + - name: Seconds + field_type_override: nrtime.Seconds skip_type_create: true \ No newline at end of file diff --git a/newrelic/newrelic.go b/newrelic/newrelic.go index e165f7515..0330155a2 100644 --- a/newrelic/newrelic.go +++ b/newrelic/newrelic.go @@ -4,6 +4,7 @@ import ( "net/http" "time" + "github.com/newrelic/newrelic-client-go/v2/pkg/entitymanagement" "github.com/newrelic/newrelic-client-go/v2/pkg/entityrelationship" "github.com/newrelic/newrelic-client-go/v2/pkg/users" @@ -78,6 +79,7 @@ type NewRelic struct { Workloads workloads.Workloads KeyTransaction keytransaction.Keytransaction EntityRelationship entityrelationship.Entityrelationship + EntityManagement entitymanagement.Entitymanagement Users users.Users config config.Config @@ -128,6 +130,7 @@ func New(opts ...ConfigOption) (*NewRelic, error) { Workloads: workloads.New(cfg), KeyTransaction: keytransaction.New(cfg), EntityRelationship: entityrelationship.New(cfg), + EntityManagement: entitymanagement.New(cfg), Users: users.New(cfg), } diff --git a/pkg/entitymanagement/entityManagement.go b/pkg/entitymanagement/entityManagement.go new file mode 100644 index 000000000..b36ce92c0 --- /dev/null +++ b/pkg/entitymanagement/entityManagement.go @@ -0,0 +1,23 @@ +package entitymanagement + +import ( + "github.com/newrelic/newrelic-client-go/v2/internal/http" + "github.com/newrelic/newrelic-client-go/v2/pkg/config" + "github.com/newrelic/newrelic-client-go/v2/pkg/logging" +) + +type Entitymanagement struct { + client http.Client + logger logging.Logger + config config.Config +} + +func New(config config.Config) Entitymanagement { + client := http.NewClient(config) + pkg := Entitymanagement{ + client: client, + logger: config.GetLogger(), + config: config, + } + return pkg +} diff --git a/pkg/entitymanagement/entitymanagement_api.go b/pkg/entitymanagement/entitymanagement_api.go new file mode 100644 index 000000000..9575dda8e --- /dev/null +++ b/pkg/entitymanagement/entitymanagement_api.go @@ -0,0 +1,4802 @@ +// Code generated by tutone: DO NOT EDIT +package entitymanagement + +import "context" + +// Creates an entity of type PipelineCloudRuleEntity. +func (a *Entitymanagement) EntityManagementCreatePipelineCloudRule( + pipelineCloudRuleEntity EntityManagementPipelineCloudRuleEntityCreateInput, +) (*EntityManagementPipelineCloudRuleEntityCreateResult, error) { + return a.EntityManagementCreatePipelineCloudRuleWithContext(context.Background(), + pipelineCloudRuleEntity, + ) +} + +// Creates an entity of type PipelineCloudRuleEntity. +func (a *Entitymanagement) EntityManagementCreatePipelineCloudRuleWithContext( + ctx context.Context, + pipelineCloudRuleEntity EntityManagementPipelineCloudRuleEntityCreateInput, +) (*EntityManagementPipelineCloudRuleEntityCreateResult, error) { + + resp := EntityManagementCreatePipelineCloudRuleQueryResponse{} + vars := map[string]interface{}{ + "pipelineCloudRuleEntity": pipelineCloudRuleEntity, + } + + if err := a.client.NerdGraphQueryWithContext(ctx, EntityManagementCreatePipelineCloudRuleMutation, vars, &resp); err != nil { + return nil, err + } + + return &resp.EntityManagementPipelineCloudRuleEntityCreateResult, nil +} + +type EntityManagementCreatePipelineCloudRuleQueryResponse struct { + EntityManagementPipelineCloudRuleEntityCreateResult EntityManagementPipelineCloudRuleEntityCreateResult `json:"EntityManagementCreatePipelineCloudRule"` +} + +const EntityManagementCreatePipelineCloudRuleMutation = `mutation( + $pipelineCloudRuleEntity: EntityManagementPipelineCloudRuleEntityCreateInput!, +) { entityManagementCreatePipelineCloudRule( + pipelineCloudRuleEntity: $pipelineCloudRuleEntity, +) { + entity { + description + id + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + name + nrql + scope { + id + type + } + tags { + key + values + } + type + } +} }` + +// Deletes an entity. +func (a *Entitymanagement) EntityManagementDelete( + iD string, + version int, +) (*EntityManagementEntityDeleteResult, error) { + return a.EntityManagementDeleteWithContext(context.Background(), + iD, + version, + ) +} + +// Deletes an entity. +func (a *Entitymanagement) EntityManagementDeleteWithContext( + ctx context.Context, + iD string, + version int, +) (*EntityManagementEntityDeleteResult, error) { + + resp := EntityManagementDeleteQueryResponse{} + vars := map[string]interface{}{ + "id": iD, + "version": version, + } + + if err := a.client.NerdGraphQueryWithContext(ctx, EntityManagementDeleteMutation, vars, &resp); err != nil { + return nil, err + } + + return &resp.EntityManagementEntityDeleteResult, nil +} + +type EntityManagementDeleteQueryResponse struct { + EntityManagementEntityDeleteResult EntityManagementEntityDeleteResult `json:"EntityManagementDelete"` +} + +const EntityManagementDeleteMutation = `mutation( + $id: ID!, + $version: Int, +) { entityManagementDelete( + id: $id, + version: $version, +) { + id +} }` + +// Retrieves an entity. +func (a *Entitymanagement) GetEntity( + iD string, +) (*EntityManagementEntityInterface, error) { + return a.GetEntityWithContext(context.Background(), + iD, + ) +} + +// Retrieves an entity. +func (a *Entitymanagement) GetEntityWithContext( + ctx context.Context, + iD string, +) (*EntityManagementEntityInterface, error) { + + resp := entityResponse{} + vars := map[string]interface{}{ + "id": iD, + } + + if err := a.client.NerdGraphQueryWithContext(ctx, getEntityQuery, vars, &resp); err != nil { + return nil, err + } + + return &resp.Actor.EntityManagement.Entity, nil +} + +const getEntityQuery = `query( + $id: ID!, +) { actor { entityManagement { entity( + id: $id, +) { + id + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + name + scope { + id + type + } + tags { + key + values + } + type + ... on EntityManagementAgentConfigurationEntity { + __typename + agentType + agentConfigManagedEntityType: managedEntityType + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } + versionCount +} +... on EntityManagementAgentConfigurationVersionEntity { + __typename + agentConfiguration + agentConfigVersionBlob: blob { + blobSignature { + securityFindings + signatureError + signatures { + checksum + checksumAlgorithm + keyId + signature + signatureSpecification + signingAlgorithm + signingDomain + } + validationError + } + checksum + checksumAlgorithm + contentType + id + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } + agentConfigVersion: version +} +... on EntityManagementAgentEffectiveConfigurationEntity { + __typename + effectiveConfigBlob: blob { + blobSignature { + securityFindings + signatureError + signatures { + checksum + checksumAlgorithm + keyId + signature + signatureSpecification + signingAlgorithm + signingDomain + } + validationError + } + checksum + checksumAlgorithm + contentType + id + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } +} +... on EntityManagementAgentEntity { + __typename + agentType + fleetControlProperties { + appliedDeployment { + completedAt + fleet + id + managedEntity + startedAt + status + } + environment + healthy + lastError + lastRemoteConfigError + lastRemoteConfigStatus + startTime + uid + version + } + infrastructureManagers { + type + version + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } + agentEntityVersion: version +} +... on EntityManagementAgentTypeDefinitionEntity { + __typename + agentType + displayName + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } +} +... on EntityManagementAiAgentEntity { + __typename + aiAgentCategory: category + aiAgentDescription: description + llmConfig { + cacheSeed + temperature + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + prompt + scope { + id + type + } + tags { + key + values + } +} +... on EntityManagementAiToolEntity { + __typename + aiToolDescription: description + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + parameters { + description + name + type + } + scope { + id + type + } + tags { + key + values + } + aiToolUrl: url +} +... on EntityManagementBudgetEntity { + __typename + budgetAlertPolicies { + id + } + budgetLimits { + consumptionMetric + value + } + budgetSegment { + accounts { + id + } + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + organizationBudget + scope { + id + type + } + tags { + key + values + } +} +... on EntityManagementCollectionEntity { + __typename + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } +} +... on EntityManagementComponentEntity { + __typename + dataSources + componentDescription: description + ingestDataTypes + internalServiceNames + isPubliclyAccessible + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } +} +... on EntityManagementConfluenceIntegration { + __typename + confluenceUserId + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + secretKey + tags { + key + values + } + confluenceUrl: url +} +... on EntityManagementConfluenceRagSettingsEntity { + __typename + characterTextSplitterOptions { + isSeparatorRegex + separator + } + chunkOverlap + chunkSize + confluenceIntegrationId + confluenceQuery + intervalSeconds + lastPullTime + markdownTextSplitterOptions { + headersToSplitOn + returnEachLine + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + nextPullTime + scope { + id + type + } + tags { + key + values + } + textSplitterType + tokenTextSplitterOptions { + encodingName + } +} +... on EntityManagementCustomerImpactEntity { + __typename + impact { + impactedAttribute1 { + blob { + checksum + checksumAlgorithm + contentType + id + } + label + } + impactedAttribute2 { + blob { + checksum + checksumAlgorithm + contentType + id + } + label + } + impactedAttribute3 { + blob { + checksum + checksumAlgorithm + contentType + id + } + label + } + impactedComponent { + dataSources + description + id + ingestDataTypes + internalServiceNames + isPubliclyAccessible + metadata { + createdAt + updatedAt + version + } + name + scope { + id + type + } + tags { + key + values + } + type + } + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } +} +... on EntityManagementFleetDeploymentEntity { + __typename + configurationVersionList { + id + } + configurationVersions + fleetDeploymentDescription: description + fleetId + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + phase + ringsDeploymentTracker { + completedAt + name + startedAt + status + } + scope { + id + type + } + tags { + key + values + } +} +... on EntityManagementFleetEntity { + __typename + currentDeployment { + canaryManagedEntities + configsChanged + configurationVersions + deployedAt + description + entitiesChanged + managedEntitiesChanged + managedEntitiesRequiredToChange + metadata { + createdAt + updatedAt + userId + } + name + status + supervisedAgentEntitiesChanged + supervisedAgentEntitiesRequiredToChange + } + fleetDescription: description + managedEntityRings { + id + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + name + scope { + id + type + } + tags { + key + values + } + type + } + fleetManagedEntityType: managedEntityType + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + product + scope { + id + type + } + tags { + key + values + } +} +... on EntityManagementFleetRingEntity { + __typename + fleetId + managedEntities { + id + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + name + scope { + id + type + } + tags { + key + values + } + type + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } +} +... on EntityManagementGenericEntity { + __typename + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } +} +... on EntityManagementGitHubIntegrationEntity { + __typename + count { + repoCount + teamCount + } + gitHubSyncOptions { + syncRepositories + syncTeams + } + installationId + installationStatus + lastSyncCompletedAt + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + nextSyncAt + scope { + id + type + } + tags { + key + values + } +} +... on EntityManagementGitRepositoryEntity { + __typename + closedPullRequestCount + repoConfiguration: configuration { + blob { + blobSignature { + securityFindings + signatureError + validationError + } + checksum + checksumAlgorithm + contentType + id + } + source + updatedAt + updatedBy + } + gitRepoDescription: description + externalCreatedAt + gitRepoExternalId: externalId + externalLastDeployedAt + externalOwner { + id + type + } + externalUpdatedAt + forkCount + hostingPlatform + latestReleaseVersion + license { + name + url + } + lockedPullRequestCount + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + openPullRequestCount + primaryLanguage + scope { + id + type + } + tags { + key + values + } + gitRepoUrl: url +} +... on EntityManagementGithubConnection { + __typename + credential { + appToken { + appId + installationId + privateKeyReference { + keyName + namespace + } + tokenFieldName + tokenRelativeUrl + } + personalAccessToken { + keyName + namespace + } + } + githubConnectionDescription: description + githubConnectionEnabled: enabled + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + settings { + key + value + } + signingCredentials { + signingAlgorithm + signingKeyReference { + keyName + namespace + } + } + tags { + key + values + } + githubConnectionUrl: url +} +... on EntityManagementInboxIssueCategoryEntity { + __typename + categoryScope { + id + type + } + categoryType + inboxIssueType: issueType + messageAttributes + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + nameAttributes + scope { + id + type + } + tags { + key + values + } +} +... on EntityManagementJiraConnection { + __typename + credential { + basicAuth { + apiKey { + keyName + namespace + } + username { + keyName + namespace + } + } + oauth { + clientId + clientSecret { + keyName + namespace + } + tokenFieldName + tokenUrl + } + personalAccessToken { + keyName + namespace + } + } + jiraConnectionDescription: description + jiraConnectionEnabled: enabled + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + settings { + key + value + } + signingCredentials { + signingAlgorithm + signingKeyReference { + keyName + namespace + } + } + tags { + key + values + } + jiraConnectionUrl: url +} +... on EntityManagementJiraSyncConfiguration { + __typename + assigneeQuery + connection + correlationFieldName + jiraSyncDescription: description + direction + jiraSyncEnabled: enabled + jiraSyncIssueType: issueType + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + mode + projectKey + scope { + id + type + } + tags { + key + values + } + targets { + key + values + } + templateFields { + direction + name + required + template + } +} +... on EntityManagementMaintenanceWindowEntity { + __typename + maintenanceCronExpression: cronExpression + maintenanceWindowDescription: description + maintenanceDuration + maintenancePeriodEndDate + maintenancePeriodStartDate + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + nextOccurrenceEnd + nextOccurrenceStart + scope { + id + type + } + tags { + key + values + } +} +... on EntityManagementNewRelicConnection { + __typename + credential { + apiKey { + keyName + namespace + } + type + } + newrelicConnectionDescription: description + newrelicConnectionEnabled: enabled + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + newrelicConnectionRegion: region + scope { + id + type + } + settings { + key + value + } + signingCredentials { + signingAlgorithm + signingKeyReference { + keyName + namespace + } + } + tags { + key + values + } +} +... on EntityManagementNotebookEntity { + __typename + notebookConfig: config { + blobSignature { + securityFindings + signatureError + signatures { + checksum + checksumAlgorithm + keyId + signature + signatureSpecification + signingAlgorithm + signingDomain + } + validationError + } + checksum + checksumAlgorithm + contentType + id + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } +} +... on EntityManagementPerformanceInboxSettingEntity { + __typename + performanceInboxConfig: config { + attributes { + key + value + } + name + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } +} +... on EntityManagementPipelineCloudRuleEntity { + __typename + pipelineRuleDescription: description + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + nrql + scope { + id + type + } + tags { + key + values + } +} +... on EntityManagementRagDocumentEntity { + __typename + authorEmails + ragDocumentBlob: blob { + blobSignature { + securityFindings + signatureError + signatures { + checksum + checksumAlgorithm + keyId + signature + signatureSpecification + signingAlgorithm + signingDomain + } + validationError + } + checksum + checksumAlgorithm + contentType + id + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + sourceIdentifier + tags { + key + values + } +} +... on EntityManagementRagToolEntity { + __typename + ragToolDescription: description + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } +} +... on EntityManagementScorecardEntity { + __typename + scorecardDescription: description + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + rules { + id + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + name + scope { + id + type + } + tags { + key + values + } + type + } + scope { + id + type + } + tags { + key + values + } +} +... on EntityManagementScorecardRuleEntity { + __typename + scorecardRuleDescription: description + scorecardRuleEnabled: enabled + lastExecutionStatus { + checkedEntities + executedAt + executionIssues { + statusCode + statusMessage + } + executionStatus + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + nrqlEngine { + accounts + joinAccounts + query + } + scope { + id + type + } + tags { + key + values + } +} +... on EntityManagementServiceNowConnection { + __typename + credential { + basicAuth { + apiKey { + keyName + namespace + } + } + oauth { + clientId + clientSecret { + keyName + namespace + } + tokenFieldName + tokenRelativeUrl + } + } + servicenowConnectionDescription: description + servicenowConnectionEnabled: enabled + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + settings { + key + value + } + signingCredentials { + signingAlgorithm + signingKeyReference { + keyName + namespace + } + } + tags { + key + values + } + servicenowConnectionUrl: url +} +... on EntityManagementSlackConnection { + __typename + appId + slackConnectionDescription: description + slackConnectionEnabled: enabled + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + settings { + key + value + } + signingCredentials { + signingAlgorithm + signingKeyReference { + keyName + namespace + } + } + tags { + key + values + } + token { + keyName + namespace + } + workspace +} +... on EntityManagementSlackSyncConfiguration { + __typename + channelIdPayloadPath + connection + slackSyncDescription: description + direction + slackSyncEnabled: enabled + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + mode + scope { + id + type + } + tags { + key + values + } + targets { + key + values + } + templateFields { + direction + name + required + template + } +} +... on EntityManagementStatusPageIncidentEntity { + __typename + communicationLogs { + communicatedBy + communicationMode + communicationStatus + impact { + id + metadata { + createdAt + updatedAt + version + } + name + scope { + id + type + } + tags { + key + values + } + type + } + message + timestamp + } + statusPageIncidentDescription: description + endTime + incidentId + incidentTitle + lastUpdatedTime + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + statusPageIncidentRegion: region + scope { + id + type + } + startTime + incidentStatus: status + tags { + key + values + } +} +... on EntityManagementTeamEntity { + __typename + aliases + teamDescription: description + externalIntegration { + externalId + type + } + membership { + id + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + name + scope { + id + type + } + tags { + key + values + } + type + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + ownership { + id + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + name + scope { + id + type + } + tags { + key + values + } + type + } + resources { + content + title + type + } + scope { + id + type + } + tags { + key + values + } +} +... on EntityManagementTeamsOrganizationSettingsEntity { + __typename + discovery { + enabled + tagKeys + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + syncGroups { + enabled + rules { + conditions { + type + value + } + } + } + tags { + key + values + } +} +... on EntityManagementUserEntity { + __typename + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } + userId +} +... on EntityManagementWorkItem { + __typename + assignedTo { + identifier + type + } + attributes { + name + value + } + workItemCategory: category + workItemDescription: description + workItemExternalId: externalId + messages { + id + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + name + scope { + id + type + } + tags { + key + values + } + type + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + priority + scope { + id + type + } + workItemStatus: status + tags { + key + values + } +} +... on EntityManagementWorkItemMessage { + __typename + content + contentEncoding + contentType + workItemMessageExternalId: externalId + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + parentId + scope { + id + type + } + sourceSyncConfigurationId + tags { + key + values + } +} +... on EntityManagementWorkflowDefinition { + __typename + workflowDefinitionDescription: description + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } + versions +} +... on EntityManagementWorkflowSchedule { + __typename + workflowCronExpression: cronExpression + definition { + id + version + } + workflowScheduleDescription: description + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + overlapPolicy + scope { + id + type + } + tags { + key + values + } +} +} } } }` + +// Retrieves a set of entities that match the given query predicate. +func (a *Entitymanagement) GetEntitySearch( + cursor string, + query string, +) (*EntityManagementEntitySearchResult, error) { + return a.GetEntitySearchWithContext(context.Background(), + cursor, + query, + ) +} + +// Retrieves a set of entities that match the given query predicate. +func (a *Entitymanagement) GetEntitySearchWithContext( + ctx context.Context, + cursor string, + query string, +) (*EntityManagementEntitySearchResult, error) { + + resp := entitySearchResponse{} + vars := map[string]interface{}{ + "cursor": cursor, + "query": query, + } + + if err := a.client.NerdGraphQueryWithContext(ctx, getEntitySearchQuery, vars, &resp); err != nil { + return nil, err + } + + return &resp.Actor.EntityManagement.EntitySearch, nil +} + +const getEntitySearchQuery = `query( + $query: String!, +) { actor { entityManagement { entitySearch( + query: $query, +) { + entities { + __typename + id + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + name + scope { + id + type + } + tags { + key + values + } + type + ... on EntityManagementAgentConfigurationEntity { + __typename + agentType + managedEntityType + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } + versionCount + } + ... on EntityManagementAgentConfigurationVersionEntity { + __typename + agentConfiguration + blob { + blobSignature { + securityFindings + signatureError + validationError + } + checksum + checksumAlgorithm + contentType + id + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } + version + } + ... on EntityManagementAgentEffectiveConfigurationEntity { + __typename + blob { + blobSignature { + securityFindings + signatureError + validationError + } + checksum + checksumAlgorithm + contentType + id + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } + } + ... on EntityManagementAgentEntity { + __typename + agentType + fleetControlProperties { + appliedDeployment { + completedAt + fleet + id + managedEntity + startedAt + status + } + environment + healthy + lastError + lastRemoteConfigError + lastRemoteConfigStatus + startTime + uid + version + } + infrastructureManagers { + type + version + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } + version + } + ... on EntityManagementAgentTypeDefinitionEntity { + __typename + agentType + displayName + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } + } + ... on EntityManagementAiAgentEntity { + __typename + category + description + llmConfig { + cacheSeed + temperature + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + prompt + scope { + id + type + } + tags { + key + values + } + } + ... on EntityManagementAiToolEntity { + __typename + description + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + parameters { + description + name + type + } + scope { + id + type + } + tags { + key + values + } + url + } + ... on EntityManagementBudgetEntity { + __typename + budgetAlertPolicies { + id + } + budgetLimits { + consumptionMetric + value + } + budgetSegment { + accounts { + id + } + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + organizationBudget + scope { + id + type + } + tags { + key + values + } + } + ... on EntityManagementCollectionEntity { + __typename + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } + } + ... on EntityManagementComponentEntity { + __typename + dataSources + description + ingestDataTypes + internalServiceNames + isPubliclyAccessible + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } + } + ... on EntityManagementConfluenceIntegration { + __typename + confluenceUserId + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + secretKey + tags { + key + values + } + url + } + ... on EntityManagementConfluenceRagSettingsEntity { + __typename + characterTextSplitterOptions { + isSeparatorRegex + separator + } + chunkOverlap + chunkSize + confluenceIntegrationId + confluenceQuery + intervalSeconds + lastPullTime + markdownTextSplitterOptions { + headersToSplitOn + returnEachLine + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + nextPullTime + scope { + id + type + } + tags { + key + values + } + textSplitterType + tokenTextSplitterOptions { + encodingName + } + } + ... on EntityManagementCustomerImpactEntity { + __typename + impact { + impactedAttribute1 { + label + } + impactedAttribute2 { + label + } + impactedAttribute3 { + label + } + impactedComponent { + dataSources + description + id + ingestDataTypes + internalServiceNames + isPubliclyAccessible + name + type + } + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } + } + ... on EntityManagementFleetDeploymentEntity { + __typename + configurationVersionList { + id + } + configurationVersions + description + fleetId + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + phase + ringsDeploymentTracker { + completedAt + name + startedAt + status + } + scope { + id + type + } + tags { + key + values + } + } + ... on EntityManagementFleetEntity { + __typename + currentDeployment { + canaryManagedEntities + configsChanged + configurationVersions + deployedAt + description + entitiesChanged + managedEntitiesChanged + managedEntitiesRequiredToChange + metadata { + createdAt + updatedAt + userId + } + name + status + supervisedAgentEntitiesChanged + supervisedAgentEntitiesRequiredToChange + } + description + managedEntityRings { + id + metadata { + createdAt + updatedAt + version + } + name + scope { + id + type + } + tags { + key + values + } + type + } + managedEntityType + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + product + scope { + id + type + } + tags { + key + values + } + } + ... on EntityManagementFleetRingEntity { + __typename + fleetId + managedEntities { + id + metadata { + createdAt + updatedAt + version + } + name + scope { + id + type + } + tags { + key + values + } + type + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } + } + ... on EntityManagementGenericEntity { + __typename + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } + } + ... on EntityManagementGitHubIntegrationEntity { + __typename + count { + repoCount + teamCount + } + gitHubSyncOptions { + syncRepositories + syncTeams + } + installationId + installationStatus + lastSyncCompletedAt + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + nextSyncAt + scope { + id + type + } + tags { + key + values + } + } + ... on EntityManagementGitRepositoryEntity { + __typename + closedPullRequestCount + configuration { + blob { + checksum + checksumAlgorithm + contentType + id + } + source + updatedAt + updatedBy + } + description + externalCreatedAt + externalId + externalLastDeployedAt + externalOwner { + id + type + } + externalUpdatedAt + forkCount + hostingPlatform + latestReleaseVersion + license { + name + url + } + lockedPullRequestCount + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + openPullRequestCount + primaryLanguage + scope { + id + type + } + tags { + key + values + } + url + } + ... on EntityManagementGithubConnection { + __typename + credential { + appToken { + appId + installationId + tokenFieldName + tokenRelativeUrl + } + personalAccessToken { + keyName + namespace + } + } + description + enabled + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + settings { + key + value + } + signingCredentials { + signingAlgorithm + signingKeyReference { + keyName + namespace + } + } + tags { + key + values + } + url + } + ... on EntityManagementInboxIssueCategoryEntity { + __typename + categoryScope { + id + type + } + categoryType + issueType + messageAttributes + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + nameAttributes + scope { + id + type + } + tags { + key + values + } + } + ... on EntityManagementJiraConnection { + __typename + credential { + oauth { + clientId + tokenFieldName + tokenUrl + } + personalAccessToken { + keyName + namespace + } + } + description + enabled + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + settings { + key + value + } + signingCredentials { + signingAlgorithm + signingKeyReference { + keyName + namespace + } + } + tags { + key + values + } + url + } + ... on EntityManagementJiraSyncConfiguration { + __typename + assigneeQuery + connection + correlationFieldName + description + direction + enabled + issueType + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + mode + projectKey + scope { + id + type + } + tags { + key + values + } + targets { + key + values + } + templateFields { + direction + name + required + template + } + } + ... on EntityManagementMaintenanceWindowEntity { + __typename + cronExpression + description + maintenanceDuration + maintenancePeriodEndDate + maintenancePeriodStartDate + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + nextOccurrenceEnd + nextOccurrenceStart + scope { + id + type + } + tags { + key + values + } + } + ... on EntityManagementNewRelicConnection { + __typename + credential { + apiKey { + keyName + namespace + } + type + } + description + enabled + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + region + scope { + id + type + } + settings { + key + value + } + signingCredentials { + signingAlgorithm + signingKeyReference { + keyName + namespace + } + } + tags { + key + values + } + } + ... on EntityManagementNotebookEntity { + __typename + config { + blobSignature { + securityFindings + signatureError + validationError + } + checksum + checksumAlgorithm + contentType + id + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } + } + ... on EntityManagementPerformanceInboxSettingEntity { + __typename + config { + attributes { + key + value + } + name + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } + } + ... on EntityManagementPipelineCloudRuleEntity { + __typename + description + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + nrql + scope { + id + type + } + tags { + key + values + } + } + ... on EntityManagementRagDocumentEntity { + __typename + authorEmails + blob { + blobSignature { + securityFindings + signatureError + validationError + } + checksum + checksumAlgorithm + contentType + id + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + sourceIdentifier + tags { + key + values + } + } + ... on EntityManagementRagToolEntity { + __typename + description + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } + } + ... on EntityManagementScorecardEntity { + __typename + description + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + rules { + id + metadata { + createdAt + updatedAt + version + } + name + scope { + id + type + } + tags { + key + values + } + type + } + scope { + id + type + } + tags { + key + values + } + } + ... on EntityManagementScorecardRuleEntity { + __typename + description + enabled + lastExecutionStatus { + checkedEntities + executedAt + executionIssues { + statusCode + statusMessage + } + executionStatus + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + nrqlEngine { + accounts + joinAccounts + query + } + scope { + id + type + } + tags { + key + values + } + } + ... on EntityManagementServiceNowConnection { + __typename + credential { + oauth { + clientId + tokenFieldName + tokenRelativeUrl + } + } + description + enabled + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + settings { + key + value + } + signingCredentials { + signingAlgorithm + signingKeyReference { + keyName + namespace + } + } + tags { + key + values + } + url + } + ... on EntityManagementSlackConnection { + __typename + appId + description + enabled + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + settings { + key + value + } + signingCredentials { + signingAlgorithm + signingKeyReference { + keyName + namespace + } + } + tags { + key + values + } + token { + keyName + namespace + } + workspace + } + ... on EntityManagementSlackSyncConfiguration { + __typename + channelIdPayloadPath + connection + description + direction + enabled + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + mode + scope { + id + type + } + tags { + key + values + } + targets { + key + values + } + templateFields { + direction + name + required + template + } + } + ... on EntityManagementStatusPageIncidentEntity { + __typename + communicationLogs { + communicatedBy + communicationMode + communicationStatus + impact { + id + name + type + } + message + timestamp + } + description + endTime + incidentId + incidentTitle + lastUpdatedTime + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + region + scope { + id + type + } + startTime + status + tags { + key + values + } + } + ... on EntityManagementTeamEntity { + __typename + aliases + description + externalIntegration { + externalId + type + } + membership { + id + metadata { + createdAt + updatedAt + version + } + name + scope { + id + type + } + tags { + key + values + } + type + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + ownership { + id + metadata { + createdAt + updatedAt + version + } + name + scope { + id + type + } + tags { + key + values + } + type + } + resources { + content + title + type + } + scope { + id + type + } + tags { + key + values + } + } + ... on EntityManagementTeamsOrganizationSettingsEntity { + __typename + discovery { + enabled + tagKeys + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + syncGroups { + enabled + } + tags { + key + values + } + } + ... on EntityManagementUserEntity { + __typename + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } + userId + } + ... on EntityManagementWorkItem { + __typename + assignedTo { + identifier + type + } + attributes { + name + value + } + category + description + externalId + messages { + id + metadata { + createdAt + updatedAt + version + } + name + scope { + id + type + } + tags { + key + values + } + type + } + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + priority + scope { + id + type + } + status + tags { + key + values + } + } + ... on EntityManagementWorkItemMessage { + __typename + content + contentEncoding + contentType + externalId + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + parentId + scope { + id + type + } + sourceSyncConfigurationId + tags { + key + values + } + } + ... on EntityManagementWorkflowDefinition { + __typename + description + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + scope { + id + type + } + tags { + key + values + } + versions + } + ... on EntityManagementWorkflowSchedule { + __typename + cronExpression + definition { + id + version + } + description + metadata { + createdAt + createdBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + updatedAt + updatedBy { + __typename + id + ... on EntityManagementSystemActor { + __typename + } + ... on EntityManagementUserActor { + __typename + } + } + version + } + overlapPolicy + scope { + id + type + } + tags { + key + values + } + } + } + nextCursor +} } } }` diff --git a/pkg/entitymanagement/types.go b/pkg/entitymanagement/types.go new file mode 100644 index 000000000..679ccc16d --- /dev/null +++ b/pkg/entitymanagement/types.go @@ -0,0 +1,10978 @@ +// Code generated by tutone: DO NOT EDIT +package entitymanagement + +import ( + "encoding/json" + "fmt" + + "github.com/newrelic/newrelic-client-go/v2/pkg/nrdb" + "github.com/newrelic/newrelic-client-go/v2/pkg/nrtime" +) + +// AgentApplicationSegmentsListType - Allow lists have two different types. They are either internal lists or user lists. +type AgentApplicationSegmentsListType string + +var AgentApplicationSegmentsListTypeTypes = struct { + // INTERNAL refers to a list that has been generated by New Relic. + INTERNAL AgentApplicationSegmentsListType + // USER refers to a list that has been generated by the customer. + USER AgentApplicationSegmentsListType +}{ + // INTERNAL refers to a list that has been generated by New Relic. + INTERNAL: "INTERNAL", + // USER refers to a list that has been generated by the customer. + USER: "USER", +} + +// AgentApplicationSettingsBrowserLoader - Determines which browser loader will be configured. Some allowed return values are specified for backwards-compatability and do not represent currently allowed values for new applications. +// See [documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for further information. +type AgentApplicationSettingsBrowserLoader string + +var AgentApplicationSettingsBrowserLoaderTypes = struct { + // Use PRO instead + FULL AgentApplicationSettingsBrowserLoader + // Lite: Gives you information about some basic page load timing and browser user information. Lacks the Browser Pro features and SPA features. + LITE AgentApplicationSettingsBrowserLoader + // Don't use an agent. + NONE AgentApplicationSettingsBrowserLoader + // Pro: Gives you access to the Browser Pro features. Lacks the functionality designed for single page app monitoring. + PRO AgentApplicationSettingsBrowserLoader + // This value is no longer in use. + RUM AgentApplicationSettingsBrowserLoader + // Pro+SPA: This is the default installed agent when you enable browser monitoring. Gives you access to all of the Browser Pro features and to Single Page App (SPA) monitoring. Provides detailed page timing data and the most up-to-date New Relic features, including distributed tracing, for all types of applications. + SPA AgentApplicationSettingsBrowserLoader + // This value is specified for backwards-compatability. + XHR AgentApplicationSettingsBrowserLoader +}{ + // Use PRO instead + FULL: "FULL", + // Lite: Gives you information about some basic page load timing and browser user information. Lacks the Browser Pro features and SPA features. + LITE: "LITE", + // Don't use an agent. + NONE: "NONE", + // Pro: Gives you access to the Browser Pro features. Lacks the functionality designed for single page app monitoring. + PRO: "PRO", + // This value is no longer in use. + RUM: "RUM", + // Pro+SPA: This is the default installed agent when you enable browser monitoring. Gives you access to all of the Browser Pro features and to Single Page App (SPA) monitoring. Provides detailed page timing data and the most up-to-date New Relic features, including distributed tracing, for all types of applications. + SPA: "SPA", + // This value is specified for backwards-compatability. + XHR: "XHR", +} + +// AgentApplicationSettingsMobileSessionReplayMode - Determines the mode for session replay mobile applications. Valid settings are: 'DEFAULT', 'CUSTOM'. +type AgentApplicationSettingsMobileSessionReplayMode string + +var AgentApplicationSettingsMobileSessionReplayModeTypes = struct { + // Custom value of mode in session replay in mobile settings + CUSTOM AgentApplicationSettingsMobileSessionReplayMode + // [DEFAULT] Default value of mode in session replay in mobile settings + DEFAULT AgentApplicationSettingsMobileSessionReplayMode +}{ + // Custom value of mode in session replay in mobile settings + CUSTOM: "CUSTOM", + // [DEFAULT] Default value of mode in session replay in mobile settings + DEFAULT: "DEFAULT", +} + +// AgentApplicationSettingsNetworkFilterMode - Configuration setting to apply either the show or hide strategy for network filtering. +type AgentApplicationSettingsNetworkFilterMode string + +var AgentApplicationSettingsNetworkFilterModeTypes = struct { + // Disables both show and hide confurations. + DISABLED AgentApplicationSettingsNetworkFilterMode + // Use the hide list configuration. + HIDE AgentApplicationSettingsNetworkFilterMode + // Use the show list configuration. + SHOW AgentApplicationSettingsNetworkFilterMode +}{ + // Disables both show and hide confurations. + DISABLED: "DISABLED", + // Use the hide list configuration. + HIDE: "HIDE", + // Use the show list configuration. + SHOW: "SHOW", +} + +// AgentApplicationSettingsRecordSqlEnum - Obfuscation level for SQL queries reported in transaction trace nodes. +// +// When turned on, the New Relic agent will attempt to remove values from SQL qeries. +// +// For example: +// +// ``` +// SELECT * FROM Table WHERE ssn='123-45-6789' +// ``` +// +// might become: +// +// ``` +// SELECT * FROM Table WHERE ssn=? +// ``` +// +// This can behave differently for differnet applications and frameworks. Please test for your specific case. +// Note: RAW collection is not campatible with High Security mode and cannot be set if your agent is running in that mode. +type AgentApplicationSettingsRecordSqlEnum string + +var AgentApplicationSettingsRecordSqlEnumTypes = struct { + // This is the default value. This setting strips string literals and numeric sequences from your queries and replaces them with the ? character. For example: the query select * from table where ssn='123-45-6789' would become select * from table where ssn=?. + OBFUSCATED AgentApplicationSettingsRecordSqlEnum + // Query collection is turned off entirely. + OFF AgentApplicationSettingsRecordSqlEnum + // If you are confident that full query data collection will not impact your data security or your users' privacy, you can change the setting to RAW, which will record all query values. NOTE: 'RAW' is not permitted when 'High security mode' is enabled. + RAW AgentApplicationSettingsRecordSqlEnum +}{ + // This is the default value. This setting strips string literals and numeric sequences from your queries and replaces them with the ? character. For example: the query select * from table where ssn='123-45-6789' would become select * from table where ssn=?. + OBFUSCATED: "OBFUSCATED", + // Query collection is turned off entirely. + OFF: "OFF", + // If you are confident that full query data collection will not impact your data security or your users' privacy, you can change the setting to RAW, which will record all query values. NOTE: 'RAW' is not permitted when 'High security mode' is enabled. + RAW: "RAW", +} + +// AgentApplicationSettingsSessionTraceMode - Default (fixed_rate) or custom (probabilistic) option used to collect session traces. +type AgentApplicationSettingsSessionTraceMode string + +var AgentApplicationSettingsSessionTraceModeTypes = struct { + // Fixed Rate mode for Session Trace + // (Default) Session traces are randomly sampled and stored at a rate of 90/hour. + FIXED_RATE AgentApplicationSettingsSessionTraceMode + // Probabilistic mode for Session Trace + // (Custom) Opt to collect more session traces using percentage from 0-100. + PROBABILISTIC AgentApplicationSettingsSessionTraceMode +}{ + // Fixed Rate mode for Session Trace + // (Default) Session traces are randomly sampled and stored at a rate of 90/hour. + FIXED_RATE: "FIXED_RATE", + // Probabilistic mode for Session Trace + // (Custom) Opt to collect more session traces using percentage from 0-100. + PROBABILISTIC: "PROBABILISTIC", +} + +// AgentApplicationSettingsThresholdTypeEnum - Determines whether a threshold is statically configured or dynamically configured. +type AgentApplicationSettingsThresholdTypeEnum string + +var AgentApplicationSettingsThresholdTypeEnumTypes = struct { + // Configures the threshold to be 4 times the value of APDEX_T. + APDEX_F AgentApplicationSettingsThresholdTypeEnum + // Threshold will be statically configured via the corresponding "value" field. + VALUE AgentApplicationSettingsThresholdTypeEnum +}{ + // Configures the threshold to be 4 times the value of APDEX_T. + APDEX_F: "APDEX_F", + // Threshold will be statically configured via the corresponding "value" field. + VALUE: "VALUE", +} + +// AgentApplicationSettingsTracer - The type of tracing being done. +type AgentApplicationSettingsTracer string + +var AgentApplicationSettingsTracerTypes = struct { + // Cross-application tracing feature enabled. + CROSS_APPLICATION_TRACER AgentApplicationSettingsTracer + // Distributed tracing feature enabled. + DISTRIBUTED_TRACING AgentApplicationSettingsTracer + // Both cross-application and distributed tracing disabled. + NONE AgentApplicationSettingsTracer + // Opt out of server side settings for Tracer Type + OPT_OUT AgentApplicationSettingsTracer +}{ + // Cross-application tracing feature enabled. + CROSS_APPLICATION_TRACER: "CROSS_APPLICATION_TRACER", + // Distributed tracing feature enabled. + DISTRIBUTED_TRACING: "DISTRIBUTED_TRACING", + // Both cross-application and distributed tracing disabled. + NONE: "NONE", + // Opt out of server side settings for Tracer Type + OPT_OUT: "OPT_OUT", +} + +// BrowserAgentInstallType - Browser agent install types. +type BrowserAgentInstallType string + +var BrowserAgentInstallTypeTypes = struct { + // Lite agent install type. + LITE BrowserAgentInstallType + // Pro agent install type. + PRO BrowserAgentInstallType + // Pro + SPA agent install type. + PRO_SPA BrowserAgentInstallType +}{ + // Lite agent install type. + LITE: "LITE", + // Pro agent install type. + PRO: "PRO", + // Pro + SPA agent install type. + PRO_SPA: "PRO_SPA", +} + +// ChangeTrackingDeploymentType - Type of deployment. +type ChangeTrackingDeploymentType string + +var ChangeTrackingDeploymentTypeTypes = struct { + // A vanilla deployment + BASIC ChangeTrackingDeploymentType + // Blue-green deployment + BLUE_GREEN ChangeTrackingDeploymentType + // Canary deployment + CANARY ChangeTrackingDeploymentType + // Other types of deployment. + OTHER ChangeTrackingDeploymentType + // Rolling deployment. + ROLLING ChangeTrackingDeploymentType + // Shadow deployment + SHADOW ChangeTrackingDeploymentType +}{ + // A vanilla deployment + BASIC: "BASIC", + // Blue-green deployment + BLUE_GREEN: "BLUE_GREEN", + // Canary deployment + CANARY: "CANARY", + // Other types of deployment. + OTHER: "OTHER", + // Rolling deployment. + ROLLING: "ROLLING", + // Shadow deployment + SHADOW: "SHADOW", +} + +// ChartFormatType - Represents all the format types available for static charts. +type ChartFormatType string + +var ChartFormatTypeTypes = struct { + PDF ChartFormatType + PNG ChartFormatType +}{ + PDF: "PDF", + PNG: "PNG", +} + +// ChartImageType - Represents all the visualization types available for static charts. +type ChartImageType string + +var ChartImageTypeTypes = struct { + APDEX ChartImageType + AREA ChartImageType + BAR ChartImageType + BASELINE ChartImageType + BILLBOARD ChartImageType + BULLET ChartImageType + EVENT_FEED ChartImageType + FUNNEL ChartImageType + HEATMAP ChartImageType + HISTOGRAM ChartImageType + LINE ChartImageType + PIE ChartImageType + SCATTER ChartImageType + STACKED_HORIZONTAL_BAR ChartImageType + TABLE ChartImageType + VERTICAL_BAR ChartImageType +}{ + APDEX: "APDEX", + AREA: "AREA", + BAR: "BAR", + BASELINE: "BASELINE", + BILLBOARD: "BILLBOARD", + BULLET: "BULLET", + EVENT_FEED: "EVENT_FEED", + FUNNEL: "FUNNEL", + HEATMAP: "HEATMAP", + HISTOGRAM: "HISTOGRAM", + LINE: "LINE", + PIE: "PIE", + SCATTER: "SCATTER", + STACKED_HORIZONTAL_BAR: "STACKED_HORIZONTAL_BAR", + TABLE: "TABLE", + VERTICAL_BAR: "VERTICAL_BAR", +} + +// DashboardAlertSeverity - Alert severity. +type DashboardAlertSeverity string + +var DashboardAlertSeverityTypes = struct { + // CRITICAL. + CRITICAL DashboardAlertSeverity + // NOT_ALERTING. + NOT_ALERTING DashboardAlertSeverity + // WARNING. + WARNING DashboardAlertSeverity +}{ + // CRITICAL. + CRITICAL: "CRITICAL", + // NOT_ALERTING. + NOT_ALERTING: "NOT_ALERTING", + // WARNING. + WARNING: "WARNING", +} + +// DashboardEntityPermissions - Permisions that represent visibility & editability +type DashboardEntityPermissions string + +var DashboardEntityPermissionsTypes = struct { + // Private + PRIVATE DashboardEntityPermissions + // Public read only + PUBLIC_READ_ONLY DashboardEntityPermissions + // Public read & write + PUBLIC_READ_WRITE DashboardEntityPermissions +}{ + // Private + PRIVATE: "PRIVATE", + // Public read only + PUBLIC_READ_ONLY: "PUBLIC_READ_ONLY", + // Public read & write + PUBLIC_READ_WRITE: "PUBLIC_READ_WRITE", +} + +// DashboardVariableReplacementStrategy - Possible strategies when replacing variables in a NRQL query. +type DashboardVariableReplacementStrategy string + +var DashboardVariableReplacementStrategyTypes = struct { + // Replace the variable based on its automatically-inferred type. + DEFAULT DashboardVariableReplacementStrategy + // Replace the variable value as an identifier. + IDENTIFIER DashboardVariableReplacementStrategy + // Replace the variable value as a number. + NUMBER DashboardVariableReplacementStrategy + // Replace the variable value as a string. + STRING DashboardVariableReplacementStrategy +}{ + // Replace the variable based on its automatically-inferred type. + DEFAULT: "DEFAULT", + // Replace the variable value as an identifier. + IDENTIFIER: "IDENTIFIER", + // Replace the variable value as a number. + NUMBER: "NUMBER", + // Replace the variable value as a string. + STRING: "STRING", +} + +// DashboardVariableType - Indicates where a variable's possible values may come from. +type DashboardVariableType string + +var DashboardVariableTypeTypes = struct { + // Value comes from an enumerated list of possible values. + ENUM DashboardVariableType + // Value comes from the results of a NRQL query. + NRQL DashboardVariableType + // Dashboard user can supply an arbitrary string value to variable. + STRING DashboardVariableType +}{ + // Value comes from an enumerated list of possible values. + ENUM: "ENUM", + // Value comes from the results of a NRQL query. + NRQL: "NRQL", + // Dashboard user can supply an arbitrary string value to variable. + STRING: "STRING", +} + +// EmbeddedChartType - Represents all the visualization types available for embedded charts. +type EmbeddedChartType string + +var EmbeddedChartTypeTypes = struct { + APDEX EmbeddedChartType + AREA EmbeddedChartType + BAR EmbeddedChartType + BASELINE EmbeddedChartType + BILLBOARD EmbeddedChartType + BULLET EmbeddedChartType + EMPTY EmbeddedChartType + EVENT_FEED EmbeddedChartType + FUNNEL EmbeddedChartType + HEATMAP EmbeddedChartType + HISTOGRAM EmbeddedChartType + JSON EmbeddedChartType + LINE EmbeddedChartType + MARKDOWN EmbeddedChartType + PIE EmbeddedChartType + SCATTER EmbeddedChartType + STACKED_HORIZONTAL_BAR EmbeddedChartType + TABLE EmbeddedChartType + TRAFFIC_LIGHT EmbeddedChartType + VERTICAL_BAR EmbeddedChartType +}{ + APDEX: "APDEX", + AREA: "AREA", + BAR: "BAR", + BASELINE: "BASELINE", + BILLBOARD: "BILLBOARD", + BULLET: "BULLET", + EMPTY: "EMPTY", + EVENT_FEED: "EVENT_FEED", + FUNNEL: "FUNNEL", + HEATMAP: "HEATMAP", + HISTOGRAM: "HISTOGRAM", + JSON: "JSON", + LINE: "LINE", + MARKDOWN: "MARKDOWN", + PIE: "PIE", + SCATTER: "SCATTER", + STACKED_HORIZONTAL_BAR: "STACKED_HORIZONTAL_BAR", + TABLE: "TABLE", + TRAFFIC_LIGHT: "TRAFFIC_LIGHT", + VERTICAL_BAR: "VERTICAL_BAR", +} + +// EntityAlertSeverity - The alert severity of the entity. +type EntityAlertSeverity string + +var EntityAlertSeverityTypes = struct { + // Indicates an entity has a critical violation in progress. + CRITICAL EntityAlertSeverity + // Indicates an entity has no violations and therefore is not alerting. + NOT_ALERTING EntityAlertSeverity + // Indicates an entity is not configured for alerting. + NOT_CONFIGURED EntityAlertSeverity + // Indicates an entity has a warning violation in progress. + WARNING EntityAlertSeverity +}{ + // Indicates an entity has a critical violation in progress. + CRITICAL: "CRITICAL", + // Indicates an entity has no violations and therefore is not alerting. + NOT_ALERTING: "NOT_ALERTING", + // Indicates an entity is not configured for alerting. + NOT_CONFIGURED: "NOT_CONFIGURED", + // Indicates an entity has a warning violation in progress. + WARNING: "WARNING", +} + +// EntityCollectionType - Indicates where this collection is used +type EntityCollectionType string + +var EntityCollectionTypeTypes = struct { + // Collections that define the entities that belong to a team + TEAM EntityCollectionType + // Collections that define the entities that belong to a workload + WORKLOAD EntityCollectionType + // Collections that define the entity groups that are used to calculate the status of a workload + WORKLOAD_STATUS_RULE_GROUP EntityCollectionType +}{ + // Collections that define the entities that belong to a team + TEAM: "TEAM", + // Collections that define the entities that belong to a workload + WORKLOAD: "WORKLOAD", + // Collections that define the entity groups that are used to calculate the status of a workload + WORKLOAD_STATUS_RULE_GROUP: "WORKLOAD_STATUS_RULE_GROUP", +} + +// EntityGoldenEventObjectId - Types of references for the default WHERE clause. +type EntityGoldenEventObjectId string + +var EntityGoldenEventObjectIdTypes = struct { + // The WHERE clause will be done against a domainId. + DOMAIN_IDS EntityGoldenEventObjectId + // The WHERE clause will be done against a GUID. + ENTITY_GUIDS EntityGoldenEventObjectId + // The WHERE clause will be done against the name of the entity. + ENTITY_NAMES EntityGoldenEventObjectId +}{ + // The WHERE clause will be done against a domainId. + DOMAIN_IDS: "DOMAIN_IDS", + // The WHERE clause will be done against a GUID. + ENTITY_GUIDS: "ENTITY_GUIDS", + // The WHERE clause will be done against the name of the entity. + ENTITY_NAMES: "ENTITY_NAMES", +} + +// EntityGoldenMetricUnit - The different units that can be used to express golden metrics. +type EntityGoldenMetricUnit string + +var EntityGoldenMetricUnitTypes = struct { + // Apdex (Application Performance Index). + APDEX EntityGoldenMetricUnit + // Bits. + BITS EntityGoldenMetricUnit + // Bits per second. + BITS_PER_SECOND EntityGoldenMetricUnit + // Bytes. + BYTES EntityGoldenMetricUnit + // Bytes per second. + BYTES_PER_SECOND EntityGoldenMetricUnit + // Degrees celsius. + CELSIUS EntityGoldenMetricUnit + // Count. + COUNT EntityGoldenMetricUnit + // Hertz. + HERTZ EntityGoldenMetricUnit + // Messages per second. + MESSAGES_PER_SECOND EntityGoldenMetricUnit + // Milliseconds. + MS EntityGoldenMetricUnit + // Operations per second. + OPERATIONS_PER_SECOND EntityGoldenMetricUnit + // Pages loaded per second. + PAGES_PER_SECOND EntityGoldenMetricUnit + // Percentage. + PERCENTAGE EntityGoldenMetricUnit + // Requests received per minute. + REQUESTS_PER_MINUTE EntityGoldenMetricUnit + // Requests received per second. + REQUESTS_PER_SECOND EntityGoldenMetricUnit + // Seconds. + SECONDS EntityGoldenMetricUnit + // Timestamp. + TIMESTAMP EntityGoldenMetricUnit +}{ + // Apdex (Application Performance Index). + APDEX: "APDEX", + // Bits. + BITS: "BITS", + // Bits per second. + BITS_PER_SECOND: "BITS_PER_SECOND", + // Bytes. + BYTES: "BYTES", + // Bytes per second. + BYTES_PER_SECOND: "BYTES_PER_SECOND", + // Degrees celsius. + CELSIUS: "CELSIUS", + // Count. + COUNT: "COUNT", + // Hertz. + HERTZ: "HERTZ", + // Messages per second. + MESSAGES_PER_SECOND: "MESSAGES_PER_SECOND", + // Milliseconds. + MS: "MS", + // Operations per second. + OPERATIONS_PER_SECOND: "OPERATIONS_PER_SECOND", + // Pages loaded per second. + PAGES_PER_SECOND: "PAGES_PER_SECOND", + // Percentage. + PERCENTAGE: "PERCENTAGE", + // Requests received per minute. + REQUESTS_PER_MINUTE: "REQUESTS_PER_MINUTE", + // Requests received per second. + REQUESTS_PER_SECOND: "REQUESTS_PER_SECOND", + // Seconds. + SECONDS: "SECONDS", + // Timestamp. + TIMESTAMP: "TIMESTAMP", +} + +// EntityInfrastructureIntegrationType - The type of Infrastructure Integration +type EntityInfrastructureIntegrationType string + +var EntityInfrastructureIntegrationTypeTypes = struct { + // APACHE_SERVER integration + APACHE_SERVER EntityInfrastructureIntegrationType + // AWSELASTICSEARCHNODE integration + AWSELASTICSEARCHNODE EntityInfrastructureIntegrationType + // AWS_ALB integration + AWS_ALB EntityInfrastructureIntegrationType + // AWS_ALB_LISTENER integration + AWS_ALB_LISTENER EntityInfrastructureIntegrationType + // AWS_ALB_LISTENER_RULE integration + AWS_ALB_LISTENER_RULE EntityInfrastructureIntegrationType + // AWS_ALB_TARGET_GROUP integration + AWS_ALB_TARGET_GROUP EntityInfrastructureIntegrationType + // AWS_API_GATEWAY_API integration + AWS_API_GATEWAY_API EntityInfrastructureIntegrationType + // AWS_API_GATEWAY_RESOURCE integration + AWS_API_GATEWAY_RESOURCE EntityInfrastructureIntegrationType + // AWS_API_GATEWAY_RESOURCE_WITH_METRICS integration + AWS_API_GATEWAY_RESOURCE_WITH_METRICS EntityInfrastructureIntegrationType + // AWS_API_GATEWAY_STAGE integration + AWS_API_GATEWAY_STAGE EntityInfrastructureIntegrationType + // AWS_AUTO_SCALING_GROUP integration + AWS_AUTO_SCALING_GROUP EntityInfrastructureIntegrationType + // AWS_AUTO_SCALING_INSTANCE integration + AWS_AUTO_SCALING_INSTANCE EntityInfrastructureIntegrationType + // AWS_AUTO_SCALING_LAUNCH_CONFIGURATION integration + AWS_AUTO_SCALING_LAUNCH_CONFIGURATION EntityInfrastructureIntegrationType + // AWS_AUTO_SCALING_POLICY integration + AWS_AUTO_SCALING_POLICY EntityInfrastructureIntegrationType + // AWS_AUTO_SCALING_REGION_LIMIT integration + AWS_AUTO_SCALING_REGION_LIMIT EntityInfrastructureIntegrationType + // AWS_BILLING_ACCOUNT_COST integration + AWS_BILLING_ACCOUNT_COST EntityInfrastructureIntegrationType + // AWS_BILLING_ACCOUNT_SERVICE_COST integration + AWS_BILLING_ACCOUNT_SERVICE_COST EntityInfrastructureIntegrationType + // AWS_BILLING_BUDGET integration + AWS_BILLING_BUDGET EntityInfrastructureIntegrationType + // AWS_BILLING_SERVICE_COST integration + AWS_BILLING_SERVICE_COST EntityInfrastructureIntegrationType + // AWS_CLOUD_FRONT_DISTRIBUTION integration + AWS_CLOUD_FRONT_DISTRIBUTION EntityInfrastructureIntegrationType + // AWS_CLOUD_TRAIL integration + AWS_CLOUD_TRAIL EntityInfrastructureIntegrationType + // AWS_DYNAMO_DB_GLOBAL_SECONDARY_INDEX integration + AWS_DYNAMO_DB_GLOBAL_SECONDARY_INDEX EntityInfrastructureIntegrationType + // AWS_DYNAMO_DB_REGION integration + AWS_DYNAMO_DB_REGION EntityInfrastructureIntegrationType + // AWS_DYNAMO_DB_TABLE integration + AWS_DYNAMO_DB_TABLE EntityInfrastructureIntegrationType + // AWS_EBS_VOLUME integration + AWS_EBS_VOLUME EntityInfrastructureIntegrationType + // AWS_ECS_CLUSTER integration + AWS_ECS_CLUSTER EntityInfrastructureIntegrationType + // AWS_ECS_SERVICE integration + AWS_ECS_SERVICE EntityInfrastructureIntegrationType + // AWS_EFS_FILE_SYSTEM integration + AWS_EFS_FILE_SYSTEM EntityInfrastructureIntegrationType + // AWS_ELASTICSEARCH_CLUSTER integration + AWS_ELASTICSEARCH_CLUSTER EntityInfrastructureIntegrationType + // AWS_ELASTICSEARCH_INSTANCE integration + AWS_ELASTICSEARCH_INSTANCE EntityInfrastructureIntegrationType + // AWS_ELASTIC_BEANSTALK_ENVIRONMENT integration + AWS_ELASTIC_BEANSTALK_ENVIRONMENT EntityInfrastructureIntegrationType + // AWS_ELASTIC_BEANSTALK_INSTANCE integration + AWS_ELASTIC_BEANSTALK_INSTANCE EntityInfrastructureIntegrationType + // AWS_ELASTIC_MAP_REDUCE_CLUSTER integration + AWS_ELASTIC_MAP_REDUCE_CLUSTER EntityInfrastructureIntegrationType + // AWS_ELASTIC_MAP_REDUCE_INSTANCE integration + AWS_ELASTIC_MAP_REDUCE_INSTANCE EntityInfrastructureIntegrationType + // AWS_ELASTIC_MAP_REDUCE_INSTANCE_FLEET integration + AWS_ELASTIC_MAP_REDUCE_INSTANCE_FLEET EntityInfrastructureIntegrationType + // AWS_ELASTIC_MAP_REDUCE_INSTANCE_GROUP integration + AWS_ELASTIC_MAP_REDUCE_INSTANCE_GROUP EntityInfrastructureIntegrationType + // AWS_ELASTI_CACHE_MEMCACHED_CLUSTER integration + AWS_ELASTI_CACHE_MEMCACHED_CLUSTER EntityInfrastructureIntegrationType + // AWS_ELASTI_CACHE_MEMCACHED_NODE integration + AWS_ELASTI_CACHE_MEMCACHED_NODE EntityInfrastructureIntegrationType + // AWS_ELASTI_CACHE_REDIS_CLUSTER integration + AWS_ELASTI_CACHE_REDIS_CLUSTER EntityInfrastructureIntegrationType + // AWS_ELASTI_CACHE_REDIS_NODE integration + AWS_ELASTI_CACHE_REDIS_NODE EntityInfrastructureIntegrationType + // AWS_ELB integration + AWS_ELB EntityInfrastructureIntegrationType + // AWS_HEALTH_ISSUE integration + AWS_HEALTH_ISSUE EntityInfrastructureIntegrationType + // AWS_HEALTH_NOTIFICATION integration + AWS_HEALTH_NOTIFICATION EntityInfrastructureIntegrationType + // AWS_HEALTH_SCHEDULED_CHANGE integration + AWS_HEALTH_SCHEDULED_CHANGE EntityInfrastructureIntegrationType + // AWS_HEALTH_UNKNOWN integration + AWS_HEALTH_UNKNOWN EntityInfrastructureIntegrationType + // AWS_IAM integration + AWS_IAM EntityInfrastructureIntegrationType + // AWS_IAM_GROUP integration + AWS_IAM_GROUP EntityInfrastructureIntegrationType + // AWS_IAM_OPEN_ID_PROVIDER integration + AWS_IAM_OPEN_ID_PROVIDER EntityInfrastructureIntegrationType + // AWS_IAM_POLICY integration + AWS_IAM_POLICY EntityInfrastructureIntegrationType + // AWS_IAM_ROLE integration + AWS_IAM_ROLE EntityInfrastructureIntegrationType + // AWS_IAM_SAML_PROVIDER integration + AWS_IAM_SAML_PROVIDER EntityInfrastructureIntegrationType + // AWS_IAM_SERVER_CERTIFICATE integration + AWS_IAM_SERVER_CERTIFICATE EntityInfrastructureIntegrationType + // AWS_IAM_USER integration + AWS_IAM_USER EntityInfrastructureIntegrationType + // AWS_IAM_VIRTUAL_MFA_DEVICE integration + AWS_IAM_VIRTUAL_MFA_DEVICE EntityInfrastructureIntegrationType + // AWS_IOT_BROKER integration + AWS_IOT_BROKER EntityInfrastructureIntegrationType + // AWS_IOT_RULE integration + AWS_IOT_RULE EntityInfrastructureIntegrationType + // AWS_IOT_RULE_ACTION integration + AWS_IOT_RULE_ACTION EntityInfrastructureIntegrationType + // AWS_KINESIS_DELIVERY_STREAM integration + AWS_KINESIS_DELIVERY_STREAM EntityInfrastructureIntegrationType + // AWS_KINESIS_STREAM integration + AWS_KINESIS_STREAM EntityInfrastructureIntegrationType + // AWS_KINESIS_STREAM_SHARD integration + AWS_KINESIS_STREAM_SHARD EntityInfrastructureIntegrationType + // AWS_LAMBDA_AGENT_TRANSACTION integration + AWS_LAMBDA_AGENT_TRANSACTION EntityInfrastructureIntegrationType + // AWS_LAMBDA_AGENT_TRANSACTION_ERROR integration + AWS_LAMBDA_AGENT_TRANSACTION_ERROR EntityInfrastructureIntegrationType + // AWS_LAMBDA_EDGE_FUNCTION integration + AWS_LAMBDA_EDGE_FUNCTION EntityInfrastructureIntegrationType + // AWS_LAMBDA_EVENT_SOURCE_MAPPING integration + AWS_LAMBDA_EVENT_SOURCE_MAPPING EntityInfrastructureIntegrationType + // AWS_LAMBDA_FUNCTION integration + AWS_LAMBDA_FUNCTION EntityInfrastructureIntegrationType + // AWS_LAMBDA_FUNCTION_ALIAS integration + AWS_LAMBDA_FUNCTION_ALIAS EntityInfrastructureIntegrationType + // AWS_LAMBDA_OPERATION integration + AWS_LAMBDA_OPERATION EntityInfrastructureIntegrationType + // AWS_LAMBDA_REGION integration + AWS_LAMBDA_REGION EntityInfrastructureIntegrationType + // AWS_LAMBDA_SPAN integration + AWS_LAMBDA_SPAN EntityInfrastructureIntegrationType + // AWS_LAMBDA_TRACE integration + AWS_LAMBDA_TRACE EntityInfrastructureIntegrationType + // AWS_RDS_DB_CLUSTER integration + AWS_RDS_DB_CLUSTER EntityInfrastructureIntegrationType + // AWS_RDS_DB_INSTANCE integration + AWS_RDS_DB_INSTANCE EntityInfrastructureIntegrationType + // AWS_REDSHIFT_CLUSTER integration + AWS_REDSHIFT_CLUSTER EntityInfrastructureIntegrationType + // AWS_REDSHIFT_NODE integration + AWS_REDSHIFT_NODE EntityInfrastructureIntegrationType + // AWS_ROUTE53_HEALTH_CHECK integration + AWS_ROUTE53_HEALTH_CHECK EntityInfrastructureIntegrationType + // AWS_ROUTE53_ZONE integration + AWS_ROUTE53_ZONE EntityInfrastructureIntegrationType + // AWS_ROUTE53_ZONE_RECORD_SET integration + AWS_ROUTE53_ZONE_RECORD_SET EntityInfrastructureIntegrationType + // AWS_S3_BUCKET integration + AWS_S3_BUCKET EntityInfrastructureIntegrationType + // AWS_S3_BUCKET_REQUESTS integration + AWS_S3_BUCKET_REQUESTS EntityInfrastructureIntegrationType + // AWS_SES_CONFIGURATION_SET integration + AWS_SES_CONFIGURATION_SET EntityInfrastructureIntegrationType + // AWS_SES_EVENT_DESTINATION integration + AWS_SES_EVENT_DESTINATION EntityInfrastructureIntegrationType + // AWS_SES_RECEIPT_FILTER integration + AWS_SES_RECEIPT_FILTER EntityInfrastructureIntegrationType + // AWS_SES_RECEIPT_RULE integration + AWS_SES_RECEIPT_RULE EntityInfrastructureIntegrationType + // AWS_SES_RECEIPT_RULE_SET integration + AWS_SES_RECEIPT_RULE_SET EntityInfrastructureIntegrationType + // AWS_SES_REGION integration + AWS_SES_REGION EntityInfrastructureIntegrationType + // AWS_SNS_SUBSCRIPTION integration + AWS_SNS_SUBSCRIPTION EntityInfrastructureIntegrationType + // AWS_SNS_TOPIC integration + AWS_SNS_TOPIC EntityInfrastructureIntegrationType + // AWS_SQS_QUEUE integration + AWS_SQS_QUEUE EntityInfrastructureIntegrationType + // AWS_VPC integration + AWS_VPC EntityInfrastructureIntegrationType + // AWS_VPC_ENDPOINT integration + AWS_VPC_ENDPOINT EntityInfrastructureIntegrationType + // AWS_VPC_INTERNET_GATEWAY integration + AWS_VPC_INTERNET_GATEWAY EntityInfrastructureIntegrationType + // AWS_VPC_NAT_GATEWAY integration + AWS_VPC_NAT_GATEWAY EntityInfrastructureIntegrationType + // AWS_VPC_NETWORK_ACL integration + AWS_VPC_NETWORK_ACL EntityInfrastructureIntegrationType + // AWS_VPC_NETWORK_INTERFACE integration + AWS_VPC_NETWORK_INTERFACE EntityInfrastructureIntegrationType + // AWS_VPC_PEERING_CONNECTION integration + AWS_VPC_PEERING_CONNECTION EntityInfrastructureIntegrationType + // AWS_VPC_ROUTE_TABLE integration + AWS_VPC_ROUTE_TABLE EntityInfrastructureIntegrationType + // AWS_VPC_SECURITY_GROUP integration + AWS_VPC_SECURITY_GROUP EntityInfrastructureIntegrationType + // AWS_VPC_SUBNET integration + AWS_VPC_SUBNET EntityInfrastructureIntegrationType + // AWS_VPC_VPN_CONNECTION integration + AWS_VPC_VPN_CONNECTION EntityInfrastructureIntegrationType + // AWS_VPC_VPN_TUNNEL integration + AWS_VPC_VPN_TUNNEL EntityInfrastructureIntegrationType + // AZURE_APP_SERVICE_HOST_NAME integration + AZURE_APP_SERVICE_HOST_NAME EntityInfrastructureIntegrationType + // AZURE_APP_SERVICE_WEB_APP integration + AZURE_APP_SERVICE_WEB_APP EntityInfrastructureIntegrationType + // AZURE_COSMOS_DB_ACCOUNT integration + AZURE_COSMOS_DB_ACCOUNT EntityInfrastructureIntegrationType + // AZURE_FUNCTIONS_APP integration + AZURE_FUNCTIONS_APP EntityInfrastructureIntegrationType + // AZURE_LOAD_BALANCER integration + AZURE_LOAD_BALANCER EntityInfrastructureIntegrationType + // AZURE_LOAD_BALANCER_BACKEND integration + AZURE_LOAD_BALANCER_BACKEND EntityInfrastructureIntegrationType + // AZURE_LOAD_BALANCER_FRONTEND_IP integration + AZURE_LOAD_BALANCER_FRONTEND_IP EntityInfrastructureIntegrationType + // AZURE_LOAD_BALANCER_INBOUND_NAT_POOL integration + AZURE_LOAD_BALANCER_INBOUND_NAT_POOL EntityInfrastructureIntegrationType + // AZURE_LOAD_BALANCER_INBOUND_NAT_RULE integration + AZURE_LOAD_BALANCER_INBOUND_NAT_RULE EntityInfrastructureIntegrationType + // AZURE_LOAD_BALANCER_PROBE integration + AZURE_LOAD_BALANCER_PROBE EntityInfrastructureIntegrationType + // AZURE_LOAD_BALANCER_RULE integration + AZURE_LOAD_BALANCER_RULE EntityInfrastructureIntegrationType + // AZURE_MARIADB_SERVER integration + AZURE_MARIADB_SERVER EntityInfrastructureIntegrationType + // AZURE_MYSQL_SERVER integration + AZURE_MYSQL_SERVER EntityInfrastructureIntegrationType + // AZURE_POSTGRESQL_SERVER integration + AZURE_POSTGRESQL_SERVER EntityInfrastructureIntegrationType + // AZURE_REDIS_CACHE integration + AZURE_REDIS_CACHE EntityInfrastructureIntegrationType + // AZURE_REDIS_CACHE_SHARD integration + AZURE_REDIS_CACHE_SHARD EntityInfrastructureIntegrationType + // AZURE_SERVICE_BUS_NAMESPACE integration + AZURE_SERVICE_BUS_NAMESPACE EntityInfrastructureIntegrationType + // AZURE_SERVICE_BUS_QUEUE integration + AZURE_SERVICE_BUS_QUEUE EntityInfrastructureIntegrationType + // AZURE_SERVICE_BUS_SUBSCRIPTION integration + AZURE_SERVICE_BUS_SUBSCRIPTION EntityInfrastructureIntegrationType + // AZURE_SERVICE_BUS_TOPIC integration + AZURE_SERVICE_BUS_TOPIC EntityInfrastructureIntegrationType + // AZURE_SQL_DATABASE integration + AZURE_SQL_DATABASE EntityInfrastructureIntegrationType + // AZURE_SQL_ELASTIC_POOL integration + AZURE_SQL_ELASTIC_POOL EntityInfrastructureIntegrationType + // AZURE_SQL_FIREWALL integration + AZURE_SQL_FIREWALL EntityInfrastructureIntegrationType + // AZURE_SQL_REPLICATION_LINK integration + AZURE_SQL_REPLICATION_LINK EntityInfrastructureIntegrationType + // AZURE_SQL_RESTORE_POINT integration + AZURE_SQL_RESTORE_POINT EntityInfrastructureIntegrationType + // AZURE_SQL_SERVER integration + AZURE_SQL_SERVER EntityInfrastructureIntegrationType + // AZURE_STORAGE_ACCOUNT integration + AZURE_STORAGE_ACCOUNT EntityInfrastructureIntegrationType + // AZURE_VIRTUAL_NETWORKS integration + AZURE_VIRTUAL_NETWORKS EntityInfrastructureIntegrationType + // AZURE_VIRTUAL_NETWORKS_IP_CONFIGURATION integration + AZURE_VIRTUAL_NETWORKS_IP_CONFIGURATION EntityInfrastructureIntegrationType + // AZURE_VIRTUAL_NETWORKS_NETWORK_INTERFACE integration + AZURE_VIRTUAL_NETWORKS_NETWORK_INTERFACE EntityInfrastructureIntegrationType + // AZURE_VIRTUAL_NETWORKS_PEERING integration + AZURE_VIRTUAL_NETWORKS_PEERING EntityInfrastructureIntegrationType + // AZURE_VIRTUAL_NETWORKS_PUBLIC_IP_ADDRESS integration + AZURE_VIRTUAL_NETWORKS_PUBLIC_IP_ADDRESS EntityInfrastructureIntegrationType + // AZURE_VIRTUAL_NETWORKS_ROUTE integration + AZURE_VIRTUAL_NETWORKS_ROUTE EntityInfrastructureIntegrationType + // AZURE_VIRTUAL_NETWORKS_ROUTE_TABLE integration + AZURE_VIRTUAL_NETWORKS_ROUTE_TABLE EntityInfrastructureIntegrationType + // AZURE_VIRTUAL_NETWORKS_SECURITY_GROUP integration + AZURE_VIRTUAL_NETWORKS_SECURITY_GROUP EntityInfrastructureIntegrationType + // AZURE_VIRTUAL_NETWORKS_SECURITY_RULE integration + AZURE_VIRTUAL_NETWORKS_SECURITY_RULE EntityInfrastructureIntegrationType + // AZURE_VIRTUAL_NETWORKS_SUBNET integration + AZURE_VIRTUAL_NETWORKS_SUBNET EntityInfrastructureIntegrationType + // CASSANDRA_NODE integration + CASSANDRA_NODE EntityInfrastructureIntegrationType + // CONSUL_AGENT integration + CONSUL_AGENT EntityInfrastructureIntegrationType + // COUCHBASE_BUCKET integration + COUCHBASE_BUCKET EntityInfrastructureIntegrationType + // COUCHBASE_CLUSTER integration + COUCHBASE_CLUSTER EntityInfrastructureIntegrationType + // COUCHBASE_NODE integration + COUCHBASE_NODE EntityInfrastructureIntegrationType + // COUCHBASE_QUERY_ENGINE integration + COUCHBASE_QUERY_ENGINE EntityInfrastructureIntegrationType + // ELASTICSEARCH_NODE integration + ELASTICSEARCH_NODE EntityInfrastructureIntegrationType + // F5_NODE integration + F5_NODE EntityInfrastructureIntegrationType + // F5_POOL integration + F5_POOL EntityInfrastructureIntegrationType + // F5_POOL_MEMBER integration + F5_POOL_MEMBER EntityInfrastructureIntegrationType + // F5_SYSTEM integration + F5_SYSTEM EntityInfrastructureIntegrationType + // F5_VIRTUAL_SERVER integration + F5_VIRTUAL_SERVER EntityInfrastructureIntegrationType + // GCP_APP_ENGINE_SERVICE integration + GCP_APP_ENGINE_SERVICE EntityInfrastructureIntegrationType + // GCP_BIG_QUERY_DATA_SET integration + GCP_BIG_QUERY_DATA_SET EntityInfrastructureIntegrationType + // GCP_BIG_QUERY_PROJECT integration + GCP_BIG_QUERY_PROJECT EntityInfrastructureIntegrationType + // GCP_BIG_QUERY_TABLE integration + GCP_BIG_QUERY_TABLE EntityInfrastructureIntegrationType + // GCP_CLOUD_FUNCTION integration + GCP_CLOUD_FUNCTION EntityInfrastructureIntegrationType + // GCP_CLOUD_SQL integration + GCP_CLOUD_SQL EntityInfrastructureIntegrationType + // GCP_CLOUD_TASKS_QUEUE integration + GCP_CLOUD_TASKS_QUEUE EntityInfrastructureIntegrationType + // GCP_HTTP_LOAD_BALANCER integration + GCP_HTTP_LOAD_BALANCER EntityInfrastructureIntegrationType + // GCP_INTERNAL_LOAD_BALANCER integration + GCP_INTERNAL_LOAD_BALANCER EntityInfrastructureIntegrationType + // GCP_KUBERNETES_CONTAINER integration + GCP_KUBERNETES_CONTAINER EntityInfrastructureIntegrationType + // GCP_KUBERNETES_NODE integration + GCP_KUBERNETES_NODE EntityInfrastructureIntegrationType + // GCP_KUBERNETES_POD integration + GCP_KUBERNETES_POD EntityInfrastructureIntegrationType + // GCP_PUB_SUB_SUBSCRIPTION integration + GCP_PUB_SUB_SUBSCRIPTION EntityInfrastructureIntegrationType + // GCP_PUB_SUB_TOPIC integration + GCP_PUB_SUB_TOPIC EntityInfrastructureIntegrationType + // GCP_SPANNER_DATABASE integration + GCP_SPANNER_DATABASE EntityInfrastructureIntegrationType + // GCP_SPANNER_INSTANCE integration + GCP_SPANNER_INSTANCE EntityInfrastructureIntegrationType + // GCP_STORAGE_BUCKET integration + GCP_STORAGE_BUCKET EntityInfrastructureIntegrationType + // GCP_TCP_SSL_PROXY_LOAD_BALANCER integration + GCP_TCP_SSL_PROXY_LOAD_BALANCER EntityInfrastructureIntegrationType + // GCP_VIRTUAL_MACHINE_DISK integration + GCP_VIRTUAL_MACHINE_DISK EntityInfrastructureIntegrationType + // KAFKA_BROKER integration + KAFKA_BROKER EntityInfrastructureIntegrationType + // KAFKA_TOPIC integration + KAFKA_TOPIC EntityInfrastructureIntegrationType + // KUBERNETES_CLUSTER integration + KUBERNETES_CLUSTER EntityInfrastructureIntegrationType + // MEMCACHED_INSTANCE integration + MEMCACHED_INSTANCE EntityInfrastructureIntegrationType + // MSSQL_INSTANCE integration + MSSQL_INSTANCE EntityInfrastructureIntegrationType + // MYSQL_NODE integration + MYSQL_NODE EntityInfrastructureIntegrationType + // NA integration + NA EntityInfrastructureIntegrationType + // NGINX_SERVER integration + NGINX_SERVER EntityInfrastructureIntegrationType + // ORACLE_DB_INSTANCE integration + ORACLE_DB_INSTANCE EntityInfrastructureIntegrationType + // POSTGRE_SQL_INSTANCE integration + POSTGRE_SQL_INSTANCE EntityInfrastructureIntegrationType + // RABBIT_MQ_CLUSTER integration + RABBIT_MQ_CLUSTER EntityInfrastructureIntegrationType + // RABBIT_MQ_EXCHANGE integration + RABBIT_MQ_EXCHANGE EntityInfrastructureIntegrationType + // RABBIT_MQ_NODE integration + RABBIT_MQ_NODE EntityInfrastructureIntegrationType + // RABBIT_MQ_QUEUE integration + RABBIT_MQ_QUEUE EntityInfrastructureIntegrationType + // REDIS_INSTANCE integration + REDIS_INSTANCE EntityInfrastructureIntegrationType + // VARNISH_INSTANCE integration + VARNISH_INSTANCE EntityInfrastructureIntegrationType +}{ + // APACHE_SERVER integration + APACHE_SERVER: "APACHE_SERVER", + // AWSELASTICSEARCHNODE integration + AWSELASTICSEARCHNODE: "AWSELASTICSEARCHNODE", + // AWS_ALB integration + AWS_ALB: "AWS_ALB", + // AWS_ALB_LISTENER integration + AWS_ALB_LISTENER: "AWS_ALB_LISTENER", + // AWS_ALB_LISTENER_RULE integration + AWS_ALB_LISTENER_RULE: "AWS_ALB_LISTENER_RULE", + // AWS_ALB_TARGET_GROUP integration + AWS_ALB_TARGET_GROUP: "AWS_ALB_TARGET_GROUP", + // AWS_API_GATEWAY_API integration + AWS_API_GATEWAY_API: "AWS_API_GATEWAY_API", + // AWS_API_GATEWAY_RESOURCE integration + AWS_API_GATEWAY_RESOURCE: "AWS_API_GATEWAY_RESOURCE", + // AWS_API_GATEWAY_RESOURCE_WITH_METRICS integration + AWS_API_GATEWAY_RESOURCE_WITH_METRICS: "AWS_API_GATEWAY_RESOURCE_WITH_METRICS", + // AWS_API_GATEWAY_STAGE integration + AWS_API_GATEWAY_STAGE: "AWS_API_GATEWAY_STAGE", + // AWS_AUTO_SCALING_GROUP integration + AWS_AUTO_SCALING_GROUP: "AWS_AUTO_SCALING_GROUP", + // AWS_AUTO_SCALING_INSTANCE integration + AWS_AUTO_SCALING_INSTANCE: "AWS_AUTO_SCALING_INSTANCE", + // AWS_AUTO_SCALING_LAUNCH_CONFIGURATION integration + AWS_AUTO_SCALING_LAUNCH_CONFIGURATION: "AWS_AUTO_SCALING_LAUNCH_CONFIGURATION", + // AWS_AUTO_SCALING_POLICY integration + AWS_AUTO_SCALING_POLICY: "AWS_AUTO_SCALING_POLICY", + // AWS_AUTO_SCALING_REGION_LIMIT integration + AWS_AUTO_SCALING_REGION_LIMIT: "AWS_AUTO_SCALING_REGION_LIMIT", + // AWS_BILLING_ACCOUNT_COST integration + AWS_BILLING_ACCOUNT_COST: "AWS_BILLING_ACCOUNT_COST", + // AWS_BILLING_ACCOUNT_SERVICE_COST integration + AWS_BILLING_ACCOUNT_SERVICE_COST: "AWS_BILLING_ACCOUNT_SERVICE_COST", + // AWS_BILLING_BUDGET integration + AWS_BILLING_BUDGET: "AWS_BILLING_BUDGET", + // AWS_BILLING_SERVICE_COST integration + AWS_BILLING_SERVICE_COST: "AWS_BILLING_SERVICE_COST", + // AWS_CLOUD_FRONT_DISTRIBUTION integration + AWS_CLOUD_FRONT_DISTRIBUTION: "AWS_CLOUD_FRONT_DISTRIBUTION", + // AWS_CLOUD_TRAIL integration + AWS_CLOUD_TRAIL: "AWS_CLOUD_TRAIL", + // AWS_DYNAMO_DB_GLOBAL_SECONDARY_INDEX integration + AWS_DYNAMO_DB_GLOBAL_SECONDARY_INDEX: "AWS_DYNAMO_DB_GLOBAL_SECONDARY_INDEX", + // AWS_DYNAMO_DB_REGION integration + AWS_DYNAMO_DB_REGION: "AWS_DYNAMO_DB_REGION", + // AWS_DYNAMO_DB_TABLE integration + AWS_DYNAMO_DB_TABLE: "AWS_DYNAMO_DB_TABLE", + // AWS_EBS_VOLUME integration + AWS_EBS_VOLUME: "AWS_EBS_VOLUME", + // AWS_ECS_CLUSTER integration + AWS_ECS_CLUSTER: "AWS_ECS_CLUSTER", + // AWS_ECS_SERVICE integration + AWS_ECS_SERVICE: "AWS_ECS_SERVICE", + // AWS_EFS_FILE_SYSTEM integration + AWS_EFS_FILE_SYSTEM: "AWS_EFS_FILE_SYSTEM", + // AWS_ELASTICSEARCH_CLUSTER integration + AWS_ELASTICSEARCH_CLUSTER: "AWS_ELASTICSEARCH_CLUSTER", + // AWS_ELASTICSEARCH_INSTANCE integration + AWS_ELASTICSEARCH_INSTANCE: "AWS_ELASTICSEARCH_INSTANCE", + // AWS_ELASTIC_BEANSTALK_ENVIRONMENT integration + AWS_ELASTIC_BEANSTALK_ENVIRONMENT: "AWS_ELASTIC_BEANSTALK_ENVIRONMENT", + // AWS_ELASTIC_BEANSTALK_INSTANCE integration + AWS_ELASTIC_BEANSTALK_INSTANCE: "AWS_ELASTIC_BEANSTALK_INSTANCE", + // AWS_ELASTIC_MAP_REDUCE_CLUSTER integration + AWS_ELASTIC_MAP_REDUCE_CLUSTER: "AWS_ELASTIC_MAP_REDUCE_CLUSTER", + // AWS_ELASTIC_MAP_REDUCE_INSTANCE integration + AWS_ELASTIC_MAP_REDUCE_INSTANCE: "AWS_ELASTIC_MAP_REDUCE_INSTANCE", + // AWS_ELASTIC_MAP_REDUCE_INSTANCE_FLEET integration + AWS_ELASTIC_MAP_REDUCE_INSTANCE_FLEET: "AWS_ELASTIC_MAP_REDUCE_INSTANCE_FLEET", + // AWS_ELASTIC_MAP_REDUCE_INSTANCE_GROUP integration + AWS_ELASTIC_MAP_REDUCE_INSTANCE_GROUP: "AWS_ELASTIC_MAP_REDUCE_INSTANCE_GROUP", + // AWS_ELASTI_CACHE_MEMCACHED_CLUSTER integration + AWS_ELASTI_CACHE_MEMCACHED_CLUSTER: "AWS_ELASTI_CACHE_MEMCACHED_CLUSTER", + // AWS_ELASTI_CACHE_MEMCACHED_NODE integration + AWS_ELASTI_CACHE_MEMCACHED_NODE: "AWS_ELASTI_CACHE_MEMCACHED_NODE", + // AWS_ELASTI_CACHE_REDIS_CLUSTER integration + AWS_ELASTI_CACHE_REDIS_CLUSTER: "AWS_ELASTI_CACHE_REDIS_CLUSTER", + // AWS_ELASTI_CACHE_REDIS_NODE integration + AWS_ELASTI_CACHE_REDIS_NODE: "AWS_ELASTI_CACHE_REDIS_NODE", + // AWS_ELB integration + AWS_ELB: "AWS_ELB", + // AWS_HEALTH_ISSUE integration + AWS_HEALTH_ISSUE: "AWS_HEALTH_ISSUE", + // AWS_HEALTH_NOTIFICATION integration + AWS_HEALTH_NOTIFICATION: "AWS_HEALTH_NOTIFICATION", + // AWS_HEALTH_SCHEDULED_CHANGE integration + AWS_HEALTH_SCHEDULED_CHANGE: "AWS_HEALTH_SCHEDULED_CHANGE", + // AWS_HEALTH_UNKNOWN integration + AWS_HEALTH_UNKNOWN: "AWS_HEALTH_UNKNOWN", + // AWS_IAM integration + AWS_IAM: "AWS_IAM", + // AWS_IAM_GROUP integration + AWS_IAM_GROUP: "AWS_IAM_GROUP", + // AWS_IAM_OPEN_ID_PROVIDER integration + AWS_IAM_OPEN_ID_PROVIDER: "AWS_IAM_OPEN_ID_PROVIDER", + // AWS_IAM_POLICY integration + AWS_IAM_POLICY: "AWS_IAM_POLICY", + // AWS_IAM_ROLE integration + AWS_IAM_ROLE: "AWS_IAM_ROLE", + // AWS_IAM_SAML_PROVIDER integration + AWS_IAM_SAML_PROVIDER: "AWS_IAM_SAML_PROVIDER", + // AWS_IAM_SERVER_CERTIFICATE integration + AWS_IAM_SERVER_CERTIFICATE: "AWS_IAM_SERVER_CERTIFICATE", + // AWS_IAM_USER integration + AWS_IAM_USER: "AWS_IAM_USER", + // AWS_IAM_VIRTUAL_MFA_DEVICE integration + AWS_IAM_VIRTUAL_MFA_DEVICE: "AWS_IAM_VIRTUAL_MFA_DEVICE", + // AWS_IOT_BROKER integration + AWS_IOT_BROKER: "AWS_IOT_BROKER", + // AWS_IOT_RULE integration + AWS_IOT_RULE: "AWS_IOT_RULE", + // AWS_IOT_RULE_ACTION integration + AWS_IOT_RULE_ACTION: "AWS_IOT_RULE_ACTION", + // AWS_KINESIS_DELIVERY_STREAM integration + AWS_KINESIS_DELIVERY_STREAM: "AWS_KINESIS_DELIVERY_STREAM", + // AWS_KINESIS_STREAM integration + AWS_KINESIS_STREAM: "AWS_KINESIS_STREAM", + // AWS_KINESIS_STREAM_SHARD integration + AWS_KINESIS_STREAM_SHARD: "AWS_KINESIS_STREAM_SHARD", + // AWS_LAMBDA_AGENT_TRANSACTION integration + AWS_LAMBDA_AGENT_TRANSACTION: "AWS_LAMBDA_AGENT_TRANSACTION", + // AWS_LAMBDA_AGENT_TRANSACTION_ERROR integration + AWS_LAMBDA_AGENT_TRANSACTION_ERROR: "AWS_LAMBDA_AGENT_TRANSACTION_ERROR", + // AWS_LAMBDA_EDGE_FUNCTION integration + AWS_LAMBDA_EDGE_FUNCTION: "AWS_LAMBDA_EDGE_FUNCTION", + // AWS_LAMBDA_EVENT_SOURCE_MAPPING integration + AWS_LAMBDA_EVENT_SOURCE_MAPPING: "AWS_LAMBDA_EVENT_SOURCE_MAPPING", + // AWS_LAMBDA_FUNCTION integration + AWS_LAMBDA_FUNCTION: "AWS_LAMBDA_FUNCTION", + // AWS_LAMBDA_FUNCTION_ALIAS integration + AWS_LAMBDA_FUNCTION_ALIAS: "AWS_LAMBDA_FUNCTION_ALIAS", + // AWS_LAMBDA_OPERATION integration + AWS_LAMBDA_OPERATION: "AWS_LAMBDA_OPERATION", + // AWS_LAMBDA_REGION integration + AWS_LAMBDA_REGION: "AWS_LAMBDA_REGION", + // AWS_LAMBDA_SPAN integration + AWS_LAMBDA_SPAN: "AWS_LAMBDA_SPAN", + // AWS_LAMBDA_TRACE integration + AWS_LAMBDA_TRACE: "AWS_LAMBDA_TRACE", + // AWS_RDS_DB_CLUSTER integration + AWS_RDS_DB_CLUSTER: "AWS_RDS_DB_CLUSTER", + // AWS_RDS_DB_INSTANCE integration + AWS_RDS_DB_INSTANCE: "AWS_RDS_DB_INSTANCE", + // AWS_REDSHIFT_CLUSTER integration + AWS_REDSHIFT_CLUSTER: "AWS_REDSHIFT_CLUSTER", + // AWS_REDSHIFT_NODE integration + AWS_REDSHIFT_NODE: "AWS_REDSHIFT_NODE", + // AWS_ROUTE53_HEALTH_CHECK integration + AWS_ROUTE53_HEALTH_CHECK: "AWS_ROUTE53_HEALTH_CHECK", + // AWS_ROUTE53_ZONE integration + AWS_ROUTE53_ZONE: "AWS_ROUTE53_ZONE", + // AWS_ROUTE53_ZONE_RECORD_SET integration + AWS_ROUTE53_ZONE_RECORD_SET: "AWS_ROUTE53_ZONE_RECORD_SET", + // AWS_S3_BUCKET integration + AWS_S3_BUCKET: "AWS_S3_BUCKET", + // AWS_S3_BUCKET_REQUESTS integration + AWS_S3_BUCKET_REQUESTS: "AWS_S3_BUCKET_REQUESTS", + // AWS_SES_CONFIGURATION_SET integration + AWS_SES_CONFIGURATION_SET: "AWS_SES_CONFIGURATION_SET", + // AWS_SES_EVENT_DESTINATION integration + AWS_SES_EVENT_DESTINATION: "AWS_SES_EVENT_DESTINATION", + // AWS_SES_RECEIPT_FILTER integration + AWS_SES_RECEIPT_FILTER: "AWS_SES_RECEIPT_FILTER", + // AWS_SES_RECEIPT_RULE integration + AWS_SES_RECEIPT_RULE: "AWS_SES_RECEIPT_RULE", + // AWS_SES_RECEIPT_RULE_SET integration + AWS_SES_RECEIPT_RULE_SET: "AWS_SES_RECEIPT_RULE_SET", + // AWS_SES_REGION integration + AWS_SES_REGION: "AWS_SES_REGION", + // AWS_SNS_SUBSCRIPTION integration + AWS_SNS_SUBSCRIPTION: "AWS_SNS_SUBSCRIPTION", + // AWS_SNS_TOPIC integration + AWS_SNS_TOPIC: "AWS_SNS_TOPIC", + // AWS_SQS_QUEUE integration + AWS_SQS_QUEUE: "AWS_SQS_QUEUE", + // AWS_VPC integration + AWS_VPC: "AWS_VPC", + // AWS_VPC_ENDPOINT integration + AWS_VPC_ENDPOINT: "AWS_VPC_ENDPOINT", + // AWS_VPC_INTERNET_GATEWAY integration + AWS_VPC_INTERNET_GATEWAY: "AWS_VPC_INTERNET_GATEWAY", + // AWS_VPC_NAT_GATEWAY integration + AWS_VPC_NAT_GATEWAY: "AWS_VPC_NAT_GATEWAY", + // AWS_VPC_NETWORK_ACL integration + AWS_VPC_NETWORK_ACL: "AWS_VPC_NETWORK_ACL", + // AWS_VPC_NETWORK_INTERFACE integration + AWS_VPC_NETWORK_INTERFACE: "AWS_VPC_NETWORK_INTERFACE", + // AWS_VPC_PEERING_CONNECTION integration + AWS_VPC_PEERING_CONNECTION: "AWS_VPC_PEERING_CONNECTION", + // AWS_VPC_ROUTE_TABLE integration + AWS_VPC_ROUTE_TABLE: "AWS_VPC_ROUTE_TABLE", + // AWS_VPC_SECURITY_GROUP integration + AWS_VPC_SECURITY_GROUP: "AWS_VPC_SECURITY_GROUP", + // AWS_VPC_SUBNET integration + AWS_VPC_SUBNET: "AWS_VPC_SUBNET", + // AWS_VPC_VPN_CONNECTION integration + AWS_VPC_VPN_CONNECTION: "AWS_VPC_VPN_CONNECTION", + // AWS_VPC_VPN_TUNNEL integration + AWS_VPC_VPN_TUNNEL: "AWS_VPC_VPN_TUNNEL", + // AZURE_APP_SERVICE_HOST_NAME integration + AZURE_APP_SERVICE_HOST_NAME: "AZURE_APP_SERVICE_HOST_NAME", + // AZURE_APP_SERVICE_WEB_APP integration + AZURE_APP_SERVICE_WEB_APP: "AZURE_APP_SERVICE_WEB_APP", + // AZURE_COSMOS_DB_ACCOUNT integration + AZURE_COSMOS_DB_ACCOUNT: "AZURE_COSMOS_DB_ACCOUNT", + // AZURE_FUNCTIONS_APP integration + AZURE_FUNCTIONS_APP: "AZURE_FUNCTIONS_APP", + // AZURE_LOAD_BALANCER integration + AZURE_LOAD_BALANCER: "AZURE_LOAD_BALANCER", + // AZURE_LOAD_BALANCER_BACKEND integration + AZURE_LOAD_BALANCER_BACKEND: "AZURE_LOAD_BALANCER_BACKEND", + // AZURE_LOAD_BALANCER_FRONTEND_IP integration + AZURE_LOAD_BALANCER_FRONTEND_IP: "AZURE_LOAD_BALANCER_FRONTEND_IP", + // AZURE_LOAD_BALANCER_INBOUND_NAT_POOL integration + AZURE_LOAD_BALANCER_INBOUND_NAT_POOL: "AZURE_LOAD_BALANCER_INBOUND_NAT_POOL", + // AZURE_LOAD_BALANCER_INBOUND_NAT_RULE integration + AZURE_LOAD_BALANCER_INBOUND_NAT_RULE: "AZURE_LOAD_BALANCER_INBOUND_NAT_RULE", + // AZURE_LOAD_BALANCER_PROBE integration + AZURE_LOAD_BALANCER_PROBE: "AZURE_LOAD_BALANCER_PROBE", + // AZURE_LOAD_BALANCER_RULE integration + AZURE_LOAD_BALANCER_RULE: "AZURE_LOAD_BALANCER_RULE", + // AZURE_MARIADB_SERVER integration + AZURE_MARIADB_SERVER: "AZURE_MARIADB_SERVER", + // AZURE_MYSQL_SERVER integration + AZURE_MYSQL_SERVER: "AZURE_MYSQL_SERVER", + // AZURE_POSTGRESQL_SERVER integration + AZURE_POSTGRESQL_SERVER: "AZURE_POSTGRESQL_SERVER", + // AZURE_REDIS_CACHE integration + AZURE_REDIS_CACHE: "AZURE_REDIS_CACHE", + // AZURE_REDIS_CACHE_SHARD integration + AZURE_REDIS_CACHE_SHARD: "AZURE_REDIS_CACHE_SHARD", + // AZURE_SERVICE_BUS_NAMESPACE integration + AZURE_SERVICE_BUS_NAMESPACE: "AZURE_SERVICE_BUS_NAMESPACE", + // AZURE_SERVICE_BUS_QUEUE integration + AZURE_SERVICE_BUS_QUEUE: "AZURE_SERVICE_BUS_QUEUE", + // AZURE_SERVICE_BUS_SUBSCRIPTION integration + AZURE_SERVICE_BUS_SUBSCRIPTION: "AZURE_SERVICE_BUS_SUBSCRIPTION", + // AZURE_SERVICE_BUS_TOPIC integration + AZURE_SERVICE_BUS_TOPIC: "AZURE_SERVICE_BUS_TOPIC", + // AZURE_SQL_DATABASE integration + AZURE_SQL_DATABASE: "AZURE_SQL_DATABASE", + // AZURE_SQL_ELASTIC_POOL integration + AZURE_SQL_ELASTIC_POOL: "AZURE_SQL_ELASTIC_POOL", + // AZURE_SQL_FIREWALL integration + AZURE_SQL_FIREWALL: "AZURE_SQL_FIREWALL", + // AZURE_SQL_REPLICATION_LINK integration + AZURE_SQL_REPLICATION_LINK: "AZURE_SQL_REPLICATION_LINK", + // AZURE_SQL_RESTORE_POINT integration + AZURE_SQL_RESTORE_POINT: "AZURE_SQL_RESTORE_POINT", + // AZURE_SQL_SERVER integration + AZURE_SQL_SERVER: "AZURE_SQL_SERVER", + // AZURE_STORAGE_ACCOUNT integration + AZURE_STORAGE_ACCOUNT: "AZURE_STORAGE_ACCOUNT", + // AZURE_VIRTUAL_NETWORKS integration + AZURE_VIRTUAL_NETWORKS: "AZURE_VIRTUAL_NETWORKS", + // AZURE_VIRTUAL_NETWORKS_IP_CONFIGURATION integration + AZURE_VIRTUAL_NETWORKS_IP_CONFIGURATION: "AZURE_VIRTUAL_NETWORKS_IP_CONFIGURATION", + // AZURE_VIRTUAL_NETWORKS_NETWORK_INTERFACE integration + AZURE_VIRTUAL_NETWORKS_NETWORK_INTERFACE: "AZURE_VIRTUAL_NETWORKS_NETWORK_INTERFACE", + // AZURE_VIRTUAL_NETWORKS_PEERING integration + AZURE_VIRTUAL_NETWORKS_PEERING: "AZURE_VIRTUAL_NETWORKS_PEERING", + // AZURE_VIRTUAL_NETWORKS_PUBLIC_IP_ADDRESS integration + AZURE_VIRTUAL_NETWORKS_PUBLIC_IP_ADDRESS: "AZURE_VIRTUAL_NETWORKS_PUBLIC_IP_ADDRESS", + // AZURE_VIRTUAL_NETWORKS_ROUTE integration + AZURE_VIRTUAL_NETWORKS_ROUTE: "AZURE_VIRTUAL_NETWORKS_ROUTE", + // AZURE_VIRTUAL_NETWORKS_ROUTE_TABLE integration + AZURE_VIRTUAL_NETWORKS_ROUTE_TABLE: "AZURE_VIRTUAL_NETWORKS_ROUTE_TABLE", + // AZURE_VIRTUAL_NETWORKS_SECURITY_GROUP integration + AZURE_VIRTUAL_NETWORKS_SECURITY_GROUP: "AZURE_VIRTUAL_NETWORKS_SECURITY_GROUP", + // AZURE_VIRTUAL_NETWORKS_SECURITY_RULE integration + AZURE_VIRTUAL_NETWORKS_SECURITY_RULE: "AZURE_VIRTUAL_NETWORKS_SECURITY_RULE", + // AZURE_VIRTUAL_NETWORKS_SUBNET integration + AZURE_VIRTUAL_NETWORKS_SUBNET: "AZURE_VIRTUAL_NETWORKS_SUBNET", + // CASSANDRA_NODE integration + CASSANDRA_NODE: "CASSANDRA_NODE", + // CONSUL_AGENT integration + CONSUL_AGENT: "CONSUL_AGENT", + // COUCHBASE_BUCKET integration + COUCHBASE_BUCKET: "COUCHBASE_BUCKET", + // COUCHBASE_CLUSTER integration + COUCHBASE_CLUSTER: "COUCHBASE_CLUSTER", + // COUCHBASE_NODE integration + COUCHBASE_NODE: "COUCHBASE_NODE", + // COUCHBASE_QUERY_ENGINE integration + COUCHBASE_QUERY_ENGINE: "COUCHBASE_QUERY_ENGINE", + // ELASTICSEARCH_NODE integration + ELASTICSEARCH_NODE: "ELASTICSEARCH_NODE", + // F5_NODE integration + F5_NODE: "F5_NODE", + // F5_POOL integration + F5_POOL: "F5_POOL", + // F5_POOL_MEMBER integration + F5_POOL_MEMBER: "F5_POOL_MEMBER", + // F5_SYSTEM integration + F5_SYSTEM: "F5_SYSTEM", + // F5_VIRTUAL_SERVER integration + F5_VIRTUAL_SERVER: "F5_VIRTUAL_SERVER", + // GCP_APP_ENGINE_SERVICE integration + GCP_APP_ENGINE_SERVICE: "GCP_APP_ENGINE_SERVICE", + // GCP_BIG_QUERY_DATA_SET integration + GCP_BIG_QUERY_DATA_SET: "GCP_BIG_QUERY_DATA_SET", + // GCP_BIG_QUERY_PROJECT integration + GCP_BIG_QUERY_PROJECT: "GCP_BIG_QUERY_PROJECT", + // GCP_BIG_QUERY_TABLE integration + GCP_BIG_QUERY_TABLE: "GCP_BIG_QUERY_TABLE", + // GCP_CLOUD_FUNCTION integration + GCP_CLOUD_FUNCTION: "GCP_CLOUD_FUNCTION", + // GCP_CLOUD_SQL integration + GCP_CLOUD_SQL: "GCP_CLOUD_SQL", + // GCP_CLOUD_TASKS_QUEUE integration + GCP_CLOUD_TASKS_QUEUE: "GCP_CLOUD_TASKS_QUEUE", + // GCP_HTTP_LOAD_BALANCER integration + GCP_HTTP_LOAD_BALANCER: "GCP_HTTP_LOAD_BALANCER", + // GCP_INTERNAL_LOAD_BALANCER integration + GCP_INTERNAL_LOAD_BALANCER: "GCP_INTERNAL_LOAD_BALANCER", + // GCP_KUBERNETES_CONTAINER integration + GCP_KUBERNETES_CONTAINER: "GCP_KUBERNETES_CONTAINER", + // GCP_KUBERNETES_NODE integration + GCP_KUBERNETES_NODE: "GCP_KUBERNETES_NODE", + // GCP_KUBERNETES_POD integration + GCP_KUBERNETES_POD: "GCP_KUBERNETES_POD", + // GCP_PUB_SUB_SUBSCRIPTION integration + GCP_PUB_SUB_SUBSCRIPTION: "GCP_PUB_SUB_SUBSCRIPTION", + // GCP_PUB_SUB_TOPIC integration + GCP_PUB_SUB_TOPIC: "GCP_PUB_SUB_TOPIC", + // GCP_SPANNER_DATABASE integration + GCP_SPANNER_DATABASE: "GCP_SPANNER_DATABASE", + // GCP_SPANNER_INSTANCE integration + GCP_SPANNER_INSTANCE: "GCP_SPANNER_INSTANCE", + // GCP_STORAGE_BUCKET integration + GCP_STORAGE_BUCKET: "GCP_STORAGE_BUCKET", + // GCP_TCP_SSL_PROXY_LOAD_BALANCER integration + GCP_TCP_SSL_PROXY_LOAD_BALANCER: "GCP_TCP_SSL_PROXY_LOAD_BALANCER", + // GCP_VIRTUAL_MACHINE_DISK integration + GCP_VIRTUAL_MACHINE_DISK: "GCP_VIRTUAL_MACHINE_DISK", + // KAFKA_BROKER integration + KAFKA_BROKER: "KAFKA_BROKER", + // KAFKA_TOPIC integration + KAFKA_TOPIC: "KAFKA_TOPIC", + // KUBERNETES_CLUSTER integration + KUBERNETES_CLUSTER: "KUBERNETES_CLUSTER", + // MEMCACHED_INSTANCE integration + MEMCACHED_INSTANCE: "MEMCACHED_INSTANCE", + // MSSQL_INSTANCE integration + MSSQL_INSTANCE: "MSSQL_INSTANCE", + // MYSQL_NODE integration + MYSQL_NODE: "MYSQL_NODE", + // NA integration + NA: "NA", + // NGINX_SERVER integration + NGINX_SERVER: "NGINX_SERVER", + // ORACLE_DB_INSTANCE integration + ORACLE_DB_INSTANCE: "ORACLE_DB_INSTANCE", + // POSTGRE_SQL_INSTANCE integration + POSTGRE_SQL_INSTANCE: "POSTGRE_SQL_INSTANCE", + // RABBIT_MQ_CLUSTER integration + RABBIT_MQ_CLUSTER: "RABBIT_MQ_CLUSTER", + // RABBIT_MQ_EXCHANGE integration + RABBIT_MQ_EXCHANGE: "RABBIT_MQ_EXCHANGE", + // RABBIT_MQ_NODE integration + RABBIT_MQ_NODE: "RABBIT_MQ_NODE", + // RABBIT_MQ_QUEUE integration + RABBIT_MQ_QUEUE: "RABBIT_MQ_QUEUE", + // REDIS_INSTANCE integration + REDIS_INSTANCE: "REDIS_INSTANCE", + // VARNISH_INSTANCE integration + VARNISH_INSTANCE: "VARNISH_INSTANCE", +} + +// EntityManagementAiToolParameterType - Enum for AiToolParameter +type EntityManagementAiToolParameterType string + +var EntityManagementAiToolParameterTypeTypes = struct { + // when the parameter type is boolean + BOOLEAN EntityManagementAiToolParameterType + // when the parameter type is integer + INTEGER EntityManagementAiToolParameterType + // when the parameter type is list + LIST EntityManagementAiToolParameterType + // when the parameter type is object/dict + OBJECT EntityManagementAiToolParameterType + // when the parameter type is String + STRING EntityManagementAiToolParameterType +}{ + // when the parameter type is boolean + BOOLEAN: "BOOLEAN", + // when the parameter type is integer + INTEGER: "INTEGER", + // when the parameter type is list + LIST: "LIST", + // when the parameter type is object/dict + OBJECT: "OBJECT", + // when the parameter type is String + STRING: "STRING", +} + +// EntityManagementAssignmentType - Work Item assignment type +type EntityManagementAssignmentType string + +var EntityManagementAssignmentTypeTypes = struct { + // New Relic team ID + NEW_RELIC_TEAM_ID EntityManagementAssignmentType + // New Relic user ID + NEW_RELIC_USER_ID EntityManagementAssignmentType +}{ + // New Relic team ID + NEW_RELIC_TEAM_ID: "NEW_RELIC_TEAM_ID", + // New Relic user ID + NEW_RELIC_USER_ID: "NEW_RELIC_USER_ID", +} + +// EntityManagementCategory - Category enum of the work item +type EntityManagementCategory string + +var EntityManagementCategoryTypes = struct { + // Chat category of the work item + CHAT EntityManagementCategory + // Incident category of the work item + INCIDENT EntityManagementCategory + // Issue category of the work item + ISSUE EntityManagementCategory + // Vulnerability category of the work item + VULNERABILITY EntityManagementCategory +}{ + // Chat category of the work item + CHAT: "CHAT", + // Incident category of the work item + INCIDENT: "INCIDENT", + // Issue category of the work item + ISSUE: "ISSUE", + // Vulnerability category of the work item + VULNERABILITY: "VULNERABILITY", +} + +// EntityManagementCategoryScopeType - Category scope can of two types: Account scope and Global scope +type EntityManagementCategoryScopeType string + +var EntityManagementCategoryScopeTypeTypes = struct { + // Account scope + ACCOUNT EntityManagementCategoryScopeType + // Global scope + GLOBAL EntityManagementCategoryScopeType +}{ + // Account scope + ACCOUNT: "ACCOUNT", + // Global scope + GLOBAL: "GLOBAL", +} + +// EntityManagementCommunicationMode - CommunicationMode represents the mode of communication for an incident. +type EntityManagementCommunicationMode string + +var EntityManagementCommunicationModeTypes = struct { + // For Private status page communication. + ACCOUNT_STATUS EntityManagementCommunicationMode + // For Publicstatus page communication. + GLOBAL_STATUS EntityManagementCommunicationMode +}{ + // For Private status page communication. + ACCOUNT_STATUS: "ACCOUNT_STATUS", + // For Publicstatus page communication. + GLOBAL_STATUS: "GLOBAL_STATUS", +} + +// EntityManagementCommunicationStatus - CommunicationStatus represents the status of the communication for an incident. +type EntityManagementCommunicationStatus string + +var EntityManagementCommunicationStatusTypes = struct { + // Incident root cause has been identified. + IDENTIFIED EntityManagementCommunicationStatus + // Incident is being investigated. + INVESTIGATING EntityManagementCommunicationStatus + // Incident in Monitoring phase. + MONITORING EntityManagementCommunicationStatus + // Incident has been resolved. + RESOLVED EntityManagementCommunicationStatus +}{ + // Incident root cause has been identified. + IDENTIFIED: "IDENTIFIED", + // Incident is being investigated. + INVESTIGATING: "INVESTIGATING", + // Incident in Monitoring phase. + MONITORING: "MONITORING", + // Incident has been resolved. + RESOLVED: "RESOLVED", +} + +// EntityManagementConsumptionMetric - Defines possible consumption metrics for a budget. +type EntityManagementConsumptionMetric string + +var EntityManagementConsumptionMetricTypes = struct { + // Advanced CCU metric. + ADVANCED_CCU EntityManagementConsumptionMetric + // Legacy CCU metric. + CCU EntityManagementConsumptionMetric + // Core CCU metric. + CORE_CCU EntityManagementConsumptionMetric +}{ + // Advanced CCU metric. + ADVANCED_CCU: "ADVANCED_CCU", + // Legacy CCU metric. + CCU: "CCU", + // Core CCU metric. + CORE_CCU: "CORE_CCU", +} + +// EntityManagementDirection - Represents a connection direction for the Sync Configuration +type EntityManagementDirection string + +var EntityManagementDirectionTypes = struct { + // One way sync from New Relic to the 3rd party system + ONEWAY EntityManagementDirection + // Two way sync between New Relic and the 3rd party system + TWOWAY EntityManagementDirection +}{ + // One way sync from New Relic to the 3rd party system + ONEWAY: "ONEWAY", + // Two way sync between New Relic and the 3rd party system + TWOWAY: "TWOWAY", +} + +// EntityManagementEncodingName - The Encoding names options +type EntityManagementEncodingName string + +var EntityManagementEncodingNameTypes = struct { + // for gpt 4 + CL100_K_BASE EntityManagementEncodingName + // For gpt 3 + GPT_3_5_TURBO EntityManagementEncodingName + // For gpt4 + O200_K_BASE EntityManagementEncodingName +}{ + // for gpt 4 + CL100_K_BASE: "CL100_K_BASE", + // For gpt 3 + GPT_3_5_TURBO: "GPT_3_5_TURBO", + // For gpt4 + O200_K_BASE: "O200_K_BASE", +} + +// EntityManagementEncodingType - Encoding type enum +type EntityManagementEncodingType string + +var EntityManagementEncodingTypeTypes = struct { + // BASE64 encoding type + BASE64 EntityManagementEncodingType + // UTF8 encoding type + UTF8 EntityManagementEncodingType +}{ + // BASE64 encoding type + BASE64: "BASE64", + // UTF8 encoding type + UTF8: "UTF8", +} + +// EntityManagementEntityScope - The list of possible scopes of an entity. +type EntityManagementEntityScope string + +var EntityManagementEntityScopeTypes = struct { + // Account scope. + ACCOUNT EntityManagementEntityScope + // Organization scope. + ORGANIZATION EntityManagementEntityScope +}{ + // Account scope. + ACCOUNT: "ACCOUNT", + // Organization scope. + ORGANIZATION: "ORGANIZATION", +} + +// EntityManagementExecutionStatus - Rule execution status +type EntityManagementExecutionStatus string + +var EntityManagementExecutionStatusTypes = struct { + // Rule execution failed due to an error. + FAILED EntityManagementExecutionStatus + // Rule executed with partial success, some issues occurred. + PARTIAL_SUCCESS EntityManagementExecutionStatus + // Rule executed successfully without any issues. + SUCCESS EntityManagementExecutionStatus +}{ + // Rule execution failed due to an error. + FAILED: "FAILED", + // Rule executed with partial success, some issues occurred. + PARTIAL_SUCCESS: "PARTIAL_SUCCESS", + // Rule executed successfully without any issues. + SUCCESS: "SUCCESS", +} + +// EntityManagementExternalOwnerType - List of possible owner types of the repository. +type EntityManagementExternalOwnerType string + +var EntityManagementExternalOwnerTypeTypes = struct { + // group if the source is gitlab + GROUP EntityManagementExternalOwnerType + // organization if the source is github + ORGANIZATION EntityManagementExternalOwnerType + // Default value when the owner type cannot be found + OTHER EntityManagementExternalOwnerType + // individual user + USER EntityManagementExternalOwnerType + // workspace if the source is bitbucket + WORKSPACE EntityManagementExternalOwnerType +}{ + // group if the source is gitlab + GROUP: "GROUP", + // organization if the source is github + ORGANIZATION: "ORGANIZATION", + // Default value when the owner type cannot be found + OTHER: "OTHER", + // individual user + USER: "USER", + // workspace if the source is bitbucket + WORKSPACE: "WORKSPACE", +} + +// EntityManagementFleetDeploymentPhase - Phases a fleet deployment can have +type EntityManagementFleetDeploymentPhase string + +var EntityManagementFleetDeploymentPhaseTypes = struct { + // Deployment rollout completed + COMPLETED EntityManagementFleetDeploymentPhase + // Deployment is in editable phase + CREATED EntityManagementFleetDeploymentPhase + // Indicates a deployment failed to deploy to all agents + FAILED EntityManagementFleetDeploymentPhase + // Indicates an internal failure in the deployment process + INTERNAL_FAILURE EntityManagementFleetDeploymentPhase + // Deployment is under rollout + IN_PROGRESS EntityManagementFleetDeploymentPhase +}{ + // Deployment rollout completed + COMPLETED: "COMPLETED", + // Deployment is in editable phase + CREATED: "CREATED", + // Indicates a deployment failed to deploy to all agents + FAILED: "FAILED", + // Indicates an internal failure in the deployment process + INTERNAL_FAILURE: "INTERNAL_FAILURE", + // Deployment is under rollout + IN_PROGRESS: "IN_PROGRESS", +} + +// EntityManagementHostingPlatform - List of possible hosting platforms of the repository. +type EntityManagementHostingPlatform string + +var EntityManagementHostingPlatformTypes = struct { + // when the hosting platform is bitbucket + BITBUCKET EntityManagementHostingPlatform + // when the hosting platform is devlake + DEVLAKE EntityManagementHostingPlatform + // when the hosting platform is github + GITHUB EntityManagementHostingPlatform + // when the hosting platform is gitlab + GITLAB EntityManagementHostingPlatform + // Default value when the hosting platform cannot be found + OTHER EntityManagementHostingPlatform +}{ + // when the hosting platform is bitbucket + BITBUCKET: "BITBUCKET", + // when the hosting platform is devlake + DEVLAKE: "DEVLAKE", + // when the hosting platform is github + GITHUB: "GITHUB", + // when the hosting platform is gitlab + GITLAB: "GITLAB", + // Default value when the hosting platform cannot be found + OTHER: "OTHER", +} + +// EntityManagementIncidentStatus - IncidentStatus represents the status of an incident. +type EntityManagementIncidentStatus string + +var EntityManagementIncidentStatusTypes = struct { + // The incident is closed. + CLOSED EntityManagementIncidentStatus + // The incident is ongoing. + ONGOING EntityManagementIncidentStatus +}{ + // The incident is closed. + CLOSED: "CLOSED", + // The incident is ongoing. + ONGOING: "ONGOING", +} + +// EntityManagementInstallationStatus - List of possible installation statuses. +type EntityManagementInstallationStatus string + +var EntityManagementInstallationStatusTypes = struct { + // App currently active and running + INSTALLED EntityManagementInstallationStatus + // Uninstallation process has begun. + UNINSTALLATION_IN_PROGRESS EntityManagementInstallationStatus + // App has been uninstalled. + UNINSTALLED EntityManagementInstallationStatus +}{ + // App currently active and running + INSTALLED: "INSTALLED", + // Uninstallation process has begun. + UNINSTALLATION_IN_PROGRESS: "UNINSTALLATION_IN_PROGRESS", + // App has been uninstalled. + UNINSTALLED: "UNINSTALLED", +} + +// EntityManagementIssueType - Top level type for Inbox +type EntityManagementIssueType string + +var EntityManagementIssueTypeTypes = struct { + // Error issue + ERROR EntityManagementIssueType + // Performance issue + PERFORMANCE EntityManagementIssueType +}{ + // Error issue + ERROR: "ERROR", + // Performance issue + PERFORMANCE: "PERFORMANCE", +} + +// EntityManagementJiraIssueType - Jira issue type to be used in Jira Sync Configuration +type EntityManagementJiraIssueType string + +var EntityManagementJiraIssueTypeTypes = struct { + // Bug issue type in Jira + BUG EntityManagementJiraIssueType + // Story issue type in Jira + STORY EntityManagementJiraIssueType + // Task issue type in Jira + TASK EntityManagementJiraIssueType +}{ + // Bug issue type in Jira + BUG: "BUG", + // Story issue type in Jira + STORY: "STORY", + // Task issue type in Jira + TASK: "TASK", +} + +// EntityManagementKeyType - Base credentials type for New Relic +type EntityManagementKeyType string + +var EntityManagementKeyTypeTypes = struct { + // Ingest API key + INGEST EntityManagementKeyType + // User API key + USER EntityManagementKeyType +}{ + // Ingest API key + INGEST: "INGEST", + // User API key + USER: "USER", +} + +// EntityManagementLicenseName - List of possible repository license name. +type EntityManagementLicenseName string + +var EntityManagementLicenseNameTypes = struct { + // Academic Free License 3.0 + AFL_3_0 EntityManagementLicenseName + // GNU Affero General Public License v3.0 + AGPL_3_0 EntityManagementLicenseName + // Apache License 2.0 + APACHE_2_0 EntityManagementLicenseName + // BSD 2-Clause License + BSD_2_CLAUSE EntityManagementLicenseName + // BSD 3-Clause License + BSD_3_CLAUSE EntityManagementLicenseName + // Boost Software License 1.0 + BSL_1_0 EntityManagementLicenseName + // Creative Commons Zero v1.0 Universal + CC0_1_0 EntityManagementLicenseName + // Common Development and Distribution License + CDDL EntityManagementLicenseName + // Eclipse Public License 2.0 + EPL_2_0 EntityManagementLicenseName + // GNU General Public License v2.0 + GPL_2_0 EntityManagementLicenseName + // GNU General Public License v3.0 + GPL_3_0 EntityManagementLicenseName + // GNU General Public License v3.0 only + GPL_3_0_ONLY EntityManagementLicenseName + // GNU General Public License v3.0 or later + GPL_3_0_PLUS EntityManagementLicenseName + // GNU Lesser General Public License v2.1 + LGPL_2_1 EntityManagementLicenseName + // GNU Lesser General Public License v3.0 + LGPL_3_0 EntityManagementLicenseName + // GNU Lesser General Public License v3.0 only + LGPL_3_0_ONLY EntityManagementLicenseName + // GNU Lesser General Public License v3.0 or later + LGPL_3_0_PLUS EntityManagementLicenseName + // MIT License + MIT EntityManagementLicenseName + // Mozilla Public License 1.1 + MPL_1_1 EntityManagementLicenseName + // Mozilla Public License 2.0 + MPL_2_0 EntityManagementLicenseName + // Default value when the license cannot be found + NA EntityManagementLicenseName + // The Unlicense + UNLICENSE EntityManagementLicenseName +}{ + // Academic Free License 3.0 + AFL_3_0: "AFL_3_0", + // GNU Affero General Public License v3.0 + AGPL_3_0: "AGPL_3_0", + // Apache License 2.0 + APACHE_2_0: "APACHE_2_0", + // BSD 2-Clause License + BSD_2_CLAUSE: "BSD_2_CLAUSE", + // BSD 3-Clause License + BSD_3_CLAUSE: "BSD_3_CLAUSE", + // Boost Software License 1.0 + BSL_1_0: "BSL_1_0", + // Creative Commons Zero v1.0 Universal + CC0_1_0: "CC0_1_0", + // Common Development and Distribution License + CDDL: "CDDL", + // Eclipse Public License 2.0 + EPL_2_0: "EPL_2_0", + // GNU General Public License v2.0 + GPL_2_0: "GPL_2_0", + // GNU General Public License v3.0 + GPL_3_0: "GPL_3_0", + // GNU General Public License v3.0 only + GPL_3_0_ONLY: "GPL_3_0_ONLY", + // GNU General Public License v3.0 or later + GPL_3_0_PLUS: "GPL_3_0_PLUS", + // GNU Lesser General Public License v2.1 + LGPL_2_1: "LGPL_2_1", + // GNU Lesser General Public License v3.0 + LGPL_3_0: "LGPL_3_0", + // GNU Lesser General Public License v3.0 only + LGPL_3_0_ONLY: "LGPL_3_0_ONLY", + // GNU Lesser General Public License v3.0 or later + LGPL_3_0_PLUS: "LGPL_3_0_PLUS", + // MIT License + MIT: "MIT", + // Mozilla Public License 1.1 + MPL_1_1: "MPL_1_1", + // Mozilla Public License 2.0 + MPL_2_0: "MPL_2_0", + // Default value when the license cannot be found + NA: "NA", + // The Unlicense + UNLICENSE: "UNLICENSE", +} + +// EntityManagementManagedEntityType - Entity types that a Fleet can manage +type EntityManagementManagedEntityType string + +var EntityManagementManagedEntityTypeTypes = struct { + // Infra Host + HOST EntityManagementManagedEntityType + // Kubernetes Cluster + KUBERNETESCLUSTER EntityManagementManagedEntityType +}{ + // Infra Host + HOST: "HOST", + // Kubernetes Cluster + KUBERNETESCLUSTER: "KUBERNETESCLUSTER", +} + +// EntityManagementMessageType - Message type enum +type EntityManagementMessageType string + +var EntityManagementMessageTypeTypes = struct { + // JSON message type + JSON EntityManagementMessageType + // Text message type + TEXT EntityManagementMessageType + // YAML message type + YAML EntityManagementMessageType +}{ + // JSON message type + JSON: "JSON", + // Text message type + TEXT: "TEXT", + // YAML message type + YAML: "YAML", +} + +// EntityManagementOverlapPolicy - Possible types for the Overlap Policy of a Workflow Schedule +type EntityManagementOverlapPolicy string + +var EntityManagementOverlapPolicyTypes = struct { + // Cancel the currently running workflow and start a new one + CANCEL EntityManagementOverlapPolicy + // Skip the current scheduled run if the previous one is still running + SKIP EntityManagementOverlapPolicy +}{ + // Cancel the currently running workflow and start a new one + CANCEL: "CANCEL", + // Skip the current scheduled run if the previous one is still running + SKIP: "SKIP", +} + +// EntityManagementPriority - Enum for Work Item priority +type EntityManagementPriority string + +var EntityManagementPriorityTypes = struct { + // High priority of the work item + HIGH EntityManagementPriority + // Highest priority of the work item + HIGHEST EntityManagementPriority + // Low priority of the work item + LOW EntityManagementPriority + // Lowest priority of the work item + LOWEST EntityManagementPriority + // Medium priority of the work item + MEDIUM EntityManagementPriority +}{ + // High priority of the work item + HIGH: "HIGH", + // Highest priority of the work item + HIGHEST: "HIGHEST", + // Low priority of the work item + LOW: "LOW", + // Lowest priority of the work item + LOWEST: "LOWEST", + // Medium priority of the work item + MEDIUM: "MEDIUM", +} + +// EntityManagementRegion - Region represents the geographical region where the incident is impacting. +type EntityManagementRegion string + +var EntityManagementRegionTypes = struct { + // EU Region + EU EntityManagementRegion + // Staging Region + STAGING EntityManagementRegion + // US Region + US EntityManagementRegion +}{ + // EU Region + EU: "EU", + // Staging Region + STAGING: "STAGING", + // US Region + US: "US", +} + +// EntityManagementSigningAlgorithm - Enum for JWT signing algorithm +type EntityManagementSigningAlgorithm string + +var EntityManagementSigningAlgorithmTypes = struct { + // RSA256 signing algorithm + RSA256 EntityManagementSigningAlgorithm +}{ + // RSA256 signing algorithm + RSA256: "RSA256", +} + +// EntityManagementStatusCode - Rule execution status codes +type EntityManagementStatusCode string + +var EntityManagementStatusCodeTypes = struct { + // Indicates the rule execution was unable to proceed due to missing data from the source. + MISSING_DATA_SOURCE EntityManagementStatusCode + // System error + SYSTEM_ERROR EntityManagementStatusCode +}{ + // Indicates the rule execution was unable to proceed due to missing data from the source. + MISSING_DATA_SOURCE: "MISSING_DATA_SOURCE", + // System error + SYSTEM_ERROR: "SYSTEM_ERROR", +} + +// EntityManagementSyncConfigurationMode - Enum for the sync configuration mode +type EntityManagementSyncConfigurationMode string + +var EntityManagementSyncConfigurationModeTypes = struct { + // Sync all fields + ALL EntityManagementSyncConfigurationMode + // Sync only the messages + MESSAGES EntityManagementSyncConfigurationMode + // Sync only the WorkItem entity + WORKITEM EntityManagementSyncConfigurationMode +}{ + // Sync all fields + ALL: "ALL", + // Sync only the messages + MESSAGES: "MESSAGES", + // Sync only the WorkItem entity + WORKITEM: "WORKITEM", +} + +// EntityManagementSyncGroupRuleConditionType - The types of conditions for group sync rules. +type EntityManagementSyncGroupRuleConditionType string + +var EntityManagementSyncGroupRuleConditionTypeTypes = struct { + // Group name contains. + CONTAINS EntityManagementSyncGroupRuleConditionType + // Group name ends with. + ENDS_WITH EntityManagementSyncGroupRuleConditionType + // Group name starts with. + STARTS_WITH EntityManagementSyncGroupRuleConditionType +}{ + // Group name contains. + CONTAINS: "CONTAINS", + // Group name ends with. + ENDS_WITH: "ENDS_WITH", + // Group name starts with. + STARTS_WITH: "STARTS_WITH", +} + +// EntityManagementTeamExternalIntegrationType - Possible types for the External Integration. +type EntityManagementTeamExternalIntegrationType string + +var EntityManagementTeamExternalIntegrationTypeTypes = struct { + // GitHub Team Integration. + GITHUB_TEAM EntityManagementTeamExternalIntegrationType + // IAM Group Integration. + IAM_GROUP EntityManagementTeamExternalIntegrationType + // ServiceNow Team Integration. + SERVICENOW_TEAM EntityManagementTeamExternalIntegrationType +}{ + // GitHub Team Integration. + GITHUB_TEAM: "GITHUB_TEAM", + // IAM Group Integration. + IAM_GROUP: "IAM_GROUP", + // ServiceNow Team Integration. + SERVICENOW_TEAM: "SERVICENOW_TEAM", +} + +// EntityManagementTextSplitterType - The text splitter enum +type EntityManagementTextSplitterType string + +var EntityManagementTextSplitterTypeTypes = struct { + // For character splitter + CHARACTER_TEXT_SPLITTER EntityManagementTextSplitterType + // For markdown content splitting + MARKDOWN_TEXT_SPLITTER EntityManagementTextSplitterType + // For token text splitting + TOKEN_TEXT_SPLITTER EntityManagementTextSplitterType +}{ + // For character splitter + CHARACTER_TEXT_SPLITTER: "CHARACTER_TEXT_SPLITTER", + // For markdown content splitting + MARKDOWN_TEXT_SPLITTER: "MARKDOWN_TEXT_SPLITTER", + // For token text splitting + TOKEN_TEXT_SPLITTER: "TOKEN_TEXT_SPLITTER", +} + +// EntityRelationshipEdgeDirection - Values for relationship direction filter. +type EntityRelationshipEdgeDirection string + +var EntityRelationshipEdgeDirectionTypes = struct { + // Traverse both inbound and outbound connections. + BOTH EntityRelationshipEdgeDirection + // Traverse inbound connections to the source of the relationship. + INBOUND EntityRelationshipEdgeDirection + // Traverse outbound connections to the target of the relationship. + OUTBOUND EntityRelationshipEdgeDirection +}{ + // Traverse both inbound and outbound connections. + BOTH: "BOTH", + // Traverse inbound connections to the source of the relationship. + INBOUND: "INBOUND", + // Traverse outbound connections to the target of the relationship. + OUTBOUND: "OUTBOUND", +} + +// EntityRelationshipEdgeType - The type of the relationship. +type EntityRelationshipEdgeType string + +var EntityRelationshipEdgeTypeTypes = struct { + // The target entity contains the code for the source entity. + BUILT_FROM EntityRelationshipEdgeType + // The source entity bypasses the target entity. + BYPASS_CALLS EntityRelationshipEdgeType + // The source entity calls the target entity. + CALLS EntityRelationshipEdgeType + // The source entity has a connection to the target entity. + CONNECTS_TO EntityRelationshipEdgeType + // The source entity consumes messages from a target kafka topic or other queue systems. + CONSUMES EntityRelationshipEdgeType + // The source entity contains the target entity. + CONTAINS EntityRelationshipEdgeType + // The source entity hosts the target. + HOSTS EntityRelationshipEdgeType + // The source and target entities are perspectives on the same thing. + IS EntityRelationshipEdgeType + // The source entity manages the target, that represents a subsystem of the source. + MANAGES EntityRelationshipEdgeType + // The source entity is used to measure the target entity. + MEASURES EntityRelationshipEdgeType + // The source entity monitors the target entity. + MONITORS EntityRelationshipEdgeType + // The source operates in the target entity, e.g. a region or a data center. + OPERATES_IN EntityRelationshipEdgeType + // The source entity owns the target entity. + OWNS EntityRelationshipEdgeType + // The source entity produces messages to a target kafka topic or other queue systems. + PRODUCES EntityRelationshipEdgeType + // Captures a security relationship where the source entity provides a security mechanism for the target entity. For example, an Identity Provider (IdP) securing an application or a firewall securing a host + SECURES EntityRelationshipEdgeType + // The source is an Application that serves the target Browser application. + SERVES EntityRelationshipEdgeType + // The source entity initiates an action in the target entity. + TRIGGERS EntityRelationshipEdgeType +}{ + // The target entity contains the code for the source entity. + BUILT_FROM: "BUILT_FROM", + // The source entity bypasses the target entity. + BYPASS_CALLS: "BYPASS_CALLS", + // The source entity calls the target entity. + CALLS: "CALLS", + // The source entity has a connection to the target entity. + CONNECTS_TO: "CONNECTS_TO", + // The source entity consumes messages from a target kafka topic or other queue systems. + CONSUMES: "CONSUMES", + // The source entity contains the target entity. + CONTAINS: "CONTAINS", + // The source entity hosts the target. + HOSTS: "HOSTS", + // The source and target entities are perspectives on the same thing. + IS: "IS", + // The source entity manages the target, that represents a subsystem of the source. + MANAGES: "MANAGES", + // The source entity is used to measure the target entity. + MEASURES: "MEASURES", + // The source entity monitors the target entity. + MONITORS: "MONITORS", + // The source operates in the target entity, e.g. a region or a data center. + OPERATES_IN: "OPERATES_IN", + // The source entity owns the target entity. + OWNS: "OWNS", + // The source entity produces messages to a target kafka topic or other queue systems. + PRODUCES: "PRODUCES", + // Captures a security relationship where the source entity provides a security mechanism for the target entity. For example, an Identity Provider (IdP) securing an application or a firewall securing a host + SECURES: "SECURES", + // The source is an Application that serves the target Browser application. + SERVES: "SERVES", + // The source entity initiates an action in the target entity. + TRIGGERS: "TRIGGERS", +} + +// EntityRelationshipType - The type of the relationship. +// +// For details, visit [our docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/graphql-relationships-api-tutorial). +type EntityRelationshipType string + +var EntityRelationshipTypeTypes = struct { + // The source repository containing the code for the target + BUILT_FROM EntityRelationshipType + // The source entity calls the target entity. + CALLS EntityRelationshipType + // The source establishes TCP connections to the target + CONNECTS_TO EntityRelationshipType + // The source entity contains the target entity + CONTAINS EntityRelationshipType + // The source entity hosts the target + HOSTS EntityRelationshipType + // The source and target entities are perspectives on the same thing + IS EntityRelationshipType + // The source is an Application that serves the target Browser application + SERVES EntityRelationshipType + // Type not known + UNKNOWN EntityRelationshipType +}{ + // The source repository containing the code for the target + BUILT_FROM: "BUILT_FROM", + // The source entity calls the target entity. + CALLS: "CALLS", + // The source establishes TCP connections to the target + CONNECTS_TO: "CONNECTS_TO", + // The source entity contains the target entity + CONTAINS: "CONTAINS", + // The source entity hosts the target + HOSTS: "HOSTS", + // The source and target entities are perspectives on the same thing + IS: "IS", + // The source is an Application that serves the target Browser application + SERVES: "SERVES", + // Type not known + UNKNOWN: "UNKNOWN", +} + +// EntitySearchCountsFacet - Possible entity search count facets. +type EntitySearchCountsFacet string + +var EntitySearchCountsFacetTypes = struct { + // Facet by account id. + ACCOUNT_ID EntitySearchCountsFacet + // Facet by alert severity. + ALERT_SEVERITY EntitySearchCountsFacet + // Facet by entity domain. + DOMAIN EntitySearchCountsFacet + // Facet by entity domain and entity type. + DOMAIN_TYPE EntitySearchCountsFacet + // Facet by entity name + NAME EntitySearchCountsFacet + // Facet by reporting state. + REPORTING EntitySearchCountsFacet + // Facet by entity type. + TYPE EntitySearchCountsFacet +}{ + // Facet by account id. + ACCOUNT_ID: "ACCOUNT_ID", + // Facet by alert severity. + ALERT_SEVERITY: "ALERT_SEVERITY", + // Facet by entity domain. + DOMAIN: "DOMAIN", + // Facet by entity domain and entity type. + DOMAIN_TYPE: "DOMAIN_TYPE", + // Facet by entity name + NAME: "NAME", + // Facet by reporting state. + REPORTING: "REPORTING", + // Facet by entity type. + TYPE: "TYPE", +} + +// EntityType - The specific type of entity +type EntityType string + +var EntityTypeTypes = struct { + // An APM Application + APM_APPLICATION_ENTITY EntityType + // A database instance seen by an APM Application + APM_DATABASE_INSTANCE_ENTITY EntityType + // An external service seen by an APM Application + APM_EXTERNAL_SERVICE_ENTITY EntityType + // A Browser Application + BROWSER_APPLICATION_ENTITY EntityType + // A Dashboard entity + DASHBOARD_ENTITY EntityType + // An External entity. For more information about defining External entities, see the [open source documentation](https://github.com/newrelic-experimental/entity-synthesis-definitions). + EXTERNAL_ENTITY EntityType + // A Generic entity with no detailed data + GENERIC_ENTITY EntityType + // An Infrastructure entity + GENERIC_INFRASTRUCTURE_ENTITY EntityType + // An Infrastructure Integration AWS Lambda Function entity + INFRASTRUCTURE_AWS_LAMBDA_FUNCTION_ENTITY EntityType + // An Infrastructure Host entity + INFRASTRUCTURE_HOST_ENTITY EntityType + // A Key Transaction entity + KEY_TRANSACTION_ENTITY EntityType + // A Mobile Application + MOBILE_APPLICATION_ENTITY EntityType + // A Secure Credential entity + SECURE_CREDENTIAL_ENTITY EntityType + // A Synthetic Monitor entity + SYNTHETIC_MONITOR_ENTITY EntityType + // A Team Entity + TEAM_ENTITY EntityType + // A Third Party Service entity + THIRD_PARTY_SERVICE_ENTITY EntityType + // A entity that is unavailable + UNAVAILABLE_ENTITY EntityType + // A Workload entity + WORKLOAD_ENTITY EntityType +}{ + // An APM Application + APM_APPLICATION_ENTITY: "APM_APPLICATION_ENTITY", + // A database instance seen by an APM Application + APM_DATABASE_INSTANCE_ENTITY: "APM_DATABASE_INSTANCE_ENTITY", + // An external service seen by an APM Application + APM_EXTERNAL_SERVICE_ENTITY: "APM_EXTERNAL_SERVICE_ENTITY", + // A Browser Application + BROWSER_APPLICATION_ENTITY: "BROWSER_APPLICATION_ENTITY", + // A Dashboard entity + DASHBOARD_ENTITY: "DASHBOARD_ENTITY", + // An External entity. For more information about defining External entities, see the [open source documentation](https://github.com/newrelic-experimental/entity-synthesis-definitions). + EXTERNAL_ENTITY: "EXTERNAL_ENTITY", + // A Generic entity with no detailed data + GENERIC_ENTITY: "GENERIC_ENTITY", + // An Infrastructure entity + GENERIC_INFRASTRUCTURE_ENTITY: "GENERIC_INFRASTRUCTURE_ENTITY", + // An Infrastructure Integration AWS Lambda Function entity + INFRASTRUCTURE_AWS_LAMBDA_FUNCTION_ENTITY: "INFRASTRUCTURE_AWS_LAMBDA_FUNCTION_ENTITY", + // An Infrastructure Host entity + INFRASTRUCTURE_HOST_ENTITY: "INFRASTRUCTURE_HOST_ENTITY", + // A Key Transaction entity + KEY_TRANSACTION_ENTITY: "KEY_TRANSACTION_ENTITY", + // A Mobile Application + MOBILE_APPLICATION_ENTITY: "MOBILE_APPLICATION_ENTITY", + // A Secure Credential entity + SECURE_CREDENTIAL_ENTITY: "SECURE_CREDENTIAL_ENTITY", + // A Synthetic Monitor entity + SYNTHETIC_MONITOR_ENTITY: "SYNTHETIC_MONITOR_ENTITY", + // A Team Entity + TEAM_ENTITY: "TEAM_ENTITY", + // A Third Party Service entity + THIRD_PARTY_SERVICE_ENTITY: "THIRD_PARTY_SERVICE_ENTITY", + // A entity that is unavailable + UNAVAILABLE_ENTITY: "UNAVAILABLE_ENTITY", + // A Workload entity + WORKLOAD_ENTITY: "WORKLOAD_ENTITY", +} + +// MetricNormalizationRuleAction - The different rule actions. +type MetricNormalizationRuleAction string + +var MetricNormalizationRuleActionTypes = struct { + // Deny new metrics. + DENY_NEW_METRICS MetricNormalizationRuleAction + // Ignore matching metrics. + IGNORE MetricNormalizationRuleAction + // Replace metrics. + REPLACE MetricNormalizationRuleAction +}{ + // Deny new metrics. + DENY_NEW_METRICS: "DENY_NEW_METRICS", + // Ignore matching metrics. + IGNORE: "IGNORE", + // Replace metrics. + REPLACE: "REPLACE", +} + +// ServiceLevelEventsQuerySelectFunction - The function to use in the SELECT clause. +type ServiceLevelEventsQuerySelectFunction string + +var ServiceLevelEventsQuerySelectFunctionTypes = struct { + // Use on events and unaggregated data. + COUNT ServiceLevelEventsQuerySelectFunction + // Use on distribution metric types. + GET_CDF_COUNT ServiceLevelEventsQuerySelectFunction + // Use in valid events combined with GET_CDF_COUNT. + GET_FIELD ServiceLevelEventsQuerySelectFunction + // Use on aggregated counts. + SUM ServiceLevelEventsQuerySelectFunction +}{ + // Use on events and unaggregated data. + COUNT: "COUNT", + // Use on distribution metric types. + GET_CDF_COUNT: "GET_CDF_COUNT", + // Use in valid events combined with GET_CDF_COUNT. + GET_FIELD: "GET_FIELD", + // Use on aggregated counts. + SUM: "SUM", +} + +// ServiceLevelObjectiveRollingTimeWindowUnit - The rolling time window units. +type ServiceLevelObjectiveRollingTimeWindowUnit string + +var ServiceLevelObjectiveRollingTimeWindowUnitTypes = struct { + // Day. + DAY ServiceLevelObjectiveRollingTimeWindowUnit +}{ + // Day. + DAY: "DAY", +} + +type SyntheticMonitorStatus string + +var SyntheticMonitorStatusTypes = struct { + DELETED SyntheticMonitorStatus + DISABLED SyntheticMonitorStatus + ENABLED SyntheticMonitorStatus + FAULTY SyntheticMonitorStatus + MUTED SyntheticMonitorStatus + PAUSED SyntheticMonitorStatus +}{ + DELETED: "DELETED", + DISABLED: "DISABLED", + ENABLED: "ENABLED", + FAULTY: "FAULTY", + MUTED: "MUTED", + PAUSED: "PAUSED", +} + +// SyntheticMonitorType - The types of Synthetic Monitors. +type SyntheticMonitorType string + +var SyntheticMonitorTypeTypes = struct { + BROKEN_LINKS SyntheticMonitorType + BROWSER SyntheticMonitorType + CERT_CHECK SyntheticMonitorType + SCRIPT_API SyntheticMonitorType + SCRIPT_BROWSER SyntheticMonitorType + SIMPLE SyntheticMonitorType + STEP_MONITOR SyntheticMonitorType +}{ + BROKEN_LINKS: "BROKEN_LINKS", + BROWSER: "BROWSER", + CERT_CHECK: "CERT_CHECK", + SCRIPT_API: "SCRIPT_API", + SCRIPT_BROWSER: "SCRIPT_BROWSER", + SIMPLE: "SIMPLE", + STEP_MONITOR: "STEP_MONITOR", +} + +// WorkloadStatusSource - Indicates where the status value derives from. +type WorkloadStatusSource string + +var WorkloadStatusSourceTypes = struct { + // Refers to the result of an automatic rule defined for a workload. + ROLLUP_RULE WorkloadStatusSource + // Refers to a static status defined for a workload. + STATIC WorkloadStatusSource + // Refers to an undetermined status source. + UNKNOWN WorkloadStatusSource + // Refers to the override policy that is applied to a set of partial results within a workload. Any static status always overrides any other status values calculated automatically. Otherwise, the worst status of the partial results is rolled up. + WORKLOAD WorkloadStatusSource +}{ + // Refers to the result of an automatic rule defined for a workload. + ROLLUP_RULE: "ROLLUP_RULE", + // Refers to a static status defined for a workload. + STATIC: "STATIC", + // Refers to an undetermined status source. + UNKNOWN: "UNKNOWN", + // Refers to the override policy that is applied to a set of partial results within a workload. Any static status always overrides any other status values calculated automatically. Otherwise, the worst status of the partial results is rolled up. + WORKLOAD: "WORKLOAD", +} + +// WorkloadStatusValue - The status of the workload, which is derived from the static and the automatic statuses configured. Any static status always overrides any other status values calculated automatically. +type WorkloadStatusValue string + +var WorkloadStatusValueTypes = struct { + // The status of the workload is degraded. + DEGRADED WorkloadStatusValue + // The status of the workload is disrupted. + DISRUPTED WorkloadStatusValue + // The status of the workload is operational. + OPERATIONAL WorkloadStatusValue + // The status of the workload is unknown. + UNKNOWN WorkloadStatusValue +}{ + // The status of the workload is degraded. + DEGRADED: "DEGRADED", + // The status of the workload is disrupted. + DISRUPTED: "DISRUPTED", + // The status of the workload is operational. + OPERATIONAL: "OPERATIONAL", + // The status of the workload is unknown. + UNKNOWN: "UNKNOWN", +} + +// AccountOutline - The `AccountOutline` object provides basic data about an account. +type AccountOutline struct { + ID int `json:"id,omitempty"` + Name string `json:"name,omitempty"` + // Returns event types that are currently reporting in the account. + ReportingEventTypes []string `json:"reportingEventTypes,omitempty"` +} + +// AccountReference - The `AccountReference` object provides basic identifying information about the account. +type AccountReference struct { + ID int `json:"id,omitempty"` + Name string `json:"name,omitempty"` +} + +// Actor - The `Actor` object contains fields that are scoped to the API user's access level. +type Actor struct { + // The `accounts` field returns all accounts that the Actor is authorized to view. + Accounts []AccountOutline `json:"accounts,omitempty"` + // Fetch a list of entities. + // + // You can fetch a max of 25 entities in one query. + // + // For more details on entities, visit our [entity docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/use-new-relic-graphql-api-query-entities). + Entities []EntityInterface `json:"entities,omitempty"` + // Fetch a single entity. + // + // For more details on entities, visit our [entity docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/use-new-relic-graphql-api-query-entities). + Entity EntityInterface `json:"entity,omitempty"` + // This field provides access to EntityManagement data. + EntityManagement EntityManagementActorStitchedFields `json:"entityManagement,omitempty"` + // Search for entities using a custom query. + // + // For more details on how to create a custom query + // and what entity data you can request, visit our + // [entity docs](https://docs.newrelic.com/docs/apis/graphql-api/tutorials/use-new-relic-graphql-api-query-entities). + // + // Note: you must supply either a `query` OR a `queryBuilder` argument, not both. + EntitySearch EntitySearch `json:"entitySearch,omitempty"` +} + +// AgentApplicationSegmentsBrowserSegmentAllowList - The allow list object for browser applications. +type AgentApplicationSegmentsBrowserSegmentAllowList struct { + // The url segments that are allowed. + Segments []string `json:"segments,omitempty"` +} + +// AgentApplicationSegmentsSegmentAllowListFilters - Filter the allow lists by fields specified in this object. +type AgentApplicationSegmentsSegmentAllowListFilters struct { + // INTERNAL or USER. Defaults to USER + ListType AgentApplicationSegmentsListType `json:"listType,omitempty"` +} + +// AgentApplicationSettingsApmBase - Settings that are applicable to APM applications and their agents. +type AgentApplicationSettingsApmBase struct { + // The name for the application + Alias string `json:"alias,omitempty"` + // Access general settings for the application. + ApmConfig AgentApplicationSettingsApmConfig `json:"apmConfig"` + // Access log forwarding settings for the application. + ApplicationLogging AgentApplicationSettingsApplicationLogging `json:"applicationLogging,omitempty"` + // Enable or disable the capture of memcache keys. + CaptureMemcacheKeys bool `json:"captureMemcacheKeys,omitempty"` + // Access error collector settings for the application. The error collector captures information about uncaught exceptions and sends them to New Relic for viewing. + ErrorCollector AgentApplicationSettingsErrorCollector `json:"errorCollector,omitempty"` + // Access enabled state for the Java Flight Recorder. This is available only for the Java language agent version 8.0.0 or later. + Jfr AgentApplicationSettingsJfr `json:"jfr,omitempty"` + // The name originally given to the application for reporting. + OriginalName string `json:"originalName,omitempty"` + // In APM, when transaction traces are collected, there may be additional Slow query data available. + SlowSql AgentApplicationSettingsSlowSql `json:"slowSql,omitempty"` + // Measures wall clock time, CPU time, and method call counts in your application's threads as they run. + ThreadProfiler AgentApplicationSettingsThreadProfiler `json:"threadProfiler,omitempty"` + // Type of tracer used. APM's cross application tracing links transactions between APM apps in your service-oriented architecture (SOA). Distributed tracing is an improvement on the cross application tracing feature, and is recommended for large, distributed systems. + TracerType AgentApplicationSettingsTracer `json:"tracerType,omitempty"` + // Access transaction tracer settings for the application. + TransactionTracer AgentApplicationSettingsTransactionTracer `json:"transactionTracer,omitempty"` +} + +// AgentApplicationSettingsApmConfig - General settings related to APM applications. +type AgentApplicationSettingsApmConfig struct { + // The desired target for the APDEX measurement of this APM application. + ApdexTarget float64 `json:"apdexTarget,omitempty"` + // Sets if agents for this APM application should get some of their configuration from the server. + UseServerSideConfig bool `json:"useServerSideConfig,omitempty"` +} + +// AgentApplicationSettingsApplicationExitInfo - Reports on application exits, which can be used to determine if an application is not responding. +type AgentApplicationSettingsApplicationExitInfo struct { + // Whether or not application exit info is collected. + Enabled bool `json:"enabled"` +} + +// AgentApplicationSettingsApplicationLogging - Monitoring application logs is crucial for maintaining health and performance, directly impacting user satisfaction, operational efficiency, and overall product quality. +type AgentApplicationSettingsApplicationLogging struct { + // Configure agent to capture logs and forward them to New Relic One. + Enabled bool `json:"enabled,omitempty"` + // Manages the configuration for automatic log forwarding for APM, including logs in context. + Forwarding AgentApplicationSettingsForwarding `json:"forwarding,omitempty"` + // Controls whether locally stored log lines are decorated or not. This is independent of whether log forwarding is enabled or not and is used to support customers that want to use a separate log forwarding solution. + LocalDecorating AgentApplicationSettingsLocalDecorating `json:"localDecorating,omitempty"` + // Enables the capture of metrics information about your logs and log levels, which is displayed in a chart on the APM Summary page. + Metrics AgentApplicationSettingsMetrics `json:"metrics,omitempty"` +} + +// AgentApplicationSettingsBrowserAjax - Enables ajax traces in the browser app. +type AgentApplicationSettingsBrowserAjax struct { + // List of domains excluded from Ajax traces by the browser agent. + DenyList []string `json:"denyList"` +} + +// AgentApplicationSettingsBrowserBase - Settings that are applicable to browser applications. +type AgentApplicationSettingsBrowserBase struct { + // Access general settings for the application. + BrowserConfig AgentApplicationSettingsBrowserConfig `json:"browserConfig"` + // browser monitoring provides real user monitoring (RUM) that measures the speed and performance of end users as they navigate the application using different web browsers, devices, operating systems, and networks. + BrowserMonitoring AgentApplicationSettingsBrowserMonitoring `json:"browserMonitoring"` + // Session Replay configuration. + SessionReplay AgentApplicationSettingsSessionReplay `json:"sessionReplay"` + // Session Trace configuration. + SessionTrace AgentApplicationSettingsSessionTrace `json:"sessionTrace"` +} + +// AgentApplicationSettingsBrowserConfig - General settings related to APM applications. +type AgentApplicationSettingsBrowserConfig struct { + // The desired target for the APDEX measurement of this browser application. + ApdexTarget float64 `json:"apdexTarget,omitempty"` +} + +// AgentApplicationSettingsBrowserDistributedTracing - Distributed tracing type. See [documentation](https://docs.newrelic.com/docs/browser/new-relic-browser/browser-pro-features/browser-data-distributed-tracing/) for further information. +type AgentApplicationSettingsBrowserDistributedTracing struct { + // List of allowed origins for use with distributed tracing. + AllowedOrigins []string `json:"allowedOrigins"` + // Whether or not CORS is enabled in distributed tracing. + CorsEnabled bool `json:"corsEnabled,omitempty"` + // Whether or not CORS uses the `newrelic` header in distributed tracing. + CorsUseNewrelicHeader bool `json:"corsUseNewrelicHeader,omitempty"` + // Whether or not CORS uses tracecontext headers in distributed tracing. + CorsUseTracecontextHeaders bool `json:"corsUseTracecontextHeaders,omitempty"` + // Whether or not distributed tracing is enabled. + Enabled bool `json:"enabled,omitempty"` + // Whether or not to exclude the `newrelic` header in distributed tracing. + ExcludeNewrelicHeader bool `json:"excludeNewrelicHeader,omitempty"` +} + +// AgentApplicationSettingsBrowserMonitoring - Provides fields to set browser monitoring application settings. +type AgentApplicationSettingsBrowserMonitoring struct { + // Enables ajax traces in the browser app. + Ajax AgentApplicationSettingsBrowserAjax `json:"ajax,omitempty"` + // Distributed tracing type. See [documentation](https://docs.newrelic.com/docs/browser/new-relic-browser/browser-pro-features/browser-data-distributed-tracing/) for further information. + DistributedTracing AgentApplicationSettingsBrowserDistributedTracing `json:"distributedTracing"` + // The type of browser agent that will be loaded. + Loader AgentApplicationSettingsBrowserLoader `json:"loader"` + // Specify the semantic version of the browser agent that you would like your app to use. Leave this blank to use the most recent version. Use 'x' in place of a numeric digit to represent the latest release within the version range. For example, '1.x.x' + PinnedVersion string `json:"pinnedVersion,omitempty"` + // Browser privacy. See [documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/page-load-timing-resources/cookie-collection-session-tracking/) for further information. + Privacy AgentApplicationSettingsBrowserPrivacy `json:"privacy"` +} + +// AgentApplicationSettingsBrowserPrivacy - Browser privacy. See [documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/page-load-timing-resources/cookie-collection-session-tracking/) for further information. +type AgentApplicationSettingsBrowserPrivacy struct { + // Whether or not cookies are enabled. + 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