Skip to content

Instantly share code, notes, and snippets.

@pranav-new-relic
Created May 5, 2023 16:14
Show Gist options
  • Save pranav-new-relic/2e5fccf87a861b3e33e11c5263022253 to your computer and use it in GitHub Desktop.
Save pranav-new-relic/2e5fccf87a861b3e33e11c5263022253 to your computer and use it in GitHub Desktop.
query(
$guid: EntityGuid!,
) { actor { entity(
guid: $guid,
) {
account {
id
name
reportingEventTypes
}
accountId
alertSeverity
domain
entityType
goldenMetrics {
context {
account
guid
}
metrics {
name
query
title
}
}
goldenTags {
context {
account
guid
}
tags {
key
}
}
guid
indexedAt
name
permalink
recentAlertViolations {
agentUrl
alertSeverity
closedAt
label
level
openedAt
violationId
violationUrl
}
relatedEntities {
nextCursor
results {
__typename
createdAt
type
... on EntityRelationshipDetectedEdge {
__typename
}
... on EntityRelationshipUserDefinedEdge {
__typename
}
}
}
relationships {
source {
accountId
entityType
guid
}
target {
accountId
entityType
guid
}
type
}
reporting
serviceLevel {
indicators {
createdAt
description
entityGuid
id
name
updatedAt
}
}
tags {
key
values
}
tagsWithMetadata {
key
values {
mutable
value
}
}
type
... on ApmApplicationEntity {
__typename
account {
id
name
reportingEventTypes
}
apmBrowserSummary {
ajaxRequestThroughput
ajaxResponseTimeAverage
jsErrorRate
pageLoadThroughput
pageLoadTimeAverage
}
apmSummary {
apdexScore
errorRate
hostCount
instanceCount
nonWebResponseTimeAverage
nonWebThroughput
responseTimeAverage
throughput
webResponseTimeAverage
webThroughput
}
applicationId
deployments {
changelog
description
permalink
revision
timestamp
user
}
language
metricNormalizationRules {
action
applicationGuid
applicationName
createdAt
enabled
id
matchExpression
notes
replacement
}
recentAlertViolations {
agentUrl
alertSeverity
closedAt
label
level
openedAt
violationId
violationUrl
}
relatedEntities {
nextCursor
}
relationships {
type
}
runningAgentVersions {
maxVersion
minVersion
}
settings {
apdexTarget
serverSideConfig
}
tags {
key
values
}
tagsWithMetadata {
key
}
}
... on ApmDatabaseInstanceEntity {
__typename
account {
id
name
reportingEventTypes
}
host
portOrPath
recentAlertViolations {
agentUrl
alertSeverity
closedAt
label
level
openedAt
violationId
violationUrl
}
relatedEntities {
nextCursor
}
relationships {
type
}
tags {
key
values
}
tagsWithMetadata {
key
}
vendor
}
... on ApmExternalServiceEntity {
__typename
account {
id
name
reportingEventTypes
}
externalSummary {
responseTimeAverage
throughput
}
host
recentAlertViolations {
agentUrl
alertSeverity
closedAt
label
level
openedAt
violationId
violationUrl
}
relatedEntities {
nextCursor
}
relationships {
type
}
tags {
key
values
}
tagsWithMetadata {
key
}
}
... on BrowserApplicationEntity {
__typename
account {
id
name
reportingEventTypes
}
agentInstallType
applicationId
browserSummary {
ajaxRequestThroughput
ajaxResponseTimeAverage
jsErrorRate
pageLoadThroughput
pageLoadTimeAverage
pageLoadTimeMedian
spaResponseTimeAverage
spaResponseTimeMedian
}
metricNormalizationRules {
action
applicationGuid
applicationName
createdAt
enabled
id
matchExpression
notes
replacement
}
recentAlertViolations {
agentUrl
alertSeverity
closedAt
label
level
openedAt
violationId
violationUrl
}
relatedEntities {
nextCursor
}
relationships {
type
}
runningAgentVersions {
maxVersion
minVersion
}
servingApmApplicationId
settings {
apdexTarget
}
tags {
key
values
}
tagsWithMetadata {
key
}
}
... on DashboardEntity {
__typename
account {
id
name
reportingEventTypes
}
createdAt
dashboardParentGuid
description
owner {
email
userId
}
pages {
createdAt
description
guid
name
updatedAt
}
permissions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment