Skip to content

Commit

Permalink
Merge pull request #60 from newrelic/kav/updateRelationshipQuery
Browse files Browse the repository at this point in the history
fix: relationship query
  • Loading branch information
Kav91 committed May 16, 2024
2 parents 69e6985 + 8afcc29 commit eced11f
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions visualizations/entity-status-widget/entity-status-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import queue from 'async/queue';
import Summarized from './views/summarized';
import EntityTable from './views/entity-table';

const relationshipQuery = (guids, end_time) => {
const relationshipQuery = guids => {
return ngql`{
actor {
entities(guids: [${guids}]) {
Expand All @@ -28,26 +28,26 @@ const relationshipQuery = (guids, end_time) => {
... on AlertableEntity {
alertSeverity
}
relationships(endTime: ${end_time}) {
source {
entity {
name
guid
entityType
type
... on AlertableEntityOutline {
alertSeverity
relatedEntities {
results {
source {
entity {
name
guid
entityType
... on AlertableEntityOutline {
alertSeverity
}
}
}
}
target {
entity {
name
guid
entityType
type
... on AlertableEntityOutline {
alertSeverity
target {
entity {
name
guid
entityType
... on AlertableEntityOutline {
alertSeverity
}
}
}
}
Expand Down

0 comments on commit eced11f

Please sign in to comment.